-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 13 KB
/
.eslintcache
1
[{"/Users/oleg/Desktop/My projects/Teaparty House/src/index.js":"1","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Form/Form.jsx":"2","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Widgets/Widgets.jsx":"3","/Users/oleg/Desktop/My projects/Teaparty House/src/components/UsersOnline/UsersOnline.jsx":"4","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Chat/Chat.jsx":"5","/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/UserList.jsx":"6","/Users/oleg/Desktop/My projects/Teaparty House/src/components/AudioPlayer/Player.jsx":"7","/Users/oleg/Desktop/My projects/Teaparty House/src/components/JrpgOfTheDay/JrpgOfTheDay.jsx":"8","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Header/Header.jsx":"9","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Video/Video.jsx":"10","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Chat/Message/Message.jsx":"11","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Header/changeThemeButton/changeThemeButton.jsx":"12","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Header/ChangeThemeButton/ChangeThemeButton.jsx":"13","/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/User/User.jsx":"14","/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/User/JrpgList/JrpgList.jsx":"15","/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/User/JrpgList/Jrpg/Jrpg.jsx":"16","/Users/oleg/Desktop/My projects/Teaparty House/src/constants/constants.js":"17","/Users/oleg/Desktop/My projects/Teaparty House/src/reducers/playlist/playlistReducer.js":"18","/Users/oleg/Desktop/My projects/Teaparty House/src/reducers/users/usersReducer.js":"19","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Footer/Footer.jsx":"20","/Users/oleg/Desktop/My projects/Teaparty House/src/components/Chat/BotMessage/BotMessage.jsx":"21","/Users/oleg/Desktop/My projects/Teaparty House/src/store/store.js":"22","/Users/oleg/Desktop/My projects/Teaparty House/src/App.jsx":"23"},{"size":375,"mtime":1653934695169,"results":"24","hashOfConfig":"25"},{"size":3995,"mtime":1653852755853,"results":"26","hashOfConfig":"25"},{"size":156,"mtime":1608737587273,"results":"27","hashOfConfig":"25"},{"size":711,"mtime":1613590563220,"results":"28","hashOfConfig":"25"},{"size":1762,"mtime":1653918820585,"results":"29","hashOfConfig":"25"},{"size":1043,"mtime":1653854369892,"results":"30","hashOfConfig":"25"},{"size":3166,"mtime":1653930240029,"results":"31","hashOfConfig":"25"},{"size":1530,"mtime":1653859151441,"results":"32","hashOfConfig":"25"},{"size":613,"mtime":1614948971746,"results":"33","hashOfConfig":"25"},{"size":742,"mtime":1614450412728,"results":"34","hashOfConfig":"25"},{"size":567,"mtime":1653930561119,"results":"35","hashOfConfig":"25"},{"size":402,"mtime":1614770211876,"results":"36","hashOfConfig":"37"},{"size":1116,"mtime":1650025929396,"results":"38","hashOfConfig":"25"},{"size":2060,"mtime":1653858349423,"results":"39","hashOfConfig":"25"},{"size":338,"mtime":1614949223053,"results":"40","hashOfConfig":"25"},{"size":930,"mtime":1613588824555,"results":"41","hashOfConfig":"25"},{"size":213,"mtime":1653859377138,"results":"42","hashOfConfig":"25"},{"size":499,"mtime":1653860091704,"results":"43","hashOfConfig":"25"},{"size":1375,"mtime":1653861030397,"results":"44","hashOfConfig":"25"},{"size":913,"mtime":1650025929393,"results":"45","hashOfConfig":"25"},{"size":679,"mtime":1653912527606,"results":"46","hashOfConfig":"25"},{"size":531,"mtime":1653904942377,"results":"47","hashOfConfig":"25"},{"size":3413,"mtime":1653904869438,"results":"48","hashOfConfig":"25"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"3dizee",{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"74"},"1myjkqe",{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"97","usedDeprecatedRules":"53"},"/Users/oleg/Desktop/My projects/Teaparty House/src/index.js",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Form/Form.jsx",[],["98","99"],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Widgets/Widgets.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/UsersOnline/UsersOnline.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Chat/Chat.jsx",["100"],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/UserList.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/AudioPlayer/Player.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/JrpgOfTheDay/JrpgOfTheDay.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Header/Header.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Video/Video.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Chat/Message/Message.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Header/changeThemeButton/changeThemeButton.jsx",[],["101","102"],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Header/ChangeThemeButton/ChangeThemeButton.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/User/User.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/User/JrpgList/JrpgList.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/UserList/User/JrpgList/Jrpg/Jrpg.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/constants/constants.js",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/reducers/playlist/playlistReducer.js",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/reducers/users/usersReducer.js",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Footer/Footer.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/components/Chat/BotMessage/BotMessage.jsx",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/store/store.js",[],"/Users/oleg/Desktop/My projects/Teaparty House/src/App.jsx",["103"],"import React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { fetchUsers } from './reducers/users/usersReducer';\nimport { fetchMusic } from './reducers/playlist/playlistReducer';\nimport Chat from './components/Chat/Chat';\nimport Form from './components/Form/Form';\nimport Header from './components/Header/Header';\nimport JrpgOfTheDay from './components/JrpgOfTheDay/JrpgOfTheDay';\nimport Player from './components/AudioPlayer/Player';\nimport UserList from './components/UserList/UserList';\nimport UsersOnline from './components/UsersOnline/UsersOnline';\nimport Video from './components/Video/Video';\nimport Widgets from './components/Widgets/Widgets';\nimport Footer from './components/Footer/Footer';\nimport data from './database/users.json';\nimport playlist from './database/music.json';\n\nimport './App.css';\n\n// var init = {\n// method: 'GET',\n// headers: {\n// 'Content-Type': 'application/json'\n// },\n// mode: 'cors',\n// cache: 'default'\n// }\n\n//let REQUEST = new Request('http://localhost:8080/users.json', init);\n\nconst App = () => {\n const [visibleList, setVisible] = useState(false);\n const [themeDark, setThemeDark] = useState(false);\n const users = useSelector(state => state.usersReducer.users);\n const dispatch = useDispatch();\n\n useEffect(() => {\n dispatch(fetchUsers(data.users));\n dispatch(fetchMusic(playlist.music));\n\n console.log('Component did mount');\n\n return () => console.log('Component did update');\n }, []);\n\n useEffect(() => {\n const currentTheme = localStorage.getItem('theme-color');\n\n currentTheme === 'dark' ? setThemeDark(true) : setThemeDark(false);\n }, []);\n\n const handleTheme = () => {\n if (themeDark) {\n localStorage.setItem('theme-color', 'light');\n\n setThemeDark(false);\n } else {\n localStorage.setItem('theme-color', 'dark');\n\n setThemeDark(true);\n }\n }\n\n const handleClick = () => {\n setVisible((visible) => !visible);\n }\n\n const countUsers = users.reduce((total, user) => (user?.name ? (total += 1) : total), 0);\n\n console.log(users, 'users');\n\n if (!users) return <p>Loading, please wait...</p>;\n\n return (\n <div className={`app ${themeDark ? 'dark' : ''}`}>\n <Header handleTheme={handleTheme} theme={themeDark} />\n <Video />\n <div className={`container `}>\n <div className=\"section\">\n <JrpgOfTheDay />\n <Player />\n <img src=\"./images/Sire.png\" alt=\"sir\" />\n <button className=\"btn\" onClick={handleClick}>\n <span>Show Users</span>\n </button>\n <br />\n <span>Total users: {countUsers}</span>\n <img src=\"./images/BLM.gif\" alt=\"blm\" />\n </div>\n <div className=\"main\">\n <UsersOnline />\n {visibleList && (\n <UserList />\n )}\n <div className=\"sidebar\">\n <Form />\n <Widgets />\n <Chat />\n </div>\n </div>\n </div>\n <Footer />\n </div>\n )\n}\n\nexport default App;",{"ruleId":"104","replacedBy":"105"},{"ruleId":"106","replacedBy":"107"},{"ruleId":"108","severity":1,"message":"109","line":1,"column":17,"nodeType":"110","messageId":"111","endLine":1,"endColumn":26},{"ruleId":"104","replacedBy":"112"},{"ruleId":"106","replacedBy":"113"},{"ruleId":"114","severity":1,"message":"115","line":45,"column":8,"nodeType":"116","endLine":45,"endColumn":10,"suggestions":"117"},"no-native-reassign",["118"],"no-negated-in-lhs",["119"],"no-unused-vars","'useEffect' is defined but never used.","Identifier","unusedVar",["118"],["119"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.","ArrayExpression",["120"],"no-global-assign","no-unsafe-negation",{"desc":"121","fix":"122"},"Update the dependencies array to be: [dispatch]",{"range":"123","text":"124"},[1542,1544],"[dispatch]"]