-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 17.1 KB
/
.eslintcache
1
[{"/Users/jomarnguyen/Desktop/netflix-publish/src/serviceWorker.js":"1","/Users/jomarnguyen/Desktop/netflix-publish/src/dataMovie/request.js":"2","/Users/jomarnguyen/Desktop/netflix-publish/src/app/store.js":"3","/Users/jomarnguyen/Desktop/netflix-publish/src/features/bannersSlice.js":"4","/Users/jomarnguyen/Desktop/netflix-publish/src/features/movieSlice.js":"5","/Users/jomarnguyen/Desktop/netflix-publish/src/index.js":"6","/Users/jomarnguyen/Desktop/netflix-publish/src/dataMovie/axios.js":"7","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Banner/Banner.js":"8","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Home.js":"9","/Users/jomarnguyen/Desktop/netflix-publish/src/App.js":"10","/Users/jomarnguyen/Desktop/netflix-publish/src/Favourite/Favourite.js":"11","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Nav/Nav.js":"12","/Users/jomarnguyen/Desktop/netflix-publish/src/Login/Login.js":"13","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Banner/SlideItem/SlideItem.js":"14","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Row/Row.js":"15","/Users/jomarnguyen/Desktop/netflix-publish/src/Genres/Genres.js":"16","/Users/jomarnguyen/Desktop/netflix-publish/src/features/genresSlice.js":"17","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Row/Children/Children.js":"18","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Row/GrandChild/Grandchild.js":"19","/Users/jomarnguyen/Desktop/netflix-publish/src/features/favorSlice.js":"20","/Users/jomarnguyen/Desktop/netflix-publish/src/Favourite/ChildFavorite/ChildFavorite.js":"21","/Users/jomarnguyen/Desktop/netflix-publish/src/firebase.js":"22","/Users/jomarnguyen/Desktop/netflix-publish/src/features/userSlice.js":"23"},{"size":5141,"mtime":1606590006853,"results":"24","hashOfConfig":"25"},{"size":1403,"mtime":1607627402857,"results":"26","hashOfConfig":"25"},{"size":505,"mtime":1607384993216,"results":"27","hashOfConfig":"25"},{"size":441,"mtime":1606950621183,"results":"28","hashOfConfig":"25"},{"size":410,"mtime":1607466916995,"results":"29","hashOfConfig":"25"},{"size":644,"mtime":1606590215733,"results":"30","hashOfConfig":"25"},{"size":130,"mtime":1606853617543,"results":"31","hashOfConfig":"25"},{"size":1536,"mtime":1607439143149,"results":"32","hashOfConfig":"25"},{"size":395,"mtime":1607549063064,"results":"33","hashOfConfig":"25"},{"size":1452,"mtime":1607550439150,"results":"34","hashOfConfig":"25"},{"size":670,"mtime":1607548692632,"results":"35","hashOfConfig":"25"},{"size":2088,"mtime":1607548990442,"results":"36","hashOfConfig":"25"},{"size":2634,"mtime":1607549070751,"results":"37","hashOfConfig":"25"},{"size":3322,"mtime":1607620965706,"results":"38","hashOfConfig":"25"},{"size":478,"mtime":1607549058101,"results":"39","hashOfConfig":"25"},{"size":1348,"mtime":1607548924659,"results":"40","hashOfConfig":"25"},{"size":915,"mtime":1607380478191,"results":"41","hashOfConfig":"25"},{"size":1388,"mtime":1607549023348,"results":"42","hashOfConfig":"25"},{"size":3369,"mtime":1607621071561,"results":"43","hashOfConfig":"25"},{"size":1117,"mtime":1607548863842,"results":"44","hashOfConfig":"25"},{"size":4198,"mtime":1607627342019,"results":"45","hashOfConfig":"25"},{"size":652,"mtime":1607627435866,"results":"46","hashOfConfig":"25"},{"size":459,"mtime":1606591132181,"results":"47","hashOfConfig":"25"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"50"},"h31vyz",{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"61"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"66","usedDeprecatedRules":"67"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"72","usedDeprecatedRules":"73"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"76","messages":"77","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"78"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"81"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"84","messages":"85","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"61"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"88"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"93"},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/jomarnguyen/Desktop/netflix-publish/src/serviceWorker.js",[],["104","105"],"/Users/jomarnguyen/Desktop/netflix-publish/src/dataMovie/request.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/app/store.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/features/bannersSlice.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/features/movieSlice.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/index.js",[],["106","107"],"/Users/jomarnguyen/Desktop/netflix-publish/src/dataMovie/axios.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Banner/Banner.js",["108"],"import React, { useEffect } from \"react\";\nimport \"./Banner.css\";\nimport SlideItem from \"./SlideItem/SlideItem\";\nimport axios from \"../../dataMovie/axios\";\nimport fetchMovie from \"../../dataMovie/request\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { selectBanners, setBanners } from \"../../features/bannersSlice\";\nimport { Carousel } from \"react-responsive-carousel\";\nimport \"react-responsive-carousel/lib/styles/carousel.min.css\";\n\nfunction Banner() {\n const dispatch = useDispatch();\n const banners = useSelector(selectBanners);\n\n const fetch = async () => {\n await axios.get(fetchMovie.banner).then((res) => {\n if (res) {\n dispatch(setBanners(res.data.results));\n }\n });\n };\n useEffect(() => {\n fetch();\n }, []);\n\n return (\n <div className=\"banner\">\n <div className=\"banner__fadeLeft\"></div>\n <div className=\"banner__slides\">\n <Carousel autoPlay infiniteLoop showThumbs={false} interval={5000}>\n {banners?.map((banner) => (\n <SlideItem\n key={banner.id}\n id={banner.id}\n title={banner?.original_title || banner?.original_name}\n overview={banner.overview}\n vote={banner.vote_average}\n backdrop={banner.backdrop_path}\n />\n ))}\n </Carousel>\n </div>\n <div className=\"banner__fadeTop\"></div>\n <div className=\"banner__fadeBottom\"></div>\n <div className=\"banner__fadeRight\"></div>\n </div>\n );\n}\n\nexport default Banner;\n",["109","110"],"/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Home.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/App.js",["111"],"import React, { useEffect } from \"react\";\r\nimport { useDispatch, useSelector } from \"react-redux\";\r\nimport \"./App.css\";\r\nimport Home from \"./Home/Home\";\r\nimport { login, logout, selectUser } from \"./features/userSlice\";\r\nimport { auth } from \"./firebase\";\r\nimport Login from \"./Login/Login\";\r\nimport { BrowserRouter as Router, Switch, Route } from \"react-router-dom\";\r\nimport Favourite from \"./Favourite/Favourite\";\r\n\r\nfunction App() {\r\n const dispatch = useDispatch();\r\n const user = useSelector(selectUser);\r\n\r\n useEffect(() => {\r\n const unsubscribe = auth.onAuthStateChanged((authUser) => {\r\n if (authUser) {\r\n dispatch(\r\n login({\r\n email: authUser.email,\r\n photo: authUser.photoURL,\r\n uid: authUser.uid,\r\n displayName: authUser.displayName,\r\n })\r\n );\r\n } else {\r\n dispatch(logout());\r\n }\r\n });\r\n return () => {\r\n unsubscribe();\r\n };\r\n }, []);\r\n\r\n document.title = \"Netflix Clone Redux\"\r\n\r\n return (\r\n <Router>\r\n <div className=\"app\">\r\n {user ? (\r\n <>\r\n <Switch>\r\n <Route path=\"/favourite\">\r\n <Favourite />\r\n </Route>\r\n <Route path=\"/\">\r\n <Home />\r\n </Route>\r\n </Switch>\r\n </>\r\n ) : (\r\n <Login />\r\n )}\r\n </div>\r\n </Router>\r\n );\r\n}\r\n\r\nexport default App;\r\n",["112","113"],"/Users/jomarnguyen/Desktop/netflix-publish/src/Favourite/Favourite.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Nav/Nav.js",["114"],"import { MovieFilter } from \"@material-ui/icons\";\nimport React, { useEffect, useState } from \"react\";\nimport \"./Nav.css\";\nimport db, { auth } from \"../../firebase\";\nimport { Link } from \"react-router-dom\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport {\n selectFavor,\n selectFavorId,\n setFavorId,\n uploadFavor,\n} from \"../../features/favorSlice\";\nimport { selectUser } from \"../../features/userSlice\";\n\nfunction Nav() {\n const [scrolling, setScrolling] = useState(false);\n const favors = useSelector(selectFavor);\n const user = useSelector(selectUser);\n const favorDispatch = useDispatch();\n const favorId = useSelector(selectFavorId);\n\n useEffect(() => {\n window.addEventListener(\"scroll\", () => {\n if (window.scrollY > 300) {\n setScrolling(true);\n } else {\n setScrolling(false);\n }\n });\n }, []);\n\n useEffect(() => {\n if (favorId === null) {\n db.collection(\"dbfavorite\")\n .doc(user.uid)\n .collection(\"dbmovie\")\n .onSnapshot((snapshot) =>\n favorDispatch(\n uploadFavor(snapshot.docs.map((doc) => doc.data().idmovie))\n )\n );\n\n favorDispatch(setFavorId(false));\n }\n }, [favorId]);\n\n return (\n <div className={`nav ${scrolling && \"scrolling\"}`}>\n <div className=\"nav__content\">\n <div className=\"nav__left\">\n <Link to=\"/\">\n <img\n src=\"https://image.tmdb.org/t/p/original/wwemzKWzjKYJFfCeiB57q3r4Bcm.png\"\n alt=\"\"\n className=\"nav__logo\"\n />\n </Link>\n </div>\n <div className=\"nav__right\">\n <Link className=\"nav__list\" to=\"/favourite\">\n <>\n <MovieFilter />\n <p>{favors?.length}</p>\n </>\n </Link>\n <img\n src=\"https://i.pinimg.com/originals/fb/8e/8a/fb8e8a96fca2f049334f312086a6e2f6.png\"\n alt=\"\"\n className=\"nav__avatar\"\n onClick={() => auth.signOut()}\n />\n </div>\n </div>\n </div>\n );\n}\n\nexport default Nav;\n","/Users/jomarnguyen/Desktop/netflix-publish/src/Login/Login.js",[],["115","116"],"/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Banner/SlideItem/SlideItem.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Row/Row.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/Genres/Genres.js",[],["117","118"],"/Users/jomarnguyen/Desktop/netflix-publish/src/features/genresSlice.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Row/Children/Children.js",["119"],"import React, { useEffect, useState } from \"react\";\nimport \"./Children.css\";\nimport axios from \"../../../dataMovie/axios\";\nimport fetchMovie, { listGenres } from \"../../../dataMovie/request\";\nimport { IconButton } from \"@material-ui/core\";\nimport { Delete } from \"@material-ui/icons\";\nimport { useDispatch } from \"react-redux\";\nimport { removeGenre } from \"../../../features/genresSlice\";\nimport Grandchild from \"../GrandChild/Grandchild\";\n\nfunction Children({ genreId }) {\n const [movies, setMovies] = useState();\n const [titles, setTitles] = useState();\n const genreDispatch = useDispatch();\n\n const getMovie = async () => {\n await axios\n .get(`${fetchMovie.listMovie}${genreId}`)\n .then((res) => setMovies(res.data.results));\n };\n\n useEffect(() => {\n if (genreId) {\n const result = listGenres.find(({ id }) => id.toString() === genreId);\n setTitles(result.name);\n getMovie();\n }\n }, [genreId]);\n\n const handleRemove = () => {\n genreDispatch(removeGenre(genreId));\n };\n\n return (\n <>\n <div className=\"children__title\">\n <h1>{titles}</h1>\n <IconButton onClick={handleRemove}>\n <Delete />\n </IconButton>\n </div>\n <div className=\"children\">\n {movies?.map((movie) => (\n <Grandchild key={movie.id} data={movie} />\n ))}\n </div>\n </>\n );\n}\n\nexport default Children;\n","/Users/jomarnguyen/Desktop/netflix-publish/src/Home/Row/GrandChild/Grandchild.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/features/favorSlice.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/Favourite/ChildFavorite/ChildFavorite.js",["120"],"/Users/jomarnguyen/Desktop/netflix-publish/src/firebase.js",[],"/Users/jomarnguyen/Desktop/netflix-publish/src/features/userSlice.js",[],{"ruleId":"121","replacedBy":"122"},{"ruleId":"123","replacedBy":"124"},{"ruleId":"121","replacedBy":"125"},{"ruleId":"123","replacedBy":"126"},{"ruleId":"127","severity":1,"message":"128","line":24,"column":6,"nodeType":"129","endLine":24,"endColumn":8,"suggestions":"130"},{"ruleId":"121","replacedBy":"131"},{"ruleId":"123","replacedBy":"132"},{"ruleId":"127","severity":1,"message":"133","line":33,"column":6,"nodeType":"129","endLine":33,"endColumn":8,"suggestions":"134"},{"ruleId":"121","replacedBy":"135"},{"ruleId":"123","replacedBy":"136"},{"ruleId":"127","severity":1,"message":"137","line":45,"column":6,"nodeType":"129","endLine":45,"endColumn":15,"suggestions":"138"},{"ruleId":"121","replacedBy":"139"},{"ruleId":"123","replacedBy":"140"},{"ruleId":"121","replacedBy":"141"},{"ruleId":"123","replacedBy":"142"},{"ruleId":"127","severity":1,"message":"143","line":28,"column":6,"nodeType":"129","endLine":28,"endColumn":15,"suggestions":"144"},{"ruleId":"127","severity":1,"message":"145","line":64,"column":6,"nodeType":"129","endLine":64,"endColumn":8,"suggestions":"146"},"no-native-reassign",["147"],"no-negated-in-lhs",["148"],["147"],["148"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'fetch'. Either include it or remove the dependency array.","ArrayExpression",["149"],["147"],["148"],"React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.",["150"],["147"],["148"],"React Hook useEffect has missing dependencies: 'favorDispatch' and 'user.uid'. Either include them or remove the dependency array.",["151"],["147"],["148"],["147"],["148"],"React Hook useEffect has a missing dependency: 'getMovie'. Either include it or remove the dependency array.",["152"],"React Hook useEffect has a missing dependency: 'fetchMovieInfo'. Either include it or remove the dependency array.",["153"],"no-global-assign","no-unsafe-negation",{"desc":"154","fix":"155"},{"desc":"156","fix":"157"},{"desc":"158","fix":"159"},{"desc":"160","fix":"161"},{"desc":"162","fix":"163"},"Update the dependencies array to be: [fetch]",{"range":"164","text":"165"},"Update the dependencies array to be: [dispatch]",{"range":"166","text":"167"},"Update the dependencies array to be: [favorDispatch, favorId, user.uid]",{"range":"168","text":"169"},"Update the dependencies array to be: [genreId, getMovie]",{"range":"170","text":"171"},"Update the dependencies array to be: [fetchMovieInfo]",{"range":"172","text":"173"},[763,765],"[fetch]",[961,963],"[dispatch]",[1204,1213],"[favorDispatch, favorId, user.uid]",[927,936],"[genreId, getMovie]",[1844,1846],"[fetchMovieInfo]"]