@cbnventures/nova 0.34.1 → 0.36.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/bin/nova.mjs +17 -0
- package/build/package.json +3 -2
- package/build/scaffold-versions.json +16 -6
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +2 -2
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +116 -3
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +11 -5
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +411 -35
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.js +3 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
- package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/dotenv.js +1 -0
- package/build/src/cli/generate/must-haves/dotenv.js.map +1 -1
- package/build/src/cli/scaffold/app/vite.js +1 -1
- package/build/src/cli/scaffold/app/vite.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +119 -67
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/configure.d.ts.map +1 -1
- package/build/src/cli/utility/configure.js +126 -1
- package/build/src/cli/utility/configure.js.map +1 -1
- package/build/src/lib/corepack.d.ts +2 -2
- package/build/src/lib/corepack.d.ts.map +1 -1
- package/build/src/lib/corepack.js +16 -6
- package/build/src/lib/corepack.js.map +1 -1
- package/build/src/lib/docker-packaging.d.ts.map +1 -1
- package/build/src/lib/docker-packaging.js +5 -4
- package/build/src/lib/docker-packaging.js.map +1 -1
- package/build/src/lib/dotenv.d.ts.map +1 -1
- package/build/src/lib/dotenv.js +17 -8
- package/build/src/lib/dotenv.js.map +1 -1
- package/build/src/lib/env-managed-set.d.ts.map +1 -1
- package/build/src/lib/env-managed-set.js +55 -11
- package/build/src/lib/env-managed-set.js.map +1 -1
- package/build/src/lib/env-namespace.d.ts.map +1 -1
- package/build/src/lib/env-namespace.js +1 -0
- package/build/src/lib/env-namespace.js.map +1 -1
- package/build/src/lib/env-profiles.d.ts +3 -0
- package/build/src/lib/env-profiles.d.ts.map +1 -0
- package/build/src/lib/env-profiles.js +70 -0
- package/build/src/lib/env-profiles.js.map +1 -0
- package/build/src/lib/env-status.d.ts.map +1 -1
- package/build/src/lib/env-status.js +23 -2
- package/build/src/lib/env-status.js.map +1 -1
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +20 -3
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +31 -0
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +7 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +7 -0
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/run-scripts.d.ts.map +1 -1
- package/build/src/lib/run-scripts.js +24 -0
- package/build/src/lib/run-scripts.js.map +1 -1
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +7 -0
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/workflow-templates.js +4 -4
- package/build/src/lib/workflow-templates.js.map +1 -1
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +42 -4
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +193 -17
- package/build/src/types/cli/utility/changelog.d.ts +49 -6
- package/build/src/types/cli/utility/configure.d.ts +52 -0
- package/build/src/types/lib/corepack.d.ts +13 -0
- package/build/src/types/lib/docker-packaging.d.ts +1 -0
- package/build/src/types/lib/dotenv.d.ts +10 -3
- package/build/src/types/lib/env-managed-set.d.ts +15 -0
- package/build/src/types/lib/env-namespace.d.ts +5 -0
- package/build/src/types/lib/env-profiles.d.ts +67 -0
- package/build/src/types/lib/env-status.d.ts +9 -0
- package/build/src/types/lib/item.d.ts +20 -3
- package/build/src/types/lib/nova-config.d.ts +14 -0
- package/build/src/types/lib/run-scripts.d.ts +16 -0
- package/build/src/types/lib/scaffold.d.ts +8 -0
- package/build/src/types/shared.d.ts +47 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +20 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +22 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +16 -0
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +40 -0
- package/build/src/types/tests/cli/scaffold/app/android.test.d.ts +2 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +48 -45
- package/build/src/types/tests/cli/utility/configure.test.d.ts +1 -0
- package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +29 -0
- package/build/src/types/tests/lib/env-profiles.test.d.ts +20 -0
- package/build/src/types/tests/scaffold-output-contract.test.d.ts +27 -0
- package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +8 -5
- package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +8 -5
- package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +6 -6
- package/build/templates/generators/must-haves/agent-conventions/conventions/go.md +241 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +155 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +7 -7
- package/build/templates/generators/must-haves/agent-conventions/conventions/rust.md +227 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +9 -9
- package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +145 -23
- package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +112 -103
- package/build/templates/generators/must-haves/ignore-files/gitignore +1 -0
- package/build/templates/scaffold/app/android/package.json +1 -1
- package/build/templates/scaffold/app/apple/Sources/App.swift +15 -2
- package/build/templates/scaffold/app/apple/Sources/ContentView.swift +6 -6
- package/build/templates/scaffold/app/apple/Sources/Localizable.xcstrings +75 -0
- package/build/templates/scaffold/app/apple/Tests/AppTests.swift +14 -2
- package/build/templates/scaffold/app/apple/package.json +1 -1
- package/build/templates/scaffold/app/astro/package.json +1 -1
- package/build/templates/scaffold/app/astro/src/i18n/en.json +48 -0
- package/build/templates/scaffold/app/astro/src/pages/index.astro +31 -30
- package/build/templates/scaffold/app/discord-bot/package.json +1 -1
- package/build/templates/scaffold/app/express/package.json +1 -1
- package/build/templates/scaffold/app/nextjs/package.json +1 -1
- package/build/templates/scaffold/app/nextjs/src/app/[lang]/dictionaries/en.json +31 -0
- package/build/templates/scaffold/app/nextjs/src/app/[lang]/dictionaries.ts +33 -0
- package/build/templates/scaffold/app/nextjs/src/app/[lang]/layout.tsx +92 -0
- package/build/templates/scaffold/app/nextjs/src/app/{page.tsx → [lang]/page.tsx} +54 -34
- package/build/templates/scaffold/app/nextjs/src/i18n/config.ts +42 -0
- package/build/templates/scaffold/app/nextjs/src/proxy.ts +56 -0
- package/build/templates/scaffold/app/nextjs/src/types/app/[lang]/dictionaries.d.ts +21 -0
- package/build/templates/scaffold/app/nextjs/src/types/app/[lang]/layout.d.ts +63 -0
- package/build/templates/scaffold/app/nextjs/src/types/app/[lang]/page.d.ts +22 -0
- package/build/templates/scaffold/app/nextjs/src/types/i18n/config.d.ts +22 -0
- package/build/templates/scaffold/app/nextjs/src/types/proxy.d.ts +30 -0
- package/build/templates/scaffold/app/vite/package.json +2 -2
- package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
- package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
- package/build/templates/scaffold/docs/docusaurus/src/pages/index.tsx +81 -20
- package/build/templates/scaffold/docs/docusaurus/vitest.config.mts +9 -0
- package/build/templates/scaffold/package/github-action/package.json +1 -1
- package/build/templates/scaffold/package/homebridge/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +10 -0
- package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +62 -0
- package/build/templates/scaffold-options/app/android-launchpad/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreen.kt +40 -34
- package/build/templates/scaffold-options/app/android-native/.gitattributes +2 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/MainActivity.kt +16 -2
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/NavigationKeys.kt +7 -1
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/data/DataRepository.kt +28 -4
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Color.kt +40 -6
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Theme.kt +22 -1
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/theme/Type.kt +8 -2
- package/build/templates/scaffold-options/app/android-native/app/src/main/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModel.kt +42 -6
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/values/strings.xml +27 -0
- package/build/templates/scaffold-options/app/android-native/app/src/test/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModelTest.kt +31 -4
- package/build/templates/scaffold-options/app/astro/cloudflare/astro.config.mjs +7 -0
- package/build/templates/scaffold-options/app/astro/cloudflare/public/.assetsignore +15 -0
- package/build/templates/scaffold-options/app/astro/node/astro.config.mjs +7 -0
- package/build/templates/scaffold-options/app/astro/static/astro.config.mjs +7 -0
- package/build/templates/scaffold-options/docker-image/common/dockerignore +2 -0
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +1 -1
- package/package.json +3 -2
- package/build/templates/scaffold/app/nextjs/src/app/layout.tsx +0 -46
- package/build/templates/scaffold/app/nextjs/src/types/app/layout.d.ts +0 -25
- package/build/templates/scaffold/app/nextjs/src/types/app/page.d.ts +0 -8
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import SwiftUI
|
|
2
2
|
|
|
3
|
+
///
|
|
4
|
+
/// [__WORKSPACE_TITLE__] Application.
|
|
5
|
+
///
|
|
6
|
+
/// Creates the shared SwiftUI scene for the generated iOS and macOS
|
|
7
|
+
/// application.
|
|
8
|
+
///
|
|
9
|
+
/// - Since: UNRELEASED
|
|
10
|
+
///
|
|
3
11
|
@main
|
|
4
|
-
struct [__WORKSPACE_IDENTIFIER__]App: App {
|
|
5
|
-
|
|
12
|
+
internal struct [__WORKSPACE_IDENTIFIER__]App: App {
|
|
13
|
+
///
|
|
14
|
+
/// [__WORKSPACE_TITLE__] Application - Body.
|
|
15
|
+
///
|
|
16
|
+
/// - Since: UNRELEASED
|
|
17
|
+
///
|
|
18
|
+
internal var body: some Scene {
|
|
6
19
|
#if os(macOS)
|
|
7
20
|
WindowGroup {
|
|
8
21
|
ContentView()
|
|
@@ -275,7 +275,7 @@ private struct SocialLinkView: View {
|
|
|
275
275
|
///
|
|
276
276
|
/// - Since: UNRELEASED
|
|
277
277
|
///
|
|
278
|
-
private let label:
|
|
278
|
+
private let label: LocalizedStringKey
|
|
279
279
|
|
|
280
280
|
///
|
|
281
281
|
/// Social Link View - Destination.
|
|
@@ -297,7 +297,7 @@ private struct SocialLinkView: View {
|
|
|
297
297
|
///
|
|
298
298
|
/// - Since: UNRELEASED
|
|
299
299
|
///
|
|
300
|
-
fileprivate init(image: String, label:
|
|
300
|
+
fileprivate init(image: String, label: LocalizedStringKey, url: String) {
|
|
301
301
|
self.image = image
|
|
302
302
|
self.label = label
|
|
303
303
|
destination = URL(string: url)!
|
|
@@ -327,7 +327,7 @@ private struct SocialLinkView: View {
|
|
|
327
327
|
}
|
|
328
328
|
.buttonStyle(.plain)
|
|
329
329
|
.foregroundStyle(.secondary)
|
|
330
|
-
.accessibilityLabel(label)
|
|
330
|
+
.accessibilityLabel(Text(label))
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
|
|
@@ -356,7 +356,7 @@ private struct LaunchStepView: View {
|
|
|
356
356
|
///
|
|
357
357
|
/// - Since: UNRELEASED
|
|
358
358
|
///
|
|
359
|
-
private let title:
|
|
359
|
+
private let title: LocalizedStringKey
|
|
360
360
|
|
|
361
361
|
///
|
|
362
362
|
/// Launch Step View - Description.
|
|
@@ -365,7 +365,7 @@ private struct LaunchStepView: View {
|
|
|
365
365
|
///
|
|
366
366
|
/// - Since: UNRELEASED
|
|
367
367
|
///
|
|
368
|
-
private let description:
|
|
368
|
+
private let description: LocalizedStringKey
|
|
369
369
|
|
|
370
370
|
///
|
|
371
371
|
/// Launch Step View - Constructor.
|
|
@@ -378,7 +378,7 @@ private struct LaunchStepView: View {
|
|
|
378
378
|
///
|
|
379
379
|
/// - Since: UNRELEASED
|
|
380
380
|
///
|
|
381
|
-
fileprivate init(number: String, title:
|
|
381
|
+
fileprivate init(number: String, title: LocalizedStringKey, description: LocalizedStringKey) {
|
|
382
382
|
self.number = number
|
|
383
383
|
self.title = title
|
|
384
384
|
self.description = description
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sourceLanguage" : "en",
|
|
3
|
+
"strings" : {
|
|
4
|
+
"[__WORKSPACE_TITLE__]" : {
|
|
5
|
+
|
|
6
|
+
},
|
|
7
|
+
"A native Apple workspace with strict checks, tests, and a clean path from first view to release." : {
|
|
8
|
+
|
|
9
|
+
},
|
|
10
|
+
"Build the same production artifact Nova already validates." : {
|
|
11
|
+
|
|
12
|
+
},
|
|
13
|
+
"Explore SwiftUI" : {
|
|
14
|
+
|
|
15
|
+
},
|
|
16
|
+
"Facebook" : {
|
|
17
|
+
|
|
18
|
+
},
|
|
19
|
+
"Generated with Nova" : {
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
"GitHub" : {
|
|
23
|
+
|
|
24
|
+
},
|
|
25
|
+
"Google Play" : {
|
|
26
|
+
|
|
27
|
+
},
|
|
28
|
+
"Instagram" : {
|
|
29
|
+
|
|
30
|
+
},
|
|
31
|
+
"Keep the contract" : {
|
|
32
|
+
|
|
33
|
+
},
|
|
34
|
+
"LAUNCH SEQUENCE" : {
|
|
35
|
+
|
|
36
|
+
},
|
|
37
|
+
"LinkedIn" : {
|
|
38
|
+
|
|
39
|
+
},
|
|
40
|
+
"Nova" : {
|
|
41
|
+
|
|
42
|
+
},
|
|
43
|
+
"Nova × Apple" : {
|
|
44
|
+
|
|
45
|
+
},
|
|
46
|
+
"Ship confidently" : {
|
|
47
|
+
|
|
48
|
+
},
|
|
49
|
+
"Read Nova Docs ↗" : {
|
|
50
|
+
|
|
51
|
+
},
|
|
52
|
+
"Replace this starter with your first real product experience." : {
|
|
53
|
+
|
|
54
|
+
},
|
|
55
|
+
"Run the workspace checks while the project takes shape." : {
|
|
56
|
+
|
|
57
|
+
},
|
|
58
|
+
"Shape the experience" : {
|
|
59
|
+
|
|
60
|
+
},
|
|
61
|
+
"Start in Sources/ContentView.swift" : {
|
|
62
|
+
|
|
63
|
+
},
|
|
64
|
+
"starts here." : {
|
|
65
|
+
|
|
66
|
+
},
|
|
67
|
+
"X" : {
|
|
68
|
+
|
|
69
|
+
},
|
|
70
|
+
"YouTube" : {
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"version" : "1.0"
|
|
75
|
+
}
|
|
@@ -2,9 +2,21 @@ import Testing
|
|
|
2
2
|
|
|
3
3
|
@testable import [__WORKSPACE_IDENTIFIER__]
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
///
|
|
6
|
+
/// [__WORKSPACE_TITLE__] Tests.
|
|
7
|
+
///
|
|
8
|
+
/// - Since: UNRELEASED
|
|
9
|
+
///
|
|
10
|
+
internal struct [__WORKSPACE_IDENTIFIER__]Tests {
|
|
11
|
+
///
|
|
12
|
+
/// [__WORKSPACE_TITLE__] Tests - Application Loads.
|
|
13
|
+
///
|
|
14
|
+
/// Confirms the generated test target can load the application module.
|
|
15
|
+
///
|
|
16
|
+
/// - Since: UNRELEASED
|
|
17
|
+
///
|
|
6
18
|
@Test
|
|
7
|
-
func applicationLoads() {
|
|
19
|
+
internal func applicationLoads() {
|
|
8
20
|
#expect(true)
|
|
9
21
|
}
|
|
10
22
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"title": "Nova × Astro"
|
|
4
|
+
},
|
|
5
|
+
"brand": {
|
|
6
|
+
"nova": "Nova",
|
|
7
|
+
"framework": "Astro"
|
|
8
|
+
},
|
|
9
|
+
"header": {
|
|
10
|
+
"readNovaDocs": "Read Nova Docs ↗"
|
|
11
|
+
},
|
|
12
|
+
"introduction": {
|
|
13
|
+
"title": "Astro",
|
|
14
|
+
"titleAccent": "starts here.",
|
|
15
|
+
"description": "A content-ready Astro workspace with strict checks, tests, and a clean path from first page to production.",
|
|
16
|
+
"exploreDocs": "Explore Astro docs ↗",
|
|
17
|
+
"editHint": "Start in"
|
|
18
|
+
},
|
|
19
|
+
"sequence": {
|
|
20
|
+
"label": "Launch sequence",
|
|
21
|
+
"stepOne": {
|
|
22
|
+
"number": "01",
|
|
23
|
+
"title": "Shape the experience",
|
|
24
|
+
"description": "Replace this starter with your first real product experience."
|
|
25
|
+
},
|
|
26
|
+
"stepTwo": {
|
|
27
|
+
"number": "02",
|
|
28
|
+
"title": "Keep the contract",
|
|
29
|
+
"description": "Run the workspace checks while the project takes shape."
|
|
30
|
+
},
|
|
31
|
+
"stepThree": {
|
|
32
|
+
"number": "03",
|
|
33
|
+
"title": "Ship confidently",
|
|
34
|
+
"description": "Build the same production artifact Nova already validates."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"footer": {
|
|
38
|
+
"credit": "Generated with Nova",
|
|
39
|
+
"socialLabel": "CBN Ventures social media",
|
|
40
|
+
"facebook": "Facebook",
|
|
41
|
+
"x": "X",
|
|
42
|
+
"youtube": "YouTube",
|
|
43
|
+
"instagram": "Instagram",
|
|
44
|
+
"github": "GitHub",
|
|
45
|
+
"googlePlay": "Google Play",
|
|
46
|
+
"linkedin": "LinkedIn"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
+
import messages from '../i18n/en.json';
|
|
2
3
|
import '../styles/nova-launchpad.css';
|
|
3
4
|
---
|
|
4
5
|
|
|
5
6
|
<!doctype html>
|
|
6
|
-
<html lang=
|
|
7
|
+
<html lang={Astro.currentLocale ?? 'en'}>
|
|
7
8
|
<head>
|
|
8
9
|
<meta charset="UTF-8" />
|
|
9
10
|
<meta name="viewport" content="width=device-width" />
|
|
10
11
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
11
|
-
<title>
|
|
12
|
+
<title>{messages.metadata.title}</title>
|
|
12
13
|
</head>
|
|
13
14
|
<body>
|
|
14
15
|
<main class="nova-launchpad" data-nova-framework="astro">
|
|
@@ -16,81 +17,81 @@ import '../styles/nova-launchpad.css';
|
|
|
16
17
|
<header class="nova-launchpad__header">
|
|
17
18
|
<div class="nova-launchpad__brand">
|
|
18
19
|
<svg class="nova-launchpad__mark" aria-hidden="true" viewBox="0 0 1024 1024"><use href="/nova-socials.svg#nova"></use></svg>
|
|
19
|
-
<span>
|
|
20
|
+
<span>{messages.brand.nova}</span>
|
|
20
21
|
<span class="nova-launchpad__cross">×</span>
|
|
21
|
-
<span>
|
|
22
|
+
<span>{messages.brand.framework}</span>
|
|
22
23
|
</div>
|
|
23
24
|
<a class="nova-launchpad__docs-link" href="https://nova.cbnventures.io/docs/quickstart/" target="_blank" rel="noreferrer">
|
|
24
|
-
|
|
25
|
+
{messages.header.readNovaDocs}
|
|
25
26
|
</a>
|
|
26
27
|
</header>
|
|
27
28
|
<div class="nova-launchpad__body">
|
|
28
29
|
<section>
|
|
29
30
|
<h1 class="nova-launchpad__title">
|
|
30
|
-
<span>
|
|
31
|
-
<span class="nova-launchpad__title-accent">
|
|
31
|
+
<span>{messages.introduction.title}</span>
|
|
32
|
+
<span class="nova-launchpad__title-accent">{messages.introduction.titleAccent}</span>
|
|
32
33
|
</h1>
|
|
33
34
|
<p class="nova-launchpad__lede">
|
|
34
|
-
|
|
35
|
+
{messages.introduction.description}
|
|
35
36
|
</p>
|
|
36
37
|
<div class="nova-launchpad__actions">
|
|
37
38
|
<a class="nova-launchpad__primary-link" href="https://docs.astro.build" target="_blank" rel="noreferrer">
|
|
38
|
-
|
|
39
|
+
{messages.introduction.exploreDocs}
|
|
39
40
|
</a>
|
|
40
41
|
<span class="nova-launchpad__edit-hint">
|
|
41
|
-
|
|
42
|
+
{messages.introduction.editHint} <code>src/pages/index.astro</code>
|
|
42
43
|
</span>
|
|
43
44
|
</div>
|
|
44
45
|
</section>
|
|
45
|
-
<aside class="nova-launchpad__sequence" aria-label=
|
|
46
|
-
<p class="nova-launchpad__sequence-label">
|
|
46
|
+
<aside class="nova-launchpad__sequence" aria-label={messages.sequence.label}>
|
|
47
|
+
<p class="nova-launchpad__sequence-label">{messages.sequence.label}</p>
|
|
47
48
|
<ol class="nova-launchpad__steps">
|
|
48
49
|
<li class="nova-launchpad__step">
|
|
49
|
-
<span class="nova-launchpad__step-number">
|
|
50
|
+
<span class="nova-launchpad__step-number">{messages.sequence.stepOne.number}</span>
|
|
50
51
|
<div>
|
|
51
|
-
<strong>
|
|
52
|
-
<p>
|
|
52
|
+
<strong>{messages.sequence.stepOne.title}</strong>
|
|
53
|
+
<p>{messages.sequence.stepOne.description}</p>
|
|
53
54
|
</div>
|
|
54
55
|
</li>
|
|
55
56
|
<li class="nova-launchpad__step">
|
|
56
|
-
<span class="nova-launchpad__step-number">
|
|
57
|
+
<span class="nova-launchpad__step-number">{messages.sequence.stepTwo.number}</span>
|
|
57
58
|
<div>
|
|
58
|
-
<strong>
|
|
59
|
-
<p>
|
|
59
|
+
<strong>{messages.sequence.stepTwo.title}</strong>
|
|
60
|
+
<p>{messages.sequence.stepTwo.description}</p>
|
|
60
61
|
</div>
|
|
61
62
|
</li>
|
|
62
63
|
<li class="nova-launchpad__step">
|
|
63
|
-
<span class="nova-launchpad__step-number">
|
|
64
|
+
<span class="nova-launchpad__step-number">{messages.sequence.stepThree.number}</span>
|
|
64
65
|
<div>
|
|
65
|
-
<strong>
|
|
66
|
-
<p>
|
|
66
|
+
<strong>{messages.sequence.stepThree.title}</strong>
|
|
67
|
+
<p>{messages.sequence.stepThree.description}</p>
|
|
67
68
|
</div>
|
|
68
69
|
</li>
|
|
69
70
|
</ol>
|
|
70
71
|
</aside>
|
|
71
72
|
</div>
|
|
72
73
|
<footer class="nova-launchpad__footer">
|
|
73
|
-
<span>
|
|
74
|
-
<nav class="nova-launchpad__socials" aria-label=
|
|
75
|
-
<a class="nova-launchpad__social-link" href="https://www.facebook.com/cbnventures" target="_blank" rel="noreferrer" aria-label=
|
|
74
|
+
<span>{messages.footer.credit}</span>
|
|
75
|
+
<nav class="nova-launchpad__socials" aria-label={messages.footer.socialLabel}>
|
|
76
|
+
<a class="nova-launchpad__social-link" href="https://www.facebook.com/cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.facebook}>
|
|
76
77
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#facebook"></use></svg>
|
|
77
78
|
</a>
|
|
78
|
-
<a class="nova-launchpad__social-link" href="https://x.com/cbnventures" target="_blank" rel="noreferrer" aria-label=
|
|
79
|
+
<a class="nova-launchpad__social-link" href="https://x.com/cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.x}>
|
|
79
80
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#x"></use></svg>
|
|
80
81
|
</a>
|
|
81
|
-
<a class="nova-launchpad__social-link" href="https://www.youtube.com/@cbnventures" target="_blank" rel="noreferrer" aria-label=
|
|
82
|
+
<a class="nova-launchpad__social-link" href="https://www.youtube.com/@cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.youtube}>
|
|
82
83
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#youtube"></use></svg>
|
|
83
84
|
</a>
|
|
84
|
-
<a class="nova-launchpad__social-link" href="https://www.instagram.com/cbnventures/" target="_blank" rel="noreferrer" aria-label=
|
|
85
|
+
<a class="nova-launchpad__social-link" href="https://www.instagram.com/cbnventures/" target="_blank" rel="noreferrer" aria-label={messages.footer.instagram}>
|
|
85
86
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#instagram"></use></svg>
|
|
86
87
|
</a>
|
|
87
|
-
<a class="nova-launchpad__social-link" href="https://github.com/cbnventures" target="_blank" rel="noreferrer" aria-label=
|
|
88
|
+
<a class="nova-launchpad__social-link" href="https://github.com/cbnventures" target="_blank" rel="noreferrer" aria-label={messages.footer.github}>
|
|
88
89
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#github"></use></svg>
|
|
89
90
|
</a>
|
|
90
|
-
<a class="nova-launchpad__social-link" href="https://play.google.com/store/apps/dev?id=6419450160526226105" target="_blank" rel="noreferrer" aria-label=
|
|
91
|
+
<a class="nova-launchpad__social-link" href="https://play.google.com/store/apps/dev?id=6419450160526226105" target="_blank" rel="noreferrer" aria-label={messages.footer.googlePlay}>
|
|
91
92
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#google-play"></use></svg>
|
|
92
93
|
</a>
|
|
93
|
-
<a class="nova-launchpad__social-link" href="https://www.linkedin.com/company/cbnventures/" target="_blank" rel="noreferrer" aria-label=
|
|
94
|
+
<a class="nova-launchpad__social-link" href="https://www.linkedin.com/company/cbnventures/" target="_blank" rel="noreferrer" aria-label={messages.footer.linkedin}>
|
|
94
95
|
<svg class="nova-launchpad__social-icon" aria-hidden="true"><use href="/nova-socials.svg#linkedin"></use></svg>
|
|
95
96
|
</a>
|
|
96
97
|
</nav>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cbnventures/nova": "0.
|
|
27
|
+
"@cbnventures/nova": "0.36.0",
|
|
28
28
|
"next": "[__SCAFFOLD_VERSION_NEXT__]",
|
|
29
29
|
"react": "[__SCAFFOLD_VERSION_REACT__]",
|
|
30
30
|
"react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadataTitle": "Nova × Next.js",
|
|
3
|
+
"metadataDescription": "A Nova-managed Next.js application",
|
|
4
|
+
"brandNova": "Nova",
|
|
5
|
+
"brandFramework": "Next.js",
|
|
6
|
+
"readNovaDocs": "Read Nova Docs ↗",
|
|
7
|
+
"title": "Next.js",
|
|
8
|
+
"titleAccent": "starts here.",
|
|
9
|
+
"description": "A production-ready Next.js workspace with strict checks, tests, and a clean path from first edit to deployment.",
|
|
10
|
+
"exploreDocs": "Explore Next.js docs ↗",
|
|
11
|
+
"editHint": "Start in",
|
|
12
|
+
"launchSequence": "Launch sequence",
|
|
13
|
+
"stepOneNumber": "01",
|
|
14
|
+
"stepOneTitle": "Shape the experience",
|
|
15
|
+
"stepOneDescription": "Replace this starter with your first real product experience.",
|
|
16
|
+
"stepTwoNumber": "02",
|
|
17
|
+
"stepTwoTitle": "Keep the contract",
|
|
18
|
+
"stepTwoDescription": "Run the workspace checks while the project takes shape.",
|
|
19
|
+
"stepThreeNumber": "03",
|
|
20
|
+
"stepThreeTitle": "Ship confidently",
|
|
21
|
+
"stepThreeDescription": "Build the same production artifact Nova already validates.",
|
|
22
|
+
"footerCredit": "Generated with Nova",
|
|
23
|
+
"socialLabel": "CBN Ventures social media",
|
|
24
|
+
"facebook": "Facebook",
|
|
25
|
+
"x": "X",
|
|
26
|
+
"youtube": "YouTube",
|
|
27
|
+
"instagram": "Instagram",
|
|
28
|
+
"github": "GitHub",
|
|
29
|
+
"googlePlay": "Google Play",
|
|
30
|
+
"linkedin": "LinkedIn"
|
|
31
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
App_Lang_Dictionaries_Dictionaries,
|
|
3
|
+
App_Lang_Dictionaries_GetDictionary_Locale,
|
|
4
|
+
App_Lang_Dictionaries_GetDictionary_Returns,
|
|
5
|
+
} from '../../types/app/[lang]/dictionaries.d.ts';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Dictionaries - Dictionaries.
|
|
9
|
+
*
|
|
10
|
+
* Lazily loads only the dictionary required by the active locale route.
|
|
11
|
+
* Add another loader when the application gains another locale.
|
|
12
|
+
*
|
|
13
|
+
* @since 0.0.0
|
|
14
|
+
*/
|
|
15
|
+
const dictionaries: App_Lang_Dictionaries_Dictionaries = {
|
|
16
|
+
en: async () => (await import('./dictionaries/en.json')).default,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Dictionaries - Get Dictionary.
|
|
21
|
+
*
|
|
22
|
+
* Loads the server-side message catalog for a supported locale.
|
|
23
|
+
* Keeps dictionary loading on the server and out of the client bundle.
|
|
24
|
+
*
|
|
25
|
+
* @param {App_Lang_Dictionaries_GetDictionary_Locale} locale - Locale.
|
|
26
|
+
*
|
|
27
|
+
* @returns {App_Lang_Dictionaries_GetDictionary_Returns}
|
|
28
|
+
*
|
|
29
|
+
* @since 0.0.0
|
|
30
|
+
*/
|
|
31
|
+
export function getDictionary(locale: App_Lang_Dictionaries_GetDictionary_Locale): App_Lang_Dictionaries_GetDictionary_Returns {
|
|
32
|
+
return dictionaries[locale]();
|
|
33
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { notFound } from 'next/navigation';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
hasLocale,
|
|
5
|
+
locales,
|
|
6
|
+
} from '../../i18n/config';
|
|
7
|
+
import '../../styles/nova-launchpad.css';
|
|
8
|
+
import '../globals.css';
|
|
9
|
+
import { getDictionary } from './dictionaries';
|
|
10
|
+
|
|
11
|
+
import type {
|
|
12
|
+
App_Lang_Layout_GenerateMetadata_Dictionary,
|
|
13
|
+
App_Lang_Layout_GenerateMetadata_Params,
|
|
14
|
+
App_Lang_Layout_GenerateMetadata_Props,
|
|
15
|
+
App_Lang_Layout_GenerateMetadata_Returns,
|
|
16
|
+
App_Lang_Layout_GenerateStaticParams_Returns,
|
|
17
|
+
App_Lang_Layout_RootLayout_Params,
|
|
18
|
+
App_Lang_Layout_RootLayout_Props,
|
|
19
|
+
App_Lang_Layout_RootLayout_Returns,
|
|
20
|
+
} from '../../types/app/[lang]/layout.d.ts';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Layout - Generate Metadata.
|
|
24
|
+
*
|
|
25
|
+
* Uses the active locale dictionary for page title and description metadata.
|
|
26
|
+
* Keeps translated document metadata aligned with the rendered locale route.
|
|
27
|
+
*
|
|
28
|
+
* @param {App_Lang_Layout_GenerateMetadata_Props} props - Props.
|
|
29
|
+
*
|
|
30
|
+
* @returns {App_Lang_Layout_GenerateMetadata_Returns}
|
|
31
|
+
*
|
|
32
|
+
* @since 0.0.0
|
|
33
|
+
*/
|
|
34
|
+
export async function generateMetadata(props: App_Lang_Layout_GenerateMetadata_Props): App_Lang_Layout_GenerateMetadata_Returns {
|
|
35
|
+
const params: App_Lang_Layout_GenerateMetadata_Params = await props['params'];
|
|
36
|
+
|
|
37
|
+
if (hasLocale(params['lang']) === false) {
|
|
38
|
+
notFound();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const dictionary: App_Lang_Layout_GenerateMetadata_Dictionary = await getDictionary(params['lang']);
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
title: dictionary['metadataTitle'],
|
|
45
|
+
description: dictionary['metadataDescription'],
|
|
46
|
+
icons: {
|
|
47
|
+
icon: '/favicon.svg',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Layout - Generate Static Params.
|
|
54
|
+
*
|
|
55
|
+
* Prepares one statically renderable route for every configured locale.
|
|
56
|
+
* English remains the only generated route until consumers add more locales.
|
|
57
|
+
*
|
|
58
|
+
* @returns {App_Lang_Layout_GenerateStaticParams_Returns}
|
|
59
|
+
*
|
|
60
|
+
* @since 0.0.0
|
|
61
|
+
*/
|
|
62
|
+
export function generateStaticParams(): App_Lang_Layout_GenerateStaticParams_Returns {
|
|
63
|
+
return locales.map((lang) => ({ lang }));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Layout - Root Layout.
|
|
68
|
+
*
|
|
69
|
+
* Wraps every localized application route in the shared HTML document.
|
|
70
|
+
* Unsupported locale segments resolve through Next.js's not-found boundary.
|
|
71
|
+
*
|
|
72
|
+
* @param {App_Lang_Layout_RootLayout_Props} props - Props.
|
|
73
|
+
*
|
|
74
|
+
* @returns {App_Lang_Layout_RootLayout_Returns}
|
|
75
|
+
*
|
|
76
|
+
* @since 0.0.0
|
|
77
|
+
*/
|
|
78
|
+
async function RootLayout(props: App_Lang_Layout_RootLayout_Props): App_Lang_Layout_RootLayout_Returns {
|
|
79
|
+
const params: App_Lang_Layout_RootLayout_Params = await props['params'];
|
|
80
|
+
|
|
81
|
+
if (hasLocale(params['lang']) === false) {
|
|
82
|
+
notFound();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<html lang={params['lang']}>
|
|
87
|
+
<body>{props['children']}</body>
|
|
88
|
+
</html>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default RootLayout;
|