From a205581a448a9c94bf248828847cb5d4deed6cd2 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 31 Dec 2020 13:07:59 -0500 Subject: [PATCH] Working tests --- src/App.js | 31 ++++++++++++----- static/css/main.5c7015b9.chunk.css | 2 -- static/css/main.5c7015b9.chunk.css.map | 1 - static/js/2.55237e37.chunk.js | 3 -- static/js/2.55237e37.chunk.js.LICENSE.txt | 41 ----------------------- static/js/2.55237e37.chunk.js.map | 1 - static/js/main.e873c6b9.chunk.js | 2 -- static/js/main.e873c6b9.chunk.js.map | 1 - static/js/runtime-main.e8303b2e.js | 2 -- static/js/runtime-main.e8303b2e.js.map | 1 - static/loggedIn.tpl | 4 +-- 11 files changed, 25 insertions(+), 64 deletions(-) delete mode 100644 static/css/main.5c7015b9.chunk.css delete mode 100644 static/css/main.5c7015b9.chunk.css.map delete mode 100644 static/js/2.55237e37.chunk.js delete mode 100644 static/js/2.55237e37.chunk.js.LICENSE.txt delete mode 100644 static/js/2.55237e37.chunk.js.map delete mode 100644 static/js/main.e873c6b9.chunk.js delete mode 100644 static/js/main.e873c6b9.chunk.js.map delete mode 100644 static/js/runtime-main.e8303b2e.js delete mode 100644 static/js/runtime-main.e8303b2e.js.map diff --git a/src/App.js b/src/App.js index bae617f..e75bba8 100644 --- a/src/App.js +++ b/src/App.js @@ -27,13 +27,27 @@ class Card extends React.Component{ .catch(error => console.log(error)); } render() { - if (this.state.expand && this.state.details != null) { - return ( -
- -
- - ) + if (this.state.expand) { + if (this.state.details != null) { + return ( +
+ +
+ + ) + } else { + var details = {}; + details.Nick = this.state.data.Username + " (Invalid)"; + details.user = {}; + details.user.id = this.state.data.UserID; + details.joined_at = this.state.data.Closed; + return ( +
+ +
+ ) + } + } return (
@@ -61,12 +75,13 @@ class Card extends React.Component{ } function UserDetail(data, verification) { + console.log(data); verification = data.verification data = data.data; return (

{data.Nick !== null ? data.Nick : data.user.Username}

- Avatar + Avatar
diff --git a/static/css/main.5c7015b9.chunk.css b/static/css/main.5c7015b9.chunk.css deleted file mode 100644 index a8d10aa..0000000 --- a/static/css/main.5c7015b9.chunk.css +++ /dev/null @@ -1,2 +0,0 @@ -body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}.card{height:200px}.card,.card-img{box-shadow:0 4px 8px 0 rgba(0,0,0,.137);border-radius:3%;transition:.3s;position:relative;width:300px;padding:10px;background-color:#282c34;color:#fff}.card-img{height:450px}.card:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,.795)}.container{padding:6px 16px}ul{list-style-type:none;margin:4;padding:20px;overflow:hidden;display:table;width:100%;list-style:none}li{float:left;display:table-cell;text-align:center;margin:5px}ul li div{display:block}.App{text-align:center}.App-logo{height:40vmin;pointer-events:none}@media (prefers-reduced-motion:no-preference){.App-logo{-webkit-animation:App-logo-spin 20s linear infinite;animation:App-logo-spin 20s linear infinite}}.App-header{background-color:#282c34;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:calc(10px + 2vmin);color:#fff}.App-link{color:#61dafb}@-webkit-keyframes App-logo-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes App-logo-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}} -/*# sourceMappingURL=main.5c7015b9.chunk.css.map */ \ No newline at end of file diff --git a/static/css/main.5c7015b9.chunk.css.map b/static/css/main.5c7015b9.chunk.css.map deleted file mode 100644 index 400da80..0000000 --- a/static/css/main.5c7015b9.chunk.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://src/index.css","webpack://src/App.css"],"names":[],"mappings":"AAAA,KACI,QAAS,CACT,mJAEY,CACZ,kCAAmC,CACnC,iCACF,CAEA,KACE,yEAEF,CACA,MAOE,YAIF,CACA,gBAVE,uCAA4C,CAC5C,gBAAiB,CACjB,cAAgB,CAChB,iBAAkB,CAClB,WAAY,CAEZ,YAAa,CACb,wBAAyB,CACzB,UAaF,CAXA,UAOE,YAIF,CAGA,YACE,wCACF,CAGA,WACE,gBACF,CAEA,GACE,oBAAqB,CACrB,QAAS,CACT,YAAa,CACb,eAAgB,CACd,aAAc,CACd,UAAW,CACX,eACJ,CAEA,GACE,UAAW,CACX,kBAAmB,CACnB,iBAAkB,CAClB,UACF,CACA,UACE,aACF,CClEF,KACE,iBACF,CAEA,UACE,aAAc,CACd,mBACF,CAEA,8CACE,UACE,mDAA4C,CAA5C,2CACF,CACF,CAEA,YACE,wBAAyB,CACzB,gBAAiB,CACjB,YAAa,CACb,qBAAsB,CACtB,kBAAmB,CACnB,sBAAuB,CACvB,4BAA6B,CAC7B,UACF,CAEA,UACE,aACF,CAEA,iCACE,GACE,sBACF,CACA,GACE,uBACF,CACF,CAPA,yBACE,GACE,sBACF,CACA,GACE,uBACF,CACF","file":"main.5c7015b9.chunk.css","sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n code {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n }\n .card {\n /* Add shadows to create the \"card\" effect */\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.137);\n border-radius: 3%;\n transition: 0.3s;\n position: relative;\n width: 300px;\n height: 200px;\n padding: 10px;\n background-color: #282c34;\n color: #FFFFFF;\n }\n .card-img {\n /* Add shadows to create the \"card\" effect */\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.137);\n border-radius: 3%;\n transition: 0.3s;\n position: relative;\n width: 300px;\n height: 450px;\n padding: 10px;\n background-color: #282c34;\n color: #FFFFFF;\n }\n \n /* On mouse-over, add a deeper shadow */\n .card:hover {\n box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.795);\n }\n \n /* Add some padding inside the card container */\n .container {\n padding: 6px 16px;\n }\n \n ul {\n list-style-type: none;\n margin: 4;\n padding: 20px;\n overflow: hidden;\n display: table;\n width: 100%;\n list-style: none;\n }\n \n li {\n float: left;\n display: table-cell;\n text-align: center;\n margin: 5px;\n }\n ul li div {\n display: block;\n }",".App {\n text-align: center;\n}\n\n.App-logo {\n height: 40vmin;\n pointer-events: none;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .App-logo {\n animation: App-logo-spin infinite 20s linear;\n }\n}\n\n.App-header {\n background-color: #282c34;\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n color: white;\n}\n\n.App-link {\n color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n"]} \ No newline at end of file diff --git a/static/js/2.55237e37.chunk.js b/static/js/2.55237e37.chunk.js deleted file mode 100644 index 086efc9..0000000 --- a/static/js/2.55237e37.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 2.55237e37.chunk.js.LICENSE.txt */ -(this.webpackJsonpthanos=this.webpackJsonpthanos||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(10)},function(e,t,n){"use strict";e.exports=n(11)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n
- + - +
\ No newline at end of file