@digilogiclabs/create-saas-app 2.8.0 → 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/package.json +1 -3
- package/dist/templates/web/base/template/src/app/auth/callback/route.ts +32 -18
- package/dist/templates/web/base/template/src/app/dashboard/page.tsx +6 -43
- package/dist/templates/web/base/template/src/app/globals.css +158 -157
- 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/globals.css +96 -95
- 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 +4 -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/globals.css +212 -211
- 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/globals.css +97 -96
- 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-ai-rag/template/package.json +1 -2
- 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/globals.css +97 -96
- 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/globals.css +229 -228
- 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 +4 -7
- package/dist/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
- package/dist/templates/web/ui-only/template/src/app/globals.css +43 -42
- 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/package.json +1 -3
- package/src/templates/web/base/template/src/app/auth/callback/route.ts +32 -18
- package/src/templates/web/base/template/src/app/dashboard/page.tsx +6 -43
- package/src/templates/web/base/template/src/app/globals.css +158 -157
- 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/globals.css +96 -95
- 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 +4 -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/globals.css +212 -211
- 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/globals.css +97 -96
- 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-ai-rag/template/package.json +1 -2
- 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/globals.css +97 -96
- 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/globals.css +229 -228
- 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 +4 -7
- package/src/templates/web/ui-auth-payments-video/template/src/app/signup/page.tsx +1 -1
- package/src/templates/web/ui-only/template/src/app/globals.css +43 -42
|
@@ -1,128 +1,128 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
|
|
5
|
-
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
6
|
-
import { useRouter } from 'next/navigation';
|
|
7
|
-
|
|
8
|
-
export default function SignupPage() {
|
|
9
|
-
const [email, setEmail] = useState('');
|
|
10
|
-
const [password, setPassword] = useState('');
|
|
11
|
-
const [confirmPassword, setConfirmPassword] = useState('');
|
|
12
|
-
const { signUp, signInWithOAuth, loading, error, user } = useAuth();
|
|
13
|
-
const router = useRouter();
|
|
14
|
-
|
|
15
|
-
// Redirect if already logged in
|
|
16
|
-
React.useEffect(() => {
|
|
17
|
-
if (user) {
|
|
18
|
-
router.push('/');
|
|
19
|
-
}
|
|
20
|
-
}, [user, router]);
|
|
21
|
-
|
|
22
|
-
const handleSignup = async (e: React.FormEvent) => {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
|
|
25
|
-
if (password !== confirmPassword) {
|
|
26
|
-
alert('Passwords do not match');
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
try {
|
|
31
|
-
await signUp(email, password);
|
|
32
|
-
router.push('/');
|
|
33
|
-
} catch (err) {
|
|
34
|
-
console.error('Signup error:', err);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const handleGoogleSignup = async () => {
|
|
39
|
-
try {
|
|
40
|
-
await signInWithOAuth('google'
|
|
41
|
-
} catch (err) {
|
|
42
|
-
console.error('Google signup error:', err);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
if (loading) {
|
|
47
|
-
return (
|
|
48
|
-
<div className="flex items-center justify-center min-h-screen bg-gray-100">
|
|
49
|
-
<div>Loading...</div>
|
|
50
|
-
</div>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<div className="flex items-center justify-center min-h-screen bg-gray-100">
|
|
56
|
-
<Card className="w-full max-w-md p-8">
|
|
57
|
-
<h1 className="text-2xl font-bold text-center mb-6">Sign Up</h1>
|
|
58
|
-
|
|
59
|
-
{error && (
|
|
60
|
-
<div className="mb-4 p-3 bg-red-100 border border-red-400 text-red-700 rounded">
|
|
61
|
-
{error.message}
|
|
62
|
-
</div>
|
|
63
|
-
)}
|
|
64
|
-
|
|
65
|
-
<form onSubmit={handleSignup} className="space-y-4">
|
|
66
|
-
<div>
|
|
67
|
-
<Label htmlFor="email">Email</Label>
|
|
68
|
-
<Input
|
|
69
|
-
id="email"
|
|
70
|
-
type="email"
|
|
71
|
-
value={email}
|
|
72
|
-
onChange={(e) => setEmail(e.target.value)}
|
|
73
|
-
placeholder="Enter your email"
|
|
74
|
-
required
|
|
75
|
-
disabled={loading}
|
|
76
|
-
/>
|
|
77
|
-
</div>
|
|
78
|
-
<div>
|
|
79
|
-
<Label htmlFor="password">Password</Label>
|
|
80
|
-
<Input
|
|
81
|
-
id="password"
|
|
82
|
-
type="password"
|
|
83
|
-
value={password}
|
|
84
|
-
onChange={(e) => setPassword(e.target.value)}
|
|
85
|
-
placeholder="Enter your password"
|
|
86
|
-
required
|
|
87
|
-
disabled={loading}
|
|
88
|
-
/>
|
|
89
|
-
</div>
|
|
90
|
-
<div>
|
|
91
|
-
<Label htmlFor="confirmPassword">Confirm Password</Label>
|
|
92
|
-
<Input
|
|
93
|
-
id="confirmPassword"
|
|
94
|
-
type="password"
|
|
95
|
-
value={confirmPassword}
|
|
96
|
-
onChange={(e) => setConfirmPassword(e.target.value)}
|
|
97
|
-
placeholder="Confirm your password"
|
|
98
|
-
required
|
|
99
|
-
disabled={loading}
|
|
100
|
-
/>
|
|
101
|
-
</div>
|
|
102
|
-
<Button type="submit" className="w-full" disabled={loading}>
|
|
103
|
-
{loading ? 'Signing Up...' : 'Sign Up'}
|
|
104
|
-
</Button>
|
|
105
|
-
<Button
|
|
106
|
-
type="button"
|
|
107
|
-
variant="outline"
|
|
108
|
-
className="w-full"
|
|
109
|
-
onClick={handleGoogleSignup}
|
|
110
|
-
disabled={loading}
|
|
111
|
-
>
|
|
112
|
-
Sign up with Google
|
|
113
|
-
</Button>
|
|
114
|
-
</form>
|
|
115
|
-
|
|
116
|
-
<div className="mt-4 text-center">
|
|
117
|
-
<p className="text-sm text-gray-600">
|
|
118
|
-
Already have an account?{' '}
|
|
119
|
-
<a href="/login" className="text-blue-600 hover:underline">
|
|
120
|
-
Sign in
|
|
121
|
-
</a>
|
|
122
|
-
</p>
|
|
123
|
-
</div>
|
|
124
|
-
</Card>
|
|
125
|
-
</div>
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { Button, Card, Input, Label } from '@digilogiclabs/saas-factory-ui';
|
|
5
|
+
import { useAuth } from '@digilogiclabs/app-sdk';
|
|
6
|
+
import { useRouter } from 'next/navigation';
|
|
7
|
+
|
|
8
|
+
export default function SignupPage() {
|
|
9
|
+
const [email, setEmail] = useState('');
|
|
10
|
+
const [password, setPassword] = useState('');
|
|
11
|
+
const [confirmPassword, setConfirmPassword] = useState('');
|
|
12
|
+
const { signUp, signInWithOAuth, loading, error, user } = useAuth();
|
|
13
|
+
const router = useRouter();
|
|
14
|
+
|
|
15
|
+
// Redirect if already logged in
|
|
16
|
+
React.useEffect(() => {
|
|
17
|
+
if (user) {
|
|
18
|
+
router.push('/');
|
|
19
|
+
}
|
|
20
|
+
}, [user, router]);
|
|
21
|
+
|
|
22
|
+
const handleSignup = async (e: React.FormEvent) => {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
|
|
25
|
+
if (password !== confirmPassword) {
|
|
26
|
+
alert('Passwords do not match');
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
await signUp(email, password);
|
|
32
|
+
router.push('/');
|
|
33
|
+
} catch (err) {
|
|
34
|
+
console.error('Signup error:', err);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const handleGoogleSignup = async () => {
|
|
39
|
+
try {
|
|
40
|
+
await signInWithOAuth('google');
|
|
41
|
+
} catch (err) {
|
|
42
|
+
console.error('Google signup error:', err);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
if (loading) {
|
|
47
|
+
return (
|
|
48
|
+
<div className="flex items-center justify-center min-h-screen bg-gray-100">
|
|
49
|
+
<div>Loading...</div>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<div className="flex items-center justify-center min-h-screen bg-gray-100">
|
|
56
|
+
<Card className="w-full max-w-md p-8">
|
|
57
|
+
<h1 className="text-2xl font-bold text-center mb-6">Sign Up</h1>
|
|
58
|
+
|
|
59
|
+
{error && (
|
|
60
|
+
<div className="mb-4 p-3 bg-red-100 border border-red-400 text-red-700 rounded">
|
|
61
|
+
{error.message}
|
|
62
|
+
</div>
|
|
63
|
+
)}
|
|
64
|
+
|
|
65
|
+
<form onSubmit={handleSignup} className="space-y-4">
|
|
66
|
+
<div>
|
|
67
|
+
<Label htmlFor="email">Email</Label>
|
|
68
|
+
<Input
|
|
69
|
+
id="email"
|
|
70
|
+
type="email"
|
|
71
|
+
value={email}
|
|
72
|
+
onChange={(e) => setEmail(e.target.value)}
|
|
73
|
+
placeholder="Enter your email"
|
|
74
|
+
required
|
|
75
|
+
disabled={loading}
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
<div>
|
|
79
|
+
<Label htmlFor="password">Password</Label>
|
|
80
|
+
<Input
|
|
81
|
+
id="password"
|
|
82
|
+
type="password"
|
|
83
|
+
value={password}
|
|
84
|
+
onChange={(e) => setPassword(e.target.value)}
|
|
85
|
+
placeholder="Enter your password"
|
|
86
|
+
required
|
|
87
|
+
disabled={loading}
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
<div>
|
|
91
|
+
<Label htmlFor="confirmPassword">Confirm Password</Label>
|
|
92
|
+
<Input
|
|
93
|
+
id="confirmPassword"
|
|
94
|
+
type="password"
|
|
95
|
+
value={confirmPassword}
|
|
96
|
+
onChange={(e) => setConfirmPassword(e.target.value)}
|
|
97
|
+
placeholder="Confirm your password"
|
|
98
|
+
required
|
|
99
|
+
disabled={loading}
|
|
100
|
+
/>
|
|
101
|
+
</div>
|
|
102
|
+
<Button type="submit" className="w-full" disabled={loading}>
|
|
103
|
+
{loading ? 'Signing Up...' : 'Sign Up'}
|
|
104
|
+
</Button>
|
|
105
|
+
<Button
|
|
106
|
+
type="button"
|
|
107
|
+
variant="outline"
|
|
108
|
+
className="w-full"
|
|
109
|
+
onClick={handleGoogleSignup}
|
|
110
|
+
disabled={loading}
|
|
111
|
+
>
|
|
112
|
+
Sign up with Google
|
|
113
|
+
</Button>
|
|
114
|
+
</form>
|
|
115
|
+
|
|
116
|
+
<div className="mt-4 text-center">
|
|
117
|
+
<p className="text-sm text-gray-600">
|
|
118
|
+
Already have an account?{' '}
|
|
119
|
+
<a href="/login" className="text-blue-600 hover:underline">
|
|
120
|
+
Sign in
|
|
121
|
+
</a>
|
|
122
|
+
</p>
|
|
123
|
+
</div>
|
|
124
|
+
</Card>
|
|
125
|
+
</div>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -1,40 +1,35 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
body {
|
|
38
|
-
@apply bg-background text-foreground;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
:root {
|
|
5
|
+
--background: 0 0% 100%;
|
|
6
|
+
--foreground: 222.2 84% 4.9%;
|
|
7
|
+
--card: 0 0% 100%;
|
|
8
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
9
|
+
--popover: 0 0% 100%;
|
|
10
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
11
|
+
--primary: 222.2 47.4% 11.2%;
|
|
12
|
+
--primary-foreground: 210 40% 98%;
|
|
13
|
+
--secondary: 210 40% 96%;
|
|
14
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
15
|
+
--muted: 210 40% 96%;
|
|
16
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
17
|
+
--accent: 210 40% 96%;
|
|
18
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
19
|
+
--destructive: 0 84.2% 60.2%;
|
|
20
|
+
--destructive-foreground: 210 40% 98%;
|
|
21
|
+
--border: 214.3 31.8% 91.4%;
|
|
22
|
+
--input: 214.3 31.8% 91.4%;
|
|
23
|
+
--ring: 222.2 84% 4.9%;
|
|
24
|
+
--radius: 0.5rem;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@layer base {
|
|
29
|
+
* {
|
|
30
|
+
@apply border-border;
|
|
31
|
+
}
|
|
32
|
+
body {
|
|
33
|
+
@apply bg-background text-foreground;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -113,7 +113,7 @@ export default function CheckoutPage() {
|
|
|
113
113
|
{/* Subscription Plans */}
|
|
114
114
|
<NetworkAwareContent
|
|
115
115
|
showOnSlow={
|
|
116
|
-
<ResponsiveGrid columns={gridConfig.columns_1_2} gap=
|
|
116
|
+
<ResponsiveGrid columns={gridConfig.columns_1_2} gap={6} className="mb-8">
|
|
117
117
|
{plans.slice(0, 2).map((plan) => (
|
|
118
118
|
<Card key={plan.id} className={`p-6 relative ${plan.popular ? 'ring-2 ring-blue-500' : ''}`}>
|
|
119
119
|
{plan.popular && (
|
|
@@ -151,7 +151,7 @@ export default function CheckoutPage() {
|
|
|
151
151
|
</ResponsiveGrid>
|
|
152
152
|
}
|
|
153
153
|
>
|
|
154
|
-
<ResponsiveGrid columns={gridConfig.columns_1_3} gap=
|
|
154
|
+
<ResponsiveGrid columns={gridConfig.columns_1_3} gap={6} className="mb-8">
|
|
155
155
|
{plans.map((plan) => (
|
|
156
156
|
<SwipeableCard
|
|
157
157
|
key={plan.id}
|
|
@@ -260,7 +260,7 @@ export default function CheckoutPage() {
|
|
|
260
260
|
hapticFeedback={true}
|
|
261
261
|
/>
|
|
262
262
|
</div>
|
|
263
|
-
<ResponsiveGrid columns={gridConfig.columns_2} gap=
|
|
263
|
+
<ResponsiveGrid columns={gridConfig.columns_2} gap={4}>
|
|
264
264
|
<div>
|
|
265
265
|
<label className="block text-sm font-medium mb-2">Expiry Date</label>
|
|
266
266
|
<TouchInput
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { Suspense } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
Button,
|
|
4
|
-
Card,
|
|
5
|
-
DashboardLayout
|
|
6
|
-
CommandPalette,
|
|
7
|
-
Tour
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
Card,
|
|
5
|
+
DashboardLayout
|
|
8
6
|
} from '@digilogiclabs/saas-factory-ui'
|
|
9
|
-
import {
|
|
10
|
-
User,
|
|
11
|
-
Settings,
|
|
12
|
-
CreditCard,
|
|
13
|
-
Activity
|
|
14
|
-
Home,
|
|
15
|
-
BarChart,
|
|
16
|
-
FileText,
|
|
17
|
-
ShoppingCart
|
|
7
|
+
import {
|
|
8
|
+
User,
|
|
9
|
+
Settings,
|
|
10
|
+
CreditCard,
|
|
11
|
+
Activity
|
|
18
12
|
} from 'lucide-react'
|
|
19
13
|
import { requireAuth } from '@/lib/auth-server'
|
|
20
14
|
import Link from 'next/link'
|
|
@@ -105,41 +99,8 @@ export default async function DashboardPage() {
|
|
|
105
99
|
// Server-side authentication requirement
|
|
106
100
|
const user = await requireAuth()
|
|
107
101
|
|
|
108
|
-
const sidebarNavigation = [
|
|
109
|
-
{ name: 'Overview', href: '/dashboard', icon: Home, current: true },
|
|
110
|
-
{ name: 'Orders', href: '/dashboard/orders', icon: ShoppingCart },
|
|
111
|
-
{ name: 'Analytics', href: '/dashboard/analytics', icon: BarChart },
|
|
112
|
-
{ name: 'Reports', href: '/dashboard/reports', icon: FileText },
|
|
113
|
-
{ name: 'Settings', href: '/settings', icon: Settings },
|
|
114
|
-
{ name: 'Billing', href: '/billing', icon: CreditCard }
|
|
115
|
-
]
|
|
116
|
-
|
|
117
|
-
const tourSteps = [
|
|
118
|
-
{
|
|
119
|
-
target: '[data-tour="overview"]',
|
|
120
|
-
title: 'Dashboard Overview',
|
|
121
|
-
content: 'Get a comprehensive view of your business metrics and activity.'
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
target: '[data-tour="stats"]',
|
|
125
|
-
title: 'Key Statistics',
|
|
126
|
-
content: 'Monitor your most important business metrics at a glance.'
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
target: '[data-tour="actions"]',
|
|
130
|
-
title: 'Quick Actions',
|
|
131
|
-
content: 'Access your most frequently used features and settings.'
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
|
|
135
102
|
return (
|
|
136
|
-
<DashboardLayout
|
|
137
|
-
navigation={sidebarNavigation}
|
|
138
|
-
headerActions={[
|
|
139
|
-
<CommandPalette key="command-palette" />,
|
|
140
|
-
<Tour key="tour" steps={tourSteps} />
|
|
141
|
-
]}
|
|
142
|
-
>
|
|
103
|
+
<DashboardLayout>
|
|
143
104
|
<div className="min-h-screen bg-gray-50 dark:bg-gray-900">
|
|
144
105
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
145
106
|
{/* Header */}
|