Golang bot for managing discord verifications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.2 KiB

{"version":3,"sources":["App.js","index.js"],"names":["Card","props","state","data","className","this","Username","Closed","UserID","href","Photo","React","Component","CardImg","src","undefined","alt","style","width","Pending","pending","fetch","then","response","json","setState","Object","values","map","i","Verification","verifications","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"wOAIMA,G,wDAKJ,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IALRC,MAAQ,CACNC,KAAM,IAKN,EAAKD,MAAMC,KAAOF,EAFD,E,qDAMjB,OACE,sBAAKG,UAAU,OAAf,UACA,6BAAI,4BAAIC,KAAKH,MAAMC,KAAKG,aACtB,sBAAKF,UAAU,YAAf,UACE,4BAAIC,KAAKH,MAAMC,KAAKI,SACpB,4BAAIF,KAAKH,MAAMC,KAAKK,SACpB,4BAAG,mBAAGC,KAAMJ,KAAKH,MAAMC,KAAKO,MAAzB,4C,GAjBMC,IAAMC,YAwBvB,SAASC,EAAQV,GACf,OACE,sBAAKC,UAAU,WAAf,UACA,6BAAI,uCAAUD,EAAKG,cACnB,qBAAKQ,SAAoBC,IAAfZ,EAAKO,MAAsBP,EAAKO,MAAQ,mCAAoCM,IAAI,SAASC,MAAO,CAAEC,MAAO,UACjH,qBAAKd,UAAU,YAAf,SACE,4BAAID,EAAKK,c,IAiCbW,E,4MACFjB,MAAQ,CACJkB,QAAS,I,kEAEQ,IAAD,OAEhBC,MADe,6CAEVC,MAAK,SAACC,GAAD,OAAcA,EAASC,UAC5BF,MAAK,SAACnB,GAAD,OAAU,EAAKsB,SAAS,CAACL,QAASM,OAAOC,OAAOxB,U,+BAG1D,OACG,sBAAKC,UAAU,MAAf,UACI,6BACKC,KAAKH,MAAMkB,QAAQQ,KAAI,SAACzB,EAAM0B,GAAP,OACnB,mCAAa,cAAChB,EAAD,eAAaV,MAAjB0B,QAGlB,8B,GAlBOlB,IAAMC,WAwDbkB,E,4MA7BX5B,MAAQ,CACJ6B,cAAe,I,kEAEE,IAAD,OAEhBV,MADe,mDAEVC,MAAK,SAACC,GAAD,OAAcA,EAASC,UAC5BF,MAAK,SAACnB,GAAD,OAAU,EAAKsB,SAAS,CAACM,cAAe5B,S,+BAIlD,OACG,sBAAKC,UAAU,MAAf,UACE,cAAC,EAAD,IACE,6BACKC,KAAKH,MAAM6B,cAAcH,KAAI,SAACzB,EAAM0B,GAAP,OAC1B,mCAAa,cAAC,EAAD,eAAU1B,MAAd0B,e,GAjBLlB,IAAMC,WCvFjCoB,IAASC,OACP,eAAC,IAAMC,WAAP,WACE,cAAC,EAAD,IACA,cAAC,EAAD,OAEFC,SAASC,eAAe,gB","file":"static/js/main.bf43163b.chunk.js","sourcesContent":["\nimport React, { useState, useEffect } from \"react\";\nimport './App.css';\n\nclass Card extends React.Component{\n state = {\n data: {}\n }\n\n constructor(props) {\n super(props);\n this.state.data = props;\n }\n\n render() {\n return (\n <div className=\"card\">\n <h4><b>{this.state.data.Username}</b></h4>\n <div className=\"container\">\n <p>{this.state.data.Closed}</p>\n <p>{this.state.data.UserID}</p>\n <p><a href={this.state.data.Photo}>Verification Photo</a></p>\n </div>\n </div>\n );\n}\n}\n\n function CardImg(data) {\n return (\n <div className=\"card-img\">\n <h4><b>Pend: {data.Username}</b></h4>\n <img src={data.Photo !== undefined ? data.Photo : \"https://thiscatdoesnotexist.com/\"} alt=\"Avatar\" style={{ width: \"100%\" }} />\n <div className=\"container\">\n <p>{data.UserID}</p>\n </div>\n </div>\n )\n }\n/*\nfunction UserDetail(userID, verification) {\n const [data, setData] = useState([]);\n useEffect(() => {\n fetch(\n `https://thanos.nightmare.haus/api/user?userID=${userID}`\n )\n .then(res => res.json())\n .then(response => {\n setData(response);\n })\n .catch(error => console.log(error));\n });\n\n return (\n <div className=\"card\">\n <h4><b>{data.Nick}</b></h4>\n <img src={verification !== undefined ? verification : \"https://thiscatdoesnotexist.com/\"} alt=\"Avatar\" style={{ width: \"100%\" }} />\n <div className=\"container\">\n <img src={data.user.avatar !== undefined ? `https://cdn.discordapp.com/avatars/${userID}/${data.user.avatar}.png` : \"https://thiscatdoesnotexist.com/\"} alt=\"Avatar\" style={{ width: \"100%\" }} />\n \n <p>{data.joined_at}</p>\n <p>{data.user.id}</p>\n </div>\n </div>\n )\n}\n*/\nclass Pending extends React.Component {\n state = {\n pending: []\n }\n componentDidMount() {\n const apiUrl = 'https://thanos.nightmare.haus/api/pending';\n fetch(apiUrl)\n .then((response) => response.json())\n .then((data) => this.setState({pending: Object.values(data)}));\n }\n render() {\n return (\n <div className=\"App\">\n <ul>\n {this.state.pending.map((data, i) => (\n <li key={i}> <CardImg {...da