virastack 0.0.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +94 -18
- package/bin/virastack.js +7 -0
- package/package.json +43 -9
- package/src/commands/add.js +64 -0
- package/src/commands/init.js +286 -0
- package/src/i18n.js +231 -0
- package/src/index.js +64 -0
- package/src/utils/args.js +60 -0
- package/src/utils/copy-template.js +81 -0
- package/src/utils/exec.js +29 -0
- package/src/utils/git.js +38 -0
- package/src/utils/is-online.js +14 -0
- package/src/utils/package-info.js +12 -0
- package/src/utils/package-manager.js +33 -0
- package/src/utils/setup-env.js +25 -0
- package/src/utils/telemetry.js +86 -0
- package/src/utils/tools.js +48 -0
- package/src/utils/update-package-json.js +44 -0
- package/src/utils/update-readme.js +25 -0
- package/src/utils/validate-project-name.js +26 -0
- package/templates/nextjs/.changeset/README.md +8 -0
- package/templates/nextjs/.changeset/config.json +11 -0
- package/templates/nextjs/.env.example +6 -0
- package/templates/nextjs/.env.local +6 -0
- package/templates/nextjs/.eslintcache +1 -0
- package/templates/nextjs/.github/workflows/ci.yml +41 -0
- package/templates/nextjs/.husky/commit-msg +1 -0
- package/templates/nextjs/.husky/pre-commit +1 -0
- package/templates/nextjs/.husky/pre-push +1 -0
- package/templates/nextjs/.prettierignore +6 -0
- package/templates/nextjs/.prettierrc +42 -0
- package/templates/nextjs/.vscode/extensions.json +7 -0
- package/templates/nextjs/.vscode/settings.json +20 -0
- package/templates/nextjs/LICENSE +21 -0
- package/templates/nextjs/README.md +202 -0
- package/templates/nextjs/_gitignore +45 -0
- package/templates/nextjs/commitlint.config.js +6 -0
- package/templates/nextjs/eslint.config.mjs +27 -0
- package/templates/nextjs/knip.config.js +25 -0
- package/templates/nextjs/next-env.d.ts +6 -0
- package/templates/nextjs/next.config.ts +39 -0
- package/templates/nextjs/package.json +115 -0
- package/templates/nextjs/pnpm-lock.yaml +6467 -0
- package/templates/nextjs/pnpm-workspace.yaml +3 -0
- package/templates/nextjs/postcss.config.mjs +7 -0
- package/templates/nextjs/public/favicon.ico +0 -0
- package/templates/nextjs/public/llms.txt +96 -0
- package/templates/nextjs/public/logo.png +0 -0
- package/templates/nextjs/public/logo.webp +0 -0
- package/templates/nextjs/public/og.png +0 -0
- package/templates/nextjs/src/app/error.tsx +34 -0
- package/templates/nextjs/src/app/favicon.ico +0 -0
- package/templates/nextjs/src/app/global-error.tsx +32 -0
- package/templates/nextjs/src/app/layout.tsx +37 -0
- package/templates/nextjs/src/app/loading.tsx +12 -0
- package/templates/nextjs/src/app/manifest.ts +22 -0
- package/templates/nextjs/src/app/not-found.tsx +18 -0
- package/templates/nextjs/src/app/page.tsx +5 -0
- package/templates/nextjs/src/app/robots.ts +13 -0
- package/templates/nextjs/src/app/sitemap.ts +14 -0
- package/templates/nextjs/src/components/shared/ThemeToggle.tsx +30 -0
- package/templates/nextjs/src/components/ui/avatar.tsx +54 -0
- package/templates/nextjs/src/components/ui/button.tsx +46 -0
- package/templates/nextjs/src/components/ui/dialog.tsx +107 -0
- package/templates/nextjs/src/components/ui/field.tsx +24 -0
- package/templates/nextjs/src/components/ui/index.ts +27 -0
- package/templates/nextjs/src/components/ui/input.tsx +23 -0
- package/templates/nextjs/src/components/ui/label.tsx +17 -0
- package/templates/nextjs/src/components/ui/skeleton.tsx +13 -0
- package/templates/nextjs/src/components/ui/table.tsx +94 -0
- package/templates/nextjs/src/components/ui/tabs.tsx +46 -0
- package/templates/nextjs/src/config/seo.config.ts +37 -0
- package/templates/nextjs/src/config/site.config.ts +15 -0
- package/templates/nextjs/src/constants/index.ts +5 -0
- package/templates/nextjs/src/env.ts +41 -0
- package/templates/nextjs/src/features/landing/api/get-users.api.ts +7 -0
- package/templates/nextjs/src/features/landing/api/index.ts +2 -0
- package/templates/nextjs/src/features/landing/api/query-keys.ts +7 -0
- package/templates/nextjs/src/features/landing/components/CartDemo.tsx +66 -0
- package/templates/nextjs/src/features/landing/components/Features.tsx +39 -0
- package/templates/nextjs/src/features/landing/components/Hero.tsx +65 -0
- package/templates/nextjs/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates/nextjs/src/features/landing/components/ProjectFormDemo.tsx +62 -0
- package/templates/nextjs/src/features/landing/components/Reveal.tsx +83 -0
- package/templates/nextjs/src/features/landing/components/Showcase.tsx +66 -0
- package/templates/nextjs/src/features/landing/components/UsersDemo.tsx +188 -0
- package/templates/nextjs/src/features/landing/data/features.data.tsx +47 -0
- package/templates/nextjs/src/features/landing/data/index.ts +1 -0
- package/templates/nextjs/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates/nextjs/src/features/landing/helpers/index.ts +7 -0
- package/templates/nextjs/src/features/landing/helpers/motion.ts +21 -0
- package/templates/nextjs/src/features/landing/hooks/index.ts +1 -0
- package/templates/nextjs/src/features/landing/hooks/use-users.ts +16 -0
- package/templates/nextjs/src/features/landing/icons/index.ts +6 -0
- package/templates/nextjs/src/features/landing/icons/nextjs.tsx +68 -0
- package/templates/nextjs/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates/nextjs/src/features/landing/icons/react.tsx +20 -0
- package/templates/nextjs/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates/nextjs/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates/nextjs/src/features/landing/icons/typescript.tsx +16 -0
- package/templates/nextjs/src/features/landing/index.ts +1 -0
- package/templates/nextjs/src/features/landing/schemas/index.ts +1 -0
- package/templates/nextjs/src/features/landing/schemas/project.schema.ts +7 -0
- package/templates/nextjs/src/features/landing/stores/counter.store.ts +18 -0
- package/templates/nextjs/src/features/landing/stores/index.ts +1 -0
- package/templates/nextjs/src/features/landing/types/index.ts +1 -0
- package/templates/nextjs/src/features/landing/types/user.types.ts +9 -0
- package/templates/nextjs/src/helpers/format-date.ts +13 -0
- package/templates/nextjs/src/helpers/index.ts +1 -0
- package/templates/nextjs/src/hooks/index.ts +5 -0
- package/templates/nextjs/src/lib/api.ts +97 -0
- package/templates/nextjs/src/lib/query-client.ts +18 -0
- package/templates/nextjs/src/lib/utils.ts +12 -0
- package/templates/nextjs/src/providers/Providers.tsx +15 -0
- package/templates/nextjs/src/providers/QueryProvider.tsx +19 -0
- package/templates/nextjs/src/providers/ThemeProvider.tsx +9 -0
- package/templates/nextjs/src/providers/index.ts +1 -0
- package/templates/nextjs/src/proxy.ts +6 -0
- package/templates/nextjs/src/schemas/index.ts +5 -0
- package/templates/nextjs/src/stores/index.ts +5 -0
- package/templates/nextjs/src/styles/tailwind.css +122 -0
- package/templates/nextjs/src/types/site-config.types.ts +10 -0
- package/templates/nextjs/tsconfig.json +45 -0
- package/templates/nextjs/tsconfig.tsbuildinfo +1 -0
- package/templates/tanstack/.changeset/README.md +8 -0
- package/templates/tanstack/.changeset/config.json +11 -0
- package/templates/tanstack/.env.example +6 -0
- package/templates/tanstack/.env.local +6 -0
- package/templates/tanstack/.eslintcache +1 -0
- package/templates/tanstack/.github/workflows/ci.yml +41 -0
- package/templates/tanstack/.husky/commit-msg +1 -0
- package/templates/tanstack/.husky/pre-commit +1 -0
- package/templates/tanstack/.husky/pre-push +1 -0
- package/templates/tanstack/.prettierignore +7 -0
- package/templates/tanstack/.prettierrc +41 -0
- package/templates/tanstack/.vscode/extensions.json +7 -0
- package/templates/tanstack/.vscode/settings.json +22 -0
- package/templates/tanstack/LICENSE +21 -0
- package/templates/tanstack/README.md +204 -0
- package/templates/tanstack/_gitignore +52 -0
- package/templates/tanstack/commitlint.config.js +6 -0
- package/templates/tanstack/eslint.config.js +28 -0
- package/templates/tanstack/knip.config.js +22 -0
- package/templates/tanstack/package.json +130 -0
- package/templates/tanstack/pnpm-lock.yaml +5835 -0
- package/templates/tanstack/pnpm-workspace.yaml +3 -0
- package/templates/tanstack/public/favicon.ico +0 -0
- package/templates/tanstack/public/llms.txt +86 -0
- package/templates/tanstack/public/logo.png +0 -0
- package/templates/tanstack/public/logo.webp +0 -0
- package/templates/tanstack/public/og.png +0 -0
- package/templates/tanstack/src/components/shared/DefaultCatchBoundary.tsx +36 -0
- package/templates/tanstack/src/components/shared/NotFound.tsx +18 -0
- package/templates/tanstack/src/components/shared/Pending.tsx +13 -0
- package/templates/tanstack/src/components/shared/ThemeToggle.tsx +31 -0
- package/templates/tanstack/src/components/ui/avatar.tsx +52 -0
- package/templates/tanstack/src/components/ui/button.tsx +47 -0
- package/templates/tanstack/src/components/ui/dialog.tsx +107 -0
- package/templates/tanstack/src/components/ui/field.tsx +24 -0
- package/templates/tanstack/src/components/ui/index.ts +27 -0
- package/templates/tanstack/src/components/ui/input.tsx +23 -0
- package/templates/tanstack/src/components/ui/label.tsx +17 -0
- package/templates/tanstack/src/components/ui/skeleton.tsx +13 -0
- package/templates/tanstack/src/components/ui/table.tsx +94 -0
- package/templates/tanstack/src/components/ui/tabs.tsx +46 -0
- package/templates/tanstack/src/config/seo.config.ts +52 -0
- package/templates/tanstack/src/config/site.config.ts +15 -0
- package/templates/tanstack/src/constants/index.ts +5 -0
- package/templates/tanstack/src/env.ts +47 -0
- package/templates/tanstack/src/features/landing/api/get-users.api.ts +7 -0
- package/templates/tanstack/src/features/landing/api/index.ts +2 -0
- package/templates/tanstack/src/features/landing/api/query-keys.ts +7 -0
- package/templates/tanstack/src/features/landing/components/CartDemo.tsx +66 -0
- package/templates/tanstack/src/features/landing/components/Features.tsx +39 -0
- package/templates/tanstack/src/features/landing/components/Hero.tsx +63 -0
- package/templates/tanstack/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates/tanstack/src/features/landing/components/ProjectFormDemo.tsx +63 -0
- package/templates/tanstack/src/features/landing/components/Reveal.tsx +83 -0
- package/templates/tanstack/src/features/landing/components/Showcase.tsx +66 -0
- package/templates/tanstack/src/features/landing/components/UsersDemo.tsx +191 -0
- package/templates/tanstack/src/features/landing/data/features.data.tsx +45 -0
- package/templates/tanstack/src/features/landing/data/index.ts +1 -0
- package/templates/tanstack/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates/tanstack/src/features/landing/helpers/index.ts +7 -0
- package/templates/tanstack/src/features/landing/helpers/motion.ts +21 -0
- package/templates/tanstack/src/features/landing/hooks/index.ts +1 -0
- package/templates/tanstack/src/features/landing/hooks/use-users.ts +19 -0
- package/templates/tanstack/src/features/landing/icons/index.ts +5 -0
- package/templates/tanstack/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates/tanstack/src/features/landing/icons/react.tsx +20 -0
- package/templates/tanstack/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates/tanstack/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates/tanstack/src/features/landing/icons/typescript.tsx +16 -0
- package/templates/tanstack/src/features/landing/index.ts +1 -0
- package/templates/tanstack/src/features/landing/schemas/index.ts +1 -0
- package/templates/tanstack/src/features/landing/schemas/project.schema.ts +7 -0
- package/templates/tanstack/src/features/landing/stores/counter.store.ts +18 -0
- package/templates/tanstack/src/features/landing/stores/index.ts +1 -0
- package/templates/tanstack/src/features/landing/types/index.ts +1 -0
- package/templates/tanstack/src/features/landing/types/user.types.ts +9 -0
- package/templates/tanstack/src/helpers/format-date.ts +13 -0
- package/templates/tanstack/src/helpers/index.ts +1 -0
- package/templates/tanstack/src/hooks/index.ts +5 -0
- package/templates/tanstack/src/lib/api.ts +97 -0
- package/templates/tanstack/src/lib/query-client.ts +18 -0
- package/templates/tanstack/src/lib/utils.ts +13 -0
- package/templates/tanstack/src/providers/Providers.tsx +12 -0
- package/templates/tanstack/src/providers/ThemeProvider.tsx +98 -0
- package/templates/tanstack/src/providers/devtools.tsx +6 -0
- package/templates/tanstack/src/providers/index.ts +1 -0
- package/templates/tanstack/src/providers/root-provider.ts +9 -0
- package/templates/tanstack/src/routeTree.gen.ts +123 -0
- package/templates/tanstack/src/router.tsx +27 -0
- package/templates/tanstack/src/routes/__root.tsx +78 -0
- package/templates/tanstack/src/routes/index.tsx +13 -0
- package/templates/tanstack/src/routes/robots[.]txt.ts +21 -0
- package/templates/tanstack/src/routes/site[.]webmanifest.ts +32 -0
- package/templates/tanstack/src/routes/sitemap[.]xml.ts +27 -0
- package/templates/tanstack/src/schemas/index.ts +5 -0
- package/templates/tanstack/src/start.ts +20 -0
- package/templates/tanstack/src/stores/index.ts +5 -0
- package/templates/tanstack/src/styles/tailwind.css +123 -0
- package/templates/tanstack/src/types/site-config.types.ts +10 -0
- package/templates/tanstack/tsconfig.json +25 -0
- package/templates/tanstack/tsr.config.json +3 -0
- package/templates/tanstack/vite.config.ts +12 -0
- package/templates-i18n/nextjs/.changeset/README.md +8 -0
- package/templates-i18n/nextjs/.changeset/config.json +11 -0
- package/templates-i18n/nextjs/.env.example +6 -0
- package/templates-i18n/nextjs/.eslintcache +1 -0
- package/templates-i18n/nextjs/.github/workflows/ci.yml +41 -0
- package/templates-i18n/nextjs/.husky/commit-msg +1 -0
- package/templates-i18n/nextjs/.husky/pre-commit +1 -0
- package/templates-i18n/nextjs/.husky/pre-push +1 -0
- package/templates-i18n/nextjs/.prettierignore +6 -0
- package/templates-i18n/nextjs/.prettierrc +42 -0
- package/templates-i18n/nextjs/.vscode/extensions.json +7 -0
- package/templates-i18n/nextjs/.vscode/settings.json +20 -0
- package/templates-i18n/nextjs/LICENSE +21 -0
- package/templates-i18n/nextjs/README.md +202 -0
- package/templates-i18n/nextjs/_gitignore +45 -0
- package/templates-i18n/nextjs/commitlint.config.js +6 -0
- package/templates-i18n/nextjs/eslint.config.mjs +27 -0
- package/templates-i18n/nextjs/knip.config.js +29 -0
- package/templates-i18n/nextjs/next-env.d.ts +6 -0
- package/templates-i18n/nextjs/next.config.ts +42 -0
- package/templates-i18n/nextjs/package.json +117 -0
- package/templates-i18n/nextjs/pnpm-lock.yaml +6854 -0
- package/templates-i18n/nextjs/pnpm-workspace.yaml +3 -0
- package/templates-i18n/nextjs/postcss.config.mjs +7 -0
- package/templates-i18n/nextjs/public/favicon.ico +0 -0
- package/templates-i18n/nextjs/public/llms.txt +96 -0
- package/templates-i18n/nextjs/public/logo.png +0 -0
- package/templates-i18n/nextjs/public/logo.webp +0 -0
- package/templates-i18n/nextjs/public/og.png +0 -0
- package/templates-i18n/nextjs/src/app/[locale]/error.tsx +34 -0
- package/templates-i18n/nextjs/src/app/[locale]/layout.tsx +60 -0
- package/templates-i18n/nextjs/src/app/[locale]/loading.tsx +12 -0
- package/templates-i18n/nextjs/src/app/[locale]/not-found.tsx +18 -0
- package/templates-i18n/nextjs/src/app/[locale]/page.tsx +10 -0
- package/templates-i18n/nextjs/src/app/favicon.ico +0 -0
- package/templates-i18n/nextjs/src/app/global-error.tsx +32 -0
- package/templates-i18n/nextjs/src/app/manifest.ts +22 -0
- package/templates-i18n/nextjs/src/app/robots.ts +13 -0
- package/templates-i18n/nextjs/src/app/sitemap.ts +14 -0
- package/templates-i18n/nextjs/src/components/shared/LanguageSwitcher.tsx +48 -0
- package/templates-i18n/nextjs/src/components/shared/ThemeToggle.tsx +30 -0
- package/templates-i18n/nextjs/src/components/ui/avatar.tsx +54 -0
- package/templates-i18n/nextjs/src/components/ui/button.tsx +46 -0
- package/templates-i18n/nextjs/src/components/ui/dialog.tsx +107 -0
- package/templates-i18n/nextjs/src/components/ui/field.tsx +24 -0
- package/templates-i18n/nextjs/src/components/ui/index.ts +27 -0
- package/templates-i18n/nextjs/src/components/ui/input.tsx +23 -0
- package/templates-i18n/nextjs/src/components/ui/label.tsx +17 -0
- package/templates-i18n/nextjs/src/components/ui/skeleton.tsx +13 -0
- package/templates-i18n/nextjs/src/components/ui/table.tsx +94 -0
- package/templates-i18n/nextjs/src/components/ui/tabs.tsx +46 -0
- package/templates-i18n/nextjs/src/config/seo.config.ts +37 -0
- package/templates-i18n/nextjs/src/config/site.config.ts +15 -0
- package/templates-i18n/nextjs/src/constants/index.ts +5 -0
- package/templates-i18n/nextjs/src/env.ts +41 -0
- package/templates-i18n/nextjs/src/features/landing/api/get-users.api.ts +7 -0
- package/templates-i18n/nextjs/src/features/landing/api/index.ts +2 -0
- package/templates-i18n/nextjs/src/features/landing/api/query-keys.ts +7 -0
- package/templates-i18n/nextjs/src/features/landing/components/CartDemo.tsx +68 -0
- package/templates-i18n/nextjs/src/features/landing/components/Features.tsx +84 -0
- package/templates-i18n/nextjs/src/features/landing/components/Hero.tsx +76 -0
- package/templates-i18n/nextjs/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates-i18n/nextjs/src/features/landing/components/ProjectFormDemo.tsx +64 -0
- package/templates-i18n/nextjs/src/features/landing/components/Reveal.tsx +83 -0
- package/templates-i18n/nextjs/src/features/landing/components/Showcase.tsx +83 -0
- package/templates-i18n/nextjs/src/features/landing/components/UsersDemo.tsx +191 -0
- package/templates-i18n/nextjs/src/features/landing/data/features.data.tsx +47 -0
- package/templates-i18n/nextjs/src/features/landing/data/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates-i18n/nextjs/src/features/landing/helpers/index.ts +7 -0
- package/templates-i18n/nextjs/src/features/landing/helpers/motion.ts +21 -0
- package/templates-i18n/nextjs/src/features/landing/hooks/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/hooks/use-users.ts +16 -0
- package/templates-i18n/nextjs/src/features/landing/icons/index.ts +6 -0
- package/templates-i18n/nextjs/src/features/landing/icons/nextjs.tsx +68 -0
- package/templates-i18n/nextjs/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates-i18n/nextjs/src/features/landing/icons/react.tsx +20 -0
- package/templates-i18n/nextjs/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates-i18n/nextjs/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates-i18n/nextjs/src/features/landing/icons/typescript.tsx +16 -0
- package/templates-i18n/nextjs/src/features/landing/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/schemas/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/schemas/project.schema.ts +9 -0
- package/templates-i18n/nextjs/src/features/landing/stores/counter.store.ts +18 -0
- package/templates-i18n/nextjs/src/features/landing/stores/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/types/index.ts +1 -0
- package/templates-i18n/nextjs/src/features/landing/types/user.types.ts +9 -0
- package/templates-i18n/nextjs/src/helpers/format-date.ts +13 -0
- package/templates-i18n/nextjs/src/helpers/index.ts +1 -0
- package/templates-i18n/nextjs/src/hooks/index.ts +5 -0
- package/templates-i18n/nextjs/src/i18n/request.ts +16 -0
- package/templates-i18n/nextjs/src/i18n/routing.ts +11 -0
- package/templates-i18n/nextjs/src/lib/api.ts +97 -0
- package/templates-i18n/nextjs/src/lib/query-client.ts +18 -0
- package/templates-i18n/nextjs/src/lib/utils.ts +12 -0
- package/templates-i18n/nextjs/src/messages/en.json +55 -0
- package/templates-i18n/nextjs/src/messages/tr.json +55 -0
- package/templates-i18n/nextjs/src/providers/Providers.tsx +15 -0
- package/templates-i18n/nextjs/src/providers/QueryProvider.tsx +19 -0
- package/templates-i18n/nextjs/src/providers/ThemeProvider.tsx +9 -0
- package/templates-i18n/nextjs/src/providers/index.ts +1 -0
- package/templates-i18n/nextjs/src/proxy.ts +16 -0
- package/templates-i18n/nextjs/src/schemas/index.ts +5 -0
- package/templates-i18n/nextjs/src/stores/index.ts +5 -0
- package/templates-i18n/nextjs/src/styles/tailwind.css +122 -0
- package/templates-i18n/nextjs/src/types/site-config.types.ts +10 -0
- package/templates-i18n/nextjs/tsconfig.json +45 -0
- package/templates-i18n/nextjs/tsconfig.tsbuildinfo +1 -0
- package/templates-i18n/tanstack/.changeset/README.md +8 -0
- package/templates-i18n/tanstack/.changeset/config.json +11 -0
- package/templates-i18n/tanstack/.env.example +6 -0
- package/templates-i18n/tanstack/.eslintcache +1 -0
- package/templates-i18n/tanstack/.github/workflows/ci.yml +41 -0
- package/templates-i18n/tanstack/.husky/commit-msg +1 -0
- package/templates-i18n/tanstack/.husky/pre-commit +1 -0
- package/templates-i18n/tanstack/.husky/pre-push +1 -0
- package/templates-i18n/tanstack/.prettierignore +7 -0
- package/templates-i18n/tanstack/.prettierrc +41 -0
- package/templates-i18n/tanstack/.vscode/extensions.json +7 -0
- package/templates-i18n/tanstack/.vscode/settings.json +22 -0
- package/templates-i18n/tanstack/LICENSE +21 -0
- package/templates-i18n/tanstack/README.md +204 -0
- package/templates-i18n/tanstack/_gitignore +52 -0
- package/templates-i18n/tanstack/commitlint.config.js +6 -0
- package/templates-i18n/tanstack/eslint.config.js +29 -0
- package/templates-i18n/tanstack/knip.config.js +26 -0
- package/templates-i18n/tanstack/messages/en.json +65 -0
- package/templates-i18n/tanstack/messages/tr.json +65 -0
- package/templates-i18n/tanstack/package.json +132 -0
- package/templates-i18n/tanstack/pnpm-lock.yaml +5998 -0
- package/templates-i18n/tanstack/pnpm-workspace.yaml +3 -0
- package/templates-i18n/tanstack/project.inlang/README.md +157 -0
- package/templates-i18n/tanstack/project.inlang/settings.json +9 -0
- package/templates-i18n/tanstack/public/favicon.ico +0 -0
- package/templates-i18n/tanstack/public/llms.txt +86 -0
- package/templates-i18n/tanstack/public/logo.png +0 -0
- package/templates-i18n/tanstack/public/logo.webp +0 -0
- package/templates-i18n/tanstack/public/og.png +0 -0
- package/templates-i18n/tanstack/src/components/shared/DefaultCatchBoundary.tsx +36 -0
- package/templates-i18n/tanstack/src/components/shared/LanguageSwitcher.tsx +57 -0
- package/templates-i18n/tanstack/src/components/shared/NotFound.tsx +18 -0
- package/templates-i18n/tanstack/src/components/shared/Pending.tsx +13 -0
- package/templates-i18n/tanstack/src/components/shared/ThemeToggle.tsx +31 -0
- package/templates-i18n/tanstack/src/components/ui/avatar.tsx +52 -0
- package/templates-i18n/tanstack/src/components/ui/button.tsx +47 -0
- package/templates-i18n/tanstack/src/components/ui/dialog.tsx +107 -0
- package/templates-i18n/tanstack/src/components/ui/field.tsx +24 -0
- package/templates-i18n/tanstack/src/components/ui/index.ts +27 -0
- package/templates-i18n/tanstack/src/components/ui/input.tsx +23 -0
- package/templates-i18n/tanstack/src/components/ui/label.tsx +17 -0
- package/templates-i18n/tanstack/src/components/ui/skeleton.tsx +13 -0
- package/templates-i18n/tanstack/src/components/ui/table.tsx +94 -0
- package/templates-i18n/tanstack/src/components/ui/tabs.tsx +46 -0
- package/templates-i18n/tanstack/src/config/seo.config.ts +52 -0
- package/templates-i18n/tanstack/src/config/site.config.ts +15 -0
- package/templates-i18n/tanstack/src/constants/index.ts +5 -0
- package/templates-i18n/tanstack/src/env.ts +47 -0
- package/templates-i18n/tanstack/src/features/landing/api/get-users.api.ts +7 -0
- package/templates-i18n/tanstack/src/features/landing/api/index.ts +2 -0
- package/templates-i18n/tanstack/src/features/landing/api/query-keys.ts +7 -0
- package/templates-i18n/tanstack/src/features/landing/components/CartDemo.tsx +67 -0
- package/templates-i18n/tanstack/src/features/landing/components/Features.tsx +79 -0
- package/templates-i18n/tanstack/src/features/landing/components/Hero.tsx +68 -0
- package/templates-i18n/tanstack/src/features/landing/components/LandingPage.tsx +17 -0
- package/templates-i18n/tanstack/src/features/landing/components/ProjectFormDemo.tsx +64 -0
- package/templates-i18n/tanstack/src/features/landing/components/Reveal.tsx +83 -0
- package/templates-i18n/tanstack/src/features/landing/components/Showcase.tsx +81 -0
- package/templates-i18n/tanstack/src/features/landing/components/UsersDemo.tsx +191 -0
- package/templates-i18n/tanstack/src/features/landing/data/features.data.tsx +45 -0
- package/templates-i18n/tanstack/src/features/landing/data/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/helpers/get-initials.ts +15 -0
- package/templates-i18n/tanstack/src/features/landing/helpers/index.ts +7 -0
- package/templates-i18n/tanstack/src/features/landing/helpers/motion.ts +21 -0
- package/templates-i18n/tanstack/src/features/landing/hooks/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/hooks/use-users.ts +19 -0
- package/templates-i18n/tanstack/src/features/landing/icons/index.ts +5 -0
- package/templates-i18n/tanstack/src/features/landing/icons/react-hook-form.tsx +18 -0
- package/templates-i18n/tanstack/src/features/landing/icons/react.tsx +20 -0
- package/templates-i18n/tanstack/src/features/landing/icons/tailwind.tsx +14 -0
- package/templates-i18n/tanstack/src/features/landing/icons/tanstack.tsx +321 -0
- package/templates-i18n/tanstack/src/features/landing/icons/typescript.tsx +16 -0
- package/templates-i18n/tanstack/src/features/landing/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/schemas/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/schemas/project.schema.ts +10 -0
- package/templates-i18n/tanstack/src/features/landing/stores/counter.store.ts +18 -0
- package/templates-i18n/tanstack/src/features/landing/stores/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/types/index.ts +1 -0
- package/templates-i18n/tanstack/src/features/landing/types/user.types.ts +9 -0
- package/templates-i18n/tanstack/src/helpers/format-date.ts +13 -0
- package/templates-i18n/tanstack/src/helpers/index.ts +1 -0
- package/templates-i18n/tanstack/src/hooks/index.ts +5 -0
- package/templates-i18n/tanstack/src/lib/api.ts +97 -0
- package/templates-i18n/tanstack/src/lib/query-client.ts +18 -0
- package/templates-i18n/tanstack/src/lib/utils.ts +13 -0
- package/templates-i18n/tanstack/src/paraglide/README.md +162 -0
- package/templates-i18n/tanstack/src/providers/Providers.tsx +12 -0
- package/templates-i18n/tanstack/src/providers/ThemeProvider.tsx +98 -0
- package/templates-i18n/tanstack/src/providers/devtools.tsx +6 -0
- package/templates-i18n/tanstack/src/providers/index.ts +1 -0
- package/templates-i18n/tanstack/src/providers/root-provider.ts +9 -0
- package/templates-i18n/tanstack/src/routeTree.gen.ts +179 -0
- package/templates-i18n/tanstack/src/router.tsx +27 -0
- package/templates-i18n/tanstack/src/routes/$lang/index.tsx +13 -0
- package/templates-i18n/tanstack/src/routes/$lang.tsx +22 -0
- package/templates-i18n/tanstack/src/routes/__root.tsx +80 -0
- package/templates-i18n/tanstack/src/routes/index.tsx +13 -0
- package/templates-i18n/tanstack/src/routes/robots[.]txt.ts +21 -0
- package/templates-i18n/tanstack/src/routes/site[.]webmanifest.ts +32 -0
- package/templates-i18n/tanstack/src/routes/sitemap[.]xml.ts +27 -0
- package/templates-i18n/tanstack/src/schemas/index.ts +5 -0
- package/templates-i18n/tanstack/src/server.ts +10 -0
- package/templates-i18n/tanstack/src/start.ts +20 -0
- package/templates-i18n/tanstack/src/stores/index.ts +5 -0
- package/templates-i18n/tanstack/src/styles/tailwind.css +123 -0
- package/templates-i18n/tanstack/src/types/site-config.types.ts +10 -0
- package/templates-i18n/tanstack/tsconfig.json +26 -0
- package/templates-i18n/tanstack/tsr.config.json +3 -0
- package/templates-i18n/tanstack/vite.config.ts +31 -0
- package/index.js +0 -3
- package/public/start.jpg +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// noinspection JSUnusedGlobalSymbols
|
|
6
|
+
|
|
7
|
+
// This file was automatically generated by TanStack Router.
|
|
8
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
9
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
10
|
+
|
|
11
|
+
import { Route as rootRouteImport } from './routes/__root'
|
|
12
|
+
import { Route as IndexRouteImport } from './routes/index'
|
|
13
|
+
import { Route as RobotsDottxtRouteImport } from './routes/robots[.]txt'
|
|
14
|
+
import { Route as SiteDotwebmanifestRouteImport } from './routes/site[.]webmanifest'
|
|
15
|
+
import { Route as SitemapDotxmlRouteImport } from './routes/sitemap[.]xml'
|
|
16
|
+
|
|
17
|
+
const IndexRoute = IndexRouteImport.update({
|
|
18
|
+
id: '/',
|
|
19
|
+
path: '/',
|
|
20
|
+
getParentRoute: () => rootRouteImport,
|
|
21
|
+
} as any)
|
|
22
|
+
const RobotsDottxtRoute = RobotsDottxtRouteImport.update({
|
|
23
|
+
id: '/robots.txt',
|
|
24
|
+
path: '/robots.txt',
|
|
25
|
+
getParentRoute: () => rootRouteImport,
|
|
26
|
+
} as any)
|
|
27
|
+
const SiteDotwebmanifestRoute = SiteDotwebmanifestRouteImport.update({
|
|
28
|
+
id: '/site.webmanifest',
|
|
29
|
+
path: '/site.webmanifest',
|
|
30
|
+
getParentRoute: () => rootRouteImport,
|
|
31
|
+
} as any)
|
|
32
|
+
const SitemapDotxmlRoute = SitemapDotxmlRouteImport.update({
|
|
33
|
+
id: '/sitemap.xml',
|
|
34
|
+
path: '/sitemap.xml',
|
|
35
|
+
getParentRoute: () => rootRouteImport,
|
|
36
|
+
} as any)
|
|
37
|
+
|
|
38
|
+
export interface FileRoutesByFullPath {
|
|
39
|
+
'/': typeof IndexRoute
|
|
40
|
+
'/robots.txt': typeof RobotsDottxtRoute
|
|
41
|
+
'/site.webmanifest': typeof SiteDotwebmanifestRoute
|
|
42
|
+
'/sitemap.xml': typeof SitemapDotxmlRoute
|
|
43
|
+
}
|
|
44
|
+
export interface FileRoutesByTo {
|
|
45
|
+
'/': typeof IndexRoute
|
|
46
|
+
'/robots.txt': typeof RobotsDottxtRoute
|
|
47
|
+
'/site.webmanifest': typeof SiteDotwebmanifestRoute
|
|
48
|
+
'/sitemap.xml': typeof SitemapDotxmlRoute
|
|
49
|
+
}
|
|
50
|
+
export interface FileRoutesById {
|
|
51
|
+
__root__: typeof rootRouteImport
|
|
52
|
+
'/': typeof IndexRoute
|
|
53
|
+
'/robots.txt': typeof RobotsDottxtRoute
|
|
54
|
+
'/site.webmanifest': typeof SiteDotwebmanifestRoute
|
|
55
|
+
'/sitemap.xml': typeof SitemapDotxmlRoute
|
|
56
|
+
}
|
|
57
|
+
export interface FileRouteTypes {
|
|
58
|
+
fileRoutesByFullPath: FileRoutesByFullPath
|
|
59
|
+
fullPaths: '/' | '/robots.txt' | '/site.webmanifest' | '/sitemap.xml'
|
|
60
|
+
fileRoutesByTo: FileRoutesByTo
|
|
61
|
+
to: '/' | '/robots.txt' | '/site.webmanifest' | '/sitemap.xml'
|
|
62
|
+
id: '__root__' | '/' | '/robots.txt' | '/site.webmanifest' | '/sitemap.xml'
|
|
63
|
+
fileRoutesById: FileRoutesById
|
|
64
|
+
}
|
|
65
|
+
export interface RootRouteChildren {
|
|
66
|
+
IndexRoute: typeof IndexRoute
|
|
67
|
+
RobotsDottxtRoute: typeof RobotsDottxtRoute
|
|
68
|
+
SiteDotwebmanifestRoute: typeof SiteDotwebmanifestRoute
|
|
69
|
+
SitemapDotxmlRoute: typeof SitemapDotxmlRoute
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare module '@tanstack/react-router' {
|
|
73
|
+
interface FileRoutesByPath {
|
|
74
|
+
'/': {
|
|
75
|
+
id: '/'
|
|
76
|
+
path: '/'
|
|
77
|
+
fullPath: '/'
|
|
78
|
+
preLoaderRoute: typeof IndexRouteImport
|
|
79
|
+
parentRoute: typeof rootRouteImport
|
|
80
|
+
}
|
|
81
|
+
'/robots.txt': {
|
|
82
|
+
id: '/robots.txt'
|
|
83
|
+
path: '/robots.txt'
|
|
84
|
+
fullPath: '/robots.txt'
|
|
85
|
+
preLoaderRoute: typeof RobotsDottxtRouteImport
|
|
86
|
+
parentRoute: typeof rootRouteImport
|
|
87
|
+
}
|
|
88
|
+
'/site.webmanifest': {
|
|
89
|
+
id: '/site.webmanifest'
|
|
90
|
+
path: '/site.webmanifest'
|
|
91
|
+
fullPath: '/site.webmanifest'
|
|
92
|
+
preLoaderRoute: typeof SiteDotwebmanifestRouteImport
|
|
93
|
+
parentRoute: typeof rootRouteImport
|
|
94
|
+
}
|
|
95
|
+
'/sitemap.xml': {
|
|
96
|
+
id: '/sitemap.xml'
|
|
97
|
+
path: '/sitemap.xml'
|
|
98
|
+
fullPath: '/sitemap.xml'
|
|
99
|
+
preLoaderRoute: typeof SitemapDotxmlRouteImport
|
|
100
|
+
parentRoute: typeof rootRouteImport
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const rootRouteChildren: RootRouteChildren = {
|
|
106
|
+
IndexRoute: IndexRoute,
|
|
107
|
+
RobotsDottxtRoute: RobotsDottxtRoute,
|
|
108
|
+
SiteDotwebmanifestRoute: SiteDotwebmanifestRoute,
|
|
109
|
+
SitemapDotxmlRoute: SitemapDotxmlRoute,
|
|
110
|
+
}
|
|
111
|
+
export const routeTree = rootRouteImport
|
|
112
|
+
._addFileChildren(rootRouteChildren)
|
|
113
|
+
._addFileTypes<FileRouteTypes>()
|
|
114
|
+
|
|
115
|
+
import type { getRouter } from './router.tsx'
|
|
116
|
+
import type { startInstance } from './start.ts'
|
|
117
|
+
declare module '@tanstack/react-start' {
|
|
118
|
+
interface Register {
|
|
119
|
+
ssr: true
|
|
120
|
+
router: Awaited<ReturnType<typeof getRouter>>
|
|
121
|
+
config: Awaited<ReturnType<typeof startInstance.getOptions>>
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRouter as createTanStackRouter } from "@tanstack/react-router";
|
|
2
|
+
import { setupRouterSsrQueryIntegration } from "@tanstack/react-router-ssr-query";
|
|
3
|
+
|
|
4
|
+
import { getContext } from "./providers/root-provider";
|
|
5
|
+
import { routeTree } from "./routeTree.gen";
|
|
6
|
+
|
|
7
|
+
export function getRouter() {
|
|
8
|
+
const context = getContext();
|
|
9
|
+
|
|
10
|
+
const router = createTanStackRouter({
|
|
11
|
+
routeTree,
|
|
12
|
+
context,
|
|
13
|
+
scrollRestoration: true,
|
|
14
|
+
defaultPreload: "intent",
|
|
15
|
+
defaultPreloadStaleTime: 0,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
setupRouterSsrQueryIntegration({ router, queryClient: context.queryClient });
|
|
19
|
+
|
|
20
|
+
return router;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare module "@tanstack/react-router" {
|
|
24
|
+
interface Register {
|
|
25
|
+
router: ReturnType<typeof getRouter>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { TanStackDevtools } from "@tanstack/react-devtools";
|
|
2
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { createRootRouteWithContext, HeadContent, Outlet, Scripts } from "@tanstack/react-router";
|
|
4
|
+
import { TanStackRouterDevtoolsPanel } from "@tanstack/react-router-devtools";
|
|
5
|
+
|
|
6
|
+
import interCss from "@fontsource-variable/inter/index.css?url";
|
|
7
|
+
import { NuqsAdapter } from "nuqs/adapters/tanstack-router";
|
|
8
|
+
|
|
9
|
+
import { seoHeadMeta } from "@/config/seo.config";
|
|
10
|
+
|
|
11
|
+
import appCss from "@/styles/tailwind.css?url";
|
|
12
|
+
|
|
13
|
+
import { Providers } from "@/providers";
|
|
14
|
+
import TanStackQueryDevtools from "@/providers/devtools";
|
|
15
|
+
|
|
16
|
+
import { DefaultCatchBoundary } from "@/components/shared/DefaultCatchBoundary";
|
|
17
|
+
import { NotFound } from "@/components/shared/NotFound";
|
|
18
|
+
|
|
19
|
+
interface RouterContext {
|
|
20
|
+
queryClient: QueryClient;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const Route = createRootRouteWithContext<RouterContext>()({
|
|
24
|
+
head: () => ({
|
|
25
|
+
meta: [
|
|
26
|
+
{ charSet: "utf-8" },
|
|
27
|
+
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
28
|
+
...seoHeadMeta(),
|
|
29
|
+
],
|
|
30
|
+
links: [
|
|
31
|
+
{ rel: "stylesheet", href: appCss },
|
|
32
|
+
{ rel: "stylesheet", href: interCss },
|
|
33
|
+
{ rel: "icon", href: "/logo.webp" },
|
|
34
|
+
{ rel: "apple-touch-icon", href: "/logo.webp" },
|
|
35
|
+
{ rel: "manifest", href: "/site.webmanifest" },
|
|
36
|
+
],
|
|
37
|
+
}),
|
|
38
|
+
errorComponent: DefaultCatchBoundary,
|
|
39
|
+
notFoundComponent: () => <NotFound />,
|
|
40
|
+
shellComponent: RootDocument,
|
|
41
|
+
component: RootComponent,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
function RootComponent() {
|
|
45
|
+
return (
|
|
46
|
+
<NuqsAdapter>
|
|
47
|
+
<Providers>
|
|
48
|
+
<Outlet />
|
|
49
|
+
</Providers>
|
|
50
|
+
</NuqsAdapter>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function RootDocument({ children }: { children: React.ReactNode }) {
|
|
55
|
+
return (
|
|
56
|
+
<html lang="en" className="h-full" suppressHydrationWarning>
|
|
57
|
+
<head>
|
|
58
|
+
<HeadContent />
|
|
59
|
+
</head>
|
|
60
|
+
<body className="flex min-h-full flex-col font-sans antialiased" suppressHydrationWarning>
|
|
61
|
+
{children}
|
|
62
|
+
{import.meta.env.DEV ? (
|
|
63
|
+
<TanStackDevtools
|
|
64
|
+
config={{ position: "bottom-right" }}
|
|
65
|
+
plugins={[
|
|
66
|
+
{
|
|
67
|
+
name: "TanStack Router",
|
|
68
|
+
render: <TanStackRouterDevtoolsPanel />,
|
|
69
|
+
},
|
|
70
|
+
TanStackQueryDevtools,
|
|
71
|
+
]}
|
|
72
|
+
/>
|
|
73
|
+
) : null}
|
|
74
|
+
<Scripts />
|
|
75
|
+
</body>
|
|
76
|
+
</html>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
import { Pending } from "@/components/shared/Pending";
|
|
4
|
+
import { LandingPage } from "@/features/landing";
|
|
5
|
+
|
|
6
|
+
export const Route = createFileRoute("/")({
|
|
7
|
+
pendingComponent: Pending,
|
|
8
|
+
component: Home,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
function Home() {
|
|
12
|
+
return <LandingPage />;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
import { siteConfig } from "@/config/site.config";
|
|
4
|
+
|
|
5
|
+
export const Route = createFileRoute("/robots.txt")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
GET: async () => {
|
|
9
|
+
const body = `User-agent: *
|
|
10
|
+
Allow: /
|
|
11
|
+
|
|
12
|
+
Sitemap: ${siteConfig.url}/sitemap.xml
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
return new Response(body, {
|
|
16
|
+
headers: { "Content-Type": "text/plain; charset=utf-8" },
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
import { siteConfig } from "@/config/site.config";
|
|
4
|
+
|
|
5
|
+
export const Route = createFileRoute("/site.webmanifest")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
GET: async () => {
|
|
9
|
+
const manifest = {
|
|
10
|
+
name: siteConfig.name,
|
|
11
|
+
short_name: siteConfig.name,
|
|
12
|
+
description: siteConfig.description,
|
|
13
|
+
start_url: "/",
|
|
14
|
+
display: "standalone",
|
|
15
|
+
background_color: "#ffffff",
|
|
16
|
+
theme_color: "#ffffff",
|
|
17
|
+
icons: [
|
|
18
|
+
{
|
|
19
|
+
src: "/logo.webp",
|
|
20
|
+
sizes: "96x96",
|
|
21
|
+
type: "image/webp",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
return Response.json(manifest, {
|
|
27
|
+
headers: { "Content-Type": "application/manifest+json; charset=utf-8" },
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
import { siteConfig } from "@/config/site.config";
|
|
4
|
+
|
|
5
|
+
export const Route = createFileRoute("/sitemap.xml")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
GET: async () => {
|
|
9
|
+
const lastmod = new Date().toISOString();
|
|
10
|
+
const body = `<?xml version="1.0" encoding="UTF-8"?>
|
|
11
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
12
|
+
<url>
|
|
13
|
+
<loc>${siteConfig.url}/</loc>
|
|
14
|
+
<lastmod>${lastmod}</lastmod>
|
|
15
|
+
<changefreq>monthly</changefreq>
|
|
16
|
+
<priority>1.0</priority>
|
|
17
|
+
</url>
|
|
18
|
+
</urlset>
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
return new Response(body, {
|
|
22
|
+
headers: { "Content-Type": "application/xml; charset=utf-8" },
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createMiddleware, createStart } from "@tanstack/react-start";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Baseline security headers (parity with the Next.js template's `headers()`).
|
|
5
|
+
* Extend or replace when you add CSP / auth middleware.
|
|
6
|
+
*/
|
|
7
|
+
const securityHeadersMiddleware = createMiddleware().server(async ({ next }) => {
|
|
8
|
+
const result = await next();
|
|
9
|
+
|
|
10
|
+
result.response.headers.set("X-Frame-Options", "DENY");
|
|
11
|
+
result.response.headers.set("X-Content-Type-Options", "nosniff");
|
|
12
|
+
result.response.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
|
|
13
|
+
result.response.headers.set("Permissions-Policy", "camera=(), microphone=(), geolocation=()");
|
|
14
|
+
|
|
15
|
+
return result;
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export const startInstance = createStart(() => ({
|
|
19
|
+
requestMiddleware: [securityHeadersMiddleware],
|
|
20
|
+
}));
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--radius: 0.65rem;
|
|
8
|
+
|
|
9
|
+
--background: oklch(1 0 0);
|
|
10
|
+
--foreground: oklch(0.145 0 0);
|
|
11
|
+
|
|
12
|
+
--card: oklch(1 0 0);
|
|
13
|
+
--card-foreground: oklch(0.145 0 0);
|
|
14
|
+
|
|
15
|
+
--popover: oklch(1 0 0);
|
|
16
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
17
|
+
|
|
18
|
+
--primary: oklch(0.205 0 0);
|
|
19
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
20
|
+
|
|
21
|
+
--secondary: oklch(0.97 0 0);
|
|
22
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
23
|
+
|
|
24
|
+
--muted: oklch(0.97 0 0);
|
|
25
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
26
|
+
|
|
27
|
+
--accent: oklch(0.97 0 0);
|
|
28
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
29
|
+
|
|
30
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
31
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
32
|
+
|
|
33
|
+
--border: oklch(0.922 0 0);
|
|
34
|
+
--input: oklch(0.922 0 0);
|
|
35
|
+
--ring: oklch(0.708 0 0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dark {
|
|
39
|
+
--background: oklch(0.145 0 0);
|
|
40
|
+
--foreground: oklch(0.985 0 0);
|
|
41
|
+
|
|
42
|
+
--card: oklch(0.205 0 0);
|
|
43
|
+
--card-foreground: oklch(0.985 0 0);
|
|
44
|
+
|
|
45
|
+
--popover: oklch(0.205 0 0);
|
|
46
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
47
|
+
|
|
48
|
+
--primary: oklch(0.922 0 0);
|
|
49
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
50
|
+
|
|
51
|
+
--secondary: oklch(0.269 0 0);
|
|
52
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
53
|
+
|
|
54
|
+
--muted: oklch(0.269 0 0);
|
|
55
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
56
|
+
|
|
57
|
+
--accent: oklch(0.269 0 0);
|
|
58
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
59
|
+
|
|
60
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
61
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
62
|
+
|
|
63
|
+
--border: oklch(1 0 0 / 12%);
|
|
64
|
+
--input: oklch(1 0 0 / 18%);
|
|
65
|
+
--ring: oklch(0.556 0 0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@theme inline {
|
|
69
|
+
--color-background: var(--background);
|
|
70
|
+
--color-foreground: var(--foreground);
|
|
71
|
+
|
|
72
|
+
--color-card: var(--card);
|
|
73
|
+
--color-card-foreground: var(--card-foreground);
|
|
74
|
+
|
|
75
|
+
--color-popover: var(--popover);
|
|
76
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
77
|
+
|
|
78
|
+
--color-primary: var(--primary);
|
|
79
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
80
|
+
|
|
81
|
+
--color-secondary: var(--secondary);
|
|
82
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
83
|
+
|
|
84
|
+
--color-muted: var(--muted);
|
|
85
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
86
|
+
|
|
87
|
+
--color-accent: var(--accent);
|
|
88
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
89
|
+
|
|
90
|
+
--color-destructive: var(--destructive);
|
|
91
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
92
|
+
|
|
93
|
+
--color-border: var(--border);
|
|
94
|
+
--color-input: var(--input);
|
|
95
|
+
--color-ring: var(--ring);
|
|
96
|
+
|
|
97
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
98
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
99
|
+
--radius-lg: var(--radius);
|
|
100
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
101
|
+
|
|
102
|
+
--font-inter: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
|
|
103
|
+
--font-sans: var(--font-inter);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@layer base {
|
|
107
|
+
* {
|
|
108
|
+
@apply border-border outline-ring/50;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
html {
|
|
112
|
+
@apply scroll-smooth;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
body {
|
|
116
|
+
@apply bg-background text-foreground;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
button:not(:disabled),
|
|
120
|
+
[role="button"]:not(:disabled) {
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": ["**/*.ts", "**/*.tsx", "eslint.config.js", "vite.config.ts"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
8
|
+
"types": ["vite/client"],
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowImportingTsExtensions": true,
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUncheckedIndexedAccess": true,
|
|
16
|
+
"noUnusedLocals": true,
|
|
17
|
+
"noUnusedParameters": true,
|
|
18
|
+
"noFallthroughCasesInSwitch": true,
|
|
19
|
+
"noUncheckedSideEffectImports": true,
|
|
20
|
+
"paths": {
|
|
21
|
+
"#/*": ["./src/*"],
|
|
22
|
+
"@/*": ["./src/*"]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
2
|
+
|
|
3
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
4
|
+
import viteReact from "@vitejs/plugin-react";
|
|
5
|
+
import { defineConfig } from "vite";
|
|
6
|
+
|
|
7
|
+
const config = defineConfig({
|
|
8
|
+
resolve: { tsconfigPaths: true },
|
|
9
|
+
plugins: [tailwindcss(), tanstackStart(), viteReact()],
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export default config;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changesets
|
|
2
|
+
|
|
3
|
+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
+
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
+
find the full documentation for it [in our repository](https://github.com/changesets/changesets).
|
|
6
|
+
|
|
7
|
+
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://unpkg.com/@changesets/config@3.1.4/schema.json",
|
|
3
|
+
"changelog": "@changesets/cli/changelog",
|
|
4
|
+
"commit": false,
|
|
5
|
+
"fixed": [],
|
|
6
|
+
"linked": [],
|
|
7
|
+
"access": "restricted",
|
|
8
|
+
"baseBranch": "main",
|
|
9
|
+
"updateInternalDependencies": "patch",
|
|
10
|
+
"ignore": []
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Public (exposed to the browser) — must be prefixed with NEXT_PUBLIC_
|
|
2
|
+
NEXT_PUBLIC_APP_URL="http://localhost:3000"
|
|
3
|
+
NEXT_PUBLIC_APP_NAME="ViraStack Start - Next.js Edition"
|
|
4
|
+
|
|
5
|
+
# Server-only (never exposed to the browser)
|
|
6
|
+
# NODE_ENV is set automatically by Next.js — no need to define it here.
|