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.6 KiB
1 line
5.6 KiB
4 years ago
|
{"version":3,"sources":["App.js","index.js"],"names":["Card","props","state","data","setState","className","onClick","UserDetail","this","UserID","Photo","Username","Closed","href","React","Component","CardImg","src","undefined","alt","style","width","userID","verification","useState","setData","useEffect","fetch","then","res","json","response","catch","error","console","log","Nick","user","avatar","joined_at","id","Verification","verifications","map","i","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"+OAIMA,G,wDAKJ,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IALRC,MAAQ,CACNC,KAAM,IAKN,EAAKC,SAAS,CAACD,KAAMF,IAFJ,E,qDAMjB,OACE,sBAAKI,UAAU,OAAOC,QAASC,EAC7BC,KAAKN,MAAMC,KAAKM,OAChBD,KAAKN,MAAMC,KAAKO,OAFlB,UAIA,6BAAI,4BAAIF,KAAKN,MAAMC,KAAKQ,aACtB,sBAAKN,UAAU,YAAf,UACE,4BAAIG,KAAKN,MAAMC,KAAKS,SACpB,4BAAIJ,KAAKN,MAAMC,KAAKM,SACpB,4BAAG,mBAAGI,KAAML,KAAKN,MAAMC,KAAKO,MAAzB,4C,GApBMI,IAAMC,YA2BvB,SAASC,EAAQb,GACf,OACE,sBAAKE,UAAU,WAAf,UACA,6BAAI,4BAAIF,EAAKQ,aACb,qBAAKM,SAAoBC,IAAff,EAAKO,MAAsBP,EAAKO,MAAQ,mCAAoCS,IAAI,SAASC,MAAO,CAAEC,MAAO,UACjH,qBAAKhB,UAAU,YAAf,SACE,4BAAIF,EAAKM,cAMnB,SAASF,EAAWe,EAAQC,GAAe,IAAD,EAChBC,mBAAS,IADO,mBACjCrB,EADiC,KAC3BsB,EAD2B,KAaxC,OAXAC,qBAAU,WACRC,MAAM,iDAAD,OAC8CL,IAEhDM,MAAK,SAAAC,GAAG,OAAIA,EAAIC,UAChBF,MAAK,SAAAG,GACJN,EAAQM,MAETC,OAAM,SAAAC,GAAK,OAAIC,QAAQC,IAAIF,SAI9B,sBAAK5B,UAAU,OAAf,UACA,6BAAI,4BAAIF,EAAKiC,SACb,qBAAKnB,SAAsBC,IAAjBK,EAA6BA,EAAe,mCAAoCJ,IAAI,SAASC,MAAO,CAAEC,MAAO,UACrH,sBAAKhB,UAAU,YAAf,UACA,qBAAKY,SAA0BC,IAArBf,EAAKkC,KAAKC,OAAV,6CAAuEhB,EAAvE,YAAiFnB,EAAKkC,KAAKC,OAA3F,QAA0G,mCAAoCnB,IAAI,SAASC,MAAO,CAAEC,MAAO,UAEnL,4BAAIlB,EAAKoC,YACT,4BAAIpC,EAAKkC,KAAKG,WAMA1B,IAAMC,U,IAsDb0B,E,4MA5BXvC,MAAQ,CACJwC,cAAe,I,kEAEE,IAAD,OAEhBf,MADe,mDAEVC,MAAK,SAACG,GAAD,OAAcA,EAASD,UAC5BF,MAAK,SAACzB,GAAD,OAAU,EAAKC,SAAS,CAACsC,cAAevC,S,+BAIlD,OACG,qBAAKE,UAAU,MAAf,SACI,6BACKG,KAAKN,MAAMwC,cAAcC,KAAI,SAACxC,EAAMyC,GAAP,OAC1B,mCAAa,cAAC,EAAD,eAAUzC,MAAdyC,c,GAhBL9B,IAAMC,WCzFjC8B,IAASC,OACP,eAAC,IAAMC,WAAP,WACE,cAAC,EAAD,IACA,cAAC,EAAD,OAEFC,SAASC,eAAe,gB","file":"static/js/main.a19de358.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.setState({data: props});\n }\n\n render() {\n return (\n <div className=\"card\" onClick={UserDetail(\n this.state.data.UserID,\n this.state.data.Photo,\n )}>\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>{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 exten
|