FIX STASH

This commit is contained in:
Mr4x3 2023-09-13 20:22:28 +05:30
commit 7a56688ea1
118 changed files with 2541 additions and 171 deletions

0
Common/Card.js Executable file → Normal file
View file

0
Common/CardCompact.js Executable file → Normal file
View file

0
Common/CardExpanded.js Executable file → Normal file
View file

2
Common/CardGrid.js Executable file → Normal file
View file

@ -15,7 +15,7 @@ export function formatBytes(bytes, decimals = 1) {
const CardExpanded = (props) => { const CardExpanded = (props) => {
console.log("pp",props?.blur)
const router = useRouter(); const router = useRouter();
let name = props.item[`name`]; let name = props.item[`name`];
let time = new Date(props.item[`timestamp`]); let time = new Date(props.item[`timestamp`]);

0
Common/Header.js Executable file → Normal file
View file

0
Common/Loader.js Executable file → Normal file
View file

0
Common/SideBar.js Executable file → Normal file
View file

0
Common/ToastMsg.js Executable file → Normal file
View file

128
Common/TorrentList.js Executable file → Normal file
View file

@ -3,7 +3,8 @@ import { useRouter } from 'next/router';
import React from 'react' import React from 'react'
import Modal from "react-modal"; import Modal from "react-modal";
import { formatBytes } from './CardExpanded'; import { formatBytes } from './CardExpanded';
const TorrentList = ({ setisTorrent,torrent_list, runtime }) => { import DataTable,{createTheme} from 'react-data-table-component';
const TorrentList = ({ setisTorrent, torrent_list, runtime }) => {
const router = useRouter() const router = useRouter()
const customStyles = { const customStyles = {
content: { content: {
@ -15,13 +16,111 @@ const TorrentList = ({ setisTorrent,torrent_list, runtime }) => {
transform: 'translate(-50%, -50%)', transform: 'translate(-50%, -50%)',
background: "#171e30", background: "#171e30",
maxHeight: "700px", maxHeight: "700px",
maxWidth: "900px", maxWidth: "1080px",
width: "100%", width: "100%",
borderColor:"#454851", borderColor: "#454851",
}, },
}; };
console.log("torrent_list", torrent_list)
const columns = [
{
name: 'Name',
selector: row => row.name,
sortable:true,
},
{
name: 'Action',
cell:(row, index) => {
let slug = row?.name.toLowerCase().trim().replace(/[^\w\s-]/g, '').replace(/[\s_-]+/g, '-').replace(/^-+|-+$/g, '');
return(
<a onClick={()=>router.push(`/post-detail/${row?.eid}/${slug}/`)}>
Download
</a>
)
},
width:"10%",
style:{
color:"#296ac8",
cursor:"pointer",
}
},
{
name: 'Category',
selector: row => row.category_str,
width:"10%",
sortable:true,
},
{
name: 'Date',
selector: row => moment(row?.last_checked).format("DD-MM-YYYY"),
width:"10%",
sortable:true,
},
{
name: 'Runtime',
selector: row => moment.utc(runtime * 1000).format('HH:mm:ss'),
width:"11%",
sortable:true,
},
{
name: 'Size',
selector: row => formatBytes(row?.size),
sortable:true,
width:"10%",
sortFunction: (a, b) => {
return a.size - b.size;
},
},
{
name: 'S',
selector: row => row?.seeders,
sortable:true,
width:"6%",
style:{
color:"#00FF00",
}
},
{
name: 'L',
selector: row => row.leechers,
sortable:true,
width:"6%",
style:{
color:"#dd0c0e",
}
},
];
createTheme('dark', {
background: {
default: 'transparent',
},
});
const customCss = {
headCells: {
style: {
fontSize:"14px",
fontWeight:"700",
color:"#C2D8D3"
},
},
};
return ( return (
<> <>
@ -29,9 +128,26 @@ const TorrentList = ({ setisTorrent,torrent_list, runtime }) => {
<Modal <Modal
isOpen={true} isOpen={true}
style={customStyles} style={customStyles}
onRequestClose={()=>setisTorrent(false)} onRequestClose={() => setisTorrent(false)}
> >
{ {
torrent_list.length > 0 ?
<DataTable
columns={columns}
data={torrent_list}
theme="dark"
sortable
customStyles={customCss}
/>
: <div className='nosimilar_torrent text-gray-700 '>
<h1>
Sorry Torrent Not Available Try after some days !!!
</h1>
</div>}
{/* {
torrent_list.length>0? torrent_list.length>0?
torrent_list?.map((item, index) => { torrent_list?.map((item, index) => {
return ( return (
@ -85,7 +201,7 @@ const TorrentList = ({ setisTorrent,torrent_list, runtime }) => {
<h1> <h1>
Sorry Torrent Not Available Try after some days !!! Sorry Torrent Not Available Try after some days !!!
</h1> </h1>
</div> } </div> } */}
</Modal> </Modal>
</> </>

0
Common/loader.scss Executable file → Normal file
View file

0
LICENSE Executable file → Normal file
View file

0
SVG/listing.js Executable file → Normal file
View file

0
SVG/search.js Executable file → Normal file
View file

0
assets/icon-tmdb-long.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

0
assets/icon-tmdb-short.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before After
Before After

0
assets/logo.svg Executable file → Normal file
View file

Before

Width:  |  Height:  |  Size: 287 B

After

Width:  |  Height:  |  Size: 287 B

Before After
Before After

0
components/CardGenre.js Executable file → Normal file
View file

0
components/CardImage.js Executable file → Normal file
View file

0
components/CardInfo.js Executable file → Normal file
View file

0
components/CardNormal.js Executable file → Normal file
View file

0
components/CardTrending.js Executable file → Normal file
View file

0
components/Collection.js Executable file → Normal file
View file

0
components/CollectionSearch.js Executable file → Normal file
View file

0
components/FilmCasts.js Executable file → Normal file
View file

0
components/FilmGenres.js Executable file → Normal file
View file

0
components/FilmHeading.js Executable file → Normal file
View file

0
components/FilmImage.js Executable file → Normal file
View file

0
components/FilmInfo.js Executable file → Normal file
View file

0
components/FilmRating.js Executable file → Normal file
View file

0
components/FilmResources.js Executable file → Normal file
View file

0
components/FilmSynopsis.js Executable file → Normal file
View file

0
components/Footer.js Executable file → Normal file
View file

0
components/Genres.js Executable file → Normal file
View file

0
components/Heading.js Executable file → Normal file
View file

6
components/Layout.js Executable file → Normal file
View file

@ -1,16 +1,12 @@
import { useRouter } from 'next/router'
import Footer from './Footer' import Footer from './Footer'
import Navigation from './Navigation' import Navigation from './Navigation'
export default function Layout({ children }) { export default function Layout({ children }) {
const router = useRouter()
return ( return (
<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>
{/* { (router.pathname==="/search" || router?.pathname==="/login") ? null: <div className='py-1 md:rounded-[10px] head' style={{textAlign:"center"}}>Y.A.P.S [Yet Another Piracy Site]</div>} */}
{children} {children}
<Footer /> <Footer />
</main> </main>

0
components/Loading.js Executable file → Normal file
View file

2
components/Navigation.js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function Navigation() {
}, []) }, [])
return ( return (
<nav className='sticky top-0 z-50 flex items-center justify-between bg-app-semi-dark-blue p-5 md:mx-6 md:mt-6 md:mb-[33px] md:rounded-[10px] lg:fixed lg:left-0 lg:mr-0 lg:h-5/6 lg:flex-col lg:py-9'> <nav className='sticky top-0 z-50 flex items-center justify-between bg-app-semi-dark-blue p-5 md:mx-6 md:mt-6 md:mb-[33px] md:rounded-[10px] lg:fixed lg:left-0 lg:mr-0 lg:h-5/6 lg:flex-col lg:py-9'>
<Tooltip id="my-tooltip" place="bottom-start" /> <Tooltip id="my-tooltip" place="bottom-start" events="hover" />
<Link href='/' passHref> <Link href='/' passHref>
<a> <a>
<AppLogo /> <AppLogo />

0
components/NavigationIcon.js Executable file → Normal file
View file

0
components/PageTitle.js Executable file → Normal file
View file

0
components/Pagination.js Executable file → Normal file
View file

0
components/PaginationImproved.js Executable file → Normal file
View file

0
components/SearchBar.js Executable file → Normal file
View file

0
components/SearchButton.js Executable file → Normal file
View file

2
components/icons/AppIcon.js Executable file → Normal file
View file

@ -4,7 +4,7 @@ export default function AppIcon() {
const router = useRouter() const router = useRouter()
return ( return (
<svg <svg
className={`h-[20px] w-[25px] lg:h-[25.6px] lg:w-[32px] icon-nav `} className={`h-[20px] w-[25px] lg:h-[25.6px] lg:w-[32px] ${router.pathname == '/' ? 'active-link' : 'icon-nav'}`}
data-tooltip-id="my-tooltip" data-tooltip-id="my-tooltip"
data-tooltip-content="Home" data-tooltip-content="Home"
width='1em' width='1em'

0
components/icons/IconBookmarkEmpty.js Executable file → Normal file
View file

0
components/icons/IconBookmarkFull.js Executable file → Normal file
View file

0
components/icons/IconCategoryMovie.js Executable file → Normal file
View file

0
components/icons/IconCategoryTv.js Executable file → Normal file
View file

0
components/icons/IconNavBookmark.js Executable file → Normal file
View file

0
components/icons/IconNavHome.js Executable file → Normal file
View file

0
components/icons/IconNavMovie.js Executable file → Normal file
View file

0
components/icons/IconNavTv.js Executable file → Normal file
View file

0
components/icons/IconPlay.js Executable file → Normal file
View file

0
components/icons/IconSearch.js Executable file → Normal file
View file

0
lib/recoil-atoms.js Executable file → Normal file
View file

0
lib/tmdb.js Executable file → Normal file
View file

1
next.config.js Executable file → Normal file
View file

@ -9,7 +9,6 @@ const nextConfig = {
domains: ['source.unsplash.com', 'image.tmdb.org','i.therarbg.com','localhost'], domains: ['source.unsplash.com', 'image.tmdb.org','i.therarbg.com','localhost'],
}, },
reactStrictMode: true, reactStrictMode: true,
runtime: 'edge',
} }
module.exports = nextConfig module.exports = nextConfig

2352
package-lock.json generated

File diff suppressed because it is too large Load diff

1
package.json Executable file → Normal file
View file

@ -16,6 +16,7 @@
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"react": "17.0.2", "react": "17.0.2",
"react-bootstrap": "^2.8.0", "react-bootstrap": "^2.8.0",
"react-data-table-component": "^7.5.4",
"react-dom": "17.0.2", "react-dom": "17.0.2",
"react-icons": "^4.3.1", "react-icons": "^4.3.1",
"react-modal": "^3.16.1", "react-modal": "^3.16.1",

2
pages/404.js Executable file → Normal file
View file

@ -5,7 +5,7 @@ export default function Custom404() {
return ( return (
<div className='my-20 flex flex-col items-center justify-center'> <div className='my-20 flex flex-col items-center justify-center'>
<Head> <Head>
<title>404 - Not Found | Yaps</title> <title>404 - Not Found | Watcho</title>
</Head> </Head>
<h1 className='my-20 text-xl md:text-4xl'>404 - Page Not Found</h1> <h1 className='my-20 text-xl md:text-4xl'>404 - Page Not Found</h1>
<Link href='/' passHref> <Link href='/' passHref>

0
pages/500.js Executable file → Normal file
View file

0
pages/_app.js Executable file → Normal file
View file

0
pages/_document.js Executable file → Normal file
View file

0
pages/api/certification.js Executable file → Normal file
View file

0
pages/api/movie/[id].js Executable file → Normal file
View file

0
pages/api/movie/now/[id].js Executable file → Normal file
View file

0
pages/api/movie/popular/[id].js Executable file → Normal file
View file

0
pages/api/movie/top/[id].js Executable file → Normal file
View file

0
pages/api/movie/trending/[id].js Executable file → Normal file
View file

0
pages/api/movie/upcoming/[id].js Executable file → Normal file
View file

0
pages/api/tv/[id].js Executable file → Normal file
View file

0
pages/api/tv/airing/[id].js Executable file → Normal file
View file

0
pages/api/tv/onair/[id].js Executable file → Normal file
View file

0
pages/api/tv/popular/[id].js Executable file → Normal file
View file

0
pages/api/tv/top/[id].js Executable file → Normal file
View file

0
pages/api/tv/trending/[id].js Executable file → Normal file
View file

0
pages/bookmark.js Executable file → Normal file
View file

4
pages/dashboard.js Executable file → Normal file
View file

@ -23,11 +23,11 @@ const Dashboard = () => {
const getInformation = (token) => { const getInformation = (token) => {
setLoader(true) setLoader(true)
getTorrentList(token).then((res) => { getTorrentList(token).then((res) => {
console.log("log", res?.data)
setList(res?.data?.results) setList(res?.data?.results)
setLoader(false) setLoader(false)
}).catch((err) => { }).catch((err) => {
console.log("res", err)
ToastMsg((err?.response?.data?.message || "something went wrong"), "error") ToastMsg((err?.response?.data?.message || "something went wrong"), "error")
if (err?.response?.status === 401) { if (err?.response?.status === 401) {
localStorage.clear() localStorage.clear()

16
pages/get-posts/[category].js Executable file → Normal file
View file

@ -37,13 +37,11 @@ const Latest = () => {
useEffect(() => { useEffect(() => {
fetchMovieList(cat); fetchMovieList(cat);
// eslint-disable-next-line react-hooks/exhaustive-deps }, [page])
}, [page])// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => { useEffect(() => {
fetchMovieListRefresh(cat); fetchMovieListRefresh(cat);
setCat(categoryId) setCat(categoryId)
// eslint-disable-next-line react-hooks/exhaustive-deps }, [categoryId])
}, [categoryId])// eslint-disable-next-line react-hooks/exhaustive-deps
const fetchMovieList = (cat) => { const fetchMovieList = (cat) => {
@ -51,7 +49,7 @@ const Latest = () => {
let latest = "" let latest = ""
setLoader(true) setLoader(true)
moviesListApi(page, category, latest).then((res) => { moviesListApi(page, category, latest).then((res) => {
console.log("page", res?.data?.results)
setLoader(false) setLoader(false)
setMovieList([...movieList, ...res.data.results]) setMovieList([...movieList, ...res.data.results])
@ -68,7 +66,7 @@ const Latest = () => {
let latest = "" let latest = ""
setLoader(true) setLoader(true)
moviesListApi(page, categoryId, latest).then((res) => { moviesListApi(page, categoryId, latest).then((res) => {
console.log("page", res?.data?.results)
setLoader(false) setLoader(false)
setMovieList(res.data.results) setMovieList(res.data.results)
}).catch((err) => { }).catch((err) => {
@ -83,7 +81,7 @@ const Latest = () => {
e.preventDefault() e.preventDefault()
setLoader(true) setLoader(true)
getSearchResult(search).then((res) => { getSearchResult(search).then((res) => {
console.log("page", res?.data?.results)
setLoader(false) setLoader(false)
setMovieList(res.data.results) setMovieList(res.data.results)
}).catch((err) => { }).catch((err) => {
@ -109,8 +107,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]);// eslint-disable-next-line react-hooks/exhaustive-deps }, [page]);
return ( return (

2
pages/index.js Executable file → Normal file
View file

@ -11,7 +11,7 @@ export default function Home() {
return ( return (
<> <>
<Head> <Head>
<title>Home | Yaps</title> <title>Home | Watcho</title>
</Head> </Head>
<SearchBar searchPath={pathToSearchAll} /> <SearchBar searchPath={pathToSearchAll} />

8
pages/latest-top-10.js Executable file → Normal file
View file

@ -28,19 +28,19 @@ const LendingPage = () => {
useEffect(() => { useEffect(() => {
fetchMovieList(categoryId); fetchMovieList(categoryId);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page])// eslint-disable-next-line react-hooks/exhaustive-deps }, [page])
const fetchMovieList = (categoryId) => { const fetchMovieList = (categoryId) => {
let latest = time ? time : "10D" let latest = time ? time : "10D"
setLoader(true) setLoader(true)
moviesTopListApi(page, categoryId, latest).then((res) => { moviesTopListApi(page, categoryId, latest).then((res) => {
console.log("page", res?.data?.top_posts_by_category)
setLoader(false) setLoader(false)
setMovieList(res?.data?.top_posts_by_category) setMovieList(res?.data?.top_posts_by_category)
}).catch((err) => { }).catch((err) => {
console.log("error", err)
ToastMsg("Some thing went wrong ", "error") ToastMsg("Some thing went wrong ", "error")
setLoader(false) setLoader(false)
}) })

5
pages/login.js Executable file → Normal file
View file

@ -31,6 +31,7 @@ let data ={email:email,password:password}
setLoader(true) setLoader(true)
loginApi(data).then((res)=>{ loginApi(data).then((res)=>{
console.log("res",res.data.access)
handleProfileDetails(res.data.access) handleProfileDetails(res.data.access)
localStorage.setItem("access_token",res.data.access) localStorage.setItem("access_token",res.data.access)
localStorage.setItem("refresh_token",res.data.refresh) localStorage.setItem("refresh_token",res.data.refresh)
@ -38,7 +39,7 @@ setLoader(true)
}).catch((err)=>{ }).catch((err)=>{
setLoader(false) setLoader(false)
console.log(err)
}) })
@ -47,7 +48,7 @@ setLoader(true)
const handleProfileDetails =(token)=>{ const handleProfileDetails =(token)=>{
getProfileDetails(token).then((res)=>{ getProfileDetails(token).then((res)=>{
setLoader(false) setLoader(false)
console.log("resprofile",res.data)
localStorage.setItem("user_profile",JSON.stringify(res?.data)) localStorage.setItem("user_profile",JSON.stringify(res?.data))
if(page==="upload"){ if(page==="upload"){
window.location.href="/upload"; window.location.href="/upload";

0
pages/movie/[id].js Executable file → Normal file
View file

2
pages/movie/genre/[id].js Executable file → Normal file
View file

@ -15,7 +15,7 @@ export default function GenreMovie({ data, id, name, page }) {
return ( return (
<div> <div>
<Head> <Head>
<title>{name} - Movies | Yaps</title> <title>{name} - Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/index.js Executable file → Normal file
View file

@ -8,7 +8,7 @@ export default function Movie({ data }) {
return ( return (
<> <>
<Head> <Head>
<title>Movies | Yaps</title> <title>Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/now/[id].js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function NowPlayingMovies() {
return ( return (
<div> <div>
<Head> <Head>
<title>Now Playing Movies | Yaps</title> <title>Now Playing Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/popular/[id].js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function PopularMovies() {
return ( return (
<div> <div>
<Head> <Head>
<title>Popular Movies | Yaps</title> <title>Popular Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/top/[id].js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function TopRatedMovies() {
return ( return (
<div> <div>
<Head> <Head>
<title>Top Rated Movies | Yaps</title> <title>Top Rated Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/trending/[id].js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function TrendingMovies() {
return ( return (
<div> <div>
<Head> <Head>
<title>Trending Movies | Yaps</title> <title>Trending Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/upcoming.js Executable file → Normal file
View file

@ -22,7 +22,7 @@ export default function UpcomingMovies() {
return ( return (
<div> <div>
<Head> <Head>
<title>Upcoming Movies | Yaps</title> <title>Upcoming Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/movie/upcoming/[id].js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function UpcomingMovies() {
return ( return (
<div> <div>
<Head> <Head>
<title>Upcoming Movies | Yaps</title> <title>Upcoming Movies | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

8
pages/post-detail/[id]/[slug].js Executable file → Normal file
View file

@ -50,9 +50,7 @@ const Details = () => {
useEffect(() => { useEffect(() => {
if (router.isReady) { if (router.isReady) {
// eslint-disable-next-line react-hooks/exhaustive-deps id = router.query.id;
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()
@ -86,7 +84,7 @@ const Details = () => {
setLoader(true) setLoader(true)
let token = localStorage.getItem("access_token") let token = localStorage.getItem("access_token")
getListComment(value, token).then((res) => { getListComment(value, token).then((res) => {
console.log("response", res)
setLoader(false) setLoader(false)
setCommentList(res?.data?.results) setCommentList(res?.data?.results)
}).catch((err) => { }).catch((err) => {
@ -105,7 +103,7 @@ const Details = () => {
comment: comment comment: comment
} }
postComment(data, token).then((res) => { postComment(data, token).then((res) => {
console.log("response", res)
getCommentInfo(eid) getCommentInfo(eid)
}).catch((err) => { }).catch((err) => {
setLoader(false) setLoader(false)

0
pages/register.js Executable file → Normal file
View file

5
pages/search.js Executable file → Normal file
View file

@ -26,7 +26,7 @@ const Home = () => {
setLoader(true) setLoader(true)
getSearchResult(search,checkboxInput).then((res) => { getSearchResult(search,checkboxInput).then((res) => {
setSearchSuccess(true) setSearchSuccess(true)
console.log("page", res?.data?.results)
setLoader(false) setLoader(false)
setMovieList(res.data.results) setMovieList(res.data.results)
}).catch((err) => { }).catch((err) => {
@ -39,7 +39,7 @@ const Home = () => {
} }
const handleCheckboxChange = (event) => { const handleCheckboxChange = (event) => {
const { value, checked } = event.target; const { value, checked } = event.target;
console.log("event",checked,value)
if (checked) { if (checked) {
setCheckboxInput([...checkboxInput, value]); setCheckboxInput([...checkboxInput, value]);
} else { } else {
@ -47,6 +47,7 @@ const Home = () => {
} }
}; };
console.log("pp",checkboxInput)
return ( return (
<div className="container mx-auto py-3 font-medium bg-transparent min-h-screen justify-center text-center font-montserrat"> <div className="container mx-auto py-3 font-medium bg-transparent min-h-screen justify-center text-center font-montserrat">
{loader ? <Loader /> : null} {loader ? <Loader /> : null}

2
pages/search/[id].js Executable file → Normal file
View file

@ -18,7 +18,7 @@ export default function Search({ data, id, page }) {
return ( return (
<> <>
<Head> <Head>
<title>{id} - Search Results | Yaps</title> <title>{id} - Search Results | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies or TV series' placeholder='Search for movies or TV series'

2
pages/search/movie/[id].js Executable file → Normal file
View file

@ -14,7 +14,7 @@ export default function SearchMovie({ data, id, page }) {
return ( return (
<> <>
<Head> <Head>
<title>{id} - Search Results | Yaps</title> <title>{id} - Search Results | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for movies' placeholder='Search for movies'

2
pages/search/tv/[id].js Executable file → Normal file
View file

@ -14,7 +14,7 @@ export default function SearchTV({ data, id, page }) {
return ( return (
<> <>
<Head> <Head>
<title>{id} - Search Results | Yaps</title> <title>{id} - Search Results | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for TV series' placeholder='Search for TV series'

2
pages/tv/[id].js Executable file → Normal file
View file

@ -25,7 +25,7 @@ export default function TV() {
return ( return (
<> <>
<Head> <Head>
<title>{tv.detail.name} | Yaps</title> <title>{tv.detail.name} | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for TV series' placeholder='Search for TV series'

2
pages/tv/airing/[id].js Executable file → Normal file
View file

@ -19,7 +19,7 @@ export default function AiringTVSeries() {
return ( return (
<div> <div>
<Head> <Head>
<title>TV Series Airing Today | Yaps</title> <title>TV Series Airing Today | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for TV Series' placeholder='Search for TV Series'

2
pages/tv/genre/[id].js Executable file → Normal file
View file

@ -15,7 +15,7 @@ export default function GenreTV({ data, id, name, page }) {
return ( return (
<div> <div>
<Head> <Head>
<title>{name} - TV Series | Yaps</title> <title>{name} - TV Series | Watcho</title>
</Head> </Head>
<SearchBar <SearchBar
placeholder='Search for TV series' placeholder='Search for TV series'

Some files were not shown because too many files have changed in this diff Show more