├── .gitignore ├── README.md ├── drizzle.config.ts ├── index.html ├── package.json ├── pnpm-lock.yaml ├── public ├── apple-touch-icon-180x180.png ├── favicon.ico ├── favicon.svg ├── maskable-icon-512x512.png ├── pwa-192x192.png ├── pwa-512x512.png └── pwa-64x64.png ├── src ├── components │ ├── CreateFood.tsx │ ├── CreatePlan.tsx │ ├── CreateServing.tsx │ ├── DailyPlanCard.tsx │ ├── FoodEditing.tsx │ ├── ManageServing.tsx │ ├── PlanCard.tsx │ ├── PlanInfo.tsx │ ├── QuantityField.tsx │ ├── SelectFood.tsx │ ├── ServingCard.tsx │ ├── UpdateDailyPlan.tsx │ ├── UpdateFood.tsx │ └── ui │ │ ├── Button.tsx │ │ ├── Dialog.tsx │ │ ├── Icons.tsx │ │ ├── Modal.tsx │ │ ├── NumberField.tsx │ │ ├── Spinner.tsx │ │ └── TextField.tsx ├── drizzle │ ├── 0000_thin_wilson_fisk.sql │ └── meta │ │ ├── 0000_snapshot.json │ │ └── _journal.json ├── hooks │ ├── use-daily-log.ts │ ├── use-daily-plan.ts │ ├── use-foods.ts │ ├── use-pglite-drizzle.ts │ ├── use-plans.ts │ └── use-query.ts ├── machines │ ├── create-plan.ts │ ├── create-serving.ts │ ├── manage-daily-log.ts │ ├── manage-food.ts │ ├── manage-plan.ts │ ├── manage-serving.ts │ ├── number-field.ts │ ├── optional-number-field.ts │ └── text-field.ts ├── main.tsx ├── routeTree.gen.ts ├── routes │ ├── __root.tsx │ ├── index.tsx │ └── plan │ │ └── index.tsx ├── schema │ ├── daily-log.ts │ ├── drizzle.ts │ ├── food.ts │ ├── plan.ts │ ├── serving.ts │ └── shared.ts ├── services │ ├── migrations.ts │ ├── pglite.ts │ └── runtime-client.ts ├── tailwind.css └── utils.ts ├── tsconfig.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/README.md -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /public/apple-touch-icon-180x180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/apple-touch-icon-180x180.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/favicon.svg -------------------------------------------------------------------------------- /public/maskable-icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/maskable-icon-512x512.png -------------------------------------------------------------------------------- /public/pwa-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/pwa-192x192.png -------------------------------------------------------------------------------- /public/pwa-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/pwa-512x512.png -------------------------------------------------------------------------------- /public/pwa-64x64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/public/pwa-64x64.png -------------------------------------------------------------------------------- /src/components/CreateFood.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/CreateFood.tsx -------------------------------------------------------------------------------- /src/components/CreatePlan.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/CreatePlan.tsx -------------------------------------------------------------------------------- /src/components/CreateServing.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/CreateServing.tsx -------------------------------------------------------------------------------- /src/components/DailyPlanCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/DailyPlanCard.tsx -------------------------------------------------------------------------------- /src/components/FoodEditing.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/FoodEditing.tsx -------------------------------------------------------------------------------- /src/components/ManageServing.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ManageServing.tsx -------------------------------------------------------------------------------- /src/components/PlanCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/PlanCard.tsx -------------------------------------------------------------------------------- /src/components/PlanInfo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/PlanInfo.tsx -------------------------------------------------------------------------------- /src/components/QuantityField.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/QuantityField.tsx -------------------------------------------------------------------------------- /src/components/SelectFood.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/SelectFood.tsx -------------------------------------------------------------------------------- /src/components/ServingCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ServingCard.tsx -------------------------------------------------------------------------------- /src/components/UpdateDailyPlan.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/UpdateDailyPlan.tsx -------------------------------------------------------------------------------- /src/components/UpdateFood.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/UpdateFood.tsx -------------------------------------------------------------------------------- /src/components/ui/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/Button.tsx -------------------------------------------------------------------------------- /src/components/ui/Dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/Dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/Icons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/Icons.tsx -------------------------------------------------------------------------------- /src/components/ui/Modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/Modal.tsx -------------------------------------------------------------------------------- /src/components/ui/NumberField.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/NumberField.tsx -------------------------------------------------------------------------------- /src/components/ui/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/Spinner.tsx -------------------------------------------------------------------------------- /src/components/ui/TextField.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/components/ui/TextField.tsx -------------------------------------------------------------------------------- /src/drizzle/0000_thin_wilson_fisk.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/drizzle/0000_thin_wilson_fisk.sql -------------------------------------------------------------------------------- /src/drizzle/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/drizzle/meta/0000_snapshot.json -------------------------------------------------------------------------------- /src/drizzle/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/drizzle/meta/_journal.json -------------------------------------------------------------------------------- /src/hooks/use-daily-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/hooks/use-daily-log.ts -------------------------------------------------------------------------------- /src/hooks/use-daily-plan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/hooks/use-daily-plan.ts -------------------------------------------------------------------------------- /src/hooks/use-foods.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/hooks/use-foods.ts -------------------------------------------------------------------------------- /src/hooks/use-pglite-drizzle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/hooks/use-pglite-drizzle.ts -------------------------------------------------------------------------------- /src/hooks/use-plans.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/hooks/use-plans.ts -------------------------------------------------------------------------------- /src/hooks/use-query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/hooks/use-query.ts -------------------------------------------------------------------------------- /src/machines/create-plan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/create-plan.ts -------------------------------------------------------------------------------- /src/machines/create-serving.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/create-serving.ts -------------------------------------------------------------------------------- /src/machines/manage-daily-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/manage-daily-log.ts -------------------------------------------------------------------------------- /src/machines/manage-food.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/manage-food.ts -------------------------------------------------------------------------------- /src/machines/manage-plan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/manage-plan.ts -------------------------------------------------------------------------------- /src/machines/manage-serving.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/manage-serving.ts -------------------------------------------------------------------------------- /src/machines/number-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/number-field.ts -------------------------------------------------------------------------------- /src/machines/optional-number-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/optional-number-field.ts -------------------------------------------------------------------------------- /src/machines/text-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/machines/text-field.ts -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/routeTree.gen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/routeTree.gen.ts -------------------------------------------------------------------------------- /src/routes/__root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/routes/__root.tsx -------------------------------------------------------------------------------- /src/routes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/routes/index.tsx -------------------------------------------------------------------------------- /src/routes/plan/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/routes/plan/index.tsx -------------------------------------------------------------------------------- /src/schema/daily-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/schema/daily-log.ts -------------------------------------------------------------------------------- /src/schema/drizzle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/schema/drizzle.ts -------------------------------------------------------------------------------- /src/schema/food.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/schema/food.ts -------------------------------------------------------------------------------- /src/schema/plan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/schema/plan.ts -------------------------------------------------------------------------------- /src/schema/serving.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/schema/serving.ts -------------------------------------------------------------------------------- /src/schema/shared.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/schema/shared.ts -------------------------------------------------------------------------------- /src/services/migrations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/services/migrations.ts -------------------------------------------------------------------------------- /src/services/pglite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/services/pglite.ts -------------------------------------------------------------------------------- /src/services/runtime-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/services/runtime-client.ts -------------------------------------------------------------------------------- /src/tailwind.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/tailwind.css -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/typeonce-dev/calories-tracker-local-only-app/HEAD/vite.config.ts --------------------------------------------------------------------------------