@digilogiclabs/create-saas-app 1.5.1 → 1.5.2
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/dist/.tsbuildinfo +1 -1
- package/dist/cli/commands/add.d.ts +6 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/add.js +39 -0
- package/dist/cli/commands/add.js.map +1 -0
- package/dist/cli/commands/create.d.ts +28 -0
- package/dist/cli/commands/create.d.ts.map +1 -0
- package/dist/cli/commands/create.js +130 -0
- package/dist/cli/commands/create.js.map +1 -0
- package/dist/cli/commands/index.d.ts +4 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +20 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/update.d.ts +6 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +68 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/{index.d.ts → cli/index.d.ts} +2 -3
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +59 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/prompts/index.d.ts +2 -0
- package/dist/cli/prompts/index.d.ts.map +1 -0
- package/dist/cli/prompts/index.js +18 -0
- package/dist/cli/prompts/index.js.map +1 -0
- package/dist/cli/prompts/project-setup.d.ts +5 -0
- package/dist/cli/prompts/project-setup.d.ts.map +1 -0
- package/dist/cli/prompts/project-setup.js +251 -0
- package/dist/cli/prompts/project-setup.js.map +1 -0
- package/dist/cli/utils/git.d.ts +9 -0
- package/dist/cli/utils/git.d.ts.map +1 -0
- package/dist/cli/utils/git.js +77 -0
- package/dist/cli/utils/git.js.map +1 -0
- package/dist/cli/utils/index.d.ts +5 -0
- package/dist/cli/utils/index.d.ts.map +1 -0
- package/dist/cli/utils/index.js +21 -0
- package/dist/cli/utils/index.js.map +1 -0
- package/dist/cli/utils/logger.d.ts +16 -0
- package/dist/cli/utils/logger.d.ts.map +1 -0
- package/dist/cli/utils/logger.js +55 -0
- package/dist/cli/utils/logger.js.map +1 -0
- package/dist/cli/utils/package-manager.d.ts +8 -0
- package/dist/cli/utils/package-manager.d.ts.map +1 -0
- package/dist/cli/utils/package-manager.js +92 -0
- package/dist/cli/utils/package-manager.js.map +1 -0
- package/dist/cli/utils/spinner.d.ts +7 -0
- package/dist/cli/utils/spinner.d.ts.map +1 -0
- package/dist/cli/utils/spinner.js +48 -0
- package/dist/cli/utils/spinner.js.map +1 -0
- package/dist/cli/validators/dependencies.d.ts +15 -0
- package/dist/cli/validators/dependencies.d.ts.map +1 -0
- package/dist/cli/validators/dependencies.js +108 -0
- package/dist/cli/validators/dependencies.js.map +1 -0
- package/dist/cli/validators/index.d.ts +3 -0
- package/dist/cli/validators/index.d.ts.map +1 -0
- package/dist/cli/validators/index.js +19 -0
- package/dist/cli/validators/index.js.map +1 -0
- package/dist/cli/validators/project-name.d.ts +5 -0
- package/dist/cli/validators/project-name.d.ts.map +1 -0
- package/dist/cli/validators/project-name.js +151 -0
- package/dist/cli/validators/project-name.js.map +1 -0
- package/dist/generators/file-processor.d.ts +28 -0
- package/dist/generators/file-processor.d.ts.map +1 -0
- package/dist/generators/file-processor.js +203 -0
- package/dist/generators/file-processor.js.map +1 -0
- package/dist/generators/index.d.ts +4 -0
- package/dist/generators/index.d.ts.map +1 -0
- package/dist/generators/index.js +20 -0
- package/dist/generators/index.js.map +1 -0
- package/dist/generators/package-installer.d.ts +29 -0
- package/dist/generators/package-installer.d.ts.map +1 -0
- package/dist/generators/package-installer.js +167 -0
- package/dist/generators/package-installer.js.map +1 -0
- package/dist/generators/template-generator.d.ts +48 -0
- package/dist/generators/template-generator.d.ts.map +1 -0
- package/dist/generators/template-generator.js +276 -0
- package/dist/generators/template-generator.js.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
- package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +1 -1
- package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +3 -3
- package/src/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
- package/src/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +2 -105
- package/src/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +2 -124
- package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/components/client/login-form.tsx +1 -1
- package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/components/client/signup-form.tsx +3 -3
- package/src/templates/web/ui-auth-payments-audio/template/src/lib/actions/index.ts +14 -0
- package/src/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
- package/dist/templates/mobile/base/template/.env.example +0 -15
- package/dist/templates/mobile/base/template/App.tsx +0 -88
- package/dist/templates/mobile/base/template/app/(auth)/login.tsx +0 -44
- package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +0 -43
- package/dist/templates/mobile/base/template/app/checkout.tsx +0 -20
- package/dist/templates/mobile/base/template/package.json +0 -38
- package/dist/templates/shared/auth/firebase/web/config.ts +0 -23
- package/dist/templates/shared/auth/supabase/web/config.ts +0 -8
- package/dist/templates/web/base/template/.env.example +0 -15
- package/dist/templates/web/base/template/.eslintrc.js +0 -8
- package/dist/templates/web/base/template/README.md +0 -68
- package/dist/templates/web/base/template/next.config.js +0 -15
- package/dist/templates/web/base/template/package.json +0 -58
- package/dist/templates/web/base/template/postcss.config.js +0 -7
- package/dist/templates/web/base/template/src/app/auth/callback/route.ts +0 -18
- package/dist/templates/web/base/template/src/app/checkout/page.tsx +0 -28
- package/dist/templates/web/base/template/src/app/error.tsx +0 -97
- package/dist/templates/web/base/template/src/app/globals.css +0 -60
- package/dist/templates/web/base/template/src/app/layout.tsx +0 -35
- package/dist/templates/web/base/template/src/app/loading.tsx +0 -34
- package/dist/templates/web/base/template/src/app/login/page.tsx +0 -39
- package/dist/templates/web/base/template/src/app/page.tsx +0 -132
- package/dist/templates/web/base/template/src/app/signup/page.tsx +0 -39
- package/dist/templates/web/base/template/src/components/__tests__/example.test.tsx +0 -49
- package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +0 -33
- package/dist/templates/web/base/template/src/components/providers/theme-provider.tsx +0 -94
- package/dist/templates/web/base/template/src/components/shared/footer.tsx +0 -36
- package/dist/templates/web/base/template/src/components/shared/header.tsx +0 -44
- package/dist/templates/web/base/template/src/components/ui/badge.tsx +0 -36
- package/dist/templates/web/base/template/src/components/ui/button.tsx +0 -56
- package/dist/templates/web/base/template/src/components/ui/card.tsx +0 -71
- package/dist/templates/web/base/template/src/components/ui/theme-toggle.tsx +0 -34
- package/dist/templates/web/base/template/src/lib/env.ts +0 -46
- package/dist/templates/web/base/template/src/lib/utils.ts +0 -140
- package/dist/templates/web/base/template/src/test/setup.ts +0 -79
- package/dist/templates/web/base/template/tailwind.config.js +0 -77
- package/dist/templates/web/base/template/tsconfig.json +0 -33
- package/dist/templates/web/base/template/vitest.config.ts +0 -17
- package/dist/templates/web/base/template.backup/.env.example +0 -15
- package/dist/templates/web/base/template.backup.20250817/.env.example +0 -15
- package/dist/templates/web/ui-auth/template/.env.example +0 -15
- package/dist/templates/web/ui-auth/template/.eslintrc.js +0 -8
- package/dist/templates/web/ui-auth/template/README.md +0 -68
- package/dist/templates/web/ui-auth/template/next.config.js +0 -12
- package/dist/templates/web/ui-auth/template/package.json +0 -50
- package/dist/templates/web/ui-auth/template/postcss.config.js +0 -7
- package/dist/templates/web/ui-auth/template/src/app/auth/callback/route.ts +0 -12
- package/dist/templates/web/ui-auth/template/src/app/checkout/page.tsx +0 -25
- package/dist/templates/web/ui-auth/template/src/app/error.tsx +0 -67
- package/dist/templates/web/ui-auth/template/src/app/globals.css +0 -42
- package/dist/templates/web/ui-auth/template/src/app/layout.tsx +0 -33
- package/dist/templates/web/ui-auth/template/src/app/loading.tsx +0 -20
- package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +0 -109
- package/dist/templates/web/ui-auth/template/src/app/page.tsx +0 -129
- package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +0 -128
- package/dist/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +0 -49
- package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +0 -29
- package/dist/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +0 -94
- package/dist/templates/web/ui-auth/template/src/components/shared/footer.tsx +0 -36
- package/dist/templates/web/ui-auth/template/src/components/shared/header.tsx +0 -53
- package/dist/templates/web/ui-auth/template/src/components/ui/badge.tsx +0 -36
- package/dist/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +0 -34
- package/dist/templates/web/ui-auth/template/src/lib/env.ts +0 -49
- package/dist/templates/web/ui-auth/template/src/lib/utils.ts +0 -140
- package/dist/templates/web/ui-auth/template/src/test/setup.ts +0 -79
- package/dist/templates/web/ui-auth/template/tailwind.config.js +0 -77
- package/dist/templates/web/ui-auth/template/tsconfig.json +0 -33
- package/dist/templates/web/ui-auth/template/vitest.config.ts +0 -17
- package/dist/templates/web/ui-auth/template.backup/.env.example +0 -15
- package/dist/templates/web/ui-auth/template.backup.20250817/.env.example +0 -15
- package/dist/templates/web/ui-auth-payments/template/.env.example +0 -15
- package/dist/templates/web/ui-auth-payments/template/README.md +0 -165
- package/dist/templates/web/ui-auth-payments/template/next.config.js +0 -12
- package/dist/templates/web/ui-auth-payments/template/package.json +0 -52
- package/dist/templates/web/ui-auth-payments/template/postcss.config.js +0 -7
- package/dist/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +0 -12
- package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +0 -211
- package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +0 -142
- package/dist/templates/web/ui-auth-payments/template/src/app/error.tsx +0 -67
- package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +0 -42
- package/dist/templates/web/ui-auth-payments/template/src/app/layout.tsx +0 -33
- package/dist/templates/web/ui-auth-payments/template/src/app/loading.tsx +0 -20
- package/dist/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +0 -38
- package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +0 -109
- package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +0 -143
- package/dist/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +0 -50
- package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +0 -128
- package/dist/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +0 -49
- package/dist/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +0 -68
- package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +0 -32
- package/dist/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +0 -94
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +0 -36
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +0 -62
- package/dist/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +0 -36
- package/dist/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +0 -34
- package/dist/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +0 -340
- package/dist/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +0 -177
- package/dist/templates/web/ui-auth-payments/template/src/lib/env.ts +0 -49
- package/dist/templates/web/ui-auth-payments/template/src/lib/utils.ts +0 -140
- package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +0 -79
- package/dist/templates/web/ui-auth-payments/template/tailwind.config.js +0 -77
- package/dist/templates/web/ui-auth-payments/template/tsconfig.json +0 -33
- package/dist/templates/web/ui-auth-payments/template/vitest.config.ts +0 -17
- package/dist/templates/web/ui-auth-payments-audio/template/.env.example +0 -15
- package/dist/templates/web/ui-auth-payments-audio/template/README.md +0 -187
- package/dist/templates/web/ui-auth-payments-audio/template/next.config.js +0 -12
- package/dist/templates/web/ui-auth-payments-audio/template/package.json +0 -53
- package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.js +0 -7
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +0 -12
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +0 -211
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +0 -142
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +0 -67
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +0 -42
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +0 -35
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +0 -20
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +0 -109
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +0 -181
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +0 -128
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +0 -49
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +0 -32
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +0 -94
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +0 -36
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +0 -62
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +0 -36
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +0 -34
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +0 -49
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +0 -140
- package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +0 -79
- package/dist/templates/web/ui-auth-payments-audio/template/tailwind.config.js +0 -77
- package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.json +0 -33
- package/dist/templates/web/ui-auth-payments-audio/template/vitest.config.ts +0 -17
- package/dist/templates/web/ui-auth-payments-video/template/.env.example +0 -15
- package/dist/templates/web/ui-auth-payments-video/template/README.md +0 -190
- package/dist/templates/web/ui-auth-payments-video/template/next.config.js +0 -12
- package/dist/templates/web/ui-auth-payments-video/template/package.json +0 -53
- package/dist/templates/web/ui-auth-payments-video/template/postcss.config.js +0 -7
- package/dist/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +0 -12
- package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +0 -211
- package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +0 -142
- package/dist/templates/web/ui-auth-payments-video/template/src/app/error.tsx +0 -67
- package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +0 -42
- package/dist/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +0 -33
- package/dist/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +0 -20
- package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +0 -109
- package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +0 -187
- package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +0 -128
- package/dist/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +0 -49
- package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +0 -32
- package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +0 -94
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +0 -36
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +0 -62
- package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +0 -36
- package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +0 -34
- package/dist/templates/web/ui-auth-payments-video/template/src/lib/env.ts +0 -49
- package/dist/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +0 -140
- package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +0 -79
- package/dist/templates/web/ui-auth-payments-video/template/tailwind.config.js +0 -77
- package/dist/templates/web/ui-auth-payments-video/template/tsconfig.json +0 -33
- package/dist/templates/web/ui-auth-payments-video/template/vitest.config.ts +0 -17
- package/dist/templates/web/ui-only/template/.env.example +0 -15
- package/dist/templates/web/ui-only/template/.eslintrc.js +0 -8
- package/dist/templates/web/ui-only/template/README.md +0 -68
- package/dist/templates/web/ui-only/template/next.config.js +0 -12
- package/dist/templates/web/ui-only/template/package.json +0 -49
- package/dist/templates/web/ui-only/template/postcss.config.js +0 -7
- package/dist/templates/web/ui-only/template/src/app/auth/callback/route.ts +0 -12
- package/dist/templates/web/ui-only/template/src/app/checkout/page.tsx +0 -25
- package/dist/templates/web/ui-only/template/src/app/error.tsx +0 -67
- package/dist/templates/web/ui-only/template/src/app/globals.css +0 -42
- package/dist/templates/web/ui-only/template/src/app/layout.tsx +0 -33
- package/dist/templates/web/ui-only/template/src/app/loading.tsx +0 -20
- package/dist/templates/web/ui-only/template/src/app/login/page.tsx +0 -63
- package/dist/templates/web/ui-only/template/src/app/page.tsx +0 -91
- package/dist/templates/web/ui-only/template/src/app/signup/page.tsx +0 -79
- package/dist/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +0 -49
- package/dist/templates/web/ui-only/template/src/components/providers/app-providers.tsx +0 -26
- package/dist/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +0 -94
- package/dist/templates/web/ui-only/template/src/components/shared/footer.tsx +0 -36
- package/dist/templates/web/ui-only/template/src/components/shared/header.tsx +0 -53
- package/dist/templates/web/ui-only/template/src/components/ui/badge.tsx +0 -36
- package/dist/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +0 -34
- package/dist/templates/web/ui-only/template/src/lib/env.ts +0 -49
- package/dist/templates/web/ui-only/template/src/lib/utils.ts +0 -140
- package/dist/templates/web/ui-only/template/src/test/setup.ts +0 -79
- package/dist/templates/web/ui-only/template/tailwind.config.js +0 -77
- package/dist/templates/web/ui-only/template/tsconfig.json +0 -33
- package/dist/templates/web/ui-only/template/vitest.config.ts +0 -17
- package/dist/templates/web/ui-only/template.backup/.env.example +0 -15
- package/dist/templates/web/ui-only/template.backup.20250817/.env.example +0 -15
- package/dist/templates/web/ui-package-test/template/package.json +0 -42
- package/dist/templates/web/ui-package-test/template/src/app/page.tsx +0 -106
- package/dist/templates/web/ui-package-test/template/tsconfig.json +0 -41
- /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/middleware.ts +0 -0
- /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/app/dashboard/layout.tsx +0 -0
- /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/app/dashboard/page.tsx +0 -0
- /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/components/client/auth-status.tsx +0 -0
- /package/{dist/templates/web/ui-auth-payments → src/templates/web/ui-auth-payments-audio}/template/src/lib/actions/auth.ts +0 -0
- /package/{dist/templates/web/base → src/templates/web/ui-auth-payments-audio}/template/src/lib/auth-server.ts +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optional Environment Configuration with Zod validation
|
|
3
|
-
*
|
|
4
|
-
* This provides type-safe environment variable validation.
|
|
5
|
-
* Usage is optional - existing templates will continue to work without this.
|
|
6
|
-
*
|
|
7
|
-
* To use: import { env } from '@/lib/env' instead of process.env
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import { z } from 'zod'
|
|
11
|
-
|
|
12
|
-
const envSchema = z.object({
|
|
13
|
-
// Next.js built-in
|
|
14
|
-
NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),
|
|
15
|
-
|
|
16
|
-
// App configuration
|
|
17
|
-
NEXT_PUBLIC_APP_URL: z.string().url().optional(),
|
|
18
|
-
NEXT_PUBLIC_APP_NAME: z.string().default('{{titleCaseName}}'),
|
|
19
|
-
|
|
20
|
-
// Auth configuration (if using server-side auth)
|
|
21
|
-
SUPABASE_URL: z.string().url().optional(),
|
|
22
|
-
SUPABASE_ANON_KEY: z.string().optional(),
|
|
23
|
-
SUPABASE_SERVICE_ROLE_KEY: z.string().optional(),
|
|
24
|
-
|
|
25
|
-
// Payment configuration
|
|
26
|
-
STRIPE_SECRET_KEY: z.string().optional(),
|
|
27
|
-
STRIPE_WEBHOOK_SECRET: z.string().optional(),
|
|
28
|
-
|
|
29
|
-
// Optional analytics
|
|
30
|
-
ANALYTICS_ID: z.string().optional(),
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
// Parse with fallback to process.env for backward compatibility
|
|
34
|
-
function parseEnv() {
|
|
35
|
-
try {
|
|
36
|
-
return envSchema.parse(process.env)
|
|
37
|
-
} catch (error) {
|
|
38
|
-
if (process.env.NODE_ENV === 'development') {
|
|
39
|
-
console.warn('Environment validation failed. Using process.env fallback:', error)
|
|
40
|
-
}
|
|
41
|
-
// Fallback to process.env for backward compatibility
|
|
42
|
-
return process.env as any
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const env = parseEnv()
|
|
47
|
-
|
|
48
|
-
// Type helper for environment variables
|
|
49
|
-
export type Env = z.infer<typeof envSchema>
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced utility functions for {{titleCaseName}}
|
|
3
|
-
*
|
|
4
|
-
* This extends the basic utils with additional functionality while
|
|
5
|
-
* maintaining compatibility with existing templates.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { type ClassValue, clsx } from "clsx"
|
|
9
|
-
import { twMerge } from "tailwind-merge"
|
|
10
|
-
|
|
11
|
-
// Core utility function (keeps existing functionality)
|
|
12
|
-
export function cn(...inputs: ClassValue[]) {
|
|
13
|
-
return twMerge(clsx(inputs))
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Additional utilities for enhanced templates
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Format currency with proper locale support
|
|
20
|
-
*/
|
|
21
|
-
export function formatCurrency(
|
|
22
|
-
amount: number,
|
|
23
|
-
currency: string = 'USD',
|
|
24
|
-
locale: string = 'en-US'
|
|
25
|
-
): string {
|
|
26
|
-
return new Intl.NumberFormat(locale, {
|
|
27
|
-
style: 'currency',
|
|
28
|
-
currency,
|
|
29
|
-
}).format(amount)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Format date with relative time support
|
|
34
|
-
*/
|
|
35
|
-
export function formatDate(
|
|
36
|
-
date: Date | string,
|
|
37
|
-
options?: Intl.DateTimeFormatOptions
|
|
38
|
-
): string {
|
|
39
|
-
const dateObj = typeof date === 'string' ? new Date(date) : date
|
|
40
|
-
|
|
41
|
-
const defaultOptions: Intl.DateTimeFormatOptions = {
|
|
42
|
-
year: 'numeric',
|
|
43
|
-
month: 'short',
|
|
44
|
-
day: 'numeric',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return new Intl.DateTimeFormat('en-US', options || defaultOptions).format(dateObj)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Get relative time string (e.g., "2 hours ago")
|
|
52
|
-
*/
|
|
53
|
-
export function getRelativeTime(date: Date | string): string {
|
|
54
|
-
const dateObj = typeof date === 'string' ? new Date(date) : date
|
|
55
|
-
const now = new Date()
|
|
56
|
-
const diffInMs = now.getTime() - dateObj.getTime()
|
|
57
|
-
const diffInSeconds = Math.floor(diffInMs / 1000)
|
|
58
|
-
const diffInMinutes = Math.floor(diffInSeconds / 60)
|
|
59
|
-
const diffInHours = Math.floor(diffInMinutes / 60)
|
|
60
|
-
const diffInDays = Math.floor(diffInHours / 24)
|
|
61
|
-
|
|
62
|
-
if (diffInSeconds < 60) return 'just now'
|
|
63
|
-
if (diffInMinutes < 60) return `${diffInMinutes} minute${diffInMinutes > 1 ? 's' : ''} ago`
|
|
64
|
-
if (diffInHours < 24) return `${diffInHours} hour${diffInHours > 1 ? 's' : ''} ago`
|
|
65
|
-
if (diffInDays < 7) return `${diffInDays} day${diffInDays > 1 ? 's' : ''} ago`
|
|
66
|
-
|
|
67
|
-
return formatDate(dateObj)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Truncate text to specified length with ellipsis
|
|
72
|
-
*/
|
|
73
|
-
export function truncate(text: string, length: number = 50): string {
|
|
74
|
-
if (text.length <= length) return text
|
|
75
|
-
return text.slice(0, length).trim() + '...'
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Generate initials from a name
|
|
80
|
-
*/
|
|
81
|
-
export function getInitials(name: string): string {
|
|
82
|
-
return name
|
|
83
|
-
.split(' ')
|
|
84
|
-
.map(word => word.charAt(0).toUpperCase())
|
|
85
|
-
.slice(0, 2)
|
|
86
|
-
.join('')
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Validate email format
|
|
91
|
-
*/
|
|
92
|
-
export function isValidEmail(email: string): boolean {
|
|
93
|
-
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
|
|
94
|
-
return emailRegex.test(email)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Generate a random ID
|
|
99
|
-
*/
|
|
100
|
-
export function generateId(prefix: string = ''): string {
|
|
101
|
-
const timestamp = Date.now().toString(36)
|
|
102
|
-
const randomString = Math.random().toString(36).substring(2)
|
|
103
|
-
return prefix ? `${prefix}-${timestamp}-${randomString}` : `${timestamp}-${randomString}`
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Debounce function
|
|
108
|
-
*/
|
|
109
|
-
export function debounce<T extends (...args: any[]) => any>(
|
|
110
|
-
func: T,
|
|
111
|
-
delay: number
|
|
112
|
-
): (...args: Parameters<T>) => void {
|
|
113
|
-
let timeoutId: NodeJS.Timeout | null = null
|
|
114
|
-
|
|
115
|
-
return (...args: Parameters<T>) => {
|
|
116
|
-
if (timeoutId !== null) {
|
|
117
|
-
clearTimeout(timeoutId)
|
|
118
|
-
}
|
|
119
|
-
timeoutId = setTimeout(() => func(...args), delay)
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Sleep/delay function for async operations
|
|
125
|
-
*/
|
|
126
|
-
export function sleep(ms: number): Promise<void> {
|
|
127
|
-
return new Promise(resolve => setTimeout(resolve, ms))
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Safe JSON parse with fallback
|
|
132
|
-
*/
|
|
133
|
-
export function safeJsonParse<T>(json: string, fallback: T): T {
|
|
134
|
-
try {
|
|
135
|
-
return JSON.parse(json)
|
|
136
|
-
} catch {
|
|
137
|
-
return fallback
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom'
|
|
2
|
-
import { vi, beforeEach, afterAll } from 'vitest'
|
|
3
|
-
|
|
4
|
-
// Mock Next.js router
|
|
5
|
-
vi.mock('next/navigation', () => ({
|
|
6
|
-
useRouter: () => ({
|
|
7
|
-
push: vi.fn(),
|
|
8
|
-
back: vi.fn(),
|
|
9
|
-
forward: vi.fn(),
|
|
10
|
-
refresh: vi.fn(),
|
|
11
|
-
replace: vi.fn(),
|
|
12
|
-
prefetch: vi.fn(),
|
|
13
|
-
}),
|
|
14
|
-
useSearchParams: () => new URLSearchParams(),
|
|
15
|
-
usePathname: () => '/',
|
|
16
|
-
}))
|
|
17
|
-
|
|
18
|
-
// Mock SaaS Factory Auth (optional - only if testing auth components)
|
|
19
|
-
vi.mock('@digilogiclabs/saas-factory-auth', () => ({
|
|
20
|
-
useAuth: () => ({
|
|
21
|
-
user: null,
|
|
22
|
-
loading: false,
|
|
23
|
-
error: null,
|
|
24
|
-
signIn: vi.fn(),
|
|
25
|
-
signUp: vi.fn(),
|
|
26
|
-
signOut: vi.fn(),
|
|
27
|
-
signInWithOAuth: vi.fn(),
|
|
28
|
-
}),
|
|
29
|
-
AuthProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
// Mock SaaS Factory Payments (optional - only if testing payment components)
|
|
33
|
-
vi.mock('@digilogiclabs/saas-factory-payments', () => ({
|
|
34
|
-
usePayments: () => ({
|
|
35
|
-
createCheckoutSession: vi.fn(),
|
|
36
|
-
createPortalSession: vi.fn(),
|
|
37
|
-
subscription: null,
|
|
38
|
-
loading: false,
|
|
39
|
-
}),
|
|
40
|
-
PaymentsProvider: ({ children }: { children: React.ReactNode }) => children,
|
|
41
|
-
}))
|
|
42
|
-
|
|
43
|
-
// Global test utilities
|
|
44
|
-
global.ResizeObserver = vi.fn().mockImplementation(() => ({
|
|
45
|
-
observe: vi.fn(),
|
|
46
|
-
unobserve: vi.fn(),
|
|
47
|
-
disconnect: vi.fn(),
|
|
48
|
-
}))
|
|
49
|
-
|
|
50
|
-
// Suppress console warnings in tests unless needed
|
|
51
|
-
const originalConsoleError = console.error
|
|
52
|
-
const originalConsoleWarn = console.warn
|
|
53
|
-
|
|
54
|
-
beforeEach(() => {
|
|
55
|
-
console.error = (...args: any[]) => {
|
|
56
|
-
if (
|
|
57
|
-
typeof args[0] === 'string' &&
|
|
58
|
-
args[0].includes('Warning: ReactDOM.render is no longer supported')
|
|
59
|
-
) {
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
originalConsoleError.call(console, ...args)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
console.warn = (...args: any[]) => {
|
|
66
|
-
if (
|
|
67
|
-
typeof args[0] === 'string' &&
|
|
68
|
-
args[0].includes('useLayoutEffect does nothing on the server')
|
|
69
|
-
) {
|
|
70
|
-
return
|
|
71
|
-
}
|
|
72
|
-
originalConsoleWarn.call(console, ...args)
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
afterAll(() => {
|
|
77
|
-
console.error = originalConsoleError
|
|
78
|
-
console.warn = originalConsoleWarn
|
|
79
|
-
})
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
darkMode: ["class"],
|
|
4
|
-
content: [
|
|
5
|
-
'./pages/**/*.{ts,tsx}',
|
|
6
|
-
'./components/**/*.{ts,tsx}',
|
|
7
|
-
'./app/**/*.{ts,tsx}',
|
|
8
|
-
'./src/**/*.{ts,tsx}',
|
|
9
|
-
'../../node_modules/@digilogiclabs/saas-factory-ui/dist/**/*.{js,ts,jsx,tsx}',
|
|
10
|
-
],
|
|
11
|
-
theme: {
|
|
12
|
-
container: {
|
|
13
|
-
center: true,
|
|
14
|
-
padding: "2rem",
|
|
15
|
-
screens: {
|
|
16
|
-
"2xl": "1400px",
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
extend: {
|
|
20
|
-
colors: {
|
|
21
|
-
border: "hsl(var(--border))",
|
|
22
|
-
input: "hsl(var(--input))",
|
|
23
|
-
ring: "hsl(var(--ring))",
|
|
24
|
-
background: "hsl(var(--background))",
|
|
25
|
-
foreground: "hsl(var(--foreground))",
|
|
26
|
-
primary: {
|
|
27
|
-
DEFAULT: "hsl(var(--primary))",
|
|
28
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
29
|
-
},
|
|
30
|
-
secondary: {
|
|
31
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
32
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
33
|
-
},
|
|
34
|
-
destructive: {
|
|
35
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
36
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
37
|
-
},
|
|
38
|
-
muted: {
|
|
39
|
-
DEFAULT: "hsl(var(--muted))",
|
|
40
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
41
|
-
},
|
|
42
|
-
accent: {
|
|
43
|
-
DEFAULT: "hsl(var(--accent))",
|
|
44
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
45
|
-
},
|
|
46
|
-
popover: {
|
|
47
|
-
DEFAULT: "hsl(var(--popover))",
|
|
48
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
49
|
-
},
|
|
50
|
-
card: {
|
|
51
|
-
DEFAULT: "hsl(var(--card))",
|
|
52
|
-
foreground: "hsl(var(--card-foreground))",
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
borderRadius: {
|
|
56
|
-
lg: "var(--radius)",
|
|
57
|
-
md: "calc(var(--radius) - 2px)",
|
|
58
|
-
sm: "calc(var(--radius) - 4px)",
|
|
59
|
-
},
|
|
60
|
-
keyframes: {
|
|
61
|
-
"accordion-down": {
|
|
62
|
-
from: { height: 0 },
|
|
63
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
64
|
-
},
|
|
65
|
-
"accordion-up": {
|
|
66
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
67
|
-
to: { height: 0 },
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
animation: {
|
|
71
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
72
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
plugins: [],
|
|
77
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "es6"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [
|
|
17
|
-
{
|
|
18
|
-
"name": "next"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"baseUrl": ".",
|
|
22
|
-
"paths": {
|
|
23
|
-
"@/*": ["./src/*"],
|
|
24
|
-
"@/components/*": ["./src/components/*"],
|
|
25
|
-
"@/lib/*": ["./src/lib/*"],
|
|
26
|
-
"@/hooks/*": ["./src/hooks/*"],
|
|
27
|
-
"@/types/*": ["./src/types/*"]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
31
|
-
"exclude": ["node_modules"]
|
|
32
|
-
}
|
|
33
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vitest/config'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import path from 'path'
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [react()],
|
|
7
|
-
test: {
|
|
8
|
-
environment: 'jsdom',
|
|
9
|
-
setupFiles: ['./src/test/setup.ts'],
|
|
10
|
-
globals: true,
|
|
11
|
-
},
|
|
12
|
-
resolve: {
|
|
13
|
-
alias: {
|
|
14
|
-
'@': path.resolve(__dirname, './src'),
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
})
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Auth Configuration
|
|
2
|
-
NEXT_PUBLIC_AUTH_PROVIDER=supabase|firebase
|
|
3
|
-
|
|
4
|
-
# Supabase
|
|
5
|
-
NEXT_PUBLIC_SUPABASE_URL=
|
|
6
|
-
NEXT_PUBLIC_SUPABASE_ANON_KEY=
|
|
7
|
-
|
|
8
|
-
# Firebase
|
|
9
|
-
NEXT_PUBLIC_FIREBASE_API_KEY=
|
|
10
|
-
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
|
|
11
|
-
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
|
|
12
|
-
|
|
13
|
-
# Payments
|
|
14
|
-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
|
15
|
-
STRIPE_SECRET_KEY=
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Auth Configuration
|
|
2
|
-
NEXT_PUBLIC_AUTH_PROVIDER=supabase|firebase
|
|
3
|
-
|
|
4
|
-
# Supabase
|
|
5
|
-
NEXT_PUBLIC_SUPABASE_URL=
|
|
6
|
-
NEXT_PUBLIC_SUPABASE_ANON_KEY=
|
|
7
|
-
|
|
8
|
-
# Firebase
|
|
9
|
-
NEXT_PUBLIC_FIREBASE_API_KEY=
|
|
10
|
-
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
|
|
11
|
-
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
|
|
12
|
-
|
|
13
|
-
# Payments
|
|
14
|
-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
|
15
|
-
STRIPE_SECRET_KEY=
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{packageName}}",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "{{description}} (with UI Package v0.10.0)",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "next dev",
|
|
8
|
-
"build": "next build",
|
|
9
|
-
"start": "next start",
|
|
10
|
-
"lint": "next lint",
|
|
11
|
-
"type-check": "tsc --noEmit"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"next": "15.4.5",
|
|
15
|
-
"react": "19.1.0",
|
|
16
|
-
"react-dom": "19.1.0",
|
|
17
|
-
"@digilogiclabs/saas-factory-ui": "^0.10.0",
|
|
18
|
-
"tailwindcss": "^3.4.0",
|
|
19
|
-
"autoprefixer": "^10.4.16",
|
|
20
|
-
"postcss": "^8.4.31",
|
|
21
|
-
"clsx": "^2.0.0",
|
|
22
|
-
"class-variance-authority": "^0.7.0",
|
|
23
|
-
"tailwind-merge": "^2.0.0",
|
|
24
|
-
"next-themes": "^0.2.1",
|
|
25
|
-
"lucide-react": "^0.292.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"typescript": "^5.3.0",
|
|
29
|
-
"@types/node": "^20.10.0",
|
|
30
|
-
"@types/react": "^18.2.45",
|
|
31
|
-
"@types/react-dom": "^18.2.18",
|
|
32
|
-
"eslint": "^8.55.0",
|
|
33
|
-
"eslint-config-next": "15.4.5",
|
|
34
|
-
"prettier": "^3.1.0",
|
|
35
|
-
"prettier-plugin-tailwindcss": "^0.5.7",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
37
|
-
"@typescript-eslint/parser": "^6.14.0"
|
|
38
|
-
},
|
|
39
|
-
"engines": {
|
|
40
|
-
"node": ">=18.0.0"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '@digilogiclabs/saas-factory-ui';
|
|
3
|
-
|
|
4
|
-
export default function Home() {
|
|
5
|
-
return (
|
|
6
|
-
<main className="flex min-h-screen flex-col items-center justify-between p-24">
|
|
7
|
-
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
|
|
8
|
-
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
|
|
9
|
-
Get started by editing
|
|
10
|
-
<code className="font-mono font-bold">src/app/page.tsx</code>
|
|
11
|
-
</p>
|
|
12
|
-
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
|
|
13
|
-
<a
|
|
14
|
-
className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0"
|
|
15
|
-
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
|
|
16
|
-
target="_blank"
|
|
17
|
-
rel="noopener noreferrer"
|
|
18
|
-
>
|
|
19
|
-
By{' '}
|
|
20
|
-
<img src="/vercel.svg" alt="Vercel Logo" className="dark:invert" width={100} height={24} />
|
|
21
|
-
</a>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-full sm:before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full sm:after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px] z-[-1]">
|
|
26
|
-
<img
|
|
27
|
-
className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"
|
|
28
|
-
src="/next.svg"
|
|
29
|
-
alt="Next.js Logo"
|
|
30
|
-
width={180}
|
|
31
|
-
height={37}
|
|
32
|
-
/>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
|
|
36
|
-
<a
|
|
37
|
-
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
|
|
38
|
-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
39
|
-
target="_blank"
|
|
40
|
-
rel="noopener noreferrer"
|
|
41
|
-
>
|
|
42
|
-
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
43
|
-
Docs{' '}
|
|
44
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
45
|
-
->
|
|
46
|
-
</span>
|
|
47
|
-
</h2>
|
|
48
|
-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
49
|
-
Find in-depth information about Next.js features and API.
|
|
50
|
-
</p>
|
|
51
|
-
</a>
|
|
52
|
-
|
|
53
|
-
<a
|
|
54
|
-
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
55
|
-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800 hover:dark:bg-opacity-30"
|
|
56
|
-
target="_blank"
|
|
57
|
-
rel="noopener noreferrer"
|
|
58
|
-
>
|
|
59
|
-
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
60
|
-
Learn{' '}
|
|
61
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
62
|
-
->
|
|
63
|
-
</span>
|
|
64
|
-
</h2>
|
|
65
|
-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
66
|
-
Learn about Next.js in an interactive course with quizzes!
|
|
67
|
-
</p>
|
|
68
|
-
</a>
|
|
69
|
-
|
|
70
|
-
<a
|
|
71
|
-
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
|
|
72
|
-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
73
|
-
target="_blank"
|
|
74
|
-
rel="noopener noreferrer"
|
|
75
|
-
>
|
|
76
|
-
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
77
|
-
Templates{' '}
|
|
78
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
79
|
-
->
|
|
80
|
-
</span>
|
|
81
|
-
</h2>
|
|
82
|
-
<p className={`m-0 max-w-[30ch] text-sm opacity-50`}>
|
|
83
|
-
Explore starter templates for Next.js.
|
|
84
|
-
</p>
|
|
85
|
-
</a>
|
|
86
|
-
|
|
87
|
-
<a
|
|
88
|
-
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
|
|
89
|
-
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
|
|
90
|
-
target="_blank"
|
|
91
|
-
rel="noopener noreferrer"
|
|
92
|
-
>
|
|
93
|
-
<h2 className={`mb-3 text-2xl font-semibold`}>
|
|
94
|
-
Deploy{' '}
|
|
95
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
96
|
-
->
|
|
97
|
-
</span>
|
|
98
|
-
</h2>
|
|
99
|
-
<p className={`m-0 max-w-[30ch] text-sm opacity-50 text-balance`}>
|
|
100
|
-
Instantly deploy your Next.js site to a shareable URL with Vercel.
|
|
101
|
-
</p>
|
|
102
|
-
</a>
|
|
103
|
-
</div>
|
|
104
|
-
</main>
|
|
105
|
-
);
|
|
106
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"lib": [
|
|
5
|
-
"dom",
|
|
6
|
-
"dom.iterable",
|
|
7
|
-
"esnext"
|
|
8
|
-
],
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"strict": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true,
|
|
13
|
-
"noEmit": true,
|
|
14
|
-
"esModuleInterop": true,
|
|
15
|
-
"module": "esnext",
|
|
16
|
-
"moduleResolution": "node",
|
|
17
|
-
"resolveJsonModule": true,
|
|
18
|
-
"isolatedModules": true,
|
|
19
|
-
"jsx": "preserve",
|
|
20
|
-
"incremental": true,
|
|
21
|
-
"plugins": [
|
|
22
|
-
{
|
|
23
|
-
"name": "next"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"paths": {
|
|
27
|
-
"@/*": [
|
|
28
|
-
"./src/*"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"include": [
|
|
33
|
-
"next-env.d.ts",
|
|
34
|
-
"**/*.ts",
|
|
35
|
-
"**/*.tsx",
|
|
36
|
-
".next/types/**/*.ts"
|
|
37
|
-
],
|
|
38
|
-
"exclude": [
|
|
39
|
-
"node_modules"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|