├── .env.example ├── .eslintrc.json ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── SELF-HOSTING.md ├── next-env.d.ts ├── next.config.js ├── package.json ├── postcss.config.js ├── prisma └── schema.prisma ├── public ├── favicon.png └── logo.png ├── src ├── components │ ├── Home │ │ ├── Main.tsx │ │ ├── Sidebar.tsx │ │ ├── VideoPlayer.tsx │ │ └── VideoSection.tsx │ ├── Layout │ │ └── Navbar.tsx │ └── Shared │ │ ├── ClickAwayListener.tsx │ │ └── Meta.tsx ├── context │ └── VolumeContext.tsx ├── pages │ ├── 404.tsx │ ├── _app.tsx │ ├── api │ │ ├── auth │ │ │ └── [...nextauth].ts │ │ └── trpc │ │ │ └── [trpc].ts │ ├── index.tsx │ ├── search.tsx │ ├── sign-in.tsx │ ├── upload.tsx │ ├── user │ │ └── [id].tsx │ └── video │ │ └── [id].tsx ├── server │ ├── db │ │ └── client.ts │ └── router │ │ ├── comment.ts │ │ ├── context.ts │ │ ├── follow.ts │ │ ├── index.ts │ │ ├── like.ts │ │ └── video.ts ├── styles │ └── globals.css └── utils │ ├── clipboard.ts │ ├── fetch.ts │ ├── number.ts │ ├── text.ts │ └── trpc.ts ├── tailwind.config.js └── tsconfig.json /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/README.md -------------------------------------------------------------------------------- /SELF-HOSTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/SELF-HOSTING.md -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/public/favicon.png -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/public/logo.png -------------------------------------------------------------------------------- /src/components/Home/Main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Home/Main.tsx -------------------------------------------------------------------------------- /src/components/Home/Sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Home/Sidebar.tsx -------------------------------------------------------------------------------- /src/components/Home/VideoPlayer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Home/VideoPlayer.tsx -------------------------------------------------------------------------------- /src/components/Home/VideoSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Home/VideoSection.tsx -------------------------------------------------------------------------------- /src/components/Layout/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Layout/Navbar.tsx -------------------------------------------------------------------------------- /src/components/Shared/ClickAwayListener.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Shared/ClickAwayListener.tsx -------------------------------------------------------------------------------- /src/components/Shared/Meta.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/components/Shared/Meta.tsx -------------------------------------------------------------------------------- /src/context/VolumeContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/context/VolumeContext.tsx -------------------------------------------------------------------------------- /src/pages/404.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/404.tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /src/pages/api/trpc/[trpc].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/api/trpc/[trpc].ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/search.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/search.tsx -------------------------------------------------------------------------------- /src/pages/sign-in.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/sign-in.tsx -------------------------------------------------------------------------------- /src/pages/upload.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/upload.tsx -------------------------------------------------------------------------------- /src/pages/user/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/user/[id].tsx -------------------------------------------------------------------------------- /src/pages/video/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/pages/video/[id].tsx -------------------------------------------------------------------------------- /src/server/db/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/db/client.ts -------------------------------------------------------------------------------- /src/server/router/comment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/router/comment.ts -------------------------------------------------------------------------------- /src/server/router/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/router/context.ts -------------------------------------------------------------------------------- /src/server/router/follow.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/router/follow.ts -------------------------------------------------------------------------------- /src/server/router/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/router/index.ts -------------------------------------------------------------------------------- /src/server/router/like.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/router/like.ts -------------------------------------------------------------------------------- /src/server/router/video.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/server/router/video.ts -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/utils/clipboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/utils/clipboard.ts -------------------------------------------------------------------------------- /src/utils/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/utils/fetch.ts -------------------------------------------------------------------------------- /src/utils/number.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/utils/number.ts -------------------------------------------------------------------------------- /src/utils/text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/utils/text.ts -------------------------------------------------------------------------------- /src/utils/trpc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/src/utils/trpc.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/napthedev/toptop-clone/HEAD/tsconfig.json --------------------------------------------------------------------------------