@digilogiclabs/create-saas-app 1.6.2 → 1.6.5
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/templates/web/base/template/src/app/page.tsx +19 -10
- package/dist/templates/web/ui-auth/template/src/app/page.tsx +20 -11
- package/dist/templates/web/ui-auth-payments/template/src/app/page.tsx +20 -11
- package/dist/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +17 -10
- package/dist/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +17 -11
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +7 -3
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +4 -2
- package/dist/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +22 -15
- package/dist/templates/web/ui-auth-payments-video/template/src/app/page.tsx +20 -11
- package/dist/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +22 -15
- package/package.json +1 -1
- package/src/templates/web/base/template/src/app/page.tsx +19 -10
- package/src/templates/web/ui-auth/template/src/app/page.tsx +20 -11
- package/src/templates/web/ui-auth-payments/template/src/app/page.tsx +20 -11
- package/src/templates/web/ui-auth-payments/template/src/components/shared/header.tsx +17 -10
- package/src/templates/web/ui-auth-payments-audio/template/src/app/page.tsx +17 -11
- package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/app-providers.tsx +7 -3
- package/src/templates/web/ui-auth-payments-audio/template/src/components/providers/theme-provider.tsx +4 -2
- package/src/templates/web/ui-auth-payments-audio/template/src/components/shared/header.tsx +22 -15
- package/src/templates/web/ui-auth-payments-video/template/src/app/page.tsx +20 -11
- package/src/templates/web/ui-auth-payments-video/template/src/components/shared/header.tsx +22 -15
|
@@ -18,6 +18,26 @@ export function Header() {
|
|
|
18
18
|
const networkInfo = useNetworkInfo();
|
|
19
19
|
const isOnline = useOfflineState();
|
|
20
20
|
|
|
21
|
+
const projectName = "{{titleCaseName}}";
|
|
22
|
+
|
|
23
|
+
const headerConfig = {
|
|
24
|
+
logo: {
|
|
25
|
+
text: projectName,
|
|
26
|
+
href: '/',
|
|
27
|
+
className: 'text-2xl font-bold flex items-center gap-2',
|
|
28
|
+
icon: <Music className="w-6 h-6" />
|
|
29
|
+
},
|
|
30
|
+
networkStatus: {
|
|
31
|
+
isOnline,
|
|
32
|
+
connectionType: networkInfo?.effectiveType,
|
|
33
|
+
showIndicator: true,
|
|
34
|
+
customLabels: {
|
|
35
|
+
online: 'Streaming Ready',
|
|
36
|
+
offline: 'Offline Mode'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
21
41
|
const handleSignOut = async () => {
|
|
22
42
|
try {
|
|
23
43
|
await signOut();
|
|
@@ -119,12 +139,7 @@ export function Header() {
|
|
|
119
139
|
)}
|
|
120
140
|
|
|
121
141
|
<ResponsiveHeader
|
|
122
|
-
logo={
|
|
123
|
-
text: '{{titleCaseName}}',
|
|
124
|
-
href: '/',
|
|
125
|
-
className: 'text-2xl font-bold flex items-center gap-2',
|
|
126
|
-
icon: <Music className="w-6 h-6" />
|
|
127
|
-
}}
|
|
142
|
+
logo={headerConfig.logo}
|
|
128
143
|
navigationItems={navigationItems}
|
|
129
144
|
actions={authActions}
|
|
130
145
|
showThemeToggle={true}
|
|
@@ -138,15 +153,7 @@ export function Header() {
|
|
|
138
153
|
hapticFeedback={true}
|
|
139
154
|
/>
|
|
140
155
|
}
|
|
141
|
-
networkStatus={
|
|
142
|
-
isOnline,
|
|
143
|
-
connectionType: networkInfo?.effectiveType,
|
|
144
|
-
showIndicator: true,
|
|
145
|
-
customLabels: {
|
|
146
|
-
online: 'Streaming Ready',
|
|
147
|
-
offline: 'Offline Mode'
|
|
148
|
-
}
|
|
149
|
-
}}
|
|
156
|
+
networkStatus={headerConfig.networkStatus}
|
|
150
157
|
/>
|
|
151
158
|
</>
|
|
152
159
|
);
|
|
@@ -26,6 +26,23 @@ export default function Home() {
|
|
|
26
26
|
const networkInfo = useNetworkInfo()
|
|
27
27
|
const isOnline = useOfflineState()
|
|
28
28
|
const [isRefreshing, setIsRefreshing] = useState(false)
|
|
29
|
+
|
|
30
|
+
const projectName = "{{titleCaseName}}"
|
|
31
|
+
const projectDescription = "{{description}}"
|
|
32
|
+
|
|
33
|
+
const heroConfig = {
|
|
34
|
+
badge: {
|
|
35
|
+
text: "Video Player App - UI Package v0.13.0 + Auth v1.0.0 + Payments Integrated Successfully",
|
|
36
|
+
variant: "secondary" as const,
|
|
37
|
+
icon: CheckCircle
|
|
38
|
+
},
|
|
39
|
+
title: {
|
|
40
|
+
text: `Welcome to ${projectName}`,
|
|
41
|
+
highlight: projectName,
|
|
42
|
+
size: "xl" as const
|
|
43
|
+
},
|
|
44
|
+
description: `${projectDescription}. This mobile-optimized video streaming app template uses SaaS Factory UI package v0.13.0 with video player components, authentication v1.0.0 and payments integration.`
|
|
45
|
+
}
|
|
29
46
|
|
|
30
47
|
const handleSignOut = async () => {
|
|
31
48
|
try {
|
|
@@ -108,17 +125,9 @@ export default function Home() {
|
|
|
108
125
|
</div>
|
|
109
126
|
|
|
110
127
|
<MobileHero
|
|
111
|
-
badge={
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
icon: CheckCircle
|
|
115
|
-
}}
|
|
116
|
-
title={{
|
|
117
|
-
text: "Welcome to {{titleCaseName}}",
|
|
118
|
-
highlight: "{{titleCaseName}}",
|
|
119
|
-
size: "xl"
|
|
120
|
-
}}
|
|
121
|
-
description="{{description}}. This mobile-first video streaming app template uses SaaS Factory UI package v0.13.0 with touch-optimized video player components, authentication v1.0.0 and payments integration."
|
|
128
|
+
badge={heroConfig.badge}
|
|
129
|
+
title={heroConfig.title}
|
|
130
|
+
description={heroConfig.description}
|
|
122
131
|
actions={[
|
|
123
132
|
{
|
|
124
133
|
label: "Start Watching",
|
|
@@ -18,6 +18,26 @@ export function Header() {
|
|
|
18
18
|
const networkInfo = useNetworkInfo();
|
|
19
19
|
const isOnline = useOfflineState();
|
|
20
20
|
|
|
21
|
+
const projectName = "{{titleCaseName}}";
|
|
22
|
+
|
|
23
|
+
const headerConfig = {
|
|
24
|
+
logo: {
|
|
25
|
+
text: projectName,
|
|
26
|
+
href: '/',
|
|
27
|
+
className: 'text-2xl font-bold flex items-center gap-2',
|
|
28
|
+
icon: <Play className="w-6 h-6" />
|
|
29
|
+
},
|
|
30
|
+
networkStatus: {
|
|
31
|
+
isOnline,
|
|
32
|
+
connectionType: networkInfo?.effectiveType,
|
|
33
|
+
showIndicator: true,
|
|
34
|
+
customLabels: {
|
|
35
|
+
online: 'Streaming Ready',
|
|
36
|
+
offline: 'Offline Mode'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
21
41
|
const handleSignOut = async () => {
|
|
22
42
|
try {
|
|
23
43
|
await signOut();
|
|
@@ -119,12 +139,7 @@ export function Header() {
|
|
|
119
139
|
)}
|
|
120
140
|
|
|
121
141
|
<ResponsiveHeader
|
|
122
|
-
logo={
|
|
123
|
-
text: '{{titleCaseName}}',
|
|
124
|
-
href: '/',
|
|
125
|
-
className: 'text-2xl font-bold flex items-center gap-2',
|
|
126
|
-
icon: <Play className="w-6 h-6" />
|
|
127
|
-
}}
|
|
142
|
+
logo={headerConfig.logo}
|
|
128
143
|
navigationItems={navigationItems}
|
|
129
144
|
actions={authActions}
|
|
130
145
|
showThemeToggle={true}
|
|
@@ -138,15 +153,7 @@ export function Header() {
|
|
|
138
153
|
hapticFeedback={true}
|
|
139
154
|
/>
|
|
140
155
|
}
|
|
141
|
-
networkStatus={
|
|
142
|
-
isOnline,
|
|
143
|
-
connectionType: networkInfo?.effectiveType,
|
|
144
|
-
showIndicator: true,
|
|
145
|
-
customLabels: {
|
|
146
|
-
online: 'Streaming Ready',
|
|
147
|
-
offline: 'Offline Mode'
|
|
148
|
-
}
|
|
149
|
-
}}
|
|
156
|
+
networkStatus={headerConfig.networkStatus}
|
|
150
157
|
/>
|
|
151
158
|
</>
|
|
152
159
|
);
|