Gregory Rudolph
4 years ago
20 changed files with 45050 additions and 4982 deletions
@ -1,18 +1,38 @@ |
|||||||
{ |
{ |
||||||
"name": "disgord-Thanos", |
"name": "thanos", |
||||||
"version": "1.0.0", |
"version": "1.0.0", |
||||||
"description": "", |
"private": true, |
||||||
"main": "index.js", |
"dependencies": { |
||||||
|
"@testing-library/jest-dom": "^5.11.4", |
||||||
|
"@testing-library/react": "^11.1.0", |
||||||
|
"@testing-library/user-event": "^12.1.10", |
||||||
|
"react": "^17.0.1", |
||||||
|
"react-dom": "^17.0.1", |
||||||
|
"react-scripts": "4.0.0", |
||||||
|
"web-vitals": "^0.2.4" |
||||||
|
}, |
||||||
"scripts": { |
"scripts": { |
||||||
"test": "echo \"Error: no test specified\" && exit 1" |
"start": "react-scripts start", |
||||||
|
"build": "react-scripts build", |
||||||
|
"test": "react-scripts test", |
||||||
|
"eject": "react-scripts eject" |
||||||
}, |
}, |
||||||
"keywords": [], |
"eslintConfig": { |
||||||
"author": "", |
"extends": [ |
||||||
"license": "ISC", |
"react-app", |
||||||
"dependencies": { |
"react-app/jest" |
||||||
"babel-preset-react-app": "^3.1.2" |
] |
||||||
}, |
}, |
||||||
"devDependencies": { |
"browserslist": { |
||||||
"babel-cli": "^6.26.0" |
"production": [ |
||||||
|
">0.2%", |
||||||
|
"not dead", |
||||||
|
"not op_mini all" |
||||||
|
], |
||||||
|
"development": [ |
||||||
|
"last 1 chrome version", |
||||||
|
"last 1 firefox version", |
||||||
|
"last 1 safari version" |
||||||
|
] |
||||||
} |
} |
||||||
} |
} |
||||||
|
@ -0,0 +1,38 @@ |
|||||||
|
.App { |
||||||
|
text-align: center; |
||||||
|
} |
||||||
|
|
||||||
|
.App-logo { |
||||||
|
height: 40vmin; |
||||||
|
pointer-events: none; |
||||||
|
} |
||||||
|
|
||||||
|
@media (prefers-reduced-motion: no-preference) { |
||||||
|
.App-logo { |
||||||
|
animation: App-logo-spin infinite 20s linear; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.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: white; |
||||||
|
} |
||||||
|
|
||||||
|
.App-link { |
||||||
|
color: #61dafb; |
||||||
|
} |
||||||
|
|
||||||
|
@keyframes App-logo-spin { |
||||||
|
from { |
||||||
|
transform: rotate(0deg); |
||||||
|
} |
||||||
|
to { |
||||||
|
transform: rotate(360deg); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,55 @@ |
|||||||
|
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 { |
||||||
|
/* Add shadows to create the "card" effect */ |
||||||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.137); |
||||||
|
border-radius: 3%; |
||||||
|
transition: 0.3s; |
||||||
|
position: relative; |
||||||
|
width: 300px; |
||||||
|
height: 450px; |
||||||
|
padding: 10px; |
||||||
|
background-color: #a05236a6; |
||||||
|
color: #FFFFFF; |
||||||
|
} |
||||||
|
|
||||||
|
/* On mouse-over, add a deeper shadow */ |
||||||
|
.card:hover { |
||||||
|
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.795); |
||||||
|
} |
||||||
|
|
||||||
|
/* Add some padding inside the card container */ |
||||||
|
.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; |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
import React from 'react'; |
||||||
|
import ReactDOM from 'react-dom'; |
||||||
|
import './index.css'; |
||||||
|
import App from './App'; |
||||||
|
|
||||||
|
ReactDOM.render( |
||||||
|
<React.StrictMode> |
||||||
|
<App /> |
||||||
|
</React.StrictMode>, |
||||||
|
document.getElementById('react_app') |
||||||
|
); |
@ -1,90 +0,0 @@ |
|||||||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); |
|
||||||
|
|
||||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
|
||||||
|
|
||||||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } |
|
||||||
|
|
||||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } |
|
||||||
|
|
||||||
function Card(data) { |
|
||||||
return React.createElement( |
|
||||||
"div", |
|
||||||
{ className: "card" }, |
|
||||||
React.createElement( |
|
||||||
"h4", |
|
||||||
null, |
|
||||||
React.createElement( |
|
||||||
"b", |
|
||||||
null, |
|
||||||
data.Username |
|
||||||
) |
|
||||||
), |
|
||||||
React.createElement( |
|
||||||
"div", |
|
||||||
{ className: "container" }, |
|
||||||
React.createElement( |
|
||||||
"p", |
|
||||||
null, |
|
||||||
data.Closed |
|
||||||
), |
|
||||||
React.createElement( |
|
||||||
"p", |
|
||||||
null, |
|
||||||
data.UserID |
|
||||||
) |
|
||||||
) |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
var Verification = function (_React$Component) { |
|
||||||
_inherits(Verification, _React$Component); |
|
||||||
|
|
||||||
function Verification(props) { |
|
||||||
_classCallCheck(this, Verification); |
|
||||||
|
|
||||||
var _this = _possibleConstructorReturn(this, (Verification.__proto__ || Object.getPrototypeOf(Verification)).call(this, props)); |
|
||||||
|
|
||||||
_this.state = { |
|
||||||
verifications: [] |
|
||||||
}; |
|
||||||
return _this; |
|
||||||
} |
|
||||||
|
|
||||||
_createClass(Verification, [{ |
|
||||||
key: "componentDidMount", |
|
||||||
value: function componentDidMount() { |
|
||||||
var _this2 = this; |
|
||||||
|
|
||||||
var apiUrl = 'https://thanos.nightmare.haus/api/verifications'; |
|
||||||
fetch(apiUrl).then(function (response) { |
|
||||||
return response.json(); |
|
||||||
}).then(function (data) { |
|
||||||
return _this2.setState({ verifications: data }); |
|
||||||
}); |
|
||||||
} |
|
||||||
}, { |
|
||||||
key: "render", |
|
||||||
value: function render() { |
|
||||||
return React.createElement( |
|
||||||
"div", |
|
||||||
{ className: "App" }, |
|
||||||
React.createElement( |
|
||||||
"ul", |
|
||||||
null, |
|
||||||
this.state.verifications.map(function (data, i) { |
|
||||||
return React.createElement( |
|
||||||
"li", |
|
||||||
{ key: i }, |
|
||||||
" ", |
|
||||||
React.createElement(Card, data) |
|
||||||
); |
|
||||||
}) |
|
||||||
) |
|
||||||
); |
|
||||||
} |
|
||||||
}]); |
|
||||||
|
|
||||||
return Verification; |
|
||||||
}(React.Component); |
|
||||||
|
|
||||||
ReactDOM.render(React.createElement(Verification, null), document.getElementById('react_app')); |
|
@ -0,0 +1,2 @@ |
|||||||
|
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{box-shadow:0 4px 8px 0 rgba(0,0,0,.137);border-radius:3%;transition:.3s;position:relative;width:300px;height:450px;padding:10px;background-color:rgba(160,82,54,.6509803921568628);color:#fff}.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.13d1d8bf.chunk.css.map */ |
@ -0,0 +1 @@ |
|||||||
|
{"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,MAEE,uCAA4C,CAC5C,gBAAiB,CACjB,cAAgB,CAChB,iBAAkB,CAClB,WAAY,CACZ,YAAa,CACb,YAAa,CACb,kDAA2B,CAC3B,UACF,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,CCtDF,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.13d1d8bf.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: 450px;\n padding: 10px;\n background-color: #a05236a6;\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"]} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,41 @@ |
|||||||
|
/* |
||||||
|
object-assign |
||||||
|
(c) Sindre Sorhus |
||||||
|
@license MIT |
||||||
|
*/ |
||||||
|
|
||||||
|
/** @license React v0.20.1 |
||||||
|
* scheduler.production.min.js |
||||||
|
* |
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates. |
||||||
|
* |
||||||
|
* This source code is licensed under the MIT license found in the |
||||||
|
* LICENSE file in the root directory of this source tree. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** @license React v17.0.1 |
||||||
|
* react-dom.production.min.js |
||||||
|
* |
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates. |
||||||
|
* |
||||||
|
* This source code is licensed under the MIT license found in the |
||||||
|
* LICENSE file in the root directory of this source tree. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** @license React v17.0.1 |
||||||
|
* react-jsx-runtime.production.min.js |
||||||
|
* |
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates. |
||||||
|
* |
||||||
|
* This source code is licensed under the MIT license found in the |
||||||
|
* LICENSE file in the root directory of this source tree. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** @license React v17.0.1 |
||||||
|
* react.production.min.js |
||||||
|
* |
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates. |
||||||
|
* |
||||||
|
* This source code is licensed under the MIT license found in the |
||||||
|
* LICENSE file in the root directory of this source tree. |
||||||
|
*/ |
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@ |
|||||||
|
(this.webpackJsonpthanos=this.webpackJsonpthanos||[]).push([[0],{14:function(e,t,n){},15:function(e,t,n){},16:function(e,t,n){"use strict";n.r(t);var c=n(0),r=n(1),i=n.n(r),s=n(3),a=n.n(s),o=(n(14),n(7)),j=n(4),h=n(5),u=n(8),l=n(6);n(15);function d(e){return Object(c.jsxs)("div",{className:"card",children:[Object(c.jsx)("h4",{children:Object(c.jsx)("b",{children:e.Username})}),Object(c.jsxs)("div",{className:"container",children:[Object(c.jsx)("p",{children:e.Closed}),Object(c.jsx)("p",{children:e.UserID})]})]})}var b=function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(j.a)(this,n);for(var c=arguments.length,r=new Array(c),i=0;i<c;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={verifications:[]},e}return Object(h.a)(n,[{key:"componentDidMount",value:function(){var e=this;fetch("https://thanos.nightmare.haus/api/verifications").then((function(e){return e.json()})).then((function(t){return e.setState({verifications:t})}))}},{key:"render",value:function(){return Object(c.jsx)("div",{className:"App",children:Object(c.jsx)("ul",{children:this.state.verifications.map((function(e,t){return Object(c.jsxs)("li",{children:[" ",Object(c.jsx)(d,Object(o.a)({},e))]},t)}))})})}}]),n}(i.a.Component);a.a.render(Object(c.jsx)(i.a.StrictMode,{children:Object(c.jsx)(b,{})}),document.getElementById("react_app"))}},[[16,1,2]]]); |
||||||
|
//# sourceMappingURL=main.cf70ea3e.chunk.js.map
|
@ -0,0 +1 @@ |
|||||||
|
{"version":3,"sources":["App.js","index.js"],"names":["Card","data","className","Username","Closed","UserID","Verification","state","verifications","fetch","then","response","json","setState","this","map","i","React","Component","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"8OAGA,SAASA,EAAKC,GACV,OACE,sBAAKC,UAAU,OAAf,UACA,6BAAI,4BAAID,EAAKE,aACX,sBAAKD,UAAU,YAAf,UACE,4BAAID,EAAKG,SACT,4BAAIH,EAAKI,e,IA8BJC,E,4MAvBXC,MAAQ,CACJC,cAAe,I,kEAEE,IAAD,OAEhBC,MADe,mDAEVC,MAAK,SAACC,GAAD,OAAcA,EAASC,UAC5BF,MAAK,SAACT,GAAD,OAAU,EAAKY,SAAS,CAACL,cAAeP,S,+BAGlD,OACG,qBAAKC,UAAU,MAAf,SACI,6BACKY,KAAKP,MAAMC,cAAcO,KAAI,SAACd,EAAMe,GAAP,OAC1B,mCAAa,cAAChB,EAAD,eAAUC,MAAde,c,GAfLC,IAAMC,WCVjCC,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,gB","file":"static/js/main.cf70ea3e.chunk.js","sourcesContent":["import React from 'react';\nimport './App.css';\n\nfunction Card(data) {\n return (\n <div className=\"card\">\n <h4><b>{data.Username}</b></h4>\n <div className=\"container\">\n <p>{data.Closed}</p>\n <p>{data.UserID}</p>\n </div>\n </div>\n )\n }\n\nclass Verification extends React.Component {\n state = {\n verifications: []\n }\n componentDidMount() {\n const apiUrl = 'https://thanos.nightmare.haus/api/verifications';\n fetch(apiUrl)\n .then((response) => response.json())\n .then((data) => this.setState({verifications: data}));\n }\n render() {\n return (\n <div className=\"App\">\n <ul>\n {this.state.verifications.map((data, i) => (\n <li key={i}> <Card {...data} /></li>\n ))}\n </ul>\n </div>\n );\n }\n}\n\n\nexport default Verification;","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\n\nReactDOM.render(\n <React.StrictMode>\n <App />\n </React.StrictMode>,\n document.getElementById('react_app')\n);\n"],"sourceRoot":""} |
@ -0,0 +1,2 @@ |
|||||||
|
!function(e){function t(t){for(var n,l,a=t[0],f=t[1],i=t[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(p&&p(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var f=r[a];0!==o[f]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="/";var a=this.webpackJsonpthanos=this.webpackJsonpthanos||[],f=a.push.bind(a);a.push=t,a=a.slice();for(var i=0;i<a.length;i++)t(a[i]);var p=f;r()}([]); |
||||||
|
//# sourceMappingURL=runtime-main.e8303b2e.js.map
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue