@digilogiclabs/create-saas-app 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/CHANGELOG.md +42 -0
- package/README.md +891 -0
- package/dist/.tsbuildinfo +1 -0
- 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 +35 -0
- package/dist/cli/commands/create.d.ts.map +1 -0
- package/dist/cli/commands/create.js +165 -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/cli/index.d.ts +4 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +61 -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 +288 -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 +224 -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 +177 -0
- package/dist/generators/package-installer.js.map +1 -0
- package/dist/generators/template-generator.d.ts +61 -0
- package/dist/generators/template-generator.d.ts.map +1 -0
- package/dist/generators/template-generator.js +457 -0
- package/dist/generators/template-generator.js.map +1 -0
- package/dist/templates/mobile/base/template/.env.example +15 -0
- package/dist/templates/mobile/base/template/App.tsx +186 -0
- package/dist/templates/mobile/base/template/app/(auth)/login.tsx +44 -0
- package/dist/templates/mobile/base/template/app/(auth)/signup.tsx +43 -0
- package/dist/templates/mobile/base/template/app/checkout.tsx +20 -0
- package/dist/templates/mobile/base/template/app.json +44 -0
- package/dist/templates/mobile/base/template/babel.config.js +6 -0
- package/dist/templates/mobile/base/template/eas.json +19 -0
- package/dist/templates/mobile/base/template/package.json +54 -0
- package/dist/templates/mobile/ui-auth-payments/template/.env.example +20 -0
- package/dist/templates/mobile/ui-auth-payments/template/README.md +218 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +153 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/analytics.tsx +668 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +743 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +757 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/orders.tsx +402 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +580 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/_layout.tsx +134 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +246 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +362 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/onboarding/index.tsx +193 -0
- package/dist/templates/mobile/ui-auth-payments/template/app/tour/index.tsx +272 -0
- package/dist/templates/mobile/ui-auth-payments/template/app.json +94 -0
- package/dist/templates/mobile/ui-auth-payments/template/babel.config.js +23 -0
- package/dist/templates/mobile/ui-auth-payments/template/eas.json +45 -0
- package/dist/templates/mobile/ui-auth-payments/template/expo-env.d.ts +3 -0
- package/dist/templates/mobile/ui-auth-payments/template/jest-setup.ts +74 -0
- package/dist/templates/mobile/ui-auth-payments/template/metro.config.js +11 -0
- package/dist/templates/mobile/ui-auth-payments/template/package.json +117 -0
- package/dist/templates/mobile/ui-auth-payments/template/tsconfig.json +31 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/.env.example +23 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/README.md +254 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +169 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/ai.tsx +522 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/analytics.tsx +668 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +743 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +676 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/orders.tsx +402 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +580 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +134 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +246 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +362 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/onboarding/index.tsx +193 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app/tour/index.tsx +272 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/app.json +94 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/babel.config.js +23 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/eas.json +45 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/expo-env.d.ts +3 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/jest-setup.ts +74 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/metro.config.js +11 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +119 -0
- package/dist/templates/mobile/ui-auth-payments-ai/template/tsconfig.json +31 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/README.md +655 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app/(tabs)/ai.tsx +683 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +134 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/app.json +74 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/babel.config.js +25 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/docs/MOBILE-SETUP.md +787 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/eas.json +25 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/expo-env.d.ts +3 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +346 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/jest-setup.ts +37 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/lib/rag/config.ts +180 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/metro.config.js +11 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/package.json +124 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +599 -0
- package/dist/templates/mobile/ui-auth-payments-ai-rag/template/tsconfig.json +32 -0
- package/dist/templates/shared/auth/firebase/web/config.ts +23 -0
- package/dist/templates/shared/auth/supabase/web/config.ts +8 -0
- package/dist/templates/web/base/template/.env.example +15 -0
- package/dist/templates/web/base/template/.eslintrc.js +8 -0
- package/dist/templates/web/base/template/README.md +68 -0
- package/dist/templates/web/base/template/next.config.js +15 -0
- package/dist/templates/web/base/template/package.json +59 -0
- package/dist/templates/web/base/template/postcss.config.js +7 -0
- package/dist/templates/web/base/template/src/app/auth/callback/route.ts +18 -0
- package/dist/templates/web/base/template/src/app/checkout/page.tsx +119 -0
- package/dist/templates/web/base/template/src/app/dashboard/page.tsx +366 -0
- package/dist/templates/web/base/template/src/app/error.tsx +97 -0
- package/dist/templates/web/base/template/src/app/globals.css +157 -0
- package/dist/templates/web/base/template/src/app/layout.tsx +35 -0
- package/dist/templates/web/base/template/src/app/loading.tsx +52 -0
- package/dist/templates/web/base/template/src/app/login/page.tsx +67 -0
- package/dist/templates/web/base/template/src/app/page.tsx +193 -0
- package/dist/templates/web/base/template/src/app/signup/page.tsx +67 -0
- package/dist/templates/web/base/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/base/template/src/components/providers/app-providers.tsx +35 -0
- package/dist/templates/web/base/template/src/components/providers/theme-provider.tsx +94 -0
- package/dist/templates/web/base/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/base/template/src/components/shared/header.tsx +63 -0
- package/dist/templates/web/base/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/base/template/src/components/ui/button.tsx +56 -0
- package/dist/templates/web/base/template/src/components/ui/card.tsx +71 -0
- package/dist/templates/web/base/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/base/template/src/lib/auth-server.ts +177 -0
- package/dist/templates/web/base/template/src/lib/env.ts +46 -0
- package/dist/templates/web/base/template/src/lib/platform.ts +146 -0
- package/dist/templates/web/base/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/base/template/src/test/setup.ts +79 -0
- package/dist/templates/web/base/template/tailwind.config.js +77 -0
- package/dist/templates/web/base/template/tsconfig.json +33 -0
- package/dist/templates/web/base/template/vitest.config.ts +17 -0
- package/dist/templates/web/base/template.backup/.env.example +15 -0
- package/dist/templates/web/base/template.backup.20250817/.env.example +15 -0
- package/dist/templates/web/ui-auth/template/.claude +21 -0
- package/dist/templates/web/ui-auth/template/.env.example +15 -0
- package/dist/templates/web/ui-auth/template/.eslintrc.js +8 -0
- package/dist/templates/web/ui-auth/template/README.md +68 -0
- package/dist/templates/web/ui-auth/template/context.md +105 -0
- package/dist/templates/web/ui-auth/template/next.config.js +12 -0
- package/dist/templates/web/ui-auth/template/package.json +51 -0
- package/dist/templates/web/ui-auth/template/postcss.config.js +7 -0
- package/dist/templates/web/ui-auth/template/src/app/auth/callback/route.ts +12 -0
- package/dist/templates/web/ui-auth/template/src/app/checkout/page.tsx +25 -0
- package/dist/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +801 -0
- package/dist/templates/web/ui-auth/template/src/app/error.tsx +67 -0
- package/dist/templates/web/ui-auth/template/src/app/globals.css +95 -0
- package/dist/templates/web/ui-auth/template/src/app/layout.tsx +33 -0
- package/dist/templates/web/ui-auth/template/src/app/loading.tsx +38 -0
- package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +109 -0
- package/dist/templates/web/ui-auth/template/src/app/page.tsx +305 -0
- package/dist/templates/web/ui-auth/template/src/app/setup/page.tsx +403 -0
- package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -0
- package/dist/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +31 -0
- package/dist/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +94 -0
- package/dist/templates/web/ui-auth/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/ui-auth/template/src/components/shared/header.tsx +94 -0
- package/dist/templates/web/ui-auth/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/ui-auth/template/src/lib/env.ts +49 -0
- package/dist/templates/web/ui-auth/template/src/lib/platform.ts +137 -0
- package/dist/templates/web/ui-auth/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/ui-auth/template/src/test/setup.ts +79 -0
- package/dist/templates/web/ui-auth/template/tailwind.config.js +77 -0
- package/dist/templates/web/ui-auth/template/tsconfig.json +33 -0
- package/dist/templates/web/ui-auth/template/vitest.config.ts +17 -0
- package/dist/templates/web/ui-auth/template.backup/.env.example +15 -0
- package/dist/templates/web/ui-auth/template.backup.20250817/.env.example +15 -0
- package/dist/templates/web/ui-auth-ai/template/.env.example +18 -0
- package/dist/templates/web/ui-auth-ai/template/README.md +170 -0
- package/dist/templates/web/ui-auth-ai/template/next.config.js +13 -0
- package/dist/templates/web/ui-auth-ai/template/package.json +39 -0
- package/dist/templates/web/ui-auth-ai/template/postcss.config.js +6 -0
- package/dist/templates/web/ui-auth-ai/template/src/app/globals.css +40 -0
- package/dist/templates/web/ui-auth-ai/template/src/app/layout.tsx +41 -0
- package/dist/templates/web/ui-auth-ai/template/src/app/page.tsx +193 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ai/audio-generator.tsx +141 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ai/video-generator.tsx +158 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/auth/login-form.tsx +106 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ui/button.tsx +44 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ui/input.tsx +24 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ui/label.tsx +21 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ui/select.tsx +37 -0
- package/dist/templates/web/ui-auth-ai/template/src/components/ui/textarea.tsx +23 -0
- package/dist/templates/web/ui-auth-ai/template/src/hooks/useAuth.ts +1 -0
- package/dist/templates/web/ui-auth-ai/template/src/lib/supabase.ts +8 -0
- package/dist/templates/web/ui-auth-ai/template/src/lib/utils.ts +5 -0
- package/dist/templates/web/ui-auth-ai/template/src/providers/auth-provider.tsx +55 -0
- package/dist/templates/web/ui-auth-ai/template/tailwind.config.js +22 -0
- package/dist/templates/web/ui-auth-ai/template/tsconfig.json +28 -0
- package/dist/templates/web/ui-auth-payments/template/.env.example +51 -0
- package/dist/templates/web/ui-auth-payments/template/README.md +165 -0
- package/dist/templates/web/ui-auth-payments/template/middleware.ts +68 -0
- package/dist/templates/web/ui-auth-payments/template/next.config.js +12 -0
- package/dist/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
- package/dist/templates/web/ui-auth-payments/template/package.json +55 -0
- package/dist/templates/web/ui-auth-payments/template/postcss.config.js +7 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +12 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +211 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +318 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/layout.tsx +22 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +235 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +801 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/globals.css +211 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/layout.tsx +33 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +38 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +507 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +50 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +52 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +144 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +68 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +185 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +34 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +94 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +230 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/ui-auth-payments/template/src/lib/actions/auth.ts +246 -0
- package/dist/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +340 -0
- package/dist/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +177 -0
- package/dist/templates/web/ui-auth-payments/template/src/lib/env.ts +49 -0
- package/dist/templates/web/ui-auth-payments/template/src/lib/platform.ts +146 -0
- package/dist/templates/web/ui-auth-payments/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/ui-auth-payments/template/src/test/setup.ts +79 -0
- package/dist/templates/web/ui-auth-payments/template/tailwind.config.js +77 -0
- package/dist/templates/web/ui-auth-payments/template/tsconfig.json +33 -0
- package/dist/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
- package/dist/templates/web/ui-auth-payments/template/vitest.config.ts +17 -0
- package/dist/templates/web/ui-auth-payments-ai/template/.claude +21 -0
- package/dist/templates/web/ui-auth-payments-ai/template/.env.example +60 -0
- package/dist/templates/web/ui-auth-payments-ai/template/README.md +207 -0
- package/dist/templates/web/ui-auth-payments-ai/template/context.md +169 -0
- package/dist/templates/web/ui-auth-payments-ai/template/middleware.ts +68 -0
- package/dist/templates/web/ui-auth-payments-ai/template/next.config.js +12 -0
- package/dist/templates/web/ui-auth-payments-ai/template/package-lock.json +12241 -0
- package/dist/templates/web/ui-auth-payments-ai/template/package.json +58 -0
- package/dist/templates/web/ui-auth-payments-ai/template/postcss.config.js +7 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +310 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/audio/route.ts +56 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/chat/route.ts +49 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/text/route.ts +64 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/api/ai/video/route.ts +73 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/auth/callback/route.ts +12 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +422 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +142 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/dashboard/layout.tsx +22 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +236 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +801 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/error.tsx +67 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/globals.css +96 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/layout.tsx +35 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/loading.tsx +20 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/login/page.tsx +6 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +364 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +394 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.backup +391 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.bak +391 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +532 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +645 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/signup/page.tsx +6 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +52 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +163 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +201 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +38 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/providers/theme-provider.tsx +96 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +252 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/actions/auth.ts +246 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/actions/index.ts +14 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/auth-server.ts +177 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/env.ts +49 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +155 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/supabase/server.ts +72 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +79 -0
- package/dist/templates/web/ui-auth-payments-ai/template/tailwind.config.js +77 -0
- package/dist/templates/web/ui-auth-payments-ai/template/tsconfig.json +33 -0
- package/dist/templates/web/ui-auth-payments-ai/template/tsconfig.tsbuildinfo +1 -0
- package/dist/templates/web/ui-auth-payments-ai/template/vitest.config.ts +17 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/README.md +434 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/components/rag/KnowledgeManager.tsx +642 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGAnalytics.tsx +466 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGChatInterface.tsx +393 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/docs/GETTING-STARTED.md +457 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +478 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/lib/rag/config.ts +250 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +76 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +622 -0
- package/dist/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +396 -0
- package/dist/templates/web/ui-auth-payments-audio/template/.env.example +15 -0
- package/dist/templates/web/ui-auth-payments-audio/template/README.md +207 -0
- package/dist/templates/web/ui-auth-payments-audio/template/middleware.ts +68 -0
- package/dist/templates/web/ui-auth-payments-audio/template/next.config.js +12 -0
- package/dist/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
- package/dist/templates/web/ui-auth-payments-audio/template/package.json +55 -0
- package/dist/templates/web/ui-auth-payments-audio/template/postcss.config.js +7 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +12 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +211 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +142 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/layout.tsx +22 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +237 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/globals.css +96 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +35 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +6 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +403 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.backup +391 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.bak +391 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/setup/page.tsx +345 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +6 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +52 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +144 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +185 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +38 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +96 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +252 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/actions/auth.ts +246 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/actions/index.ts +14 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/auth-server.ts +177 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +49 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +79 -0
- package/dist/templates/web/ui-auth-payments-audio/template/tailwind.config.js +77 -0
- package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.json +33 -0
- package/dist/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
- package/dist/templates/web/ui-auth-payments-audio/template/vitest.config.ts +17 -0
- package/dist/templates/web/ui-auth-payments-video/template/.env.example +15 -0
- package/dist/templates/web/ui-auth-payments-video/template/README.md +190 -0
- package/dist/templates/web/ui-auth-payments-video/template/next.config.js +12 -0
- package/dist/templates/web/ui-auth-payments-video/template/package.json +55 -0
- package/dist/templates/web/ui-auth-payments-video/template/postcss.config.js +7 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +12 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +211 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +142 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/globals.css +228 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +33 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +109 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +395 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/setup/page.tsx +351 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +128 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +34 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +94 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +246 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/lib/env.ts +49 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/ui-auth-payments-video/template/src/test/setup.ts +79 -0
- package/dist/templates/web/ui-auth-payments-video/template/tailwind.config.js +77 -0
- package/dist/templates/web/ui-auth-payments-video/template/tsconfig.json +33 -0
- package/dist/templates/web/ui-auth-payments-video/template/vitest.config.ts +17 -0
- package/dist/templates/web/ui-only/template/.env.example +15 -0
- package/dist/templates/web/ui-only/template/.eslintrc.js +8 -0
- package/dist/templates/web/ui-only/template/README.md +68 -0
- package/dist/templates/web/ui-only/template/next.config.js +12 -0
- package/dist/templates/web/ui-only/template/package.json +49 -0
- package/dist/templates/web/ui-only/template/postcss.config.js +7 -0
- package/dist/templates/web/ui-only/template/src/app/auth/callback/route.ts +12 -0
- package/dist/templates/web/ui-only/template/src/app/checkout/page.tsx +25 -0
- package/dist/templates/web/ui-only/template/src/app/error.tsx +67 -0
- package/dist/templates/web/ui-only/template/src/app/globals.css +42 -0
- package/dist/templates/web/ui-only/template/src/app/layout.tsx +33 -0
- package/dist/templates/web/ui-only/template/src/app/loading.tsx +20 -0
- package/dist/templates/web/ui-only/template/src/app/login/page.tsx +63 -0
- package/dist/templates/web/ui-only/template/src/app/page.tsx +91 -0
- package/dist/templates/web/ui-only/template/src/app/signup/page.tsx +79 -0
- package/dist/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +49 -0
- package/dist/templates/web/ui-only/template/src/components/providers/app-providers.tsx +26 -0
- package/dist/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +94 -0
- package/dist/templates/web/ui-only/template/src/components/shared/footer.tsx +36 -0
- package/dist/templates/web/ui-only/template/src/components/shared/header.tsx +53 -0
- package/dist/templates/web/ui-only/template/src/components/ui/badge.tsx +36 -0
- package/dist/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +34 -0
- package/dist/templates/web/ui-only/template/src/lib/env.ts +49 -0
- package/dist/templates/web/ui-only/template/src/lib/utils.ts +140 -0
- package/dist/templates/web/ui-only/template/src/test/setup.ts +79 -0
- package/dist/templates/web/ui-only/template/tailwind.config.js +77 -0
- package/dist/templates/web/ui-only/template/tsconfig.json +33 -0
- package/dist/templates/web/ui-only/template/vitest.config.ts +17 -0
- package/dist/templates/web/ui-only/template.backup/.env.example +15 -0
- package/dist/templates/web/ui-only/template.backup.20250817/.env.example +15 -0
- package/dist/templates/web/ui-package-test/template/next-env.d.ts +5 -0
- package/dist/templates/web/ui-package-test/template/package.json +42 -0
- package/dist/templates/web/ui-package-test/template/src/app/page.tsx +106 -0
- package/dist/templates/web/ui-package-test/template/tsconfig.json +41 -0
- package/package.json +106 -0
- package/src/templates/mobile/base/template/.env.example +15 -0
- package/src/templates/mobile/base/template/App.tsx +186 -0
- package/src/templates/mobile/base/template/app/(auth)/login.tsx +44 -0
- package/src/templates/mobile/base/template/app/(auth)/signup.tsx +43 -0
- package/src/templates/mobile/base/template/app/checkout.tsx +20 -0
- package/src/templates/mobile/base/template/app.json +44 -0
- package/src/templates/mobile/base/template/babel.config.js +6 -0
- package/src/templates/mobile/base/template/eas.json +19 -0
- package/src/templates/mobile/base/template/package.json +54 -0
- package/src/templates/mobile/ui-auth-payments/template/.env.example +20 -0
- package/src/templates/mobile/ui-auth-payments/template/README.md +218 -0
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/_layout.tsx +153 -0
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/analytics.tsx +668 -0
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/billing.tsx +743 -0
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/index.tsx +757 -0
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/orders.tsx +402 -0
- package/src/templates/mobile/ui-auth-payments/template/app/(tabs)/profile.tsx +580 -0
- package/src/templates/mobile/ui-auth-payments/template/app/_layout.tsx +134 -0
- package/src/templates/mobile/ui-auth-payments/template/app/auth/login.tsx +246 -0
- package/src/templates/mobile/ui-auth-payments/template/app/auth/signup.tsx +362 -0
- package/src/templates/mobile/ui-auth-payments/template/app/onboarding/index.tsx +193 -0
- package/src/templates/mobile/ui-auth-payments/template/app/tour/index.tsx +272 -0
- package/src/templates/mobile/ui-auth-payments/template/app.json +94 -0
- package/src/templates/mobile/ui-auth-payments/template/babel.config.js +23 -0
- package/src/templates/mobile/ui-auth-payments/template/eas.json +45 -0
- package/src/templates/mobile/ui-auth-payments/template/expo-env.d.ts +3 -0
- package/src/templates/mobile/ui-auth-payments/template/jest-setup.ts +74 -0
- package/src/templates/mobile/ui-auth-payments/template/metro.config.js +11 -0
- package/src/templates/mobile/ui-auth-payments/template/package.json +117 -0
- package/src/templates/mobile/ui-auth-payments/template/tsconfig.json +31 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/.env.example +23 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/README.md +254 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/_layout.tsx +169 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/ai.tsx +522 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/analytics.tsx +668 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/billing.tsx +743 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/index.tsx +676 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/orders.tsx +402 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/(tabs)/profile.tsx +580 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/_layout.tsx +134 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/login.tsx +246 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/auth/signup.tsx +362 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/onboarding/index.tsx +193 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app/tour/index.tsx +272 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/app.json +94 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/babel.config.js +23 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/eas.json +45 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/expo-env.d.ts +3 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/jest-setup.ts +74 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/metro.config.js +11 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/package.json +119 -0
- package/src/templates/mobile/ui-auth-payments-ai/template/tsconfig.json +31 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/README.md +655 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/app/(tabs)/ai.tsx +683 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/app/_layout.tsx +134 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/app.json +74 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/babel.config.js +25 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/docs/MOBILE-SETUP.md +787 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/eas.json +25 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/expo-env.d.ts +3 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +346 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/jest-setup.ts +37 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/lib/rag/config.ts +180 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/metro.config.js +11 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/package.json +124 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +599 -0
- package/src/templates/mobile/ui-auth-payments-ai-rag/template/tsconfig.json +32 -0
- package/src/templates/shared/auth/firebase/web/config.ts +23 -0
- package/src/templates/shared/auth/supabase/web/config.ts +8 -0
- package/src/templates/web/base/template/.env.example +15 -0
- package/src/templates/web/base/template/.eslintrc.js +8 -0
- package/src/templates/web/base/template/README.md +68 -0
- package/src/templates/web/base/template/next.config.js +15 -0
- package/src/templates/web/base/template/package.json +59 -0
- package/src/templates/web/base/template/postcss.config.js +7 -0
- package/src/templates/web/base/template/src/app/auth/callback/route.ts +18 -0
- package/src/templates/web/base/template/src/app/checkout/page.tsx +119 -0
- package/src/templates/web/base/template/src/app/dashboard/page.tsx +366 -0
- package/src/templates/web/base/template/src/app/error.tsx +97 -0
- package/src/templates/web/base/template/src/app/globals.css +157 -0
- package/src/templates/web/base/template/src/app/layout.tsx +35 -0
- package/src/templates/web/base/template/src/app/loading.tsx +52 -0
- package/src/templates/web/base/template/src/app/login/page.tsx +67 -0
- package/src/templates/web/base/template/src/app/page.tsx +193 -0
- package/src/templates/web/base/template/src/app/signup/page.tsx +67 -0
- package/src/templates/web/base/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/base/template/src/components/providers/app-providers.tsx +35 -0
- package/src/templates/web/base/template/src/components/providers/theme-provider.tsx +94 -0
- package/src/templates/web/base/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/base/template/src/components/shared/header.tsx +63 -0
- package/src/templates/web/base/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/base/template/src/components/ui/button.tsx +56 -0
- package/src/templates/web/base/template/src/components/ui/card.tsx +71 -0
- package/src/templates/web/base/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/base/template/src/lib/auth-server.ts +177 -0
- package/src/templates/web/base/template/src/lib/env.ts +46 -0
- package/src/templates/web/base/template/src/lib/platform.ts +146 -0
- package/src/templates/web/base/template/src/lib/utils.ts +140 -0
- package/src/templates/web/base/template/src/test/setup.ts +79 -0
- package/src/templates/web/base/template/tailwind.config.js +77 -0
- package/src/templates/web/base/template/tsconfig.json +33 -0
- package/src/templates/web/base/template/vitest.config.ts +17 -0
- package/src/templates/web/base/template.backup/.env.example +15 -0
- package/src/templates/web/base/template.backup.20250817/.env.example +15 -0
- package/src/templates/web/ui-auth/template/.claude +21 -0
- package/src/templates/web/ui-auth/template/.env.example +15 -0
- package/src/templates/web/ui-auth/template/.eslintrc.js +8 -0
- package/src/templates/web/ui-auth/template/README.md +68 -0
- package/src/templates/web/ui-auth/template/context.md +105 -0
- package/src/templates/web/ui-auth/template/next.config.js +12 -0
- package/src/templates/web/ui-auth/template/package.json +51 -0
- package/src/templates/web/ui-auth/template/postcss.config.js +7 -0
- package/src/templates/web/ui-auth/template/src/app/auth/callback/route.ts +12 -0
- package/src/templates/web/ui-auth/template/src/app/checkout/page.tsx +25 -0
- package/src/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +801 -0
- package/src/templates/web/ui-auth/template/src/app/error.tsx +67 -0
- package/src/templates/web/ui-auth/template/src/app/globals.css +95 -0
- package/src/templates/web/ui-auth/template/src/app/layout.tsx +33 -0
- package/src/templates/web/ui-auth/template/src/app/loading.tsx +38 -0
- package/src/templates/web/ui-auth/template/src/app/login/page.tsx +109 -0
- package/src/templates/web/ui-auth/template/src/app/page.tsx +305 -0
- package/src/templates/web/ui-auth/template/src/app/setup/page.tsx +403 -0
- package/src/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -0
- package/src/templates/web/ui-auth/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/ui-auth/template/src/components/providers/app-providers.tsx +31 -0
- package/src/templates/web/ui-auth/template/src/components/providers/theme-provider.tsx +94 -0
- package/src/templates/web/ui-auth/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/ui-auth/template/src/components/shared/header.tsx +94 -0
- package/src/templates/web/ui-auth/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/ui-auth/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/ui-auth/template/src/lib/env.ts +49 -0
- package/src/templates/web/ui-auth/template/src/lib/platform.ts +137 -0
- package/src/templates/web/ui-auth/template/src/lib/utils.ts +140 -0
- package/src/templates/web/ui-auth/template/src/test/setup.ts +79 -0
- package/src/templates/web/ui-auth/template/tailwind.config.js +77 -0
- package/src/templates/web/ui-auth/template/tsconfig.json +33 -0
- package/src/templates/web/ui-auth/template/vitest.config.ts +17 -0
- package/src/templates/web/ui-auth/template.backup/.env.example +15 -0
- package/src/templates/web/ui-auth/template.backup.20250817/.env.example +15 -0
- package/src/templates/web/ui-auth-ai/template/.env.example +18 -0
- package/src/templates/web/ui-auth-ai/template/README.md +170 -0
- package/src/templates/web/ui-auth-ai/template/next.config.js +13 -0
- package/src/templates/web/ui-auth-ai/template/package.json +39 -0
- package/src/templates/web/ui-auth-ai/template/postcss.config.js +6 -0
- package/src/templates/web/ui-auth-ai/template/src/app/globals.css +40 -0
- package/src/templates/web/ui-auth-ai/template/src/app/layout.tsx +41 -0
- package/src/templates/web/ui-auth-ai/template/src/app/page.tsx +193 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ai/audio-generator.tsx +141 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ai/video-generator.tsx +158 -0
- package/src/templates/web/ui-auth-ai/template/src/components/auth/login-form.tsx +106 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ui/button.tsx +44 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ui/input.tsx +24 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ui/label.tsx +21 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ui/select.tsx +37 -0
- package/src/templates/web/ui-auth-ai/template/src/components/ui/textarea.tsx +23 -0
- package/src/templates/web/ui-auth-ai/template/src/hooks/useAuth.ts +1 -0
- package/src/templates/web/ui-auth-ai/template/src/lib/supabase.ts +8 -0
- package/src/templates/web/ui-auth-ai/template/src/lib/utils.ts +5 -0
- package/src/templates/web/ui-auth-ai/template/src/providers/auth-provider.tsx +55 -0
- package/src/templates/web/ui-auth-ai/template/tailwind.config.js +22 -0
- package/src/templates/web/ui-auth-ai/template/tsconfig.json +28 -0
- package/src/templates/web/ui-auth-payments/template/.env.example +51 -0
- package/src/templates/web/ui-auth-payments/template/README.md +165 -0
- package/src/templates/web/ui-auth-payments/template/middleware.ts +68 -0
- package/src/templates/web/ui-auth-payments/template/next.config.js +12 -0
- package/src/templates/web/ui-auth-payments/template/package-lock.json +12240 -0
- package/src/templates/web/ui-auth-payments/template/package.json +55 -0
- package/src/templates/web/ui-auth-payments/template/postcss.config.js +7 -0
- package/src/templates/web/ui-auth-payments/template/src/app/auth/callback/route.ts +12 -0
- package/src/templates/web/ui-auth-payments/template/src/app/billing/page.tsx +211 -0
- package/src/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +318 -0
- package/src/templates/web/ui-auth-payments/template/src/app/dashboard/layout.tsx +22 -0
- package/src/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +235 -0
- package/src/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +801 -0
- package/src/templates/web/ui-auth-payments/template/src/app/error.tsx +67 -0
- package/src/templates/web/ui-auth-payments/template/src/app/globals.css +211 -0
- package/src/templates/web/ui-auth-payments/template/src/app/layout.tsx +33 -0
- package/src/templates/web/ui-auth-payments/template/src/app/loading.tsx +20 -0
- package/src/templates/web/ui-auth-payments/template/src/app/login/loading.tsx +38 -0
- package/src/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -0
- package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -0
- package/src/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +507 -0
- package/src/templates/web/ui-auth-payments/template/src/app/signup/loading.tsx +50 -0
- package/src/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -0
- package/src/templates/web/ui-auth-payments/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/ui-auth-payments/template/src/components/client/auth-status.tsx +52 -0
- package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +144 -0
- package/src/templates/web/ui-auth-payments/template/src/components/client/newsletter-signup.tsx +68 -0
- package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +185 -0
- package/src/templates/web/ui-auth-payments/template/src/components/providers/app-providers.tsx +34 -0
- package/src/templates/web/ui-auth-payments/template/src/components/providers/theme-provider.tsx +94 -0
- package/src/templates/web/ui-auth-payments/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +230 -0
- package/src/templates/web/ui-auth-payments/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/ui-auth-payments/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/ui-auth-payments/template/src/lib/actions/auth.ts +246 -0
- package/src/templates/web/ui-auth-payments/template/src/lib/actions/index.ts +340 -0
- package/src/templates/web/ui-auth-payments/template/src/lib/auth-server.ts +177 -0
- package/src/templates/web/ui-auth-payments/template/src/lib/env.ts +49 -0
- package/src/templates/web/ui-auth-payments/template/src/lib/platform.ts +146 -0
- package/src/templates/web/ui-auth-payments/template/src/lib/utils.ts +140 -0
- package/src/templates/web/ui-auth-payments/template/src/test/setup.ts +79 -0
- package/src/templates/web/ui-auth-payments/template/tailwind.config.js +77 -0
- package/src/templates/web/ui-auth-payments/template/tsconfig.json +33 -0
- package/src/templates/web/ui-auth-payments/template/tsconfig.tsbuildinfo +1 -0
- package/src/templates/web/ui-auth-payments/template/vitest.config.ts +17 -0
- package/src/templates/web/ui-auth-payments-ai/template/.claude +21 -0
- package/src/templates/web/ui-auth-payments-ai/template/.env.example +60 -0
- package/src/templates/web/ui-auth-payments-ai/template/README.md +207 -0
- package/src/templates/web/ui-auth-payments-ai/template/context.md +169 -0
- package/src/templates/web/ui-auth-payments-ai/template/middleware.ts +68 -0
- package/src/templates/web/ui-auth-payments-ai/template/next.config.js +12 -0
- package/src/templates/web/ui-auth-payments-ai/template/package-lock.json +12241 -0
- package/src/templates/web/ui-auth-payments-ai/template/package.json +58 -0
- package/src/templates/web/ui-auth-payments-ai/template/postcss.config.js +7 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/ai/page.tsx +310 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/audio/route.ts +56 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/chat/route.ts +49 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/text/route.ts +64 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/api/ai/video/route.ts +73 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/auth/callback/route.ts +12 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +422 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/checkout/page.tsx +142 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/dashboard/layout.tsx +22 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +236 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +801 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/error.tsx +67 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/globals.css +96 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/layout.tsx +35 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/loading.tsx +20 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/login/page.tsx +6 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +364 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +394 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.backup +391 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx.bak +391 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +532 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +645 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/app/signup/page.tsx +6 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/auth-status.tsx +52 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +163 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +201 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/providers/app-providers.tsx +38 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/providers/theme-provider.tsx +96 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/shared/header.tsx +252 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/actions/auth.ts +246 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/actions/index.ts +14 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/auth-server.ts +177 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/env.ts +49 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/platform.ts +155 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/supabase/server.ts +72 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/lib/utils.ts +140 -0
- package/src/templates/web/ui-auth-payments-ai/template/src/test/setup.ts +79 -0
- package/src/templates/web/ui-auth-payments-ai/template/tailwind.config.js +77 -0
- package/src/templates/web/ui-auth-payments-ai/template/tsconfig.json +33 -0
- package/src/templates/web/ui-auth-payments-ai/template/tsconfig.tsbuildinfo +1 -0
- package/src/templates/web/ui-auth-payments-ai/template/vitest.config.ts +17 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/README.md +434 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/components/rag/KnowledgeManager.tsx +642 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGAnalytics.tsx +466 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/components/rag/RAGChatInterface.tsx +393 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/docs/GETTING-STARTED.md +457 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/hooks/useRAGSystem.ts +478 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/lib/rag/config.ts +250 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +76 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/scripts/setup-rag.js +622 -0
- package/src/templates/web/ui-auth-payments-ai-rag/template/src/app/ai/page.tsx +396 -0
- package/src/templates/web/ui-auth-payments-audio/template/.env.example +15 -0
- package/src/templates/web/ui-auth-payments-audio/template/README.md +207 -0
- package/src/templates/web/ui-auth-payments-audio/template/middleware.ts +68 -0
- package/src/templates/web/ui-auth-payments-audio/template/next.config.js +12 -0
- package/src/templates/web/ui-auth-payments-audio/template/package-lock.json +12241 -0
- package/src/templates/web/ui-auth-payments-audio/template/package.json +55 -0
- package/src/templates/web/ui-auth-payments-audio/template/postcss.config.js +7 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/auth/callback/route.ts +12 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/billing/page.tsx +211 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/checkout/page.tsx +142 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/dashboard/layout.tsx +22 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +237 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/error.tsx +67 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/globals.css +96 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/layout.tsx +35 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/loading.tsx +20 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/login/page.tsx +6 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +403 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.backup +391 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx.bak +391 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/setup/page.tsx +345 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/app/signup/page.tsx +6 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/auth-status.tsx +52 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +144 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +185 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +38 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +96 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +252 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/lib/actions/auth.ts +246 -0
- 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/src/lib/auth-server.ts +177 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/lib/env.ts +49 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/lib/utils.ts +140 -0
- package/src/templates/web/ui-auth-payments-audio/template/src/test/setup.ts +79 -0
- package/src/templates/web/ui-auth-payments-audio/template/tailwind.config.js +77 -0
- package/src/templates/web/ui-auth-payments-audio/template/tsconfig.json +33 -0
- package/src/templates/web/ui-auth-payments-audio/template/tsconfig.tsbuildinfo +1 -0
- package/src/templates/web/ui-auth-payments-audio/template/vitest.config.ts +17 -0
- package/src/templates/web/ui-auth-payments-video/template/.env.example +15 -0
- package/src/templates/web/ui-auth-payments-video/template/README.md +190 -0
- package/src/templates/web/ui-auth-payments-video/template/next.config.js +12 -0
- package/src/templates/web/ui-auth-payments-video/template/package.json +55 -0
- package/src/templates/web/ui-auth-payments-video/template/postcss.config.js +7 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/auth/callback/route.ts +12 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/billing/page.tsx +211 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/checkout/page.tsx +142 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/error.tsx +67 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/globals.css +228 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/layout.tsx +33 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/loading.tsx +20 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +109 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +395 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/setup/page.tsx +351 -0
- package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +128 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/providers/app-providers.tsx +34 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/providers/theme-provider.tsx +94 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +246 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/ui-auth-payments-video/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/ui-auth-payments-video/template/src/lib/env.ts +49 -0
- package/src/templates/web/ui-auth-payments-video/template/src/lib/utils.ts +140 -0
- package/src/templates/web/ui-auth-payments-video/template/src/test/setup.ts +79 -0
- package/src/templates/web/ui-auth-payments-video/template/tailwind.config.js +77 -0
- package/src/templates/web/ui-auth-payments-video/template/tsconfig.json +33 -0
- package/src/templates/web/ui-auth-payments-video/template/vitest.config.ts +17 -0
- package/src/templates/web/ui-only/template/.env.example +15 -0
- package/src/templates/web/ui-only/template/.eslintrc.js +8 -0
- package/src/templates/web/ui-only/template/README.md +68 -0
- package/src/templates/web/ui-only/template/next.config.js +12 -0
- package/src/templates/web/ui-only/template/package.json +49 -0
- package/src/templates/web/ui-only/template/postcss.config.js +7 -0
- package/src/templates/web/ui-only/template/src/app/auth/callback/route.ts +12 -0
- package/src/templates/web/ui-only/template/src/app/checkout/page.tsx +25 -0
- package/src/templates/web/ui-only/template/src/app/error.tsx +67 -0
- package/src/templates/web/ui-only/template/src/app/globals.css +42 -0
- package/src/templates/web/ui-only/template/src/app/layout.tsx +33 -0
- package/src/templates/web/ui-only/template/src/app/loading.tsx +20 -0
- package/src/templates/web/ui-only/template/src/app/login/page.tsx +63 -0
- package/src/templates/web/ui-only/template/src/app/page.tsx +91 -0
- package/src/templates/web/ui-only/template/src/app/signup/page.tsx +79 -0
- package/src/templates/web/ui-only/template/src/components/__tests__/example.test.tsx +49 -0
- package/src/templates/web/ui-only/template/src/components/providers/app-providers.tsx +26 -0
- package/src/templates/web/ui-only/template/src/components/providers/theme-provider.tsx +94 -0
- package/src/templates/web/ui-only/template/src/components/shared/footer.tsx +36 -0
- package/src/templates/web/ui-only/template/src/components/shared/header.tsx +53 -0
- package/src/templates/web/ui-only/template/src/components/ui/badge.tsx +36 -0
- package/src/templates/web/ui-only/template/src/components/ui/theme-toggle.tsx +34 -0
- package/src/templates/web/ui-only/template/src/lib/env.ts +49 -0
- package/src/templates/web/ui-only/template/src/lib/utils.ts +140 -0
- package/src/templates/web/ui-only/template/src/test/setup.ts +79 -0
- package/src/templates/web/ui-only/template/tailwind.config.js +77 -0
- package/src/templates/web/ui-only/template/tsconfig.json +33 -0
- package/src/templates/web/ui-only/template/vitest.config.ts +17 -0
- package/src/templates/web/ui-only/template.backup/.env.example +15 -0
- package/src/templates/web/ui-only/template.backup.20250817/.env.example +15 -0
- package/src/templates/web/ui-package-test/template/next-env.d.ts +5 -0
- package/src/templates/web/ui-package-test/template/package.json +42 -0
- package/src/templates/web/ui-package-test/template/src/app/page.tsx +106 -0
- package/src/templates/web/ui-package-test/template/tsconfig.json +41 -0
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, ScrollView, Dimensions, RefreshControl, Animated } from 'react-native';
|
|
3
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
4
|
+
import { BlurView } from 'expo-blur';
|
|
5
|
+
import * as Haptics from 'expo-haptics';
|
|
6
|
+
|
|
7
|
+
// UI Components
|
|
8
|
+
import {
|
|
9
|
+
NativeCard as Card,
|
|
10
|
+
NativeMobileContainer as MobileContainer,
|
|
11
|
+
NativeChart as Chart,
|
|
12
|
+
NativeStatCard as StatCard,
|
|
13
|
+
NativeButton as Button,
|
|
14
|
+
NativeSegmentedControl as SegmentedControl,
|
|
15
|
+
NativePageTransition as PageTransition,
|
|
16
|
+
NativeMobileHero as MobileHero,
|
|
17
|
+
NativePullToRefresh as PullToRefresh,
|
|
18
|
+
useTheme
|
|
19
|
+
} from '@digilogiclabs/saas-factory-ui/native';
|
|
20
|
+
|
|
21
|
+
// Icons
|
|
22
|
+
import {
|
|
23
|
+
TrendingUp,
|
|
24
|
+
TrendingDown,
|
|
25
|
+
Users,
|
|
26
|
+
ShoppingBag,
|
|
27
|
+
DollarSign,
|
|
28
|
+
Eye,
|
|
29
|
+
BarChart3,
|
|
30
|
+
PieChart,
|
|
31
|
+
Calendar
|
|
32
|
+
} from 'react-native-heroicons/outline';
|
|
33
|
+
|
|
34
|
+
const { width } = Dimensions.get('window');
|
|
35
|
+
|
|
36
|
+
interface AnalyticsData {
|
|
37
|
+
overview: {
|
|
38
|
+
revenue: { current: number; previous: number; change: number };
|
|
39
|
+
orders: { current: number; previous: number; change: number };
|
|
40
|
+
customers: { current: number; previous: number; change: number };
|
|
41
|
+
conversionRate: { current: number; previous: number; change: number };
|
|
42
|
+
};
|
|
43
|
+
chartData: {
|
|
44
|
+
revenue: Array<{ date: string; value: number }>;
|
|
45
|
+
orders: Array<{ date: string; value: number }>;
|
|
46
|
+
traffic: Array<{ date: string; value: number }>;
|
|
47
|
+
};
|
|
48
|
+
topProducts: Array<{
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
sales: number;
|
|
52
|
+
revenue: number;
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const mockAnalyticsData: AnalyticsData = {
|
|
57
|
+
overview: {
|
|
58
|
+
revenue: { current: 12450, previous: 11200, change: 11.2 },
|
|
59
|
+
orders: { current: 156, previous: 142, change: 9.9 },
|
|
60
|
+
customers: { current: 1249, previous: 1180, change: 5.8 },
|
|
61
|
+
conversionRate: { current: 3.2, previous: 2.8, change: 14.3 }
|
|
62
|
+
},
|
|
63
|
+
chartData: {
|
|
64
|
+
revenue: [
|
|
65
|
+
{ date: 'Jan 1', value: 1200 },
|
|
66
|
+
{ date: 'Jan 8', value: 1800 },
|
|
67
|
+
{ date: 'Jan 15', value: 2100 },
|
|
68
|
+
{ date: 'Jan 22', value: 1600 },
|
|
69
|
+
{ date: 'Jan 29', value: 2400 },
|
|
70
|
+
{ date: 'Feb 5', value: 2800 },
|
|
71
|
+
{ date: 'Feb 12', value: 1900 }
|
|
72
|
+
],
|
|
73
|
+
orders: [
|
|
74
|
+
{ date: 'Jan 1', value: 15 },
|
|
75
|
+
{ date: 'Jan 8', value: 22 },
|
|
76
|
+
{ date: 'Jan 15', value: 28 },
|
|
77
|
+
{ date: 'Jan 22', value: 18 },
|
|
78
|
+
{ date: 'Jan 29', value: 32 },
|
|
79
|
+
{ date: 'Feb 5', value: 38 },
|
|
80
|
+
{ date: 'Feb 12', value: 25 }
|
|
81
|
+
],
|
|
82
|
+
traffic: [
|
|
83
|
+
{ date: 'Jan 1', value: 450 },
|
|
84
|
+
{ date: 'Jan 8', value: 680 },
|
|
85
|
+
{ date: 'Jan 15', value: 820 },
|
|
86
|
+
{ date: 'Jan 22', value: 590 },
|
|
87
|
+
{ date: 'Jan 29', value: 920 },
|
|
88
|
+
{ date: 'Feb 5', value: 1100 },
|
|
89
|
+
{ date: 'Feb 12', value: 750 }
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
topProducts: [
|
|
93
|
+
{ id: '1', name: 'Premium Widget', sales: 45, revenue: 2250 },
|
|
94
|
+
{ id: '2', name: 'Starter Kit', sales: 38, revenue: 1520 },
|
|
95
|
+
{ id: '3', name: 'Pro Bundle', sales: 29, revenue: 1450 },
|
|
96
|
+
{ id: '4', name: 'Basic Plan', sales: 52, revenue: 1040 }
|
|
97
|
+
]
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export default function AnalyticsScreen() {
|
|
101
|
+
const [data, setData] = useState<AnalyticsData>(mockAnalyticsData);
|
|
102
|
+
const [selectedPeriod, setSelectedPeriod] = useState<string>('7d');
|
|
103
|
+
const [selectedChart, setSelectedChart] = useState<string>('revenue');
|
|
104
|
+
const [loading, setLoading] = useState(false);
|
|
105
|
+
const [refreshing, setRefreshing] = useState(false);
|
|
106
|
+
const { theme, isDark } = useTheme();
|
|
107
|
+
|
|
108
|
+
// Animation values
|
|
109
|
+
const fadeAnim = useState(new Animated.Value(0))[0];
|
|
110
|
+
const slideAnim = useState(new Animated.Value(50))[0];
|
|
111
|
+
|
|
112
|
+
const periodOptions = [
|
|
113
|
+
{ label: '7D', value: '7d' },
|
|
114
|
+
{ label: '30D', value: '30d' },
|
|
115
|
+
{ label: '90D', value: '90d' }
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
const chartOptions = [
|
|
119
|
+
{ label: 'Revenue', value: 'revenue' },
|
|
120
|
+
{ label: 'Orders', value: 'orders' },
|
|
121
|
+
{ label: 'Traffic', value: 'traffic' }
|
|
122
|
+
];
|
|
123
|
+
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
// Fetch analytics data based on selected period
|
|
126
|
+
fetchAnalyticsData();
|
|
127
|
+
|
|
128
|
+
// Entrance animations
|
|
129
|
+
Animated.parallel([
|
|
130
|
+
Animated.timing(fadeAnim, {
|
|
131
|
+
toValue: 1,
|
|
132
|
+
duration: 600,
|
|
133
|
+
useNativeDriver: true,
|
|
134
|
+
}),
|
|
135
|
+
Animated.spring(slideAnim, {
|
|
136
|
+
toValue: 0,
|
|
137
|
+
tension: 50,
|
|
138
|
+
friction: 8,
|
|
139
|
+
useNativeDriver: true,
|
|
140
|
+
}),
|
|
141
|
+
]).start();
|
|
142
|
+
}, [selectedPeriod]);
|
|
143
|
+
|
|
144
|
+
const fetchAnalyticsData = async () => {
|
|
145
|
+
setLoading(true);
|
|
146
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
147
|
+
// Simulate API call
|
|
148
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
149
|
+
setLoading(false);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
const onRefresh = async () => {
|
|
153
|
+
setRefreshing(true);
|
|
154
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
|
|
155
|
+
await fetchAnalyticsData();
|
|
156
|
+
setRefreshing(false);
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const renderStatCard = (
|
|
160
|
+
title: string,
|
|
161
|
+
icon: React.ReactNode,
|
|
162
|
+
current: number,
|
|
163
|
+
change: number,
|
|
164
|
+
format: 'currency' | 'number' | 'percentage' = 'number'
|
|
165
|
+
) => {
|
|
166
|
+
const formatValue = (value: number) => {
|
|
167
|
+
switch (format) {
|
|
168
|
+
case 'currency':
|
|
169
|
+
return `$${value.toLocaleString()}`;
|
|
170
|
+
case 'percentage':
|
|
171
|
+
return `${value}%`;
|
|
172
|
+
default:
|
|
173
|
+
return value.toLocaleString();
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const isPositive = change >= 0;
|
|
178
|
+
const TrendIcon = isPositive ? TrendingUp : TrendingDown;
|
|
179
|
+
|
|
180
|
+
return (
|
|
181
|
+
<StatCard
|
|
182
|
+
title={title}
|
|
183
|
+
value={formatValue(current)}
|
|
184
|
+
icon={icon}
|
|
185
|
+
change={`${isPositive ? '+' : ''}${change.toFixed(1)}%`}
|
|
186
|
+
changeType={isPositive ? 'positive' : 'negative'}
|
|
187
|
+
style={styles.statCard}
|
|
188
|
+
/>
|
|
189
|
+
);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
return (
|
|
193
|
+
<PageTransition type="fade">
|
|
194
|
+
<View style={styles.mainContainer}>
|
|
195
|
+
{/* Enhanced gradient background with floating elements */}
|
|
196
|
+
<LinearGradient
|
|
197
|
+
colors={isDark
|
|
198
|
+
? ['#0F172A', '#1E293B', '#334155']
|
|
199
|
+
: ['#F8FAFC', '#E2E8F0', '#CBD5E1']
|
|
200
|
+
}
|
|
201
|
+
style={styles.gradientBackground}
|
|
202
|
+
/>
|
|
203
|
+
|
|
204
|
+
{/* Floating animated elements */}
|
|
205
|
+
<Animated.View style={[styles.floatingElement, styles.element1, {
|
|
206
|
+
opacity: fadeAnim,
|
|
207
|
+
transform: [{ translateY: slideAnim }]
|
|
208
|
+
}]}>
|
|
209
|
+
<LinearGradient
|
|
210
|
+
colors={['rgba(139, 92, 246, 0.3)', 'rgba(79, 70, 229, 0.3)']}
|
|
211
|
+
style={styles.gradientOrb}
|
|
212
|
+
/>
|
|
213
|
+
</Animated.View>
|
|
214
|
+
|
|
215
|
+
<Animated.View style={[styles.floatingElement, styles.element2, {
|
|
216
|
+
opacity: fadeAnim,
|
|
217
|
+
transform: [{ translateY: slideAnim }]
|
|
218
|
+
}]}>
|
|
219
|
+
<LinearGradient
|
|
220
|
+
colors={['rgba(16, 185, 129, 0.3)', 'rgba(5, 150, 105, 0.3)']}
|
|
221
|
+
style={styles.gradientOrb}
|
|
222
|
+
/>
|
|
223
|
+
</Animated.View>
|
|
224
|
+
|
|
225
|
+
<Animated.View style={[styles.floatingElement, styles.element3, {
|
|
226
|
+
opacity: fadeAnim,
|
|
227
|
+
transform: [{ translateY: slideAnim }]
|
|
228
|
+
}]}>
|
|
229
|
+
<LinearGradient
|
|
230
|
+
colors={['rgba(59, 130, 246, 0.3)', 'rgba(37, 99, 235, 0.3)']}
|
|
231
|
+
style={styles.gradientOrb}
|
|
232
|
+
/>
|
|
233
|
+
</Animated.View>
|
|
234
|
+
|
|
235
|
+
<PullToRefresh
|
|
236
|
+
onRefresh={onRefresh}
|
|
237
|
+
refreshing={refreshing}
|
|
238
|
+
>
|
|
239
|
+
<ScrollView
|
|
240
|
+
style={styles.scrollView}
|
|
241
|
+
showsVerticalScrollIndicator={false}
|
|
242
|
+
refreshControl={
|
|
243
|
+
<RefreshControl refreshing={refreshing} onRefresh={onRefresh} />
|
|
244
|
+
}
|
|
245
|
+
>
|
|
246
|
+
<MobileContainer style={styles.container}>
|
|
247
|
+
{/* Hero Section */}
|
|
248
|
+
<Animated.View style={{
|
|
249
|
+
opacity: fadeAnim,
|
|
250
|
+
transform: [{ translateY: slideAnim }]
|
|
251
|
+
}}>
|
|
252
|
+
<MobileHero
|
|
253
|
+
badge={{
|
|
254
|
+
text: "📊 Analytics Dashboard",
|
|
255
|
+
variant: "secondary"
|
|
256
|
+
}}
|
|
257
|
+
title={{
|
|
258
|
+
text: "Business Insights",
|
|
259
|
+
size: "lg"
|
|
260
|
+
}}
|
|
261
|
+
description="Track your performance with real-time analytics and detailed reports."
|
|
262
|
+
className="text-center mb-6"
|
|
263
|
+
/>
|
|
264
|
+
</Animated.View>
|
|
265
|
+
{/* Period Selector with Glass Effect */}
|
|
266
|
+
<Animated.View style={[styles.periodSelector, {
|
|
267
|
+
opacity: fadeAnim,
|
|
268
|
+
transform: [{ translateY: slideAnim }]
|
|
269
|
+
}]}>
|
|
270
|
+
<BlurView intensity={20} style={styles.periodSelectorBlur}>
|
|
271
|
+
<SegmentedControl
|
|
272
|
+
options={periodOptions}
|
|
273
|
+
selectedValue={selectedPeriod}
|
|
274
|
+
onValueChange={setSelectedPeriod}
|
|
275
|
+
/>
|
|
276
|
+
</BlurView>
|
|
277
|
+
</Animated.View>
|
|
278
|
+
|
|
279
|
+
{/* Overview Stats with Glass Cards */}
|
|
280
|
+
<Animated.View style={[styles.statsSection, {
|
|
281
|
+
opacity: fadeAnim,
|
|
282
|
+
transform: [{ translateY: slideAnim }]
|
|
283
|
+
}]}>
|
|
284
|
+
<Text style={styles.sectionTitle}>Overview</Text>
|
|
285
|
+
<View style={styles.statsGrid}>
|
|
286
|
+
{renderStatCard(
|
|
287
|
+
'Revenue',
|
|
288
|
+
<DollarSign width={24} height={24} color="#10b981" />,
|
|
289
|
+
data.overview.revenue.current,
|
|
290
|
+
data.overview.revenue.change,
|
|
291
|
+
'currency'
|
|
292
|
+
)}
|
|
293
|
+
{renderStatCard(
|
|
294
|
+
'Orders',
|
|
295
|
+
<ShoppingBag width={24} height={24} color="#3b82f6" />,
|
|
296
|
+
data.overview.orders.current,
|
|
297
|
+
data.overview.orders.change
|
|
298
|
+
)}
|
|
299
|
+
{renderStatCard(
|
|
300
|
+
'Customers',
|
|
301
|
+
<Users width={24} height={24} color="#f59e0b" />,
|
|
302
|
+
data.overview.customers.current,
|
|
303
|
+
data.overview.customers.change
|
|
304
|
+
)}
|
|
305
|
+
{renderStatCard(
|
|
306
|
+
'Conversion',
|
|
307
|
+
<TrendingUp width={24} height={24} color="#ef4444" />,
|
|
308
|
+
data.overview.conversionRate.current,
|
|
309
|
+
data.overview.conversionRate.change,
|
|
310
|
+
'percentage'
|
|
311
|
+
)}
|
|
312
|
+
</View>
|
|
313
|
+
</Animated.View>
|
|
314
|
+
|
|
315
|
+
{/* Chart Section with Glass Effect */}
|
|
316
|
+
<Animated.View style={{
|
|
317
|
+
opacity: fadeAnim,
|
|
318
|
+
transform: [{ translateY: slideAnim }]
|
|
319
|
+
}}>
|
|
320
|
+
<BlurView intensity={30} style={styles.chartCardBlur}>
|
|
321
|
+
<Card style={styles.chartCard}>
|
|
322
|
+
<View style={styles.chartHeader}>
|
|
323
|
+
<Text style={styles.chartTitle}>
|
|
324
|
+
{chartOptions.find(opt => opt.value === selectedChart)?.label} Trends
|
|
325
|
+
</Text>
|
|
326
|
+
<SegmentedControl
|
|
327
|
+
options={chartOptions}
|
|
328
|
+
selectedValue={selectedChart}
|
|
329
|
+
onValueChange={setSelectedChart}
|
|
330
|
+
size="sm"
|
|
331
|
+
/>
|
|
332
|
+
</View>
|
|
333
|
+
|
|
334
|
+
<Chart
|
|
335
|
+
data={data.chartData[selectedChart as keyof typeof data.chartData]}
|
|
336
|
+
type="line"
|
|
337
|
+
xKey="date"
|
|
338
|
+
yKey="value"
|
|
339
|
+
height={200}
|
|
340
|
+
style={styles.chart}
|
|
341
|
+
loading={loading}
|
|
342
|
+
/>
|
|
343
|
+
</Card>
|
|
344
|
+
</BlurView>
|
|
345
|
+
</Animated.View>
|
|
346
|
+
|
|
347
|
+
{/* Top Products with Glass Effect */}
|
|
348
|
+
<Animated.View style={{
|
|
349
|
+
opacity: fadeAnim,
|
|
350
|
+
transform: [{ translateY: slideAnim }]
|
|
351
|
+
}}>
|
|
352
|
+
<BlurView intensity={25} style={styles.topProductsBlur}>
|
|
353
|
+
<Card style={styles.topProductsCard}>
|
|
354
|
+
<View style={styles.cardHeader}>
|
|
355
|
+
<Text style={styles.cardTitle}>Top Products</Text>
|
|
356
|
+
<Button variant="ghost" size="sm">
|
|
357
|
+
<Eye width={16} height={16} />
|
|
358
|
+
<Text>View All</Text>
|
|
359
|
+
</Button>
|
|
360
|
+
</View>
|
|
361
|
+
|
|
362
|
+
<View style={styles.productsList}>
|
|
363
|
+
{data.topProducts.map((product, index) => (
|
|
364
|
+
<View key={product.id} style={styles.productItem}>
|
|
365
|
+
<View style={styles.productRank}>
|
|
366
|
+
<Text style={styles.rankNumber}>{index + 1}</Text>
|
|
367
|
+
</View>
|
|
368
|
+
<View style={styles.productInfo}>
|
|
369
|
+
<Text style={styles.productName}>{product.name}</Text>
|
|
370
|
+
<View style={styles.productStats}>
|
|
371
|
+
<Text style={styles.productSales}>{product.sales} sales</Text>
|
|
372
|
+
<Text style={styles.productRevenue}>
|
|
373
|
+
${product.revenue.toLocaleString()}
|
|
374
|
+
</Text>
|
|
375
|
+
</View>
|
|
376
|
+
</View>
|
|
377
|
+
<View style={styles.productChart}>
|
|
378
|
+
<BarChart3 width={20} height={20} color="#64748b" />
|
|
379
|
+
</View>
|
|
380
|
+
</View>
|
|
381
|
+
))}
|
|
382
|
+
</View>
|
|
383
|
+
</Card>
|
|
384
|
+
</BlurView>
|
|
385
|
+
</Animated.View>
|
|
386
|
+
|
|
387
|
+
{/* Additional Metrics with Glass Effect */}
|
|
388
|
+
<Animated.View style={[styles.additionalMetrics, {
|
|
389
|
+
opacity: fadeAnim,
|
|
390
|
+
transform: [{ translateY: slideAnim }]
|
|
391
|
+
}]}>
|
|
392
|
+
<BlurView intensity={20} style={[styles.metricCardBlur, { marginRight: 6 }]}>
|
|
393
|
+
<Card style={styles.metricCard}>
|
|
394
|
+
<View style={styles.metricHeader}>
|
|
395
|
+
<PieChart width={20} height={20} color="#3b82f6" />
|
|
396
|
+
<Text style={styles.metricTitle}>Traffic Sources</Text>
|
|
397
|
+
</View>
|
|
398
|
+
<View style={styles.metricValue}>
|
|
399
|
+
<Text style={styles.metricNumber}>68%</Text>
|
|
400
|
+
<Text style={styles.metricLabel}>Direct</Text>
|
|
401
|
+
</View>
|
|
402
|
+
</Card>
|
|
403
|
+
</BlurView>
|
|
404
|
+
|
|
405
|
+
<BlurView intensity={20} style={[styles.metricCardBlur, { marginLeft: 6 }]}>
|
|
406
|
+
<Card style={styles.metricCard}>
|
|
407
|
+
<View style={styles.metricHeader}>
|
|
408
|
+
<Calendar width={20} height={20} color="#10b981" />
|
|
409
|
+
<Text style={styles.metricTitle}>Avg. Order Value</Text>
|
|
410
|
+
</View>
|
|
411
|
+
<View style={styles.metricValue}>
|
|
412
|
+
<Text style={styles.metricNumber}>$79.85</Text>
|
|
413
|
+
<Text style={styles.metricLabel}>+12.5%</Text>
|
|
414
|
+
</View>
|
|
415
|
+
</Card>
|
|
416
|
+
</BlurView>
|
|
417
|
+
</Animated.View>
|
|
418
|
+
|
|
419
|
+
{/* Export Button with Glass Effect */}
|
|
420
|
+
<Animated.View style={{
|
|
421
|
+
opacity: fadeAnim,
|
|
422
|
+
transform: [{ translateY: slideAnim }]
|
|
423
|
+
}}>
|
|
424
|
+
<BlurView intensity={15} style={styles.exportButtonBlur}>
|
|
425
|
+
<Button
|
|
426
|
+
variant="outline"
|
|
427
|
+
style={styles.exportButton}
|
|
428
|
+
onPress={() => {
|
|
429
|
+
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
430
|
+
}}
|
|
431
|
+
>
|
|
432
|
+
Export Analytics Report
|
|
433
|
+
</Button>
|
|
434
|
+
</BlurView>
|
|
435
|
+
</Animated.View>
|
|
436
|
+
</MobileContainer>
|
|
437
|
+
</ScrollView>
|
|
438
|
+
</PullToRefresh>
|
|
439
|
+
</View>
|
|
440
|
+
</PageTransition>
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
const styles = StyleSheet.create({
|
|
445
|
+
mainContainer: {
|
|
446
|
+
flex: 1,
|
|
447
|
+
backgroundColor: 'transparent',
|
|
448
|
+
},
|
|
449
|
+
gradientBackground: {
|
|
450
|
+
position: 'absolute',
|
|
451
|
+
left: 0,
|
|
452
|
+
right: 0,
|
|
453
|
+
top: 0,
|
|
454
|
+
bottom: 0,
|
|
455
|
+
},
|
|
456
|
+
floatingElement: {
|
|
457
|
+
position: 'absolute',
|
|
458
|
+
borderRadius: 100,
|
|
459
|
+
},
|
|
460
|
+
element1: {
|
|
461
|
+
top: 100,
|
|
462
|
+
right: 50,
|
|
463
|
+
width: 120,
|
|
464
|
+
height: 120,
|
|
465
|
+
},
|
|
466
|
+
element2: {
|
|
467
|
+
top: 300,
|
|
468
|
+
left: 30,
|
|
469
|
+
width: 80,
|
|
470
|
+
height: 80,
|
|
471
|
+
},
|
|
472
|
+
element3: {
|
|
473
|
+
bottom: 200,
|
|
474
|
+
right: 80,
|
|
475
|
+
width: 100,
|
|
476
|
+
height: 100,
|
|
477
|
+
},
|
|
478
|
+
gradientOrb: {
|
|
479
|
+
flex: 1,
|
|
480
|
+
borderRadius: 100,
|
|
481
|
+
},
|
|
482
|
+
scrollView: {
|
|
483
|
+
flex: 1,
|
|
484
|
+
backgroundColor: 'transparent',
|
|
485
|
+
},
|
|
486
|
+
container: {
|
|
487
|
+
padding: 16,
|
|
488
|
+
paddingBottom: 100,
|
|
489
|
+
},
|
|
490
|
+
periodSelector: {
|
|
491
|
+
marginBottom: 24,
|
|
492
|
+
},
|
|
493
|
+
periodSelectorBlur: {
|
|
494
|
+
borderRadius: 16,
|
|
495
|
+
overflow: 'hidden',
|
|
496
|
+
padding: 16,
|
|
497
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
498
|
+
},
|
|
499
|
+
statsSection: {
|
|
500
|
+
marginBottom: 24,
|
|
501
|
+
},
|
|
502
|
+
sectionTitle: {
|
|
503
|
+
fontSize: 20,
|
|
504
|
+
fontWeight: '700',
|
|
505
|
+
color: '#1e293b',
|
|
506
|
+
marginBottom: 16,
|
|
507
|
+
textAlign: 'center',
|
|
508
|
+
},
|
|
509
|
+
statsGrid: {
|
|
510
|
+
flexDirection: 'row',
|
|
511
|
+
flexWrap: 'wrap',
|
|
512
|
+
marginHorizontal: -8,
|
|
513
|
+
},
|
|
514
|
+
statCard: {
|
|
515
|
+
width: (width - 48) / 2,
|
|
516
|
+
marginHorizontal: 8,
|
|
517
|
+
marginBottom: 16,
|
|
518
|
+
},
|
|
519
|
+
chartCardBlur: {
|
|
520
|
+
borderRadius: 20,
|
|
521
|
+
overflow: 'hidden',
|
|
522
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
523
|
+
marginBottom: 16,
|
|
524
|
+
},
|
|
525
|
+
chartCard: {
|
|
526
|
+
padding: 20,
|
|
527
|
+
backgroundColor: 'transparent',
|
|
528
|
+
shadowOpacity: 0,
|
|
529
|
+
elevation: 0,
|
|
530
|
+
},
|
|
531
|
+
chartHeader: {
|
|
532
|
+
flexDirection: 'row',
|
|
533
|
+
justifyContent: 'space-between',
|
|
534
|
+
alignItems: 'center',
|
|
535
|
+
marginBottom: 20,
|
|
536
|
+
},
|
|
537
|
+
chartTitle: {
|
|
538
|
+
fontSize: 18,
|
|
539
|
+
fontWeight: '700',
|
|
540
|
+
color: '#1e293b',
|
|
541
|
+
},
|
|
542
|
+
chart: {
|
|
543
|
+
marginTop: 12,
|
|
544
|
+
},
|
|
545
|
+
topProductsBlur: {
|
|
546
|
+
borderRadius: 20,
|
|
547
|
+
overflow: 'hidden',
|
|
548
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
549
|
+
marginBottom: 16,
|
|
550
|
+
},
|
|
551
|
+
topProductsCard: {
|
|
552
|
+
padding: 20,
|
|
553
|
+
backgroundColor: 'transparent',
|
|
554
|
+
shadowOpacity: 0,
|
|
555
|
+
elevation: 0,
|
|
556
|
+
},
|
|
557
|
+
cardHeader: {
|
|
558
|
+
flexDirection: 'row',
|
|
559
|
+
justifyContent: 'space-between',
|
|
560
|
+
alignItems: 'center',
|
|
561
|
+
marginBottom: 20,
|
|
562
|
+
},
|
|
563
|
+
cardTitle: {
|
|
564
|
+
fontSize: 18,
|
|
565
|
+
fontWeight: '700',
|
|
566
|
+
color: '#1e293b',
|
|
567
|
+
},
|
|
568
|
+
productsList: {
|
|
569
|
+
gap: 12,
|
|
570
|
+
},
|
|
571
|
+
productItem: {
|
|
572
|
+
flexDirection: 'row',
|
|
573
|
+
alignItems: 'center',
|
|
574
|
+
paddingVertical: 8,
|
|
575
|
+
},
|
|
576
|
+
productRank: {
|
|
577
|
+
width: 32,
|
|
578
|
+
height: 32,
|
|
579
|
+
backgroundColor: '#f1f5f9',
|
|
580
|
+
borderRadius: 16,
|
|
581
|
+
alignItems: 'center',
|
|
582
|
+
justifyContent: 'center',
|
|
583
|
+
marginRight: 12,
|
|
584
|
+
},
|
|
585
|
+
rankNumber: {
|
|
586
|
+
fontSize: 14,
|
|
587
|
+
fontWeight: '600',
|
|
588
|
+
color: '#475569',
|
|
589
|
+
},
|
|
590
|
+
productInfo: {
|
|
591
|
+
flex: 1,
|
|
592
|
+
},
|
|
593
|
+
productName: {
|
|
594
|
+
fontSize: 14,
|
|
595
|
+
fontWeight: '500',
|
|
596
|
+
color: '#1e293b',
|
|
597
|
+
marginBottom: 2,
|
|
598
|
+
},
|
|
599
|
+
productStats: {
|
|
600
|
+
flexDirection: 'row',
|
|
601
|
+
gap: 12,
|
|
602
|
+
},
|
|
603
|
+
productSales: {
|
|
604
|
+
fontSize: 12,
|
|
605
|
+
color: '#64748b',
|
|
606
|
+
},
|
|
607
|
+
productRevenue: {
|
|
608
|
+
fontSize: 12,
|
|
609
|
+
fontWeight: '500',
|
|
610
|
+
color: '#10b981',
|
|
611
|
+
},
|
|
612
|
+
productChart: {
|
|
613
|
+
marginLeft: 12,
|
|
614
|
+
},
|
|
615
|
+
additionalMetrics: {
|
|
616
|
+
flexDirection: 'row',
|
|
617
|
+
gap: 12,
|
|
618
|
+
marginBottom: 24,
|
|
619
|
+
},
|
|
620
|
+
metricCardBlur: {
|
|
621
|
+
flex: 1,
|
|
622
|
+
borderRadius: 16,
|
|
623
|
+
overflow: 'hidden',
|
|
624
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
625
|
+
},
|
|
626
|
+
metricCard: {
|
|
627
|
+
flex: 1,
|
|
628
|
+
padding: 20,
|
|
629
|
+
backgroundColor: 'transparent',
|
|
630
|
+
shadowOpacity: 0,
|
|
631
|
+
elevation: 0,
|
|
632
|
+
},
|
|
633
|
+
metricHeader: {
|
|
634
|
+
flexDirection: 'row',
|
|
635
|
+
alignItems: 'center',
|
|
636
|
+
gap: 8,
|
|
637
|
+
marginBottom: 16,
|
|
638
|
+
},
|
|
639
|
+
metricTitle: {
|
|
640
|
+
fontSize: 14,
|
|
641
|
+
fontWeight: '600',
|
|
642
|
+
color: '#64748b',
|
|
643
|
+
},
|
|
644
|
+
metricValue: {
|
|
645
|
+
alignItems: 'flex-start',
|
|
646
|
+
},
|
|
647
|
+
metricNumber: {
|
|
648
|
+
fontSize: 24,
|
|
649
|
+
fontWeight: '800',
|
|
650
|
+
color: '#1e293b',
|
|
651
|
+
marginBottom: 4,
|
|
652
|
+
},
|
|
653
|
+
metricLabel: {
|
|
654
|
+
fontSize: 12,
|
|
655
|
+
fontWeight: '600',
|
|
656
|
+
color: '#10b981',
|
|
657
|
+
},
|
|
658
|
+
exportButtonBlur: {
|
|
659
|
+
borderRadius: 16,
|
|
660
|
+
overflow: 'hidden',
|
|
661
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
662
|
+
marginTop: 8,
|
|
663
|
+
},
|
|
664
|
+
exportButton: {
|
|
665
|
+
margin: 16,
|
|
666
|
+
backgroundColor: 'transparent',
|
|
667
|
+
},
|
|
668
|
+
});
|