-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 11.9 KB
/
.eslintcache
1
[{"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/App.js":"1","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/features/appSlice.js":"2","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/serviceWorker.js":"3","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/app/store.js":"4","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/WebcamCapture/WebcamCapture.js":"5","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/features/cameraSlice.js":"6","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/index.js":"7","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Preview/Preview.js":"8","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Chats/Chats.js":"9","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/firebase.js":"10","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Chat/Chat.js":"11","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/ChatView/ChatView.js":"12","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Login/Login.js":"13"},{"size":1898,"mtime":1611945922034,"results":"14","hashOfConfig":"15"},{"size":749,"mtime":1611932307369,"results":"16","hashOfConfig":"15"},{"size":5141,"mtime":1610431753675,"results":"17","hashOfConfig":"15"},{"size":263,"mtime":1610479058163,"results":"18","hashOfConfig":"15"},{"size":1337,"mtime":1611916347964,"results":"19","hashOfConfig":"15"},{"size":564,"mtime":1610522075222,"results":"20","hashOfConfig":"15"},{"size":644,"mtime":1610431753672,"results":"21","hashOfConfig":"15"},{"size":2726,"mtime":1611946803046,"results":"22","hashOfConfig":"15"},{"size":2457,"mtime":1611943247083,"results":"23","hashOfConfig":"15"},{"size":637,"mtime":1610476594139,"results":"24","hashOfConfig":"15"},{"size":1349,"mtime":1611934491258,"results":"25","hashOfConfig":"15"},{"size":1464,"mtime":1611934302559,"results":"26","hashOfConfig":"15"},{"size":1038,"mtime":1611942196425,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"30","usedDeprecatedRules":"31"},"e922yt",{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"34"},{"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":"39"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"34"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"45"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"58","usedDeprecatedRules":"31"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"39"},"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/App.js",["61"],"import React, { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { BrowserRouter as Router, Switch, Route } from 'react-router-dom';\r\nimport './App.css';\r\nimport Chats from './Components/Chats/Chats';\r\nimport ChatView from './Components/ChatView/ChatView';\r\nimport Login from './Components/Login/Login';\r\nimport Preview from './Components/Preview/Preview';\r\nimport WebcamCapture from './Components/WebcamCapture/WebcamCapture';\r\nimport { login, logout, selectUser } from './features/appSlice';\r\nimport { auth } from './firebase';\r\n\r\nfunction App() {\r\n const user = useSelector(selectUser);\r\n const dispatch = useDispatch();\r\n\r\n useEffect(() => {\r\n auth\r\n .onAuthStateChanged((authUser) => {\r\n if (authUser) {\r\n dispatch(login({\r\n username: authUser.displayName,\r\n profilePic: authUser.photoURL,\r\n id: authUser.uid\r\n }))\r\n } else {\r\n dispatch(logout());\r\n }\r\n })\r\n }, []);\r\n\r\n return (\r\n <div className=\"app\">\r\n <Router>\r\n\r\n {!user ? (\r\n <Login />\r\n ) : (\r\n <>\r\n <div className='app__body'>\r\n <div className=\"app__bodyBackground\">\r\n <Switch>\r\n\r\n <Route path='/chats/view'>\r\n <ChatView />\r\n </Route>\r\n\r\n <Route path='/chats'>\r\n <Chats />\r\n </Route>\r\n\r\n <Route path='/preview'>\r\n <Preview />\r\n </Route>\r\n\r\n <Route exact path='/'>\r\n <WebcamCapture />\r\n </Route>\r\n </Switch>\r\n </div>\r\n\r\n </div>\r\n </>\r\n )}\r\n\r\n </Router>\r\n\r\n\r\n </div>\r\n );\r\n}\r\n\r\nexport default App;\r\n",["62","63"],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/features/appSlice.js",[],["64","65"],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/serviceWorker.js",[],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/app/store.js",[],["66","67"],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/WebcamCapture/WebcamCapture.js",["68"],"import React, { useCallback, useRef } from 'react'\nimport Webcam from 'react-webcam';\nimport RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked';\nimport { useDispatch } from 'react-redux';\nimport { setCameraImage } from '../../features/cameraSlice';\nimport { useHistory } from 'react-router-dom';\n\nimport './WebcamCapture.css';\n\nconst videoConstraints = {\n width: 250,\n height: 400,\n facingMode: \"user\"\n};\n\nfunction WebcamCapture() {\n const webcamRef = useRef(null);\n const dispatch = useDispatch();\n const history = useHistory();\n\n const capture = useCallback(() => {\n const imageSrc = webcamRef.current.getScreenshot();\n dispatch(setCameraImage(imageSrc));\n history.push('/preview');\n }, [webcamRef]);\n\n return (\n <div className='webcamCapture'>\n <Webcam\n audio={false}\n height={videoConstraints.height}\n ref={webcamRef}\n screenshotFormat=\"image/jpeg\"\n width={videoConstraints.width}\n videoConstraints={videoConstraints}\n />\n <RadioButtonUncheckedIcon\n className='webcamCapture__button'\n onClick={capture}\n fontSize=\"large\"\n />\n </div>\n )\n}\n\nexport default WebcamCapture\n","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/features/cameraSlice.js",[],["69","70"],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/index.js",[],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Preview/Preview.js",[],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Chats/Chats.js",[],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/firebase.js",[],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Chat/Chat.js",[],"/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/ChatView/ChatView.js",["71"],"import React from 'react'\nimport { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport { selectSelectedImage } from '../../features/appSlice';\nimport { CountdownCircleTimer } from 'react-countdown-circle-timer'\n\nimport './ChatView.css'\n\nconst ChatView = () => {\n\n const selectedImage = useSelector(selectSelectedImage);\n const history = useHistory();\n\n useEffect(() => {\n if (!selectedImage) {\n exit();\n }\n }, [selectedImage])\n\n const exit = () => {\n history.replace('/chats')\n }\n\n return (\n <div className='chatView'>\n <img onClick={exit} src={selectedImage} alt=\"\" />\n\n <div className=\"chatView__timer\">\n <CountdownCircleTimer\n isPlaying\n duration={10}\n strokeWidth={6}\n size={50}\n colors={[\n [\"#004777\", 0.33],\n [\"#F7B801\", 0.33],\n [\"#A30000\", 0.33],\n ]}\n >\n {({ remainingTime }) => {\n if (remainingTime === 0) {\n exit();\n }\n\n return remainingTime;\n }}\n </CountdownCircleTimer>\n </div>\n\n </div>\n )\n}\n\nexport default ChatView\n","/media/dell/3ADC8576DC852D67/Users/DELL/Documents/Personal Projects/snapsinn/src/Components/Login/Login.js",[],{"ruleId":"72","severity":1,"message":"73","line":30,"column":6,"nodeType":"74","endLine":30,"endColumn":8,"suggestions":"75"},{"ruleId":"76","replacedBy":"77"},{"ruleId":"78","replacedBy":"79"},{"ruleId":"76","replacedBy":"80"},{"ruleId":"78","replacedBy":"81"},{"ruleId":"76","replacedBy":"82"},{"ruleId":"78","replacedBy":"83"},{"ruleId":"72","severity":1,"message":"84","line":25,"column":8,"nodeType":"74","endLine":25,"endColumn":19,"suggestions":"85"},{"ruleId":"76","replacedBy":"86"},{"ruleId":"78","replacedBy":"87"},{"ruleId":"72","severity":1,"message":"88","line":19,"column":8,"nodeType":"74","endLine":19,"endColumn":23,"suggestions":"89"},"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.","ArrayExpression",["90"],"no-native-reassign",["91"],"no-negated-in-lhs",["92"],["91"],["92"],["91"],["92"],"React Hook useCallback has missing dependencies: 'dispatch' and 'history'. Either include them or remove the dependency array.",["93"],["91"],["92"],"React Hook useEffect has a missing dependency: 'exit'. Either include it or remove the dependency array.",["94"],{"desc":"95","fix":"96"},"no-global-assign","no-unsafe-negation",{"desc":"97","fix":"98"},{"desc":"99","fix":"100"},"Update the dependencies array to be: [dispatch]",{"range":"101","text":"102"},"Update the dependencies array to be: [dispatch, history]",{"range":"103","text":"104"},"Update the dependencies array to be: [exit, selectedImage]",{"range":"105","text":"106"},[1007,1009],"[dispatch]",[755,766],"[dispatch, history]",[518,533],"[exit, selectedImage]"]