-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintcache
1 lines (1 loc) · 9.02 KB
/
.eslintcache
1
[{"/Users/al/Dev/liar/src/index.js":"1","/Users/al/Dev/liar/src/App.js":"2","/Users/al/Dev/liar/src/reportWebVitals.js":"3","/Users/al/Dev/liar/src/components/Acknowledgements.js":"4","/Users/al/Dev/liar/src/components/Room.js":"5","/Users/al/Dev/liar/src/components/Instructions.js":"6","/Users/al/Dev/liar/src/components/Home.js":"7","/Users/al/Dev/liar/src/components/Enter-username.js":"8","/Users/al/Dev/liar/src/firebase.js":"9"},{"size":500,"mtime":1671918612062,"results":"10","hashOfConfig":"11"},{"size":1036,"mtime":1671918612060,"results":"12","hashOfConfig":"11"},{"size":362,"mtime":1671918612063,"results":"13","hashOfConfig":"11"},{"size":2041,"mtime":1671918612061,"results":"14","hashOfConfig":"11"},{"size":12556,"mtime":1671928551533,"results":"15","hashOfConfig":"11"},{"size":1154,"mtime":1671918612062,"results":"16","hashOfConfig":"11"},{"size":1997,"mtime":1671918729888,"results":"17","hashOfConfig":"11"},{"size":2437,"mtime":1671918612061,"results":"18","hashOfConfig":"11"},{"size":697,"mtime":1671928078071,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},"1sgqo74",{"filePath":"23","messages":"24","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"25","usedDeprecatedRules":"22"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"22"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"36","usedDeprecatedRules":"22"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"22"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/al/Dev/liar/src/index.js",[],["42","43"],"/Users/al/Dev/liar/src/App.js",["44"],"import React, { Component } from 'react'\nimport { BrowserRouter, Switch, Route } from 'react-router-dom'\n\nimport Home from './components/Home'\nimport Instructions from './components/Instructions'\nimport Acknowledgements from './components/Acknowledgements'\nimport EnterUsername from './components/Enter-username'\nimport Room from './components/Room'\nimport './components/Components.css'\n\nfunction App() {\n return (\n <BrowserRouter>\n <Switch>\n <Route exact path=\"/\" render={ props => <Home {...props} />} />\n <Route exact path=\"/instructions\" render={ props => <Instructions {...props} />} />\n <Route exact path=\"/acknowledgements\" render={ props => <Acknowledgements {...props} />} />\n <Route exact path=\"/enter\" render={ props => <EnterUsername {...props} />} />\n <Route exact path=\"/enter/:id\" render={ props => <EnterUsername {...props} />} />\n <Route exact path=\"/room/:id\" render={ props => <Room {...props} />} />\n </Switch>\n </BrowserRouter>\n );\n}\n\nexport default App;\n","/Users/al/Dev/liar/src/reportWebVitals.js",[],"/Users/al/Dev/liar/src/components/Acknowledgements.js",[],"/Users/al/Dev/liar/src/components/Room.js",[],"/Users/al/Dev/liar/src/components/Instructions.js",[],"/Users/al/Dev/liar/src/components/Home.js",["45"],"import React from 'react'\nimport { Link } from 'react-router-dom'\n\nfunction Home() {\n return (\n <div>\n <div className='extLinks'>\n <Link to='/instructions' style={{ textDecoration: 'none' }}><p className='howToPlayLink' style={{ marginLeft: '15px' }}><u>how to play</u></p></Link>\n <div style={{ textAlign: 'right', marginLeft: 'auto', marginRight: '15px' }}>\n <p />\n <Link to='/acknowledgements' style={{ textDecoration: 'none' }}><p className='acknowledgementsLink'><u>about / acknowledgements</u></p></Link>{' '}\n </div>\n </div>\n <div className='container' style={{ height: '90vh' }}>\n <h1 style={{ marginTop: '-20px' }}>who's the liar? 🤥</h1>\n <Link to='/enter' style={{ textDecoration: 'none' }}><button className='block' style={{ marginTop: '-15px', marginLeft: 'auto', marginRight: 'auto' }}>create room</button></Link>\n </div>\n <div className='extLinks'>\n <a href=\"https://www.producthunt.com/posts/who-s-the-liar?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-who-s-the-liar\" target=\"_blank\"><img src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=282827&theme=light\" alt=\"who's the liar? - Play this simple web-based game with your friends! | Product Hunt\" width=\"250\" height=\"54\" style={{ marginLeft: '15px', marginTop: '-25px' }} /></a>\n <div style={{ textAlign: 'right', marginLeft: 'auto', marginRight: '15px' }}>\n <a href='https://github.com/amphinomid/liar' target='blank' rel='noreferrer'>source code</a> (initial work by <a href='https://amphinomid.github.io' target='_blank' rel='noreferrer'>anne</a>, see <a href='https://github.com/amphinomid/liar/graphs/contributors' target=\"_blank\" rel='noreferrer'>contributors</a>)\n </div>\n </div>\n </div>\n );\n}\n\nexport default Home;\n","/Users/al/Dev/liar/src/components/Enter-username.js",["46"],"import React from 'react'\nimport { Link, useHistory } from 'react-router-dom'\nimport firebase from '../firebase.js'\nvar rand = require('randomstring')\n\nfunction EnterUsername() {\n const hist = useHistory()\n function Submit() {\n const name = document.getElementById('username').value\n // If username is empty or more than 40 characters\n if (name.length > 40 || name.length === 0) {\n document.getElementById('usernameValidationLabel').innerHTML = 'please enter between 1 and 40 characters'\n }\n // If contains non-alphanumeric\n else if (/[^0-9A-Za-z]/.test(name)) {\n document.getElementById('usernameValidationLabel').innerHTML = 'please enter alphanumeric only'\n } else {\n const url = window.location.pathname\n const games = firebase.database().ref('games')\n // If URL doesn't have id, create room\n if (url.length === 6) {\n const id = rand.generate({\n length: 7,\n charset: 'hex'\n });\n const wordset = {\n category: \"\",\n word: \"\"\n }\n const game = {\n liar: \"\",\n players: [\n name\n ],\n stage: 0,\n wordset: wordset\n }\n games.child(id).set(game)\n hist.replace('/room/' + id + '&name=' + name)\n }\n // If URL has id, join existing room\n else {\n const id = url.substring(7, 14)\n const player = document.getElementById('username').value\n games.child(id).child('players').push(player)\n hist.replace('/room/' + id + '&name=' + name)\n }\n }\n }\n\n return (\n <div className='container'>\n <label className='usernameLabel' htmlFor='username'>username:</label> {/*check for uniqueness, or just add a number to the end if not unique*/}\n <input className='usernameInput' type='text' id='username' />\n <button className='block' onClick={Submit} style={{ marginLeft: 'auto', marginRight: 'auto' }}>enter</button>\n <p className='usernameValidationLabel' id='usernameValidationLabel'>(alphanumeric only)</p>\n </div>\n );\n}\n\nexport default EnterUsername;\n","/Users/al/Dev/liar/src/firebase.js",[],{"ruleId":"47","replacedBy":"48"},{"ruleId":"49","replacedBy":"50"},{"ruleId":"51","severity":1,"message":"52","line":1,"column":17,"nodeType":"53","messageId":"54","endLine":1,"endColumn":26},{"ruleId":"55","severity":1,"message":"56","line":19,"column":17,"nodeType":"57","endLine":19,"endColumn":166},{"ruleId":"51","severity":1,"message":"58","line":2,"column":10,"nodeType":"53","messageId":"54","endLine":2,"endColumn":14},"no-native-reassign",["59"],"no-negated-in-lhs",["60"],"no-unused-vars","'Component' is defined but never used.","Identifier","unusedVar","react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener","JSXOpeningElement","'Link' is defined but never used.","no-global-assign","no-unsafe-negation"]