-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 12.1 KB
/
.eslintcache
1
[{"D:\\Yasin\\spotify-app\\src\\index.js":"1","D:\\Yasin\\spotify-app\\src\\reducer.js":"2","D:\\Yasin\\spotify-app\\src\\App.js":"3","D:\\Yasin\\spotify-app\\src\\context.js":"4","D:\\Yasin\\spotify-app\\src\\spotify.js":"5","D:\\Yasin\\spotify-app\\src\\component\\player\\Player.js":"6","D:\\Yasin\\spotify-app\\src\\component\\login\\Login.js":"7","D:\\Yasin\\spotify-app\\src\\component\\player\\sidebar\\Sidebar.js":"8","D:\\Yasin\\spotify-app\\src\\component\\player\\footer\\Footer.js":"9","D:\\Yasin\\spotify-app\\src\\component\\player\\body\\Body.js":"10","D:\\Yasin\\spotify-app\\src\\component\\player\\sidebarOption\\SidebarOption.js":"11","D:\\Yasin\\spotify-app\\src\\component\\player\\header\\Header.js":"12","D:\\Yasin\\spotify-app\\src\\component\\player\\songRow\\SongRow.js":"13","D:\\Yasin\\spotify-app\\src\\component\\player\\toolTip\\ToolTip.js":"14"},{"size":788,"mtime":1613554444635,"results":"15","hashOfConfig":"16"},{"size":1291,"mtime":1613400957415,"results":"17","hashOfConfig":"16"},{"size":1545,"mtime":1613421518551,"results":"18","hashOfConfig":"16"},{"size":382,"mtime":1613378302018,"results":"19","hashOfConfig":"16"},{"size":1480,"mtime":1613249559614,"results":"20","hashOfConfig":"16"},{"size":405,"mtime":1613565062781,"results":"21","hashOfConfig":"16"},{"size":412,"mtime":1613564979896,"results":"22","hashOfConfig":"16"},{"size":1217,"mtime":1613565034211,"results":"23","hashOfConfig":"16"},{"size":2083,"mtime":1613558610877,"results":"24","hashOfConfig":"16"},{"size":1528,"mtime":1613564996411,"results":"25","hashOfConfig":"16"},{"size":896,"mtime":1613565042706,"results":"26","hashOfConfig":"16"},{"size":731,"mtime":1613565024744,"results":"27","hashOfConfig":"16"},{"size":466,"mtime":1613565050928,"results":"28","hashOfConfig":"16"},{"size":867,"mtime":1613565055816,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"32","usedDeprecatedRules":"33"},"6pmhr9",{"filePath":"34","messages":"35","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"36","usedDeprecatedRules":"33"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"33"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"33"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"33"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"49","messages":"50","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"33"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"55","messages":"56","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"57","messages":"58","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"61","messages":"62","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"D:\\Yasin\\spotify-app\\src\\index.js",["63","64"],"import React from 'react';\nimport ReactDOM from 'react-dom';\nimport $ from 'jquery';\nimport Popper from 'popper.js';\nimport 'bootstrap/dist/js/bootstrap.bundle.min';\nimport './index.css';\nimport App from './App';\nimport { DataProvider } from './context'\nimport reducer, {initialState} from './reducer'\n// import reportWebVitals from './reportWebVitals';\nReactDOM.render(\n <React.StrictMode>\n <DataProvider initialState={initialState} reducer={reducer}>\n <App />\n </DataProvider>\n </React.StrictMode>,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\n// reportWebVitals();\n",["65","66"],"D:\\Yasin\\spotify-app\\src\\reducer.js",["67","68"],"import React,{useState} from 'react'\r\nexport const initialState = {\r\n user: null,\r\n playlists: [],\r\n playing: false,\r\n item: null,\r\n // change to null after devloping\r\n // token:'BQDpuxTmPUUqvKs2KumZt81BVKr_qmll4jswJeGGHlSi98z-BTZBHJUoiZqqyNGdMObEoUaIlXsndIQ8zZRt4ufvUJc4uXOy31-wWU3nycBdTbSjfYo6tZxGHRQJH6A1bBVF_IVsUexV-8pClH2q8gK9XiGdQOFJTukiYe7YusPmxya7'\r\n}\r\n\r\n// this listens to actions\r\n// and does a specific thing based on type of any various action\r\nconst reducer = (state, action) => {\r\n\r\n // action => type, [payload]\r\n switch (action.type) {\r\n\r\n // on login, sets the user to data provider\r\n case \"SET_USER\": //type\r\n return {\r\n ...state,\r\n user: action.user //payload\r\n }\r\n case \"SET_TOKEN\":\r\n return {\r\n ...state,token:action.token\r\n }\r\n case \"SET_PLAYLISTS\":\r\n return {\r\n ...state,\r\n playlists: action.playlists,\r\n \r\n }\r\n \r\n case \"SET_CURRENT_PLAYLIST\":\r\n return {\r\n ...state, currentPlaylist: action.currentPlaylist\r\n \r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\nexport default reducer","D:\\Yasin\\spotify-app\\src\\App.js",["69","70","71"],"import React,{useState, useEffect} from \"react\"\nimport '../node_modules/bootstrap/dist/css/bootstrap.min.css';\nimport Login from \"./component/login/Login\"\nimport Player from \"./component/player/Player\"\nimport { getTokenFromUrl } from \"./spotify\"\nimport {useDataProviderValue} from \"./context\"\nimport SpotifyWebApi from \"spotify-web-api-js\";\n\n// this object is responsible for any interaction between this app and spotify api\nconst spotify = new SpotifyWebApi();\nfunction App() {\n // const [token, setToken] = useState(null);\n\n const [{ user,token}, dispatch] = useDataProviderValue()\n \n\n useEffect(() => {\n const hash = getTokenFromUrl()\n window.location.hash = \"\";// for security issues this is hidden from url\n const _token=hash.access_token;\n\n\n if(_token){\ndispatch({type:\"SET_TOKEN\",token:_token})\n spotify.setAccessToken(_token)\n\n // getMe => gets the logged in user, in this case Yasin\n spotify.getMe().then((user)=>{\n dispatch({\n type:\"SET_USER\",\n user:user\n })\n \n })\n spotify.getUserPlaylists().then((playlists) => {\n dispatch({\n type: \"SET_PLAYLISTS\",\n playlists:playlists,\n })\n })\n spotify.getPlaylist('5sVselcInAra7M0rswwUS9').then(response => {\n dispatch({\n type: \"SET_CURRENT_PLAYLIST\",\n currentPlaylist:response\n })\n })\n }\n},[])\n return (\n <div className=\"App\">\n {token ? (<Player spotify={spotify}/>):(<Login />)}\n \n </div>\n );\n}\nexport default App;\n","D:\\Yasin\\spotify-app\\src\\context.js",["72"],"import React, { useState, createContext, useContext, useReducer } from \"react\";\r\n\r\nexport const DataContext = createContext();\r\n\r\nexport const DataProvider = ({ initialState, reducer, children }) =>(\r\n<DataContext.Provider value={useReducer(reducer, initialState)}>\r\n {children}\r\n </DataContext.Provider>\r\n);\r\nexport const useDataProviderValue = () => useContext(DataContext);\r\n","D:\\Yasin\\spotify-app\\src\\spotify.js",[],"D:\\Yasin\\spotify-app\\src\\component\\player\\Player.js",[],"D:\\Yasin\\spotify-app\\src\\component\\login\\Login.js",["73"],"D:\\Yasin\\spotify-app\\src\\component\\player\\sidebar\\Sidebar.js",["74","75","76"],"D:\\Yasin\\spotify-app\\src\\component\\player\\footer\\Footer.js",[],"D:\\Yasin\\spotify-app\\src\\component\\player\\body\\Body.js",["77"],"D:\\Yasin\\spotify-app\\src\\component\\player\\sidebarOption\\SidebarOption.js",["78","79","80","81"],"D:\\Yasin\\spotify-app\\src\\component\\player\\header\\Header.js",["82"],"D:\\Yasin\\spotify-app\\src\\component\\player\\songRow\\SongRow.js",[],"D:\\Yasin\\spotify-app\\src\\component\\player\\toolTip\\ToolTip.js",["83"],{"ruleId":"84","severity":1,"message":"85","line":3,"column":8,"nodeType":"86","messageId":"87","endLine":3,"endColumn":9},{"ruleId":"84","severity":1,"message":"88","line":4,"column":8,"nodeType":"86","messageId":"87","endLine":4,"endColumn":14},{"ruleId":"89","replacedBy":"90"},{"ruleId":"91","replacedBy":"92"},{"ruleId":"84","severity":1,"message":"93","line":1,"column":8,"nodeType":"86","messageId":"87","endLine":1,"endColumn":13},{"ruleId":"84","severity":1,"message":"94","line":1,"column":15,"nodeType":"86","messageId":"87","endLine":1,"endColumn":23},{"ruleId":"84","severity":1,"message":"94","line":1,"column":15,"nodeType":"86","messageId":"87","endLine":1,"endColumn":23},{"ruleId":"84","severity":1,"message":"95","line":14,"column":12,"nodeType":"86","messageId":"87","endLine":14,"endColumn":16},{"ruleId":"96","severity":1,"message":"97","line":48,"column":3,"nodeType":"98","endLine":48,"endColumn":5,"suggestions":"99"},{"ruleId":"84","severity":1,"message":"94","line":1,"column":17,"nodeType":"86","messageId":"87","endLine":1,"endColumn":25},{"ruleId":"84","severity":1,"message":"100","line":3,"column":8,"nodeType":"86","messageId":"87","endLine":3,"endColumn":14},{"ruleId":"84","severity":1,"message":"101","line":1,"column":17,"nodeType":"86","messageId":"87","endLine":1,"endColumn":26},{"ruleId":"84","severity":1,"message":"102","line":11,"column":25,"nodeType":"86","messageId":"87","endLine":11,"endColumn":33},{"ruleId":"84","severity":1,"message":"103","line":12,"column":9,"nodeType":"86","messageId":"87","endLine":12,"endColumn":13},{"ruleId":"84","severity":1,"message":"102","line":13,"column":31,"nodeType":"86","messageId":"87","endLine":13,"endColumn":39},{"ruleId":"84","severity":1,"message":"94","line":1,"column":17,"nodeType":"86","messageId":"87","endLine":1,"endColumn":25},{"ruleId":"84","severity":1,"message":"101","line":1,"column":27,"nodeType":"86","messageId":"87","endLine":1,"endColumn":36},{"ruleId":"84","severity":1,"message":"104","line":1,"column":38,"nodeType":"86","messageId":"87","endLine":1,"endColumn":44},{"ruleId":"84","severity":1,"message":"105","line":10,"column":12,"nodeType":"86","messageId":"87","endLine":10,"endColumn":27},{"ruleId":"84","severity":1,"message":"106","line":8,"column":20,"nodeType":"86","messageId":"87","endLine":8,"endColumn":29},{"ruleId":"84","severity":1,"message":"107","line":11,"column":13,"nodeType":"86","messageId":"87","endLine":11,"endColumn":20},"no-unused-vars","'$' is defined but never used.","Identifier","unusedVar","'Popper' is defined but never used.","no-native-reassign",["108"],"no-negated-in-lhs",["109"],"'React' is defined but never used.","'useState' is defined but never used.","'user' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.","ArrayExpression",["110"],"'Button' is defined but never used.","'useEffect' is defined but never used.","'dispatch' is assigned a value but never used.","'name' is assigned a value but never used.","'useRef' is defined but never used.","'currentPlaylist' is assigned a value but never used.","'dispactch' is assigned a value but never used.","'timerId' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"111","fix":"112"},"Update the dependencies array to be: [dispatch]",{"range":"113","text":"114"},[1402,1404],"[dispatch]"]