@deneb-ui/create-template 2.0.80 → 2.0.82
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/package.json +1 -1
- package/template/package.json +2 -2
- package/template/src/app/layout.tsx +35 -12
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"next": "15.5.23",
|
|
19
19
|
"react": "19.2.8",
|
|
20
20
|
"react-dom": "19.2.8",
|
|
21
|
-
"@deneb-ui/ui": "^2.0.
|
|
21
|
+
"@deneb-ui/ui": "^2.0.82"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@eslint/eslintrc": "3.3.6",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint": "9.39.5",
|
|
29
29
|
"eslint-config-next": "15.5.23",
|
|
30
30
|
"typescript": "5.8.3",
|
|
31
|
-
"@deneb-ui/cli": "^2.0.
|
|
31
|
+
"@deneb-ui/cli": "^2.0.82",
|
|
32
32
|
"tailwindcss": "^3.4.17",
|
|
33
33
|
"postcss": "8.5.26",
|
|
34
34
|
"autoprefixer": "^10.4.20"
|
|
@@ -1,18 +1,41 @@
|
|
|
1
|
-
import type { Metadata } from
|
|
2
|
-
import type { ReactNode } from
|
|
3
|
-
import siteData from
|
|
4
|
-
import { SiteDataProvider, ThemeStyles } from
|
|
5
|
-
import SiteChrome from
|
|
1
|
+
import type { Metadata } from "next";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import siteData from "@/data/site-data.json";
|
|
4
|
+
import { SiteDataProvider, ThemeStyles } from "@/lib/siteDataContext";
|
|
5
|
+
import SiteChrome from "@/components/SiteChrome";
|
|
6
6
|
import './globals.css';
|
|
7
7
|
import '../fonts/deneb-fonts.css';
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
export async function generateMetadata(): Promise<Metadata> {
|
|
10
|
+
const sd = siteData as any;
|
|
11
|
+
const common = sd?.content?.common;
|
|
12
|
+
const shop = sd?.shop;
|
|
13
|
+
|
|
14
|
+
const title =
|
|
15
|
+
common?.websiteTitle ||
|
|
16
|
+
shop?.businessName ||
|
|
17
|
+
"Storefront";
|
|
18
|
+
|
|
19
|
+
const description =
|
|
20
|
+
common?.shortDescription ||
|
|
21
|
+
shop?.description ||
|
|
22
|
+
"A modern digital storefront powered by Fivora DENEB UI.";
|
|
23
|
+
|
|
24
|
+
const icon =
|
|
25
|
+
common?.logoUrl ||
|
|
26
|
+
shop?.logoUrl ||
|
|
27
|
+
"/fivora-icon.svg";
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
title,
|
|
31
|
+
description,
|
|
32
|
+
icons: {
|
|
33
|
+
icon,
|
|
34
|
+
shortcut: icon,
|
|
35
|
+
apple: icon,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
}
|
|
16
39
|
|
|
17
40
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
18
41
|
const initialTheme =
|