@digilogiclabs/create-saas-app 2.8.1 → 2.9.0
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/generators/template-generator.js +8 -8
- package/dist/generators/template-generator.js.map +1 -1
- package/dist/templates/shared/quality/web/src/__tests__/accessibility.test.tsx +3 -3
- package/dist/templates/web/ai-platform/template/src/app/page.tsx +207 -207
- package/dist/templates/web/base/template/src/app/dashboard/page.tsx +6 -43
- package/dist/templates/web/base/template/src/app/page.tsx +2 -2
- package/dist/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +800 -800
- package/dist/templates/web/ui-auth/template/src/app/login/page.tsx +109 -109
- package/dist/templates/web/ui-auth/template/src/app/page.tsx +3 -3
- package/dist/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -128
- package/dist/templates/web/ui-auth-ai/template/src/app/globals.css +35 -40
- package/dist/templates/web/ui-auth-ai/template/src/app/layout.tsx +1 -0
- package/dist/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +3 -3
- package/dist/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +10 -49
- package/dist/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +800 -800
- package/dist/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -109
- package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -350
- package/dist/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +506 -506
- package/dist/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -128
- package/dist/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +143 -143
- package/dist/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +184 -184
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +143 -233
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +10 -50
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +800 -800
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +325 -364
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +389 -532
- package/dist/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +644 -644
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +119 -163
- package/dist/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +158 -201
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +10 -51
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +402 -403
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +143 -143
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +184 -184
- package/dist/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
- package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +3 -7
- package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
- package/package.json +1 -1
- package/src/templates/shared/quality/web/src/__tests__/accessibility.test.tsx +3 -3
- package/src/templates/web/ai-platform/template/src/app/page.tsx +207 -207
- package/src/templates/web/base/template/src/app/dashboard/page.tsx +6 -43
- package/src/templates/web/base/template/src/app/page.tsx +2 -2
- package/src/templates/web/ui-auth/template/src/app/dev-setup/page.tsx +800 -800
- package/src/templates/web/ui-auth/template/src/app/login/page.tsx +109 -109
- package/src/templates/web/ui-auth/template/src/app/page.tsx +3 -3
- package/src/templates/web/ui-auth/template/src/app/signup/page.tsx +128 -128
- package/src/templates/web/ui-auth-ai/template/src/app/globals.css +35 -40
- package/src/templates/web/ui-auth-ai/template/src/app/layout.tsx +1 -0
- package/src/templates/web/ui-auth-payments/template/src/app/checkout/page.tsx +3 -3
- package/src/templates/web/ui-auth-payments/template/src/app/dashboard/page.tsx +10 -49
- package/src/templates/web/ui-auth-payments/template/src/app/dev-setup/page.tsx +800 -800
- package/src/templates/web/ui-auth-payments/template/src/app/login/page.tsx +109 -109
- package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +350 -350
- package/src/templates/web/ui-auth-payments/template/src/app/setup/page.tsx +506 -506
- package/src/templates/web/ui-auth-payments/template/src/app/signup/page.tsx +128 -128
- package/src/templates/web/ui-auth-payments/template/src/components/client/login-form.tsx +143 -143
- package/src/templates/web/ui-auth-payments/template/src/components/client/signup-form.tsx +184 -184
- package/src/templates/web/ui-auth-payments-ai/template/src/app/billing/page.tsx +143 -233
- package/src/templates/web/ui-auth-payments-ai/template/src/app/dashboard/page.tsx +10 -50
- package/src/templates/web/ui-auth-payments-ai/template/src/app/dev-setup/page.tsx +800 -800
- package/src/templates/web/ui-auth-payments-ai/template/src/app/onboarding/page.tsx +325 -364
- package/src/templates/web/ui-auth-payments-ai/template/src/app/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-ai/template/src/app/settings/page.tsx +389 -532
- package/src/templates/web/ui-auth-payments-ai/template/src/app/setup/page.tsx +644 -644
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/login-form.tsx +119 -163
- package/src/templates/web/ui-auth-payments-ai/template/src/components/client/signup-form.tsx +158 -201
- package/src/templates/web/ui-auth-payments-audio/template/src/app/dashboard/page.tsx +10 -51
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +402 -403
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/login-form.tsx +143 -143
- package/src/templates/web/ui-auth-payments-audio/template/src/components/client/signup-form.tsx +184 -184
- package/src/templates/web/ui-auth-payments-video/template/src/app/login/page.tsx +1 -1
- package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +3 -7
- package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
|
@@ -16,9 +16,7 @@ import {
|
|
|
16
16
|
OfflineWrapper,
|
|
17
17
|
useNetworkInfo,
|
|
18
18
|
useOfflineState,
|
|
19
|
-
DashboardLayout
|
|
20
|
-
CommandPalette,
|
|
21
|
-
Tour
|
|
19
|
+
DashboardLayout
|
|
22
20
|
} from '@digilogiclabs/saas-factory-ui';
|
|
23
21
|
import {
|
|
24
22
|
BarChart3,
|
|
@@ -30,10 +28,7 @@ import {
|
|
|
30
28
|
Star,
|
|
31
29
|
Trash2,
|
|
32
30
|
Wifi,
|
|
33
|
-
WifiOff
|
|
34
|
-
Home,
|
|
35
|
-
FileText,
|
|
36
|
-
Activity
|
|
31
|
+
WifiOff
|
|
37
32
|
} from 'lucide-react';
|
|
38
33
|
|
|
39
34
|
// Mock data for demonstration
|
|
@@ -49,32 +44,6 @@ const mockActivityData = Array.from({ length: 50 }, (_, i) => ({
|
|
|
49
44
|
export default function DashboardPage() {
|
|
50
45
|
const { user } = useAuth();
|
|
51
46
|
|
|
52
|
-
const sidebarNavigation = [
|
|
53
|
-
{ name: 'Dashboard', href: '/dashboard', icon: Home, current: true },
|
|
54
|
-
{ name: 'Analytics', href: '/dashboard/analytics', icon: BarChart3 },
|
|
55
|
-
{ name: 'Reports', href: '/dashboard/reports', icon: FileText },
|
|
56
|
-
{ name: 'Activity', href: '/dashboard/activity', icon: Activity },
|
|
57
|
-
{ name: 'Settings', href: '/settings', icon: Settings }
|
|
58
|
-
]
|
|
59
|
-
|
|
60
|
-
const tourSteps = [
|
|
61
|
-
{
|
|
62
|
-
target: '[data-tour="overview"]',
|
|
63
|
-
title: 'Mobile-First Dashboard',
|
|
64
|
-
content: 'This dashboard is optimized for mobile devices with offline support and responsive design.'
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
target: '[data-tour="stats"]',
|
|
68
|
-
title: 'Network-Aware Stats',
|
|
69
|
-
content: 'Statistics automatically adapt based on your network connection speed.'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
target: '[data-tour="activity"]',
|
|
73
|
-
title: 'Interactive Activity Feed',
|
|
74
|
-
content: 'Swipe left or right on activity items to archive, star, or delete them.'
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
|
|
78
47
|
const lazyImageConfig = {
|
|
79
48
|
mobileOptimization: {
|
|
80
49
|
quality: 80,
|
|
@@ -148,13 +117,7 @@ export default function DashboardPage() {
|
|
|
148
117
|
|
|
149
118
|
|
|
150
119
|
return (
|
|
151
|
-
<DashboardLayout
|
|
152
|
-
navigation={sidebarNavigation}
|
|
153
|
-
headerActions={[
|
|
154
|
-
<CommandPalette key="command-palette" />,
|
|
155
|
-
<Tour key="tour" steps={tourSteps} />
|
|
156
|
-
]}
|
|
157
|
-
>
|
|
120
|
+
<DashboardLayout>
|
|
158
121
|
<PageTransition type="slide" direction="horizontal" duration={300}>
|
|
159
122
|
<OfflineWrapper
|
|
160
123
|
cacheStrategy="stale-while-revalidate"
|
|
@@ -206,7 +169,7 @@ export default function DashboardPage() {
|
|
|
206
169
|
<div data-tour="stats">
|
|
207
170
|
<NetworkAwareContent
|
|
208
171
|
showOnSlow={
|
|
209
|
-
<ResponsiveGrid columns={gridConfig.columns_2_2} gap=
|
|
172
|
+
<ResponsiveGrid columns={gridConfig.columns_2_2} gap={2} className="mb-6">
|
|
210
173
|
{stats.slice(0, 2).map((stat, index) => (
|
|
211
174
|
<Card key={index}>
|
|
212
175
|
<CardContent className="p-4">
|
|
@@ -223,7 +186,7 @@ export default function DashboardPage() {
|
|
|
223
186
|
</ResponsiveGrid>
|
|
224
187
|
}
|
|
225
188
|
>
|
|
226
|
-
<ResponsiveGrid columns={gridConfig.columns_2_md4} gap=
|
|
189
|
+
<ResponsiveGrid columns={gridConfig.columns_2_md4} gap={4} className="mb-6">
|
|
227
190
|
{stats.map((stat, index) => (
|
|
228
191
|
<Card key={index}>
|
|
229
192
|
<CardContent className="p-4">
|
|
@@ -340,7 +303,7 @@ export default function DashboardPage() {
|
|
|
340
303
|
</CardDescription>
|
|
341
304
|
</CardHeader>
|
|
342
305
|
<CardContent>
|
|
343
|
-
<ResponsiveGrid columns={gridConfig.columns_2_md3} gap=
|
|
306
|
+
<ResponsiveGrid columns={gridConfig.columns_2_md3} gap={2}>
|
|
344
307
|
<Button variant="outline" className="h-20 flex flex-col gap-2">
|
|
345
308
|
<Users className="h-5 w-5" />
|
|
346
309
|
<span className="text-xs">Manage Users</span>
|
|
@@ -92,7 +92,7 @@ export default function Home() {
|
|
|
92
92
|
{/* Features Grid */}
|
|
93
93
|
<NetworkAwareContent
|
|
94
94
|
showOnSlow={
|
|
95
|
-
<ResponsiveGrid columns={gridConfig.columns_1_2} gap=
|
|
95
|
+
<ResponsiveGrid columns={gridConfig.columns_1_2} gap={4} className="mb-16">
|
|
96
96
|
<Card className="text-center">
|
|
97
97
|
<CardHeader>
|
|
98
98
|
<div className="mx-auto w-12 h-12 bg-blue-100 dark:bg-blue-900 rounded-lg flex items-center justify-center mb-4">
|
|
@@ -118,7 +118,7 @@ export default function Home() {
|
|
|
118
118
|
</ResponsiveGrid>
|
|
119
119
|
}
|
|
120
120
|
>
|
|
121
|
-
<ResponsiveGrid columns={gridConfig.columns_1_3} gap=
|
|
121
|
+
<ResponsiveGrid columns={gridConfig.columns_1_3} gap={6} className="mb-16">
|
|
122
122
|
<Card className="text-center">
|
|
123
123
|
<CardHeader>
|
|
124
124
|
<div className="mx-auto w-12 h-12 bg-blue-100 dark:bg-blue-900 rounded-lg flex items-center justify-center mb-4">
|