-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 21.2 KB
/
.eslintcache
1
[{"/Users/phillex/Documents/Programming/6_Nimmt/src/index.js":"1","/Users/phillex/Documents/Programming/6_Nimmt/src/reportWebVitals.js":"2","/Users/phillex/Documents/Programming/6_Nimmt/src/App.js":"3","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/header.jsx":"4","/Users/phillex/Documents/Programming/6_Nimmt/src/components/gameButton.jsx":"5","/Users/phillex/Documents/Programming/6_Nimmt/src/main.jsx":"6","/Users/phillex/Documents/Programming/6_Nimmt/src/components/authentication.jsx":"7","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/homepage.jsx":"8","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/login.jsx":"9","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/signup.jsx":"10","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/newGame.jsx":"11","/Users/phillex/Documents/Programming/6_Nimmt/src/func/user.js":"12","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/loadGame.jsx":"13","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/game/game.jsx":"14","/Users/phillex/Documents/Programming/6_Nimmt/src/components/player_input.jsx":"15"},{"size":500,"mtime":1608803193655,"results":"16","hashOfConfig":"17"},{"size":362,"mtime":1608803193655,"results":"18","hashOfConfig":"17"},{"size":120,"mtime":1608913307334,"results":"19","hashOfConfig":"17"},{"size":1620,"mtime":1608916256406,"results":"20","hashOfConfig":"17"},{"size":723,"mtime":1608912791267,"results":"21","hashOfConfig":"17"},{"size":1449,"mtime":1609337514105,"results":"22","hashOfConfig":"17"},{"size":2092,"mtime":1609181698470,"results":"23","hashOfConfig":"17"},{"size":1683,"mtime":1609337415732,"results":"24","hashOfConfig":"17"},{"size":3522,"mtime":1609336686573,"results":"25","hashOfConfig":"17"},{"size":5225,"mtime":1609336696256,"results":"26","hashOfConfig":"17"},{"size":447,"mtime":1609337037040,"results":"27","hashOfConfig":"17"},{"size":477,"mtime":1609336649093,"results":"28","hashOfConfig":"17"},{"size":448,"mtime":1609337025471,"results":"29","hashOfConfig":"17"},{"size":3064,"mtime":1610909601909,"results":"30","hashOfConfig":"17"},{"size":3299,"mtime":1610909950825,"results":"31","hashOfConfig":"17"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},"777lzv",{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"43","usedDeprecatedRules":"34"},{"filePath":"44","messages":"45","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"46","usedDeprecatedRules":"34"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"49","usedDeprecatedRules":"34"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"52","usedDeprecatedRules":"34"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":"55","usedDeprecatedRules":"34"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"60","usedDeprecatedRules":"34"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"65","usedDeprecatedRules":"34"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"68","messages":"69","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/Users/phillex/Documents/Programming/6_Nimmt/src/index.js",[],["70","71"],"/Users/phillex/Documents/Programming/6_Nimmt/src/reportWebVitals.js",[],"/Users/phillex/Documents/Programming/6_Nimmt/src/App.js",[],"/Users/phillex/Documents/Programming/6_Nimmt/src/pages/header.jsx",[],"/Users/phillex/Documents/Programming/6_Nimmt/src/components/gameButton.jsx",["72"],"import React, {useState} from 'react';\nimport styled from 'styled-components';\n\nconst StyledButton = styled.button`\n background-image: url(button-background.png);\n color: rgb(250, 250, 250);\n font-size: 17px;\n width: 300px;\n border: none;\n border-radius: 10px;\n height: 50px;\n cursor: pointer;\n box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);\n\n :hover {\n color: rgb(220, 220, 220);\n border: solid 3px rgb(66, 78, 150);\n }\n`;\n\nconst GameButton = props => {\n const title = props.title;\n const func = props.func;\n \n return (\n <StyledButton onClick={func}>\n {title}\n </StyledButton>\n )\n}\n\nexport default GameButton;","/Users/phillex/Documents/Programming/6_Nimmt/src/main.jsx",["73","74","75","76"],"import React, {useState} from 'react';\nimport HomePage from './pages/main-router/homepage';\nimport Game from './pages/game/game';\nimport NewGame from './pages/main-router/newGame';\nimport LoadGame from './pages/main-router/loadGame';\nimport LoginPage from './pages/main-router/login';\nimport SignUpPage from './pages/main-router/signup'; \nimport Header from './pages/header';\nimport { BrowserRouter as Router, Switch, Route } from 'react-router-dom';\nimport { ProvideAuth, PrivateRoute } from './components/authentication';\n\nconst Main = () => {\n const [auth, setAuth] = useState(false);\n\n return (\n <ProvideAuth>\n <Router>\n <Header />\n\n <Switch>\n <Route exact path='/'>\n <Game />\n </Route>\n <Route path='/login'>\n <LoginPage />\n </Route>\n <Route path='/signup'>\n <SignUpPage />\n </Route>\n <Route path='/newgame'>\n <NewGame />\n </Route>\n <Route path='/loadgame'>\n <LoadGame />\n </Route>\n <Route path='/game'>\n <Game />\n </Route>\n </Switch>\n </Router>\n </ProvideAuth>\n )\n}\n\nexport default Main;","/Users/phillex/Documents/Programming/6_Nimmt/src/components/authentication.jsx",["77","78","79","80"],"import React, { useContext, createContext, useState } from 'react';\nimport {\n BrowserRouter as Router,\n Switch,\n Route,\n Link,\n Redirect,\n useHistory,\n useLocation\n} from 'react-router-dom';\n\nconst fakeAuth = {\n isAuthentication: false,\n signin(cb) {\n fakeAuth.isAuthenticated = true;\n },\n signout(cb) {\n fakeAuth.isAuthenticated = true;\n }\n};\n\nconst authContext = createContext();\n\nconst useProvideAuth = () => {\n const [user, setUser] = useState();\n const [email, setEmail] = useState();\n\n const signin = cb => {\n return fakeAuth.signin(() => {\n setUser('User');\n setEmail('[email protected]');\n cb();\n });\n };\n\n const signout = cb => {\n return fakeAuth.signout(() => {\n setUser(null);\n setEmail(null);\n cb();\n });\n };\n\n return (\n signin,\n signout,\n user,\n email\n );\n}\n\nconst useAuth = () => {\n return useContext(authContext);\n}\n\nconst AuthButton = () => {\n let history = useHistory();\n let auth = useAuth();\n\n return auth.user ? (\n <button onClick={() => {\n auth.signout(() => history.push(\"/login\"));\n }}>\n Sign Out\n </button>\n ) : (\n <p>You're not logged in!</p>\n )\n}\n\nconst PrivateRoute = (props, {children, ...rest}) => {\n const auth = props.auth;\n\n return(\n <Route \n {...rest}\n render={({ location }) => \n auth ? (\n children\n ) : (\n <Redirect\n to={{\n pathname: \"/login\",\n state: { from: location }\n }}\n />\n )\n }\n />\n )\n}\n\nconst ProvideAuth = ({ children }) => {\n const auth = useProvideAuth();\n return(\n <authContext.Provider value={auth}>\n {children}\n </authContext.Provider>\n )\n}\n\nexport { AuthButton, ProvideAuth, PrivateRoute };","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/homepage.jsx",["81","82"],"import React, {useState} from 'react';\nimport styled from 'styled-components';\nimport GameButton from '../../components/gameButton';\nimport { useHistory } from 'react-router-dom';\n\nconst MainMenuContainer = styled.div`\n width: 100%;\n height: 92vh;\n \n .contentContainer {\n display: flex;\n\n .buttonDiv {\n margin-top: 50px;\n width: 30%;\n height: 350px;\n align-items: center;\n justify-content: space-around;\n display: flex;\n flex-direction: column;\n }\n\n .titleScreen {\n width: 70%;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 92vh;\n\n .titleImage {\n height: 80%;\n }\n }\n }\n`;\n\nconst HomePage = () => {\n const [count, setCount] = useState(0);\n const history = useHistory();\n\n return(\n <MainMenuContainer>\n <div className=\"contentContainer\">\n <div className=\"buttonDiv\">\n <GameButton title={\"Continue\"} func={() => history.push('/game')}/> \n <GameButton title={\"New Game\"} func={() => history.push('/newgame')}/>\n <GameButton title={\"Load Game\"} func={() => history.push('/loadgame')}/>\n </div>\n\n <div className=\"titleScreen\">\n <img \n className=\"titleImage\"\n src=\"title_logo.png\"\n alt=\"6 Nimmt!\"\n />\n </div>\n </div>\n </MainMenuContainer>\n )\n}\n\nexport default HomePage;","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/login.jsx",["83","84","85","86","87"],"import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport { useHistory, Link, BrowserRouter as Router, Route, Switch } from 'react-router-dom'\nimport { checkUser } from '../../func/user';\n\nconst LoginContainer = styled.div`\n width: 100%;\n height: 92vh;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n\n .loginForm {\n display: flex;\n background-color: white;\n border-radius: 25px;\n width: 350px;\n height: fit-content;\n margin: auto;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 35px;\n \n .loginHeader {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n margin-bottom: 30px;\n\n .loginTitle {\n margin: 0px 0px 5px 0px;\n }\n\n .loginSubtitle {\n margin: 0;\n color: rgb(100, 100, 100);\n }\n }\n\n .inputDiv {\n width: 100%;\n float: left;\n }\n\n .inputTitle {\n width: 100%;\n float: left;\n margin-bottom: 10px;\n }\n\n .inputField {\n padding-left: 10px;\n margin-top: 0px;\n width: 100%;\n height: 30px;\n border-radius: 10px;\n outline: none;\n }\n\n .submitButton {\n margin-top: 30px;\n background-color: #424e96;\n border: none;\n width: 70%;\n height: 50px;\n cursor: pointer;\n color: white;\n border-radius: 15px;\n font-size: 20px;\n\n :hover {\n background-color: #424e96;\n }\n }\n\n .error {\n font-size: 15px;\n color: red;\n }\n }\n`;\n\nconst LoginPage = () => {\n const [email, setEmail] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n const [error, setError] = useState(\"\");\n \n const handleLogin = () => {\n if(email !== \"\" && password !== \"\") {\n checkUser(email, password);\n setError(\"\");\n } else {\n setError(\"Please enter your Email and Password!\");\n }\n\n setEmail(\"\");\n setPassword(\"\");\n }\n\n return(\n <LoginContainer>\n <div className=\"loginForm\">\n <div className=\"loginHeader\">\n <h1 className=\"loginTitle\">Sign In!</h1>\n <p className=\"loginSubtitle\">Haven't signed up yet? <a href=\"/signup\">click here</a>!</p>\n </div>\n <div className=\"inputDiv\">\n <p className=\"inputTitle\">Email:</p>\n <input className=\"inputField\" type=\"email\" id=\"email\" value={email} onChange={e => {setEmail(e.target.value)}} placeholder=\"[email protected]...\"/>\n </div>\n <div className=\"inputDiv\">\n <p className=\"inputTitle\">Password:</p>\n <input className=\"inputField\" type=\"password\" id=\"password\" value={password} onChange={e => {setPassword(e.target.value)}}/>\n </div>\n <p className=\"error\">{error}</p>\n <button className=\"submitButton\" onClick={() => handleLogin()}>\n Log in!\n </button>\n </div>\n </LoginContainer>\n )\n}\n\nexport default LoginPage;","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/signup.jsx",[],"/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/newGame.jsx",["88","89","90"],"import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport GameButton from '../../components/gameButton';\n\nconst NewGame = () => {\n\n return(\n <div>\n <div>\n <h1>New Game</h1>\n <li>\n <a href=\"/\">Homepage</a>\n <a href=\"/loadgame\">Load Game</a>\n </li>\n </div>\n </div>\n )\n}\n\nexport default NewGame;","/Users/phillex/Documents/Programming/6_Nimmt/src/func/user.js",[],"/Users/phillex/Documents/Programming/6_Nimmt/src/pages/main-router/loadGame.jsx",["91","92","93"],"import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport GameButton from '../../components/gameButton';\n\nconst LoadGame = () => {\n\n return(\n <div>\n <div>\n <h1>Load Game</h1>\n <li>\n <a href=\"/\">Homepage</a>\n <a href=\"/newgame\">New Game</a>\n </li>\n </div>\n </div>\n )\n}\n\nexport default LoadGame;","/Users/phillex/Documents/Programming/6_Nimmt/src/pages/game/game.jsx",["94","95","96","97"],"/Users/phillex/Documents/Programming/6_Nimmt/src/components/player_input.jsx",["98","99","100","101"],{"ruleId":"102","replacedBy":"103"},{"ruleId":"104","replacedBy":"105"},{"ruleId":"106","severity":1,"message":"107","line":1,"column":16,"nodeType":"108","messageId":"109","endLine":1,"endColumn":24},{"ruleId":"106","severity":1,"message":"110","line":2,"column":8,"nodeType":"108","messageId":"109","endLine":2,"endColumn":16},{"ruleId":"106","severity":1,"message":"111","line":10,"column":23,"nodeType":"108","messageId":"109","endLine":10,"endColumn":35},{"ruleId":"106","severity":1,"message":"112","line":13,"column":12,"nodeType":"108","messageId":"109","endLine":13,"endColumn":16},{"ruleId":"106","severity":1,"message":"113","line":13,"column":18,"nodeType":"108","messageId":"109","endLine":13,"endColumn":25},{"ruleId":"106","severity":1,"message":"114","line":3,"column":22,"nodeType":"108","messageId":"109","endLine":3,"endColumn":28},{"ruleId":"106","severity":1,"message":"115","line":4,"column":5,"nodeType":"108","messageId":"109","endLine":4,"endColumn":11},{"ruleId":"106","severity":1,"message":"116","line":6,"column":5,"nodeType":"108","messageId":"109","endLine":6,"endColumn":9},{"ruleId":"106","severity":1,"message":"117","line":9,"column":5,"nodeType":"108","messageId":"109","endLine":9,"endColumn":16},{"ruleId":"106","severity":1,"message":"118","line":38,"column":12,"nodeType":"108","messageId":"109","endLine":38,"endColumn":17},{"ruleId":"106","severity":1,"message":"119","line":38,"column":19,"nodeType":"108","messageId":"109","endLine":38,"endColumn":27},{"ruleId":"106","severity":1,"message":"120","line":3,"column":10,"nodeType":"108","messageId":"109","endLine":3,"endColumn":20},{"ruleId":"106","severity":1,"message":"116","line":3,"column":22,"nodeType":"108","messageId":"109","endLine":3,"endColumn":26},{"ruleId":"106","severity":1,"message":"114","line":3,"column":45,"nodeType":"108","messageId":"109","endLine":3,"endColumn":51},{"ruleId":"106","severity":1,"message":"121","line":3,"column":53,"nodeType":"108","messageId":"109","endLine":3,"endColumn":58},{"ruleId":"106","severity":1,"message":"115","line":3,"column":60,"nodeType":"108","messageId":"109","endLine":3,"endColumn":66},{"ruleId":"106","severity":1,"message":"107","line":1,"column":17,"nodeType":"108","messageId":"109","endLine":1,"endColumn":25},{"ruleId":"106","severity":1,"message":"122","line":2,"column":8,"nodeType":"108","messageId":"109","endLine":2,"endColumn":14},{"ruleId":"106","severity":1,"message":"123","line":3,"column":8,"nodeType":"108","messageId":"109","endLine":3,"endColumn":18},{"ruleId":"106","severity":1,"message":"107","line":1,"column":17,"nodeType":"108","messageId":"109","endLine":1,"endColumn":25},{"ruleId":"106","severity":1,"message":"122","line":2,"column":8,"nodeType":"108","messageId":"109","endLine":2,"endColumn":14},{"ruleId":"106","severity":1,"message":"123","line":3,"column":8,"nodeType":"108","messageId":"109","endLine":3,"endColumn":18},{"ruleId":"106","severity":1,"message":"124","line":1,"column":17,"nodeType":"108","messageId":"109","endLine":1,"endColumn":26},{"ruleId":"125","severity":1,"message":"126","line":44,"column":32,"nodeType":"127","messageId":"128","endLine":44,"endColumn":34},{"ruleId":"125","severity":1,"message":"129","line":58,"column":18,"nodeType":"127","messageId":"128","endLine":58,"endColumn":20},{"ruleId":"130","severity":1,"message":"131","line":76,"column":25,"nodeType":"132","messageId":"133","endLine":76,"endColumn":27},{"ruleId":"106","severity":1,"message":"124","line":1,"column":17,"nodeType":"108","messageId":"109","endLine":1,"endColumn":26},{"ruleId":"106","severity":1,"message":"134","line":62,"column":19,"nodeType":"108","messageId":"109","endLine":62,"endColumn":27},{"ruleId":"106","severity":1,"message":"135","line":64,"column":19,"nodeType":"108","messageId":"109","endLine":64,"endColumn":27},{"ruleId":"106","severity":1,"message":"136","line":68,"column":11,"nodeType":"108","messageId":"109","endLine":68,"endColumn":28},"no-native-reassign",["137"],"no-negated-in-lhs",["138"],"no-unused-vars","'useState' is defined but never used.","Identifier","unusedVar","'HomePage' is defined but never used.","'PrivateRoute' is defined but never used.","'auth' is assigned a value but never used.","'setAuth' is assigned a value but never used.","'Router' is defined but never used.","'Switch' is defined but never used.","'Link' is defined but never used.","'useLocation' is defined but never used.","'count' is assigned a value but never used.","'setCount' is assigned a value but never used.","'useHistory' is defined but never used.","'Route' is defined but never used.","'styled' is defined but never used.","'GameButton' is defined but never used.","'useEffect' is defined but never used.","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","Expected '!==' and instead saw '!='.","array-callback-return","Array.prototype.map() expects a return value from arrow function.","ArrowFunctionExpression","expectedInside","'setCards' is assigned a value but never used.","'setScore' is assigned a value but never used.","'updateCardOptions' is assigned a value but never used.","no-global-assign","no-unsafe-negation"]