├── .env.sample ├── .eslintrc.json ├── .gitignore ├── .vscode ├── extensions.json └── settings.json ├── LICENSE ├── README.md ├── app ├── auth │ ├── callback │ │ └── route.ts │ └── components │ │ └── AuthComponent.tsx ├── create │ ├── VoteForm.tsx │ └── page.tsx ├── edit │ └── [id] │ │ ├── EditVoteForm.tsx │ │ └── page.tsx ├── error.tsx ├── favicon.ico ├── globals.css ├── icons.ts ├── layout.tsx ├── not-found.tsx ├── og │ └── route.tsx ├── page.tsx ├── profile │ ├── ProfileTable.tsx │ ├── loading.tsx │ └── page.tsx └── vote │ ├── [id] │ └── page.tsx │ └── components │ ├── CloseForm.tsx │ ├── Comment.tsx │ ├── CommentListener.tsx │ ├── Info.tsx │ ├── MessageLoading.tsx │ ├── Pressence.tsx │ ├── TimeCountDown.tsx │ ├── Vote.tsx │ ├── VoteLoading.tsx │ └── VoteWrapper.tsx ├── components.json ├── components ├── Footer.tsx ├── ListVote.tsx ├── ListVoteLoading.tsx ├── QueryProvider.tsx ├── nav │ ├── LoginForm.tsx │ ├── Logout.tsx │ ├── Navbar.tsx │ └── Profile.tsx ├── theme-provider.tsx └── ui │ ├── alert-dialog.tsx │ ├── alert.tsx │ ├── badge.tsx │ ├── button.tsx │ ├── calendar.tsx │ ├── checkbox.tsx │ ├── dropdown-menu.tsx │ ├── form.tsx │ ├── input.tsx │ ├── label.tsx │ ├── popover.tsx │ ├── sheet.tsx │ ├── skeleton.tsx │ ├── table.tsx │ └── textarea.tsx ├── lib ├── actions │ └── vote.ts ├── constant │ └── index.ts ├── hook │ └── index.ts ├── supabase │ ├── admin.ts │ ├── client.tsx │ └── server.ts ├── types │ ├── index.ts │ └── supabase.ts └── utils.ts ├── middleware.ts ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── SpaceGrotesk-Bold.ttf ├── SpaceGrotesk-Regular.ttf ├── next.svg ├── og.png ├── profile.png └── vercel.svg ├── supabase ├── .gitignore ├── config.toml ├── migrations │ └── 20240316090938_remote_schema.sql └── seed.sql ├── tailwind.config.js └── tsconfig.json /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/.env.sample -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/README.md -------------------------------------------------------------------------------- /app/auth/callback/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/auth/callback/route.ts -------------------------------------------------------------------------------- /app/auth/components/AuthComponent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/auth/components/AuthComponent.tsx -------------------------------------------------------------------------------- /app/create/VoteForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/create/VoteForm.tsx -------------------------------------------------------------------------------- /app/create/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/create/page.tsx -------------------------------------------------------------------------------- /app/edit/[id]/EditVoteForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/edit/[id]/EditVoteForm.tsx -------------------------------------------------------------------------------- /app/edit/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/edit/[id]/page.tsx -------------------------------------------------------------------------------- /app/error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/error.tsx -------------------------------------------------------------------------------- /app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/favicon.ico -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/globals.css -------------------------------------------------------------------------------- /app/icons.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/icons.ts -------------------------------------------------------------------------------- /app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/layout.tsx -------------------------------------------------------------------------------- /app/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/not-found.tsx -------------------------------------------------------------------------------- /app/og/route.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/og/route.tsx -------------------------------------------------------------------------------- /app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/page.tsx -------------------------------------------------------------------------------- /app/profile/ProfileTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/profile/ProfileTable.tsx -------------------------------------------------------------------------------- /app/profile/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/profile/loading.tsx -------------------------------------------------------------------------------- /app/profile/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/profile/page.tsx -------------------------------------------------------------------------------- /app/vote/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/[id]/page.tsx -------------------------------------------------------------------------------- /app/vote/components/CloseForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/CloseForm.tsx -------------------------------------------------------------------------------- /app/vote/components/Comment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/Comment.tsx -------------------------------------------------------------------------------- /app/vote/components/CommentListener.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/CommentListener.tsx -------------------------------------------------------------------------------- /app/vote/components/Info.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/Info.tsx -------------------------------------------------------------------------------- /app/vote/components/MessageLoading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/MessageLoading.tsx -------------------------------------------------------------------------------- /app/vote/components/Pressence.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/Pressence.tsx -------------------------------------------------------------------------------- /app/vote/components/TimeCountDown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/TimeCountDown.tsx -------------------------------------------------------------------------------- /app/vote/components/Vote.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/Vote.tsx -------------------------------------------------------------------------------- /app/vote/components/VoteLoading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/VoteLoading.tsx -------------------------------------------------------------------------------- /app/vote/components/VoteWrapper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/app/vote/components/VoteWrapper.tsx -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components.json -------------------------------------------------------------------------------- /components/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/Footer.tsx -------------------------------------------------------------------------------- /components/ListVote.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ListVote.tsx -------------------------------------------------------------------------------- /components/ListVoteLoading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ListVoteLoading.tsx -------------------------------------------------------------------------------- /components/QueryProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/QueryProvider.tsx -------------------------------------------------------------------------------- /components/nav/LoginForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/nav/LoginForm.tsx -------------------------------------------------------------------------------- /components/nav/Logout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/nav/Logout.tsx -------------------------------------------------------------------------------- /components/nav/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/nav/Navbar.tsx -------------------------------------------------------------------------------- /components/nav/Profile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/nav/Profile.tsx -------------------------------------------------------------------------------- /components/theme-provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/theme-provider.tsx -------------------------------------------------------------------------------- /components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /components/ui/alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/alert.tsx -------------------------------------------------------------------------------- /components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/badge.tsx -------------------------------------------------------------------------------- /components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/button.tsx -------------------------------------------------------------------------------- /components/ui/calendar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/calendar.tsx -------------------------------------------------------------------------------- /components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/form.tsx -------------------------------------------------------------------------------- /components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/input.tsx -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/label.tsx -------------------------------------------------------------------------------- /components/ui/popover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/popover.tsx -------------------------------------------------------------------------------- /components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/sheet.tsx -------------------------------------------------------------------------------- /components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/table.tsx -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/components/ui/textarea.tsx -------------------------------------------------------------------------------- /lib/actions/vote.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/actions/vote.ts -------------------------------------------------------------------------------- /lib/constant/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/constant/index.ts -------------------------------------------------------------------------------- /lib/hook/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/hook/index.ts -------------------------------------------------------------------------------- /lib/supabase/admin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/supabase/admin.ts -------------------------------------------------------------------------------- /lib/supabase/client.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/supabase/client.tsx -------------------------------------------------------------------------------- /lib/supabase/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/supabase/server.ts -------------------------------------------------------------------------------- /lib/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/types/index.ts -------------------------------------------------------------------------------- /lib/types/supabase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/types/supabase.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/SpaceGrotesk-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/public/SpaceGrotesk-Bold.ttf -------------------------------------------------------------------------------- /public/SpaceGrotesk-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/public/SpaceGrotesk-Regular.ttf -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/og.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/public/og.png -------------------------------------------------------------------------------- /public/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/public/profile.png -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /supabase/.gitignore: -------------------------------------------------------------------------------- 1 | # Supabase 2 | .branches 3 | .temp 4 | .env 5 | -------------------------------------------------------------------------------- /supabase/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/supabase/config.toml -------------------------------------------------------------------------------- /supabase/migrations/20240316090938_remote_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/supabase/migrations/20240316090938_remote_schema.sql -------------------------------------------------------------------------------- /supabase/seed.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chensokheng/next-supabase-vote/HEAD/tsconfig.json --------------------------------------------------------------------------------