├── .gitignore ├── LICENSE ├── README.md ├── components.json ├── db └── db.model.ts ├── eslint.config.mjs ├── lib └── prisma.ts ├── next.config.ts ├── package.json ├── postcss.config.mjs ├── prisma └── schema.prisma ├── public ├── balota-logo.png ├── file.svg ├── globe.svg ├── next.svg ├── tope-gcash.png ├── vercel.svg └── window.svg ├── src ├── app │ ├── api │ │ ├── candidates │ │ │ └── route.ts │ │ ├── lgus │ │ │ └── route.ts │ │ ├── provinces │ │ │ └── route.ts │ │ └── route.ts │ ├── balota │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── voters-education │ │ └── page.tsx ├── components │ ├── AppSidebar.tsx │ ├── CandidateRow.tsx │ ├── LoadingSpinner.tsx │ └── ui │ │ ├── accordion.tsx │ │ ├── button.tsx │ │ ├── collapsible.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── pagination.tsx │ │ ├── select.tsx │ │ ├── separator.tsx │ │ ├── sheet.tsx │ │ ├── sidebar.tsx │ │ ├── skeleton.tsx │ │ ├── table.tsx │ │ └── tooltip.tsx ├── hooks │ └── use-mobile.tsx ├── lib │ ├── openAi.ts │ └── utils.ts ├── models │ ├── Candidate.ts │ ├── LGUInfo.ts │ ├── LocalCandidate.ts │ ├── ProvinceInfo.ts │ ├── candidateDescription.ts │ ├── partylist.ts │ └── senator.ts └── schema │ ├── locationSchema.ts │ └── senatorFilterSchema.ts ├── tailwind.config.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/components.json -------------------------------------------------------------------------------- /db/db.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/db/db.model.ts -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/lib/prisma.ts -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/balota-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/balota-logo.png -------------------------------------------------------------------------------- /public/file.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/file.svg -------------------------------------------------------------------------------- /public/globe.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/globe.svg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/tope-gcash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/tope-gcash.png -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /public/window.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/public/window.svg -------------------------------------------------------------------------------- /src/app/api/candidates/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/api/candidates/route.ts -------------------------------------------------------------------------------- /src/app/api/lgus/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/api/lgus/route.ts -------------------------------------------------------------------------------- /src/app/api/provinces/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/api/provinces/route.ts -------------------------------------------------------------------------------- /src/app/api/route.ts: -------------------------------------------------------------------------------- 1 | 2 | export async function GET() { 3 | return Response.json({hello: "World"}); 4 | } -------------------------------------------------------------------------------- /src/app/balota/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/balota/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/voters-education/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/app/voters-education/page.tsx -------------------------------------------------------------------------------- /src/components/AppSidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/AppSidebar.tsx -------------------------------------------------------------------------------- /src/components/CandidateRow.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/CandidateRow.tsx -------------------------------------------------------------------------------- /src/components/LoadingSpinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/LoadingSpinner.tsx -------------------------------------------------------------------------------- /src/components/ui/accordion.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/accordion.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/collapsible.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/collapsible.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/pagination.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/pagination.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/components/ui/sidebar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/sidebar.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/hooks/use-mobile.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/hooks/use-mobile.tsx -------------------------------------------------------------------------------- /src/lib/openAi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/lib/openAi.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/models/Candidate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/Candidate.ts -------------------------------------------------------------------------------- /src/models/LGUInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/LGUInfo.ts -------------------------------------------------------------------------------- /src/models/LocalCandidate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/LocalCandidate.ts -------------------------------------------------------------------------------- /src/models/ProvinceInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/ProvinceInfo.ts -------------------------------------------------------------------------------- /src/models/candidateDescription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/candidateDescription.ts -------------------------------------------------------------------------------- /src/models/partylist.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/partylist.ts -------------------------------------------------------------------------------- /src/models/senator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/models/senator.ts -------------------------------------------------------------------------------- /src/schema/locationSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/schema/locationSchema.ts -------------------------------------------------------------------------------- /src/schema/senatorFilterSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/src/schema/senatorFilterSchema.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Towphe/balota/HEAD/tsconfig.json --------------------------------------------------------------------------------