remix-demo

react router (remix) demo

git clone https://9o.is/git/remix-demo.git

ModeNameSize
-rw-r--r--.dockerignore7L
-rw-r--r--.env.example4L
-rw-r--r--.eslintrc.js21L
-rw-r--r--.gitignore11L
-rw-r--r--.npmrc1L
-rw-r--r--.prettierignore11L
-rw-r--r--Dockerfile52L
-rw-r--r--README.md78L
-rw-r--r--app/components/FoodEntries.tsx68L
-rw-r--r--app/components/Heading.tsx3L
-rw-r--r--app/components/MainNavigation.tsx90L
-rw-r--r--app/components/SubHeading.tsx7L
-rw-r--r--app/components/forms/Form.tsx17L
-rw-r--r--app/components/forms/Input.tsx47L
-rw-r--r--app/components/forms/InputCombobox.tsx67L
-rw-r--r--app/components/forms/InputError.tsx12L
-rw-r--r--app/components/forms/PrimaryButton.tsx10L
-rw-r--r--app/components/forms/PrimaryLink.tsx13L
-rw-r--r--app/components/layouts/CenteredLayout.tsx13L
-rw-r--r--app/components/layouts/Timeline.tsx25L
-rw-r--r--app/components/layouts/TwoColumnsLayout.tsx19L
-rw-r--r--app/controllers/adminReport.server.ts48L
-rw-r--r--app/controllers/food.server.ts48L
-rw-r--r--app/controllers/foodEntry.server.ts182L
-rw-r--r--app/controllers/login.server.ts36L
-rw-r--r--app/controllers/report.server.ts30L
-rw-r--r--app/controllers/userInvite.server.ts25L
-rw-r--r--app/db.server.ts36L
-rw-r--r--app/entry.client.tsx22L
-rw-r--r--app/entry.server.tsx53L
-rw-r--r--app/models/foodEntry.server.ts103L
-rw-r--r--app/models/user.server.ts24L
-rw-r--r--app/root.tsx114L
-rw-r--r--app/routes/admin/report.tsx54L
-rw-r--r--app/routes/api/food-entries/$id.ts20L
-rw-r--r--app/routes/api/food-entries/index.ts17L
-rw-r--r--app/routes/api/foods/$name.ts6L
-rw-r--r--app/routes/api/foods/index.ts6L
-rw-r--r--app/routes/food-entries.tsx43L
-rw-r--r--app/routes/food-entries/$id.tsx88L
-rw-r--r--app/routes/food-entries/index.tsx15L
-rw-r--r--app/routes/food-entries/new.tsx105L
-rw-r--r--app/routes/index.tsx9L
-rw-r--r--app/routes/invite/index.tsx42L
-rw-r--r--app/routes/invite/success.tsx16L
-rw-r--r--app/routes/login.tsx36L
-rw-r--r--app/routes/logout.tsx11L
-rw-r--r--app/routes/report.tsx57L
-rw-r--r--app/schemas/foodEntry.ts44L
-rw-r--r--app/schemas/login.ts12L
-rw-r--r--app/schemas/userInvite.ts16L
-rw-r--r--app/services/nutritionix.server.ts65L
-rw-r--r--app/session.server.ts102L
-rw-r--r--app/utils.test.ts7L
-rw-r--r--app/utils/date.ts77L
-rw-r--r--app/utils/hooks.ts42L
-rw-r--r--cypress.config.ts28L
-rw-r--r--cypress/.eslintrc.js6L
-rw-r--r--cypress/e2e/smoke.cy.ts80L
-rw-r--r--cypress/fixtures/example.json5L
-rw-r--r--cypress/support/commands.ts97L
-rw-r--r--cypress/support/create-user.ts35L
-rw-r--r--cypress/support/delete-user.ts34L
-rw-r--r--cypress/support/e2e.ts15L
-rw-r--r--cypress/tsconfig.json29L
-rw-r--r--demo.mp422008243B
-rw-r--r--docker-compose.yml13L
-rw-r--r--mocks/README.md7L
-rw-r--r--mocks/index.js9L
-rw-r--r--package-lock.json29987L
-rw-r--r--package.json108L
-rw-r--r--prisma/schema.prisma38L
-rw-r--r--prisma/seed.ts149L
-rw-r--r--public/favicon.ico16958B
-rw-r--r--remix.config.js7L
-rw-r--r--remix.env.d.ts2L
-rw-r--r--server.ts105L
-rw-r--r--tailwind.config.js8L
-rw-r--r--test/setup-test-env.ts4L
-rw-r--r--tsconfig.json26L
-rw-r--r--vitest.config.ts21L