first commit
This commit is contained in:
parent
63372c59bf
commit
c434d21c24
6 changed files with 18 additions and 9 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
"extends": "next/core-web-vitals",
|
"extends": "next/core-web-vitals",
|
||||||
"rules": { "react/no-unescaped-entities": 0 }
|
"rules": {
|
||||||
|
"@next/next/no-img-element": "off",
|
||||||
|
"react/no-unescaped-entities": 0 }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,9 @@ export default function Layout({ children }) {
|
||||||
<div className='text-app-pure-white lg:flex'>
|
<div className='text-app-pure-white lg:flex'>
|
||||||
<Navigation />
|
<Navigation />
|
||||||
<main className='mx-0 flex p-1 flex-col py-6 md:m-6 md:px-0 md:pt-0 lg:ml-[10rem] lg:min-w-[800px] lg:grow'>
|
<main className='mx-0 flex p-1 flex-col py-6 md:m-6 md:px-0 md:pt-0 lg:ml-[10rem] lg:min-w-[800px] lg:grow'>
|
||||||
|
|
||||||
<div className='py-1 md:rounded-[10px] head' style={{textAlign:"center"}}>Y.A.P.S [Yet Another Piracy Site]</div>
|
<div className='py-1 md:rounded-[10px] head' style={{textAlign:"center"}}>Y.A.P.S [Yet Another Piracy Site]</div>
|
||||||
|
<br/>
|
||||||
{children}
|
{children}
|
||||||
<Footer />
|
<Footer />
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,13 @@ const Latest = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchMovieList(cat);
|
fetchMovieList(cat);
|
||||||
}, [page])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [page])// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchMovieListRefresh(cat);
|
fetchMovieListRefresh(cat);
|
||||||
setCat(categoryId)
|
setCat(categoryId)
|
||||||
}, [categoryId])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [categoryId])// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
|
||||||
const fetchMovieList = (cat) => {
|
const fetchMovieList = (cat) => {
|
||||||
|
|
||||||
|
|
@ -107,8 +109,8 @@ const Latest = () => {
|
||||||
window.addEventListener('scroll', handleScroll);
|
window.addEventListener('scroll', handleScroll);
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('scroll', handleScroll);
|
window.removeEventListener('scroll', handleScroll);
|
||||||
};
|
};// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [page]);
|
}, [page]);// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ const LendingPage = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
fetchMovieList(categoryId);
|
fetchMovieList(categoryId);
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [page])
|
}, [page])// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
|
||||||
|
|
||||||
const fetchMovieList = (categoryId) => {
|
const fetchMovieList = (categoryId) => {
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,9 @@ const Details = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (router.isReady) {
|
if (router.isReady) {
|
||||||
id = router.query.id;
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
id = router.query.id;// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
slug = router.query.slug;
|
slug = router.query.slug;
|
||||||
if (!id) return null;
|
if (!id) return null;
|
||||||
getDetails()
|
getDetails()
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,8 @@ const Upload = () => {
|
||||||
|
|
||||||
setSelectedOption(_data)
|
setSelectedOption(_data)
|
||||||
return setToken(localStorage.getItem("access_token"));
|
return setToken(localStorage.getItem("access_token"));
|
||||||
}, [])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [])// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
|
|
||||||
},[])
|
},[])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue