diff --git a/front-end/node_modules/.cache/.eslintcache b/front-end/node_modules/.cache/.eslintcache index de9df232c1fa96747ed0e7841f0041c6061ceb8d..ccab98cabb548251e4b4eb3cf9afb4dc2a321b59 100644 --- a/front-end/node_modules/.cache/.eslintcache +++ b/front-end/node_modules/.cache/.eslintcache @@ -1 +1 @@ -[{"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/index.js":"1","/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js":"2","/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/Violator.js":"3"},{"size":231,"mtime":1674068490219,"results":"4","hashOfConfig":"5"},{"size":773,"mtime":1674159070336,"results":"6","hashOfConfig":"5"},{"size":669,"mtime":1674075116142,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","suppressedMessages":"10","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1s1dm2w",{"filePath":"11","messages":"12","suppressedMessages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/index.js",[],[],"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js",[],[],"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/Violator.js",[],[]] \ No newline at end of file +[{"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/index.js":"1","/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js":"2","/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/Violator.js":"3"},{"size":231,"mtime":1674068490219,"results":"4","hashOfConfig":"5"},{"size":831,"mtime":1674171066930,"results":"6","hashOfConfig":"5"},{"size":669,"mtime":1674075116142,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","suppressedMessages":"10","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1s1dm2w",{"filePath":"11","messages":"12","suppressedMessages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/index.js",[],[],"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js",[],[],"/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/Violator.js",[],[]] \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/0298e41f61484c1d8309308bfc8cbbb67d07592d024717d2fdaf7580773910cc.json b/front-end/node_modules/.cache/babel-loader/0298e41f61484c1d8309308bfc8cbbb67d07592d024717d2fdaf7580773910cc.json new file mode 100644 index 0000000000000000000000000000000000000000..0164f3b36567fd853f76a4d29a5da215857650ea --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/0298e41f61484c1d8309308bfc8cbbb67d07592d024717d2fdaf7580773910cc.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => res.json()).then(res => this.render(res.data));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render(elements) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), elements.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 46\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","json","render","handleData","elements","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => res.json())\n .then((res) => this.render(res.data))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(elements){\n return (\n <div>\n <h1>Violators: </h1>\n {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACI,IAAI,EAAE,CAAC,CACzBL,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACK,MAAM,CAACL,GAAG,CAACE,IAAI,CAAC,CAAC;IACzC,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAI,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAF,MAAM,CAACE,QAAQ,EAAC;IACd,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnBA,QAAQ,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACzI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/06304a229f18b40bea78acc0bc6bbbb46ac2119daceb5e4b0384f03d1d8d7acb.json b/front-end/node_modules/.cache/babel-loader/06304a229f18b40bea78acc0bc6bbbb46ac2119daceb5e4b0384f03d1d8d7acb.json new file mode 100644 index 0000000000000000000000000000000000000000..ff6205270524192ab91de1a2a6a8698133c277e8 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/06304a229f18b40bea78acc0bc6bbbb46ac2119daceb5e4b0384f03d1d8d7acb.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n this.setState({\n violatorList: this.state.violatorList.filter(Boolean)\n });\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 31,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","filter","Boolean","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAGzHC,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;IAET,IAAI,CAACD,QAAQ,CAAC;MAACL,YAAY,EAAE,IAAI,CAACD,KAAK,CAACC,YAAY,CAACQ,MAAM,CAACC,OAAO;IAAC,CAAC,CAAC;EAExE;EAEAC,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACQ,MAAM,CAACC,OAAO,CAAC,CAACG,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/08c1b33c93cb1748ecdeb06b378085a477d0546dbf75902d879b2a69e0de73ba.json b/front-end/node_modules/.cache/babel-loader/08c1b33c93cb1748ecdeb06b378085a477d0546dbf75902d879b2a69e0de73ba.json new file mode 100644 index 0000000000000000000000000000000000000000..42d0ae7117bf7d4866bb2d334cf2f09b443d919a --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/08c1b33c93cb1748ecdeb06b378085a477d0546dbf75902d879b2a69e0de73ba.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {\n this.setState({\n violatorList: this.state.violatorList.filter(Boolean)\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","componentDidUpdate","filter","Boolean","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAGzHC,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,kBAAkB,GAAE;IAClB,IAAI,CAACH,QAAQ,CAAC;MAACL,YAAY,EAAE,IAAI,CAACD,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO;IAAC,CAAC,CAAC;EACxE;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACE,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/0965ec2bf02ad399e654cd4511e17047113a7ae794949331b397475c1971c5d5.json b/front-end/node_modules/.cache/babel-loader/0965ec2bf02ad399e654cd4511e17047113a7ae794949331b397475c1971c5d5.json new file mode 100644 index 0000000000000000000000000000000000000000..d1edc10fb9ef02a5282332a8781ce9a6d22adde2 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/0965ec2bf02ad399e654cd4511e17047113a7ae794949331b397475c1971c5d5.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.render(res.data));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render(elements) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), elements.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 46\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","handleData","elements","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.render(res.data))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(elements){\n return (\n <div>\n <h1>Violators: </h1>\n {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACI,MAAM,CAACJ,GAAG,CAACE,IAAI,CAAC,CAAC;IACzG,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAF,MAAM,CAACE,QAAQ,EAAC;IACd,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnBA,QAAQ,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACzI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/116abcf9f4985874a4339dff5ab41ca54692040e6c81dff09574c2def6095785.json b/front-end/node_modules/.cache/babel-loader/116abcf9f4985874a4339dff5ab41ca54692040e6c81dff09574c2def6095785.json new file mode 100644 index 0000000000000000000000000000000000000000..e5acdba603e87d41c813f7d6c7cecf3a46b49251 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/116abcf9f4985874a4339dff5ab41ca54692040e6c81dff09574c2def6095785.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n //this.state.forceUpdate()\n this.render();\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","componentDidUpdate","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,MAAM,EAAE;IACf,CAAC,EAAE,KAAK,CAAC;;IAET;AACJ;AACA;AACA;AACA;;IAEID,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,kBAAkB,GAAE,CAEpB;EAEAD,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACT,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/19035a4b27f45ea8883ec2dc2157e6d1a714ce88eef0a9910a6a46a49ef29757.json b/front-end/node_modules/.cache/babel-loader/19035a4b27f45ea8883ec2dc2157e6d1a714ce88eef0a9910a6a46a49ef29757.json new file mode 100644 index 0000000000000000000000000000000000000000..942615ce55158cfb0de4c13a4881480d168de2a3 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/19035a4b27f45ea8883ec2dc2157e6d1a714ce88eef0a9910a6a46a49ef29757.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n //.then((res) => console.log(typeof(JSON.parse(res.data))))\n .then(res => this.setState({\n violatorList: JSON.parse(res)\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","JSON","parse","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n //.then((res) => console.log(typeof(JSON.parse(res.data))))\n .then((res) => this.setState({violatorList: (JSON.parse(res))}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD;MAC/D;MAAA,CACCC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGQ,IAAI,CAACC,KAAK,CAACL,GAAG;MAAE,CAAC,CAAC,CAAC;IACpE,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAM,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/1a18735123f7e1e4d35b6cc75cc7fd8e4124c46a3b6feddb8173714dd839886f.json b/front-end/node_modules/.cache/babel-loader/1a18735123f7e1e4d35b6cc75cc7fd8e4124c46a3b6feddb8173714dd839886f.json new file mode 100644 index 0000000000000000000000000000000000000000..0d8a3b074e4ad56fe134e48729984bac03387718 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/1a18735123f7e1e4d35b6cc75cc7fd8e4124c46a3b6feddb8173714dd839886f.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 27,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAGDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAGzHC,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACT,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/1a84a8b8619722694c93fb6ffca4464a854660ad78bb4ba190e29db9bd57ef47.json b/front-end/node_modules/.cache/babel-loader/1a84a8b8619722694c93fb6ffca4464a854660ad78bb4ba190e29db9bd57ef47.json new file mode 100644 index 0000000000000000000000000000000000000000..4a09dcb83dc8f53f7bb4f4da72fd4b78db45b857 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/1a84a8b8619722694c93fb6ffca4464a854660ad78bb4ba190e29db9bd57ef47.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(res));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","console","log","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACA;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAKK,OAAO,CAACC,GAAG,CAACN,GAAG,CAAC,CAAC;IACpG,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAO,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACP,QAAQ,CAAC;MAACO;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACd,KAAK,CAACC,YAAY,CAACc,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/2088f7b83f13b39327c8d69112941f9ede2ceaf43a292ddeb57bd59e0405eceb.json b/front-end/node_modules/.cache/babel-loader/2088f7b83f13b39327c8d69112941f9ede2ceaf43a292ddeb57bd59e0405eceb.json new file mode 100644 index 0000000000000000000000000000000000000000..56c4ca73c8e0b9a447ab922309d94c3ffe3ea777 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/2088f7b83f13b39327c8d69112941f9ede2ceaf43a292ddeb57bd59e0405eceb.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACJ,QAAQ,CAAC;MAACI;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/220bbbf2b51f90113f553c0488050cea87a73cb2af98c11560523e163a1bab59.json b/front-end/node_modules/.cache/babel-loader/220bbbf2b51f90113f553c0488050cea87a73cb2af98c11560523e163a1bab59.json new file mode 100644 index 0000000000000000000000000000000000000000..217af129ef05e3d70a32109f6336fbf1b9e671f1 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/220bbbf2b51f90113f553c0488050cea87a73cb2af98c11560523e163a1bab59.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => res.json()).then(json => this.setState({\n violatorList: json.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","json","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => res.json())\n .then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACI,IAAI,EAAE,CAAC,CACzBL,IAAI,CAAEK,IAAI,IAAK,IAAI,CAACH,QAAQ,CAAC;QAACL,YAAY,EAAEQ,IAAI,CAACF;MAAI,CAAC,CAAC,CAAC;IAC7D,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/28c94378feec3c4aa36cb157d41f49d2d556ee1c4dc73ad8c2f732fd88a5ddb5.json b/front-end/node_modules/.cache/babel-loader/28c94378feec3c4aa36cb157d41f49d2d556ee1c4dc73ad8c2f732fd88a5ddb5.json new file mode 100644 index 0000000000000000000000000000000000000000..1d533b9463b2402f2dedbff54c363278bacd7494 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/28c94378feec3c4aa36cb157d41f49d2d556ee1c4dc73ad8c2f732fd88a5ddb5.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(typeof res.json()));\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","console","log","json","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => console.log(typeof(res.json())))\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKI,OAAO,CAACC,GAAG,CAAC,OAAOL,GAAG,CAACM,IAAI,EAAG,CAAC,CAAC;MAC/C;IACJ,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAC,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACP,QAAQ,CAAC;MAACO;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACd,KAAK,CAACC,YAAY,CAACc,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/3205a68eb3d756d995c472ab9d2d343c01a9843f8731cc6d864000cae3f7a3a0.json b/front-end/node_modules/.cache/babel-loader/3205a68eb3d756d995c472ab9d2d343c01a9843f8731cc6d864000cae3f7a3a0.json new file mode 100644 index 0000000000000000000000000000000000000000..982ece4edb4a8133caebdcde59fbabbfa2403991 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/3205a68eb3d756d995c472ab9d2d343c01a9843f8731cc6d864000cae3f7a3a0.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.handleData(res.data));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.handleData(res.data))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACI,UAAU,CAACJ,GAAG,CAACE,IAAI,CAAC,CAAC;IAC7G,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACJ,QAAQ,CAAC;MAACI;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/3d302bbf069fa0dd439263652e9d2f55ae3c2658366e937a430104ce6dc497e9.json b/front-end/node_modules/.cache/babel-loader/3d302bbf069fa0dd439263652e9d2f55ae3c2658366e937a430104ce6dc497e9.json new file mode 100644 index 0000000000000000000000000000000000000000..0ec713f079f33efc8caec564fad53d9f65458c85 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/3d302bbf069fa0dd439263652e9d2f55ae3c2658366e937a430104ce6dc497e9.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.doRequest();\n }, 30000);\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n\n setInterval(() => {\n this.doRequest()\n }, 30000);\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAEK,GAAG,CAACC;IAAI,CAAC,CAAC,CAAC;EAC3H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;IAE3HE,WAAW,CAAC,MAAM;MAChB,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAQ,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACV,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/3ee4ef199e56e6903ad24e18699f347041c31f15ef8596473ec4b8305ac2461a.json b/front-end/node_modules/.cache/babel-loader/3ee4ef199e56e6903ad24e18699f347041c31f15ef8596473ec4b8305ac2461a.json new file mode 100644 index 0000000000000000000000000000000000000000..aab7f0f592e7227aac231b87bdd42f7e9fca3f56 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/3ee4ef199e56e6903ad24e18699f347041c31f15ef8596473ec4b8305ac2461a.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest();\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest()\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;EAC7H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIE,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACA,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAQ,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACR,QAAQ,CAAC;MAACQ;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/4440dc01bcd2353a073db9600f15f432579292b16bf7844ecb6e0169d8fd5380.json b/front-end/node_modules/.cache/babel-loader/4440dc01bcd2353a073db9600f15f432579292b16bf7844ecb6e0169d8fd5380.json new file mode 100644 index 0000000000000000000000000000000000000000..cd7ce835ba82f9eb1865223ec748a644350ca991 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/4440dc01bcd2353a073db9600f15f432579292b16bf7844ecb6e0169d8fd5380.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n doRequest();\n }, 10000);\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","doRequest","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n doRequest()\n }, 10000);\n\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAE,SAAS,EAAE;IACb,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAA,SAAS,GAAE;IACT,IAAI,CAACJ,QAAQ,CAAC;MAACL,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;EAC7H;EAEAI,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/480b167e36a3cf7321dbbf10b938a4f6bc5f110c3fef99bbeb1d44a8fd5aaf84.json b/front-end/node_modules/.cache/babel-loader/480b167e36a3cf7321dbbf10b938a4f6bc5f110c3fef99bbeb1d44a8fd5aaf84.json new file mode 100644 index 0000000000000000000000000000000000000000..abb02793f59a6f6799a9c75b5c5312b42527eff2 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/480b167e36a3cf7321dbbf10b938a4f6bc5f110c3fef99bbeb1d44a8fd5aaf84.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.state.render();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","handleData","elements","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.state.render()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACR,KAAK,CAACS,MAAM,EAAE;IACrB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAF,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACT,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/49f0d3402c9f9e6ca4084a7574d057634d5e0e94706d9a124b66d0ddacb8afc4.json b/front-end/node_modules/.cache/babel-loader/49f0d3402c9f9e6ca4084a7574d057634d5e0e94706d9a124b66d0ddacb8afc4.json new file mode 100644 index 0000000000000000000000000000000000000000..9a2de71638024e173a34905c1fb55fee46d9f0f8 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/49f0d3402c9f9e6ca4084a7574d057634d5e0e94706d9a124b66d0ddacb8afc4.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n //.then((res) => console.log(typeof(JSON.parse(res.data))))\n .then(res => this.setState({\n violatorList: JSON.parse(res.data)\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","JSON","parse","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n //.then((res) => console.log(typeof(JSON.parse(res.data))))\n .then((res) => this.setState({violatorList: JSON.parse(res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD;MAC/D;MAAA,CACCC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEQ,IAAI,CAACC,KAAK,CAACL,GAAG,CAACE,IAAI;MAAC,CAAC,CAAC,CAAC;IACvE,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAI,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/4a57cb09e0c56df433df665ee2b0632359f619cee71dd5c32a83ebe4c123f0ad.json b/front-end/node_modules/.cache/babel-loader/4a57cb09e0c56df433df665ee2b0632359f619cee71dd5c32a83ebe4c123f0ad.json new file mode 100644 index 0000000000000000000000000000000000000000..d8a8feef60186b563b76c6bb2911c62028b2ffee --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/4a57cb09e0c56df433df665ee2b0632359f619cee71dd5c32a83ebe4c123f0ad.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => typeof res);\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => typeof(res))\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAK,OAAOA,GAAI,CAAC;MAC3B;IACJ,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAI,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACJ,QAAQ,CAAC;MAACI;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/4bdf55149c9406624c7c3c22dc91b8d81c11173b6664b6252ab4330e702122c3.json b/front-end/node_modules/.cache/babel-loader/4bdf55149c9406624c7c3c22dc91b8d81c11173b6664b6252ab4330e702122c3.json new file mode 100644 index 0000000000000000000000000000000000000000..105d8a2f172e13b8d5ea82d9428d4c595095ff0e --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/4bdf55149c9406624c7c3c22dc91b8d81c11173b6664b6252ab4330e702122c3.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest(list) {\n this.setState({\n violatorList: []\n });\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.doRequest(res.data));\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","list","setState","componentDidMount","get","then","res","data","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(list){\n this.setState({violatorList: []})\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.doRequest(res.data))\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,CAACC,IAAI,EAAC;IACb,IAAI,CAACC,QAAQ,CAAC;MAACH,YAAY,EAAE;IAAE,CAAC,CAAC;IACjC,IAAI,CAACG,QAAQ,CAAC;MAACH,YAAY,EAAEE;IAAI,CAAC,CAAC;EACrC;EAEAE,iBAAiB,GAAE;IACjBT,KAAK,CAACU,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACJ,QAAQ,CAAC;MAACH,YAAY,EAAGO,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAd,KAAK,CAACU,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACN,SAAS,CAACM,GAAG,CAACC,IAAI,CAAC,CAAC;IAC5G,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEE,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/4d4e6b39283cd933fc61cab3c0da7991be795ad696b64fa0f867b0b5175ce084.json b/front-end/node_modules/.cache/babel-loader/4d4e6b39283cd933fc61cab3c0da7991be795ad696b64fa0f867b0b5175ce084.json new file mode 100644 index 0000000000000000000000000000000000000000..91a5364262a2853e2c29b4b1b28221943766bb7b --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/4d4e6b39283cd933fc61cab3c0da7991be795ad696b64fa0f867b0b5175ce084.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;IAAA,CACD,EAAE,KAAK,CAAC;IAETA,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACJ,QAAQ,CAAC;MAACI;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/54002cdfa686e217fd15c2747c9d8f8b9a3edfd39dce6acb8de4466f45429045.json b/front-end/node_modules/.cache/babel-loader/54002cdfa686e217fd15c2747c9d8f8b9a3edfd39dce6acb8de4466f45429045.json new file mode 100644 index 0000000000000000000000000000000000000000..a79a8ebfa04c0dc9ced3677aebaeae30d9b10fbe --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/54002cdfa686e217fd15c2747c9d8f8b9a3edfd39dce6acb8de4466f45429045.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest(list) {\n this.setState({\n violatorList: []\n });\n this.render();\n setTimeout(10000);\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest();\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","list","setState","render","setTimeout","componentDidMount","get","then","res","data","setInterval","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(list){\n this.setState({violatorList: []})\n this.render()\n setTimeout(10000)\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest()\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,CAACC,IAAI,EAAC;IACb,IAAI,CAACC,QAAQ,CAAC;MAACH,YAAY,EAAE;IAAE,CAAC,CAAC;IACjC,IAAI,CAACI,MAAM,EAAE;IACbC,UAAU,CAAC,KAAK,CAAC;IACjB,IAAI,CAACF,QAAQ,CAAC;MAACH,YAAY,EAAEE;IAAI,CAAC,CAAC;EACrC;EAEAI,iBAAiB,GAAE;IACjBX,KAAK,CAACY,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACN,QAAQ,CAAC;MAACH,YAAY,EAAGS,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACA,IAAI,CAACV,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEG,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACL,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/5bf8ada34897274fcae6bd42de7b639e531e49a5e8305b645c770e31893a5d41.json b/front-end/node_modules/.cache/babel-loader/5bf8ada34897274fcae6bd42de7b639e531e49a5e8305b645c770e31893a5d41.json new file mode 100644 index 0000000000000000000000000000000000000000..2558e571c869379dbff1b76dc7356c0b94935c9e --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/5bf8ada34897274fcae6bd42de7b639e531e49a5e8305b645c770e31893a5d41.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 40,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACV,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/5c9b593ac9486b5b5f9d0753a152ad44349e5c66e082939fefd87c77af21936d.json b/front-end/node_modules/.cache/babel-loader/5c9b593ac9486b5b5f9d0753a152ad44349e5c66e082939fefd87c77af21936d.json new file mode 100644 index 0000000000000000000000000000000000000000..bfec09847cdd4fe9de152bc10a9560dd4396eebd --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/5c9b593ac9486b5b5f9d0753a152ad44349e5c66e082939fefd87c77af21936d.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest();\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest()\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAEK,GAAG,CAACC;IAAI,CAAC,CAAC,CAAC;EAC3H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIE,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACA,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEQ,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACV,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/5ee0c026b961912e8d237bd17a7b2ce497aada68489e3b3ef8b13d6eb6b947e6.json b/front-end/node_modules/.cache/babel-loader/5ee0c026b961912e8d237bd17a7b2ce497aada68489e3b3ef8b13d6eb6b947e6.json new file mode 100644 index 0000000000000000000000000000000000000000..1b08bda76f633b313b3bdeccc556a3c4416f975d --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/5ee0c026b961912e8d237bd17a7b2ce497aada68489e3b3ef8b13d6eb6b947e6.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.state.forceUpdate();\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.state.forceUpdate()\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACR,KAAK,CAACS,WAAW,EAAE;IAC1B,CAAC,EAAE,KAAK,CAAC;;IAET;AACJ;AACA;AACA;AACA;;IAEID,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/62c4fd7e1148696d47abff4352a0e43500c8e3c877d8b7e6f7e654ffdb51dd48.json b/front-end/node_modules/.cache/babel-loader/62c4fd7e1148696d47abff4352a0e43500c8e3c877d8b7e6f7e654ffdb51dd48.json new file mode 100644 index 0000000000000000000000000000000000000000..63354cdfbfa6479f49d14cb5f62b77f926eb20b0 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/62c4fd7e1148696d47abff4352a0e43500c8e3c877d8b7e6f7e654ffdb51dd48.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n this.setState({\n violatorList: this.state.violatorList.filter(Boolean)\n });\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","filter","Boolean","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;IAET,IAAI,CAACD,QAAQ,CAAC;MAACL,YAAY,EAAE,IAAI,CAACD,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO;IAAC,CAAC,CAAC;EAExE;EAEAC,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACG,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/64894d4c773e499095209fe4f6f1d747adc60227b88471064102a73aba7f14e6.json b/front-end/node_modules/.cache/babel-loader/64894d4c773e499095209fe4f6f1d747adc60227b88471064102a73aba7f14e6.json new file mode 100644 index 0000000000000000000000000000000000000000..6181dd2c1eeb11a82daf509aec08e7189bd8c58c --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/64894d4c773e499095209fe4f6f1d747adc60227b88471064102a73aba7f14e6.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: JSON.parse(res.data)\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: JSON.parse(res)\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","JSON","parse","data","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: JSON.parse(res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (JSON.parse(res))}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEM,IAAI,CAACC,KAAK,CAACH,GAAG,CAACI,IAAI;IAAC,CAAC,CAAC,CAAC;;IAErI;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAd,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGM,IAAI,CAACC,KAAK,CAACH,GAAG;MAAE,CAAC,CAAC,CAAC;IACpI,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAM,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/6b05bfd123426a0c55a5f63417b955db88637cbfda3f3f241aab0ff49799f18c.json b/front-end/node_modules/.cache/babel-loader/6b05bfd123426a0c55a5f63417b955db88637cbfda3f3f241aab0ff49799f18c.json new file mode 100644 index 0000000000000000000000000000000000000000..6f30b19d7ab28efc0470f7f9ab3f7538b21926d5 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/6b05bfd123426a0c55a5f63417b955db88637cbfda3f3f241aab0ff49799f18c.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.render(res.data)).catch(error => console.log(error));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render(elements) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), elements.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 46\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","catch","error","console","log","handleData","elements","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.render(res.data)).catch((error) => console.log(error))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(elements){\n return (\n <div>\n <h1>Violators: </h1>\n {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACI,MAAM,CAACJ,GAAG,CAACE,IAAI,CAAC,CAAC,CAACG,KAAK,CAAEC,KAAK,IAAKC,OAAO,CAACC,GAAG,CAACF,KAAK,CAAC,CAAC;IAC9I,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACT,QAAQ,CAAC;MAACS;IAAQ,CAAC,CAAC;EAC3B;EAEAN,MAAM,CAACM,QAAQ,EAAC;IACd,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnBA,QAAQ,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACzI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;;AAEA,eAAezB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/6e1bd64b63be5ee74e5f8f42c41b8b0464524a7a9093b017c82dbf0777d88549.json b/front-end/node_modules/.cache/babel-loader/6e1bd64b63be5ee74e5f8f42c41b8b0464524a7a9093b017c82dbf0777d88549.json new file mode 100644 index 0000000000000000000000000000000000000000..74847df765b01cbc35f95e0d5122c23ca9866c7e --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/6e1bd64b63be5ee74e5f8f42c41b8b0464524a7a9093b017c82dbf0777d88549.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(typeof res));\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","console","log","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => console.log(typeof(res)))\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKI,OAAO,CAACC,GAAG,CAAC,OAAOL,GAAI,CAAC,CAAC;MACxC;IACJ,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAM,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/7184cedf3044f548fb7e8057e9d0915dc9fa4c23c9156f3b5115e768f1f7cb5f.json b/front-end/node_modules/.cache/babel-loader/7184cedf3044f548fb7e8057e9d0915dc9fa4c23c9156f3b5115e768f1f7cb5f.json new file mode 100644 index 0000000000000000000000000000000000000000..81e0d635d1ce15ef4ab9b61dece00fae0e3cf8c6 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/7184cedf3044f548fb7e8057e9d0915dc9fa4c23c9156f3b5115e768f1f7cb5f.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.render(res.data));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render(elements) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), elements.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 46\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","handleData","elements","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.render(res.data))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(elements){\n return (\n <div>\n <h1>Violators: </h1>\n {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACI,MAAM,CAACJ,GAAG,CAACE,IAAI,CAAC,CAAC;IACzG,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAF,MAAM,CAACE,QAAQ,EAAC;IACd,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnBA,QAAQ,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACzI;EAEV;AACF;;AAEA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/74fb5883d8f262dd9190d51c16fb2143f4a932620cf9f053fffab324f2f01332.json b/front-end/node_modules/.cache/babel-loader/74fb5883d8f262dd9190d51c16fb2143f4a932620cf9f053fffab324f2f01332.json new file mode 100644 index 0000000000000000000000000000000000000000..76a02256b6eebb86aad85ba5d47f8561b3ebca6b --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/74fb5883d8f262dd9190d51c16fb2143f4a932620cf9f053fffab324f2f01332.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.forceUpdate();\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","componentDidUpdate","render","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.forceUpdate()\n }, 10000)\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;;IAET;AACJ;AACA;AACA;AACA;;IAEID,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/84204c7dfdeb6ed9ec5e08eb52e8910a43b57b43860bb17123f71a3234711f9e.json b/front-end/node_modules/.cache/babel-loader/84204c7dfdeb6ed9ec5e08eb52e8910a43b57b43860bb17123f71a3234711f9e.json new file mode 100644 index 0000000000000000000000000000000000000000..19323ae73290836325e4e93f7ec00ab8d35bddf5 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/84204c7dfdeb6ed9ec5e08eb52e8910a43b57b43860bb17123f71a3234711f9e.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.doRequest();\n }, 20000);\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n\n setInterval(() => {\n this.doRequest()\n }, 20000);\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAEK,GAAG,CAACC;IAAI,CAAC,CAAC,CAAC;EAC3H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;IAE3HE,WAAW,CAAC,MAAM;MAChB,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAQ,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACV,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/894527398d8a170a8265d6ef9e52851891a9f5eb47544831012132e42a4b3132.json b/front-end/node_modules/.cache/babel-loader/894527398d8a170a8265d6ef9e52851891a9f5eb47544831012132e42a4b3132.json new file mode 100644 index 0000000000000000000000000000000000000000..e2bfe7979299b91804548df99a94a7b3ac201e63 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/894527398d8a170a8265d6ef9e52851891a9f5eb47544831012132e42a4b3132.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => res.json).then(json => this.setState({\n violatorList: json.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","json","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => res.json)\n .then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACI,IAAI,CAAC,CACvBL,IAAI,CAAEK,IAAI,IAAK,IAAI,CAACH,QAAQ,CAAC;QAACL,YAAY,EAAEQ,IAAI,CAACF;MAAI,CAAC,CAAC,CAAC;IAC7D,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/8ff34c4027ba85b12169ff632e8e22f24cc381358d79d504ab8a262b7d586af5.json b/front-end/node_modules/.cache/babel-loader/8ff34c4027ba85b12169ff632e8e22f24cc381358d79d504ab8a262b7d586af5.json new file mode 100644 index 0000000000000000000000000000000000000000..7dd396a8e12f2b016f25d7748e31f76057d9edb6 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/8ff34c4027ba85b12169ff632e8e22f24cc381358d79d504ab8a262b7d586af5.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 25,\n columnNumber: 11\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 63\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 24,\n columnNumber: 9\n }, this);\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","componentDidUpdate","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber","render"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAGzHC,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,kBAAkB,GAAE;IAChB,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACT,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEZ;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAAClB,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/97f76af30729fd529729543523cd5a43d839eeecd68385aca1894f7e960b4f0a.json b/front-end/node_modules/.cache/babel-loader/97f76af30729fd529729543523cd5a43d839eeecd68385aca1894f7e960b4f0a.json new file mode 100644 index 0000000000000000000000000000000000000000..b5e9f71abc02a508da038056c06df95aa55bd052 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/97f76af30729fd529729543523cd5a43d839eeecd68385aca1894f7e960b4f0a.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(typeof res.json));\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","console","log","json","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => console.log(typeof(res.json)))\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKI,OAAO,CAACC,GAAG,CAAC,OAAOL,GAAG,CAACM,IAAK,CAAC,CAAC;MAC7C;IACJ,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAC,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACP,QAAQ,CAAC;MAACO;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACd,KAAK,CAACC,YAAY,CAACc,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/9a9c814b2ae77a980ce202ccc7d3c750daa35012c4ee6e68624d887cdbf17b69.json b/front-end/node_modules/.cache/babel-loader/9a9c814b2ae77a980ce202ccc7d3c750daa35012c4ee6e68624d887cdbf17b69.json new file mode 100644 index 0000000000000000000000000000000000000000..01dc0a7d8414c29c527c382e7833bbe44b1b8dec --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/9a9c814b2ae77a980ce202ccc7d3c750daa35012c4ee6e68624d887cdbf17b69.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(res.data));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","console","log","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACA;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAKK,OAAO,CAACC,GAAG,CAACN,GAAG,CAACE,IAAI,CAAC,CAAC;IACzG,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAK,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACP,QAAQ,CAAC;MAACO;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACd,KAAK,CAACC,YAAY,CAACc,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/a7f754a382db418976556cc50da09bc27b82dd0e40209aa1faac9c5047b02940.json b/front-end/node_modules/.cache/babel-loader/a7f754a382db418976556cc50da09bc27b82dd0e40209aa1faac9c5047b02940.json new file mode 100644 index 0000000000000000000000000000000000000000..c416738eb4f00126ce5dd682009d7519364d6e53 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/a7f754a382db418976556cc50da09bc27b82dd0e40209aa1faac9c5047b02940.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest(list) {\n this.setState({\n violatorList: []\n });\n this.render();\n setTimeout(10000);\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.doRequest(res.data));\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","list","setState","render","setTimeout","componentDidMount","get","then","res","data","setInterval","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(list){\n this.setState({violatorList: []})\n this.render()\n setTimeout(10000)\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.doRequest(res.data))\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,CAACC,IAAI,EAAC;IACb,IAAI,CAACC,QAAQ,CAAC;MAACH,YAAY,EAAE;IAAE,CAAC,CAAC;IACjC,IAAI,CAACI,MAAM,EAAE;IACbC,UAAU,CAAC,KAAK,CAAC;IACjB,IAAI,CAACF,QAAQ,CAAC;MAACH,YAAY,EAAEE;IAAI,CAAC,CAAC;EACrC;EAEAI,iBAAiB,GAAE;IACjBX,KAAK,CAACY,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACN,QAAQ,CAAC;MAACH,YAAY,EAAGS,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAhB,KAAK,CAACY,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACR,SAAS,CAACQ,GAAG,CAACC,IAAI,CAAC,CAAC;IAC5G,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEN,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACL,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/ad3b99deaf655fdac8eb6751199a4caaf886255aea7e06fe7308f658358ec107.json b/front-end/node_modules/.cache/babel-loader/ad3b99deaf655fdac8eb6751199a4caaf886255aea7e06fe7308f658358ec107.json new file mode 100644 index 0000000000000000000000000000000000000000..456bb9a61b86c39b0b63c88c842b0c7d57e04448 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/ad3b99deaf655fdac8eb6751199a4caaf886255aea7e06fe7308f658358ec107.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: JSON.parse(res)\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","JSON","parse","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (JSON.parse(res))}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGQ,IAAI,CAACC,KAAK,CAACL,GAAG;MAAE,CAAC,CAAC,CAAC;IACpI,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAM,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/af18f534c104ab2fab4e64af18ecd07f33de34b1968665f8ef078b2ec55fa999.json b/front-end/node_modules/.cache/babel-loader/af18f534c104ab2fab4e64af18ecd07f33de34b1968665f8ef078b2ec55fa999.json new file mode 100644 index 0000000000000000000000000000000000000000..0f0385d8051e3db47be9b1ee65dea3756e9713ac --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/af18f534c104ab2fab4e64af18ecd07f33de34b1968665f8ef078b2ec55fa999.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n this.render();\n setTimeout(10000);\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest();\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","render","setTimeout","list","componentDidMount","get","then","res","data","setInterval","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n this.render()\n setTimeout(10000)\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest()\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjC,IAAI,CAACG,MAAM,EAAE;IACbC,UAAU,CAAC,KAAK,CAAC;IACjB,IAAI,CAACF,QAAQ,CAAC;MAACF,YAAY,EAAEK;IAAI,CAAC,CAAC;EACrC;EAEAC,iBAAiB,GAAE;IACjBX,KAAK,CAACY,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACP,QAAQ,CAAC;MAACF,YAAY,EAAGS,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACA,IAAI,CAACV,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEE,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACJ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/afa265a044be4528a6959b6c99ce4878bf334859f76ae2b142a2fb377153c587.json b/front-end/node_modules/.cache/babel-loader/afa265a044be4528a6959b6c99ce4878bf334859f76ae2b142a2fb377153c587.json new file mode 100644 index 0000000000000000000000000000000000000000..7741aa5b0da3e6c6ec1dcbc62e637e692306aa42 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/afa265a044be4528a6959b6c99ce4878bf334859f76ae2b142a2fb377153c587.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest(list) {\n this.setState({\n violatorList: []\n });\n setTimeout(10000);\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.doRequest(res.data));\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","list","setState","setTimeout","componentDidMount","get","then","res","data","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(list){\n this.setState({violatorList: []})\n setTimeout(10000)\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.doRequest(res.data))\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,CAACC,IAAI,EAAC;IACb,IAAI,CAACC,QAAQ,CAAC;MAACH,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCI,UAAU,CAAC,KAAK,CAAC;IACjB,IAAI,CAACD,QAAQ,CAAC;MAACH,YAAY,EAAEE;IAAI,CAAC,CAAC;EACrC;EAEAG,iBAAiB,GAAE;IACjBV,KAAK,CAACW,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACL,QAAQ,CAAC;MAACH,YAAY,EAAGQ,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAf,KAAK,CAACW,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACP,SAAS,CAACO,GAAG,CAACC,IAAI,CAAC,CAAC;IAC5G,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEE,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/afd20c7bbaf600f05318b31cdd5a4caef937b63c06990d194b4e990e894c85aa.json b/front-end/node_modules/.cache/babel-loader/afd20c7bbaf600f05318b31cdd5a4caef937b63c06990d194b4e990e894c85aa.json new file mode 100644 index 0000000000000000000000000000000000000000..fb2bf7b87bffc948c67cc29cd7ebc75dc0e92f2c --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/afd20c7bbaf600f05318b31cdd5a4caef937b63c06990d194b4e990e894c85aa.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(res.data[0]));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 49,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","console","log","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACA;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAKK,OAAO,CAACC,GAAG,CAACN,GAAG,CAACE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5G,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAK,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACP,QAAQ,CAAC;MAACO;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACd,KAAK,CAACC,YAAY,CAACc,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/b0438b8e292bd2c0879f47dcd6d8179fae20a686d5433b2393d823eaecdc70fb.json b/front-end/node_modules/.cache/babel-loader/b0438b8e292bd2c0879f47dcd6d8179fae20a686d5433b2393d823eaecdc70fb.json new file mode 100644 index 0000000000000000000000000000000000000000..6e58da076822bd1e602f8c2f3e72e4dddc16eaa8 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/b0438b8e292bd2c0879f47dcd6d8179fae20a686d5433b2393d823eaecdc70fb.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n this.setState({\n violatorList: this.state.violatorList.filter(Boolean)\n });\n }\n componentDidUpdate() {\n setInterval(() => {\n this.componentDidUpdate();\n }, 10000);\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 32,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","filter","Boolean","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n\n }\n\n componentDidUpdate(){\n setInterval(() => {\n this.componentDidUpdate()\n }, 10000)\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAGzHC,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;IAET,IAAI,CAACD,QAAQ,CAAC;MAACL,YAAY,EAAE,IAAI,CAACD,KAAK,CAACC,YAAY,CAACQ,MAAM,CAACC,OAAO;IAAC,CAAC,CAAC;EAExE;EAEAC,kBAAkB,GAAE;IAClBH,WAAW,CAAC,MAAM;MAChB,IAAI,CAACG,kBAAkB,EAAE;IAC3B,CAAC,EAAE,KAAK,CAAC;EACX;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACQ,MAAM,CAACC,OAAO,CAAC,CAACG,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/b2c3eb589af18b03ed86e0c7313c9b02643ef034bf6a22e820eeb8a742324849.json b/front-end/node_modules/.cache/babel-loader/b2c3eb589af18b03ed86e0c7313c9b02643ef034bf6a22e820eeb8a742324849.json new file mode 100644 index 0000000000000000000000000000000000000000..26a0681c2fd13d15c097801ae70a47f0a68391b5 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/b2c3eb589af18b03ed86e0c7313c9b02643ef034bf6a22e820eeb8a742324849.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(typeof res.data));\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","console","log","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => console.log(typeof(res.data)))\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKI,OAAO,CAACC,GAAG,CAAC,OAAOL,GAAG,CAACE,IAAK,CAAC,CAAC;MAC7C;IACJ,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAI,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/b3791b5bb95f074a3597f372f6f0a586c08e2734398d935f9c4301d40d87aea3.json b/front-end/node_modules/.cache/babel-loader/b3791b5bb95f074a3597f372f6f0a586c08e2734398d935f9c4301d40d87aea3.json new file mode 100644 index 0000000000000000000000000000000000000000..5d6c0526df33d8bf3dc12c656dceb0781f9b8b0c --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/b3791b5bb95f074a3597f372f6f0a586c08e2734398d935f9c4301d40d87aea3.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/c37370d0ecc681236f0b525ea226fd4f3e6bec55e3284820cca26470104cc7a4.json b/front-end/node_modules/.cache/babel-loader/c37370d0ecc681236f0b525ea226fd4f3e6bec55e3284820cca26470104cc7a4.json new file mode 100644 index 0000000000000000000000000000000000000000..2f9126a5221ded17fb63f343de2ba13b7b028c8c --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/c37370d0ecc681236f0b525ea226fd4f3e6bec55e3284820cca26470104cc7a4.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest(list) {\n this.setState({\n violatorList: []\n });\n setTimeout(10);\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.doRequest(res.data));\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","list","setState","setTimeout","componentDidMount","get","then","res","data","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(list){\n this.setState({violatorList: []})\n setTimeout(10)\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.doRequest(res.data))\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,CAACC,IAAI,EAAC;IACb,IAAI,CAACC,QAAQ,CAAC;MAACH,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCI,UAAU,CAAC,EAAE,CAAC;IACd,IAAI,CAACD,QAAQ,CAAC;MAACH,YAAY,EAAEE;IAAI,CAAC,CAAC;EACrC;EAEAG,iBAAiB,GAAE;IACjBV,KAAK,CAACW,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACL,QAAQ,CAAC;MAACH,YAAY,EAAGQ,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAf,KAAK,CAACW,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACP,SAAS,CAACO,GAAG,CAACC,IAAI,CAAC,CAAC;IAC5G,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEE,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/c53ac1a44ab8213da20c5e8ad27881763886715949b620a682038fd36d0e354a.json b/front-end/node_modules/.cache/babel-loader/c53ac1a44ab8213da20c5e8ad27881763886715949b620a682038fd36d0e354a.json new file mode 100644 index 0000000000000000000000000000000000000000..a03dbd7a835b7bfc0218002fa6c671d565c92268 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/c53ac1a44ab8213da20c5e8ad27881763886715949b620a682038fd36d0e354a.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => console.log(typeof JSON.parse(res.data)));\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","console","log","JSON","parse","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n .then((res) => console.log(typeof(JSON.parse(res.data))))\n //.then((json) => this.setState({violatorList: json.data}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAC/DC,IAAI,CAAEC,GAAG,IAAKI,OAAO,CAACC,GAAG,CAAC,OAAOC,IAAI,CAACC,KAAK,CAACP,GAAG,CAACE,IAAI,CAAE,CAAC,CAAC;MACzD;IACJ,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAM,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACR,QAAQ,CAAC;MAACQ;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACf,KAAK,CAACC,YAAY,CAACe,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAevB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/c7704e759374456c210e6df380333cde9bad001bdb183f392514fb65948f129a.json b/front-end/node_modules/.cache/babel-loader/c7704e759374456c210e6df380333cde9bad001bdb183f392514fb65948f129a.json new file mode 100644 index 0000000000000000000000000000000000000000..345cb461e34bf4a5797fb801b2e2243b9f86dce0 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/c7704e759374456c210e6df380333cde9bad001bdb183f392514fb65948f129a.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n doRequest();\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","forceUpdate","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n doRequest()\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;EAC7H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIE,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAP,SAAS,EAAE;IACb,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAS,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACT,QAAQ,CAAC;MAACS;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/c95a1126f5302f9cc9a8ebdaf88e86cad82fc09c630a5205ff466a1893714e4b.json b/front-end/node_modules/.cache/babel-loader/c95a1126f5302f9cc9a8ebdaf88e86cad82fc09c630a5205ff466a1893714e4b.json new file mode 100644 index 0000000000000000000000000000000000000000..42874c3e34ff34d5161ec0046b48c744597c4fd0 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/c95a1126f5302f9cc9a8ebdaf88e86cad82fc09c630a5205ff466a1893714e4b.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.forceUpdate();\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.forceUpdate()\n }, 10000)\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;;IAET;AACJ;AACA;AACA;AACA;;IAEID,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/cc0869c3b203edcf90680e4e1d7107d14f56a3dc85c6a855bdfc51de55e60fba.json b/front-end/node_modules/.cache/babel-loader/cc0869c3b203edcf90680e4e1d7107d14f56a3dc85c6a855bdfc51de55e60fba.json new file mode 100644 index 0000000000000000000000000000000000000000..8d399d3e3b2d63b542acc5f505c90b01dc862f99 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/cc0869c3b203edcf90680e4e1d7107d14f56a3dc85c6a855bdfc51de55e60fba.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n //.then((res) => console.log(typeof(JSON.parse(res.data))))\n .then(res => this.setState({\n violatorList: JSON.parse(res.data)\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 44,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","JSON","parse","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/')\n //.then((res) => console.log(typeof(JSON.parse(res.data))))\n .then((res) => this.setState({violatorList: (JSON.parse(res.data))}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD;MAC/D;MAAA,CACCC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGQ,IAAI,CAACC,KAAK,CAACL,GAAG,CAACE,IAAI;MAAE,CAAC,CAAC,CAAC;IACzE,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAI,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/d3db008938a308646aa8c97954a78acf5cc357b5c5a4761b5477b5ddbdf48093.json b/front-end/node_modules/.cache/babel-loader/d3db008938a308646aa8c97954a78acf5cc357b5c5a4761b5477b5ddbdf48093.json new file mode 100644 index 0000000000000000000000000000000000000000..99705fa333d8ab451dcd3af09683651fcab07748 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/d3db008938a308646aa8c97954a78acf5cc357b5c5a4761b5477b5ddbdf48093.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.doRequest();\n }, 10000);\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 29,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 30,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n\n setInterval(() => {\n this.doRequest()\n }, 10000);\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAEK,GAAG,CAACC;IAAI,CAAC,CAAC,CAAC;EAC3H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;IAE3HE,WAAW,CAAC,MAAM;MAChB,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAQ,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACV,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/d484c8c273508a693ca00424aa8c6b4d37f1eb0dea916f8f1892342512e819a9.json b/front-end/node_modules/.cache/babel-loader/d484c8c273508a693ca00424aa8c6b4d37f1eb0dea916f8f1892342512e819a9.json new file mode 100644 index 0000000000000000000000000000000000000000..1cc0ece27f706ab99494af41286564052a4854d2 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/d484c8c273508a693ca00424aa8c6b4d37f1eb0dea916f8f1892342512e819a9.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.state.forceUpdate();\n }, 10000);\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 38,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 39,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.state.forceUpdate()\n }, 10000)\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACR,KAAK,CAACS,WAAW,EAAE;IAC1B,CAAC,EAAE,KAAK,CAAC;;IAET;AACJ;AACA;AACA;AACA;;IAEID,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/d48c1053ec3c1ebd577c8443e2128fe96dc9799d82b568e93e208d590192bca2.json b/front-end/node_modules/.cache/babel-loader/d48c1053ec3c1ebd577c8443e2128fe96dc9799d82b568e93e208d590192bca2.json new file mode 100644 index 0000000000000000000000000000000000000000..219060be762018e2ac0b173c298ab91c67ff7331 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/d48c1053ec3c1ebd577c8443e2128fe96dc9799d82b568e93e208d590192bca2.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport { Component } from 'react';\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["Component","React","axios","Violator","App","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import { Component } from 'react';\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,SAASA,SAAS,QAAQ,OAAO;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACD,SAAS;EAAA;IAAA;IAAA,KAE/BK,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBL,KAAK,CAACM,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;IAAA,CACD,EAAE,KAAK,CAAC;IAETA,WAAW,CAAC,MAAM;MAChB;MACAX,KAAK,CAACM,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAE,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACJ,QAAQ,CAAC;MAACI;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/d5123227459926b382206e056811403d7b979fcaa9e01abc62d62974f7d777b2.json b/front-end/node_modules/.cache/babel-loader/d5123227459926b382206e056811403d7b979fcaa9e01abc62d62974f7d777b2.json new file mode 100644 index 0000000000000000000000000000000000000000..94e70f602b6a2fd6c012d2fd4d9305bb34939deb --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/d5123227459926b382206e056811403d7b979fcaa9e01abc62d62974f7d777b2.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n this.setState({\n violatorList: this.state.violatorList.filter(Boolean)\n });\n }, 10000);\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 36,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 37,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","forceUpdate","filter","Boolean","componentDidUpdate","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB,IAAI,CAACF,QAAQ,CAAC;QAACL,YAAY,EAAE,IAAI,CAACD,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO;MAAC,CAAC,CAAC;IACxE,CAAC,EAAE,KAAK,CAAC;IAETH,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAK,kBAAkB,GAAE,CAEpB;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACG,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/da3a6c339b5ea78ab195be31ac6c48c70b076d46ee3d5a1c47224c0423715725.json b/front-end/node_modules/.cache/babel-loader/da3a6c339b5ea78ab195be31ac6c48c70b076d46ee3d5a1c47224c0423715725.json new file mode 100644 index 0000000000000000000000000000000000000000..004ec28c89af082c38f46befcf6e79f1adc93e6e --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/da3a6c339b5ea78ab195be31ac6c48c70b076d46ee3d5a1c47224c0423715725.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n setInterval(() => {\n this.componentDidUpdate();\n }, 10000);\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n this.setState({\n violatorList: this.state.violatorList.filter(Boolean)\n });\n }\n componentDidUpdate() {}\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 34,\n columnNumber: 9\n }, this), this.state.violatorList.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 35,\n columnNumber: 61\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 33,\n columnNumber: 7\n }, this);\n }\n}\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","componentDidUpdate","filter","Boolean","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n setInterval(() => {\n this.componentDidUpdate()\n }, 10000)\n\n setInterval(() => {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n }, 10000);\n\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n\n }\n\n componentDidUpdate(){\n\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;IAEzHC,WAAW,CAAC,MAAM;MAChB,IAAI,CAACC,kBAAkB,EAAE;IAC3B,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChBZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAEI,GAAG,CAACE;MAAI,CAAC,CAAC,CAAC;IAC3H,CAAC,EAAE,KAAK,CAAC;IAET,IAAI,CAACD,QAAQ,CAAC;MAACL,YAAY,EAAE,IAAI,CAACD,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO;IAAC,CAAC,CAAC;EAExE;EAEAF,kBAAkB,GAAE,CAEpB;EAEAG,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACS,MAAM,CAACC,OAAO,CAAC,CAACE,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxJ;EAEV;AACF;AAGA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/dac0a5ef26815ec085e3ad51d000bebea60fd835f6a6c8a44c8661ead420e4a2.json b/front-end/node_modules/.cache/babel-loader/dac0a5ef26815ec085e3ad51d000bebea60fd835f6a6c8a44c8661ead420e4a2.json new file mode 100644 index 0000000000000000000000000000000000000000..69cf42e9f13b58525752f15bd1468551d10582f6 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/dac0a5ef26815ec085e3ad51d000bebea60fd835f6a6c8a44c8661ead420e4a2.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest();\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 58,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest()\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;EAC7H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIE,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACA,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEQ,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACV,KAAK,CAACC,YAAY,CAACU,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAelB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/db2a7c61c45a88d3daa562bc8779531749afed496263b31d13633e8288b5058b.json b/front-end/node_modules/.cache/babel-loader/db2a7c61c45a88d3daa562bc8779531749afed496263b31d13633e8288b5058b.json new file mode 100644 index 0000000000000000000000000000000000000000..4b93ae8297087e3dede7afaf8d66d668a62fd81e --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/db2a7c61c45a88d3daa562bc8779531749afed496263b31d13633e8288b5058b.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest(list) {\n this.setState({\n violatorList: []\n });\n setTimeout(1000);\n this.setState({\n violatorList: list\n });\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.doRequest(res.data));\n }, 10000);\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 60,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 61,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 59,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","list","setState","setTimeout","componentDidMount","get","then","res","data","setInterval","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(list){\n this.setState({violatorList: []})\n setTimeout(1000)\n this.setState({violatorList: list})\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n /*\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.doRequest(res.data))\n }, 10000);\n\n }\n\n /*\n handleData(elements){\n this.setState({elements});\n }\n */\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,CAACC,IAAI,EAAC;IACb,IAAI,CAACC,QAAQ,CAAC;MAACH,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCI,UAAU,CAAC,IAAI,CAAC;IAChB,IAAI,CAACD,QAAQ,CAAC;MAACH,YAAY,EAAEE;IAAI,CAAC,CAAC;EACrC;EAEAG,iBAAiB,GAAE;IACjBV,KAAK,CAACW,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACL,QAAQ,CAAC;MAACH,YAAY,EAAGQ,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACAf,KAAK,CAACW,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACP,SAAS,CAACO,GAAG,CAACC,IAAI,CAAC,CAAC;IAC5G,CAAC,EAAE,KAAK,CAAC;EAEX;;EAEA;AACF;AACA;AACA;AACA;;EAEEE,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACZ,KAAK,CAACC,YAAY,CAACY,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAepB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/dbe80e7d1bbe3dbdf1c19d12676fcfe741a1239ca2e0b3890150fa6ad308eba2.json b/front-end/node_modules/.cache/babel-loader/dbe80e7d1bbe3dbdf1c19d12676fcfe741a1239ca2e0b3890150fa6ad308eba2.json new file mode 100644 index 0000000000000000000000000000000000000000..bd1f9eec13f06da7c0ec54cd6cb6386321149bf6 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/dbe80e7d1bbe3dbdf1c19d12676fcfe741a1239ca2e0b3890150fa6ad308eba2.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n doRequest() {\n this.setState({\n violatorList: []\n });\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest();\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 55,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 56,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 54,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","doRequest","setState","get","then","res","data","componentDidMount","setInterval","forceUpdate","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n doRequest(){\n this.setState({violatorList: []})\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.forceUpdate()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => console.log(res.data[0]))\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => res.data.map((p) => ))\n this.doRequest()\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,SAAS,GAAE;IACT,IAAI,CAACC,QAAQ,CAAC;MAACF,YAAY,EAAE;IAAE,CAAC,CAAC;IACjCL,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;EAC7H;EAEAC,iBAAiB,GAAE;IACjBZ,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACH,QAAQ,CAAC;MAACF,YAAY,EAAGK,GAAG,CAACC;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIE,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,WAAW,EAAE;IACpB,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACA;MACA;MACA;MACA,IAAI,CAACP,SAAS,EAAE;IAClB,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAS,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACT,QAAQ,CAAC;MAACS;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/dd0a4f8065d8e1bef65f756bce7c0e899aa4c1ec98fb00bb7b03475232181e6e.json b/front-end/node_modules/.cache/babel-loader/dd0a4f8065d8e1bef65f756bce7c0e899aa4c1ec98fb00bb7b03475232181e6e.json new file mode 100644 index 0000000000000000000000000000000000000000..62e697538504cf4bbd4a95c186d2e8bdce05ce74 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/dd0a4f8065d8e1bef65f756bce7c0e899aa4c1ec98fb00bb7b03475232181e6e.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","setInterval","get","then","res","setState","data","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjB;;IAEA;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;IAAA,CACD,EAAE,KAAK,CAAC;IAETA,WAAW,CAAC,MAAM;MAChB;MACAP,KAAK,CAACQ,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACN,YAAY,EAAGK,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAC,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACH,QAAQ,CAAC;MAACG;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACX,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/eb0d896fa4224424974a755f221f7009d3d3c5324b07b3c27e633375e63515d5.json b/front-end/node_modules/.cache/babel-loader/eb0d896fa4224424974a755f221f7009d3d3c5324b07b3c27e633375e63515d5.json new file mode 100644 index 0000000000000000000000000000000000000000..45d12758ea997a9dbc2382d5e31d19ac8b0bb7f1 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/eb0d896fa4224424974a755f221f7009d3d3c5324b07b3c27e633375e63515d5.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.render(res.data)).catch(error => console.log(error));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render(elements) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), elements.filter(Boolean).map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 46\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","catch","error","console","log","handleData","elements","filter","Boolean","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.render(res.data)).catch((error) => console.log(error))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(elements){\n return (\n <div>\n <h1>Violators: </h1>\n {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACI,MAAM,CAACJ,GAAG,CAACE,IAAI,CAAC,CAAC,CAACG,KAAK,CAAEC,KAAK,IAAKC,OAAO,CAACC,GAAG,CAACF,KAAK,CAAC,CAAC;IAC9I,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACT,QAAQ,CAAC;MAACS;IAAQ,CAAC,CAAC;EAC3B;EAEAN,MAAM,CAACM,QAAQ,EAAC;IACd,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnBA,QAAQ,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACzI;EAEV;AACF;;AAEA;AACA;;AAEA,eAAezB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/eb644ab080441484596b90d7099a98a5e533ee03daa4a72dd1532f56b446a48a.json b/front-end/node_modules/.cache/babel-loader/eb644ab080441484596b90d7099a98a5e533ee03daa4a72dd1532f56b446a48a.json new file mode 100644 index 0000000000000000000000000000000000000000..df042839212b24954710720b337d132f646fd929 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/eb644ab080441484596b90d7099a98a5e533ee03daa4a72dd1532f56b446a48a.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.render();\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 48,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","handleData","elements","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //window.location.reload(true);\n this.render()\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACA,IAAI,CAACC,MAAM,EAAE;IACf,CAAC,EAAE,KAAK,CAAC;IAETD,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAF,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACT,KAAK,CAACC,YAAY,CAACW,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/ec56e82d42522544003cac9866404fadefc979320cfe3cf5f4beb05d4aee419c.json b/front-end/node_modules/.cache/babel-loader/ec56e82d42522544003cac9866404fadefc979320cfe3cf5f4beb05d4aee419c.json new file mode 100644 index 0000000000000000000000000000000000000000..da10552eebe02701224ed3eaec74e3da5f2a6594 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/ec56e82d42522544003cac9866404fadefc979320cfe3cf5f4beb05d4aee419c.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n window.location.reload(true);\n }, 10000);\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 46,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 47,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 45,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","window","location","reload","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n window.location.reload(true);\n }, 10000)\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAGI,GAAG,CAACE;IAAK,CAAC,CAAC,CAAC;;IAE3H;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChBC,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAC,IAAI,CAAC;IAC9B,CAAC,EAAE,KAAK,CAAC;IAETH,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGI,GAAG,CAACE;MAAK,CAAC,CAAC,CAAC;IAC7H,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAK,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACP,QAAQ,CAAC;MAACO;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACd,KAAK,CAACC,YAAY,CAACc,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAetB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/f9391140b0e4ae859b404b6554f9fd836c9dbbf57ac0eeca103183f2d78af9d0.json b/front-end/node_modules/.cache/babel-loader/f9391140b0e4ae859b404b6554f9fd836c9dbbf57ac0eeca103183f2d78af9d0.json new file mode 100644 index 0000000000000000000000000000000000000000..88ca7ae324b84ab23dc7cd37846f029c7cb78345 --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/f9391140b0e4ae859b404b6554f9fd836c9dbbf57ac0eeca103183f2d78af9d0.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: JSON.parse(res)\n }));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render() {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), this.state.violatorList.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 45\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","JSON","parse","handleData","elements","render","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (JSON.parse(res))}))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(){\n return (\n <div>\n <h1>Violators: </h1>\n {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n/*\n\n\n .then((res) => (res.json()))\n .then((json) => this.setState({playerList: json}));\n\n*/\n\n//\n// {elements.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;QAACL,YAAY,EAAGQ,IAAI,CAACC,KAAK,CAACL,GAAG;MAAE,CAAC,CAAC,CAAC;IACpI,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAM,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACN,QAAQ,CAAC;MAACM;IAAQ,CAAC,CAAC;EAC3B;EAEAC,MAAM,GAAE;IACN,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnB,IAAI,CAACb,KAAK,CAACC,YAAY,CAACa,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACxI;EAEV;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAerB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/babel-loader/fe7bdf49a3e9e52b40baa5b770cd45107dd1087789a736e69bb0161b65a7075e.json b/front-end/node_modules/.cache/babel-loader/fe7bdf49a3e9e52b40baa5b770cd45107dd1087789a736e69bb0161b65a7075e.json new file mode 100644 index 0000000000000000000000000000000000000000..9ea7a9ff34386209d2a90e9ab8132630746b68dd --- /dev/null +++ b/front-end/node_modules/.cache/babel-loader/fe7bdf49a3e9e52b40baa5b770cd45107dd1087789a736e69bb0161b65a7075e.json @@ -0,0 +1 @@ +{"ast":null,"code":"var _jsxFileName = \"/Users/joonasseppa/Desktop/Tyo\\u0308nhaku/Reaktor_Project/front-end/src/App.js\";\nimport React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nclass App extends React.Component {\n constructor() {\n super(...arguments);\n this.state = {\n violatorList: []\n };\n }\n componentDidMount() {\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.setState({\n violatorList: res.data\n }));\n\n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then(res => this.render(res.data));\n }, 10000);\n }\n handleData(elements) {\n this.setState({\n elements\n });\n }\n render(elements) {\n return /*#__PURE__*/_jsxDEV(\"div\", {\n children: [/*#__PURE__*/_jsxDEV(\"h1\", {\n children: \"Violators: \"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 42,\n columnNumber: 9\n }, this), elements.map(p => /*#__PURE__*/_jsxDEV(Violator, {\n distance: p.distance,\n name: p.name,\n emailAdress: p.emailAdress,\n phoneNumber: p.phoneNumber\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 43,\n columnNumber: 30\n }, this))]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 41,\n columnNumber: 7\n }, this);\n }\n}\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;","map":{"version":3,"names":["React","axios","Violator","App","Component","state","violatorList","componentDidMount","get","then","res","setState","data","setInterval","render","handleData","elements","map","p","distance","name","emailAdress","phoneNumber"],"sources":["/Users/joonasseppa/Desktop/Työnhaku/Reaktor_Project/front-end/src/App.js"],"sourcesContent":["import React from 'react';\nimport axios from 'axios';\nimport Violator from './Violator';\n\n\nclass App extends React.Component{\n\n state = {\n violatorList: []\n }\n\n componentDidMount(){\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n \n /*\n setInterval(() => {\n //this.state.forceUpdate()\n this.render()\n }, 10000);\n */\n\n /*\n setInterval(() => {\n this.setState({violatorList: this.state.violatorList.filter(Boolean)})\n }, 10000)\n */\n\n setInterval(() => {\n //axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data}))\n axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.render(res.data))\n }, 10000);\n\n }\n\n handleData(elements){\n this.setState({elements});\n }\n\n render(elements){\n return (\n <div>\n <h1>Violators: </h1>\n {elements.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n </div>\n );\n }\n}\n\n// {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n// {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)}\n\nexport default App;"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,YAAY;AAAC;AAGlC,MAAMC,GAAG,SAASH,KAAK,CAACI,SAAS;EAAA;IAAA;IAAA,KAE/BC,KAAK,GAAG;MACNC,YAAY,EAAE;IAChB,CAAC;EAAA;EAEDC,iBAAiB,GAAE;IACjBN,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACC,QAAQ,CAAC;MAACL,YAAY,EAAEI,GAAG,CAACE;IAAI,CAAC,CAAC,CAAC;;IAEzH;AACJ;AACA;AACA;AACA;AACA;;IAEI;AACJ;AACA;AACA;AACA;;IAEIC,WAAW,CAAC,MAAM;MAChB;MACAZ,KAAK,CAACO,GAAG,CAAC,uDAAuD,CAAC,CAACC,IAAI,CAAEC,GAAG,IAAK,IAAI,CAACI,MAAM,CAACJ,GAAG,CAACE,IAAI,CAAC,CAAC;IACzG,CAAC,EAAE,KAAK,CAAC;EAEX;EAEAG,UAAU,CAACC,QAAQ,EAAC;IAClB,IAAI,CAACL,QAAQ,CAAC;MAACK;IAAQ,CAAC,CAAC;EAC3B;EAEAF,MAAM,CAACE,QAAQ,EAAC;IACd,oBACE;MAAA,wBACE;QAAA,UAAI;MAAW;QAAA;QAAA;QAAA;MAAA,QAAK,EACnBA,QAAQ,CAACC,GAAG,CAAEC,CAAC,iBAAK,QAAC,QAAQ;QAAC,QAAQ,EAAEA,CAAC,CAACC,QAAS;QAAC,IAAI,EAAED,CAAC,CAACE,IAAK;QAAC,WAAW,EAAEF,CAAC,CAACG,WAAY;QAAC,WAAW,EAAEH,CAAC,CAACI;MAAY;QAAA;QAAA;QAAA;MAAA,QAAE,CAAC;IAAA;MAAA;MAAA;MAAA;IAAA,QACzH;EAEV;AACF;;AAEA;AACA;;AAEA,eAAenB,GAAG"},"metadata":{},"sourceType":"module","externalDependencies":[]} \ No newline at end of file diff --git a/front-end/node_modules/.cache/default-development/1.pack b/front-end/node_modules/.cache/default-development/1.pack index a6fd7e9a090705492675d005af671da48e81de11..b690a2fc105652696bf01987bcda774360e454e0 100644 Binary files a/front-end/node_modules/.cache/default-development/1.pack and b/front-end/node_modules/.cache/default-development/1.pack differ diff --git a/front-end/node_modules/.cache/default-development/10.pack b/front-end/node_modules/.cache/default-development/10.pack index dbb829d305d41dd218999aa4d284ccdb37af3f6b..ed5c873d875efec2db3852f4cef86d600c3ca29d 100644 Binary files a/front-end/node_modules/.cache/default-development/10.pack and b/front-end/node_modules/.cache/default-development/10.pack differ diff --git a/front-end/node_modules/.cache/default-development/11.pack b/front-end/node_modules/.cache/default-development/11.pack index 597b863ce125f1eb077670bde50e2597b2188bc9..ee890fe3bc9ddfa7e4337587deb819b65a610c8b 100644 Binary files a/front-end/node_modules/.cache/default-development/11.pack and b/front-end/node_modules/.cache/default-development/11.pack differ diff --git a/front-end/node_modules/.cache/default-development/12.pack b/front-end/node_modules/.cache/default-development/12.pack index 088a7a6ca2ed4c675d619ace7eb8978bd877a5ca..2ef84a262669d8081d5ea1535db82b01075ff8e8 100644 Binary files a/front-end/node_modules/.cache/default-development/12.pack and b/front-end/node_modules/.cache/default-development/12.pack differ diff --git a/front-end/node_modules/.cache/default-development/2.pack b/front-end/node_modules/.cache/default-development/2.pack index 6ecead3418d01aace2af90d99d39b9d47eaa6705..b5d23e403d9ff8d6490772daff14f647d16950a9 100644 Binary files a/front-end/node_modules/.cache/default-development/2.pack and b/front-end/node_modules/.cache/default-development/2.pack differ diff --git a/front-end/node_modules/.cache/default-development/3.pack b/front-end/node_modules/.cache/default-development/3.pack index 5404fa50562e59e337cd21b6b746004e55c5f2ed..30f18ea342206538ad6cab31a809c1b2afd1ee61 100644 Binary files a/front-end/node_modules/.cache/default-development/3.pack and b/front-end/node_modules/.cache/default-development/3.pack differ diff --git a/front-end/node_modules/.cache/default-development/4.pack b/front-end/node_modules/.cache/default-development/4.pack index e54d7b4d36a66f1bac396aae77b60942a26235ce..b4e7879d19bc04cbbfd1140f8b9b4bc4edab5d71 100644 Binary files a/front-end/node_modules/.cache/default-development/4.pack and b/front-end/node_modules/.cache/default-development/4.pack differ diff --git a/front-end/node_modules/.cache/default-development/5.pack b/front-end/node_modules/.cache/default-development/5.pack index d709abf7b2ad3b1ec87792a798d61e11034b2b00..6842d1d162a8a192249c01ac024ad1f6ce400974 100644 Binary files a/front-end/node_modules/.cache/default-development/5.pack and b/front-end/node_modules/.cache/default-development/5.pack differ diff --git a/front-end/node_modules/.cache/default-development/6.pack b/front-end/node_modules/.cache/default-development/6.pack index 67d13b126b73bd248d6492c1674bb3a8bd9bb61f..1f42fa4374b41e83cdd14aced2d230d9dc304451 100644 Binary files a/front-end/node_modules/.cache/default-development/6.pack and b/front-end/node_modules/.cache/default-development/6.pack differ diff --git a/front-end/node_modules/.cache/default-development/7.pack b/front-end/node_modules/.cache/default-development/7.pack index 415f2f2305ccdf5f681872c575c1b80c51f07e3f..a3cc8d1595e228c69a1f7e3af9b675962ddb1eec 100644 Binary files a/front-end/node_modules/.cache/default-development/7.pack and b/front-end/node_modules/.cache/default-development/7.pack differ diff --git a/front-end/node_modules/.cache/default-development/8.pack b/front-end/node_modules/.cache/default-development/8.pack index 14af2ab4eeba61b3950c6a694414887500f2fc80..e501c7b14bbb7327274f288cdb834eeb0fd2ceab 100644 Binary files a/front-end/node_modules/.cache/default-development/8.pack and b/front-end/node_modules/.cache/default-development/8.pack differ diff --git a/front-end/node_modules/.cache/default-development/9.pack b/front-end/node_modules/.cache/default-development/9.pack index da550ba656e32a5196e9c2ba49291547b7b3ac47..2390374b2e50481e9e6ebe8278e4a65d95dd9609 100644 Binary files a/front-end/node_modules/.cache/default-development/9.pack and b/front-end/node_modules/.cache/default-development/9.pack differ diff --git a/front-end/node_modules/.cache/default-development/index.pack b/front-end/node_modules/.cache/default-development/index.pack index 25c78de36d7fee1709cb36da326e956facd4a3d7..f4db0a2aa63e8e431667ea0fdad2df6dd994b635 100644 Binary files a/front-end/node_modules/.cache/default-development/index.pack and b/front-end/node_modules/.cache/default-development/index.pack differ diff --git a/front-end/node_modules/.cache/default-development/index.pack.old b/front-end/node_modules/.cache/default-development/index.pack.old index 6517c3833c1a9d2d662e89cf77354b171af18a3c..e936085c95542c0c3eb88db7dda7e6ee4659c032 100644 Binary files a/front-end/node_modules/.cache/default-development/index.pack.old and b/front-end/node_modules/.cache/default-development/index.pack.old differ diff --git a/front-end/src/App.js b/front-end/src/App.js index 3cce04cbb4feeb5314e74bc3cdf6347f16d270ee..5e68740bc7cdb17b5fbcbd3482fb2f518c950c11 100644 --- a/front-end/src/App.js +++ b/front-end/src/App.js @@ -9,27 +9,28 @@ class App extends React.Component{ violatorList: [] } + doRequest(){ + this.setState({violatorList: []}) + axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data})) + } componentDidMount(){ - axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data})) - + axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: (res.data)})) setInterval(() => { - axios.get('https://reaktor-project-joonas-backend.herokuapp.com/').then((res) => this.setState({violatorList: res.data})) - }, 2000); + this.doRequest() + }, 20000); } - render(){ return ( <div> <h1>Violators: </h1> - {this.state.violatorList.filter(Boolean).map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)} + {this.state.violatorList.map((p) => <Violator distance={p.distance} name={p.name} emailAdress={p.emailAdress} phoneNumber={p.phoneNumber}/>)} </div> ); } } - export default App; \ No newline at end of file