@cbnventures/nova 0.34.0 → 0.35.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/build/package.json +1 -1
- package/build/src/lib/docker-packaging.d.ts.map +1 -1
- package/build/src/lib/docker-packaging.js +4 -0
- package/build/src/lib/docker-packaging.js.map +1 -1
- package/build/src/types/tests/cli/scaffold/app/android.test.d.ts +2 -0
- package/build/src/types/tests/scaffold-output-contract.test.d.ts +27 -0
- package/build/templates/scaffold/app/android/package.json +1 -1
- 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/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 +1 -1
- 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/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-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/app/src/main/res/values/strings.xml +27 -0
- package/build/templates/scaffold-options/app/astro/cloudflare/astro.config.mjs +7 -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/Dockerfile +1 -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 +1 -1
- 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
|
@@ -9,6 +9,13 @@ import { defineConfig } from 'astro/config';
|
|
|
9
9
|
* @since 0.0.0
|
|
10
10
|
*/
|
|
11
11
|
const config = defineConfig({
|
|
12
|
+
i18n: {
|
|
13
|
+
defaultLocale: 'en',
|
|
14
|
+
locales: ['en'],
|
|
15
|
+
routing: {
|
|
16
|
+
prefixDefaultLocale: false,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
12
19
|
outDir: './build',
|
|
13
20
|
output: 'static',
|
|
14
21
|
});
|
|
@@ -10,6 +10,7 @@ COPY packages/docker/pnpm-workspace.yaml ./pnpm-workspace.yaml
|
|
|
10
10
|
[__DOCKER_PACKAGE_MANAGER_CONFIG_COPIES__]
|
|
11
11
|
[__DOCKER_WORKSPACE_MANIFEST_COPIES__]
|
|
12
12
|
[__DOCKER_INSTALL_COMMAND__]
|
|
13
|
+
COPY nova.config.json ./nova.config.json
|
|
13
14
|
[__DOCKER_WORKSPACE_SOURCE_COPIES__]
|
|
14
15
|
[__DOCKER_WORKSPACE_MANIFEST_RESTORES__]
|
|
15
16
|
[__DOCKER_BUILD_COMMANDS__]
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@cbnventures/nova": "0.
|
|
52
|
+
"@cbnventures/nova": "0.35.0",
|
|
53
53
|
"chalk": "[__SCAFFOLD_VERSION_CHALK__]",
|
|
54
54
|
"commander": "[__SCAFFOLD_VERSION_COMMANDER__]",
|
|
55
55
|
"wrangler": "[__SCAFFOLD_VERSION_WRANGLER__]"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@cbnventures/nova": "0.
|
|
52
|
+
"@cbnventures/nova": "0.35.0",
|
|
53
53
|
"chalk": "[__SCAFFOLD_VERSION_CHALK__]",
|
|
54
54
|
"commander": "[__SCAFFOLD_VERSION_COMMANDER__]",
|
|
55
55
|
"vercel": "[__SCAFFOLD_VERSION_VERCEL__]"
|
package/package.json
CHANGED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import '../styles/nova-launchpad.css';
|
|
2
|
-
import './globals.css';
|
|
3
|
-
|
|
4
|
-
import type {
|
|
5
|
-
App_Layout_Metadata,
|
|
6
|
-
App_Layout_RootLayout_Props,
|
|
7
|
-
App_Layout_RootLayout_Returns,
|
|
8
|
-
} from '../types/app/layout.d.ts';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Layout - Metadata.
|
|
12
|
-
*
|
|
13
|
-
* Provides the starter title and description consumed by Next.js.
|
|
14
|
-
* Consumers can extend this object as the application identity grows.
|
|
15
|
-
*
|
|
16
|
-
* @since 0.0.0
|
|
17
|
-
*/
|
|
18
|
-
export const metadata: App_Layout_Metadata = {
|
|
19
|
-
title: 'Nova × Next.js',
|
|
20
|
-
description: 'A Nova-managed Next.js application',
|
|
21
|
-
icons: {
|
|
22
|
-
icon: '/favicon.svg',
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Layout - Root Layout.
|
|
28
|
-
*
|
|
29
|
-
* Wraps every generated application route in the shared HTML document.
|
|
30
|
-
* This is the root layout required by the Next.js App Router.
|
|
31
|
-
*
|
|
32
|
-
* @param {App_Layout_RootLayout_Props} props - Props.
|
|
33
|
-
*
|
|
34
|
-
* @returns {App_Layout_RootLayout_Returns}
|
|
35
|
-
*
|
|
36
|
-
* @since 0.0.0
|
|
37
|
-
*/
|
|
38
|
-
function RootLayout(props: App_Layout_RootLayout_Props): App_Layout_RootLayout_Returns {
|
|
39
|
-
return (
|
|
40
|
-
<html lang="en">
|
|
41
|
-
<body>{props['children']}</body>
|
|
42
|
-
</html>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default RootLayout;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from 'next';
|
|
2
|
-
import type {
|
|
3
|
-
ReactElement,
|
|
4
|
-
ReactNode,
|
|
5
|
-
} from 'react';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Layout.
|
|
9
|
-
*
|
|
10
|
-
* @since 0.0.0
|
|
11
|
-
*/
|
|
12
|
-
export type App_Layout_Metadata = Metadata;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Layout.
|
|
16
|
-
*
|
|
17
|
-
* @since 0.0.0
|
|
18
|
-
*/
|
|
19
|
-
export type App_Layout_RootLayout_Props_Children = ReactNode;
|
|
20
|
-
|
|
21
|
-
export type App_Layout_RootLayout_Props = {
|
|
22
|
-
children: App_Layout_RootLayout_Props_Children;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type App_Layout_RootLayout_Returns = ReactElement;
|