@cbnventures/nova 0.35.0 → 0.37.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 +54 -44
- 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/astro.d.ts.map +1 -1
- package/build/src/cli/scaffold/app/astro.js +0 -1
- package/build/src/cli/scaffold/app/astro.js.map +1 -1
- package/build/src/cli/scaffold/app/vite.d.ts.map +1 -1
- package/build/src/cli/scaffold/app/vite.js +0 -1
- package/build/src/cli/scaffold/app/vite.js.map +1 -1
- package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -1
- package/build/src/cli/scaffold/docs/docusaurus.js +0 -1
- package/build/src/cli/scaffold/docs/docusaurus.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 +15 -12
- 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 -1
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +7 -1
- 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 +2 -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/regex.d.ts +0 -2
- 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 -6
- 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/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/docker-packaging.test.d.ts +14 -0
- package/build/src/types/tests/lib/env-profiles.test.d.ts +20 -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/Tests/AppTests.swift +14 -2
- package/build/templates/scaffold/app/apple/package.json +1 -1
- package/build/templates/scaffold/app/apple/project.yml +1 -0
- package/build/templates/scaffold/app/astro/package.json +1 -1
- 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/vite/package.json +2 -2
- package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
- package/build/templates/scaffold/docs/docusaurus/package.json +4 -4
- package/build/templates/scaffold/docs/docusaurus/static/images/nova.svg +13 -5
- 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-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/test/java/[__ANDROID_PACKAGE_PATH__]/ui/main/MainScreenViewModelTest.kt +31 -4
- package/build/templates/scaffold-options/app/android-native/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/build/templates/scaffold-options/app/android-native/gradlew +189 -113
- package/build/templates/scaffold-options/app/android-native/gradlew.bat +79 -51
- package/build/templates/scaffold-options/app/astro/cloudflare/public/.assetsignore +15 -0
- package/build/templates/scaffold-options/app/web-launchpad/public/favicon.svg +13 -5
- 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
|
@@ -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()
|
|
@@ -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
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cbnventures/nova": "0.
|
|
27
|
+
"@cbnventures/nova": "0.37.0",
|
|
28
28
|
"next": "[__SCAFFOLD_VERSION_NEXT__]",
|
|
29
29
|
"react": "[__SCAFFOLD_VERSION_REACT__]",
|
|
30
30
|
"react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"build:types": "nova utility type-check --project tsconfig.json",
|
|
17
17
|
"build:app": "vite build",
|
|
18
18
|
"clean": "nova utility run-scripts --parallel \"clean:*\"",
|
|
19
|
-
"clean:build": "shx rm -rf ./
|
|
19
|
+
"clean:build": "shx rm -rf ./build"
|
|
20
20
|
},
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cbnventures/nova": "0.
|
|
25
|
+
"@cbnventures/nova": "0.37.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "[__SCAFFOLD_VERSION_TYPES_NODE_22__]",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"dev": "nova utility run-scripts --parallel --node-env development \"dev:*\"",
|
|
7
7
|
"dev:start": "docusaurus start --port 3000",
|
|
8
8
|
"prod": "nova utility run-scripts --sequential --node-env production \"prod:*\"",
|
|
9
|
-
"prod:serve": "docusaurus serve --port 3000",
|
|
9
|
+
"prod:serve": "docusaurus serve --dir build --port 3000",
|
|
10
10
|
"check": "nova utility run-scripts --sequential \"check:*\"",
|
|
11
11
|
"check:lint": "eslint ./ --max-warnings=0",
|
|
12
12
|
"check:types-app": "nova utility type-check --project tsconfig.app.json",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"check:types-tests": "nova utility type-check --project tsconfig.tests.json",
|
|
15
15
|
"check:test": "vitest run",
|
|
16
16
|
"build": "nova utility run-scripts --sequential --node-env production \"build:*\"",
|
|
17
|
-
"build:build": "docusaurus build",
|
|
17
|
+
"build:build": "docusaurus build --out-dir build",
|
|
18
18
|
"clean": "nova utility run-scripts --parallel \"clean:*\"",
|
|
19
19
|
"clean:build": "shx rm -rf ./build",
|
|
20
20
|
"clean:clear": "docusaurus clear",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"node": "[__SCAFFOLD_VERSION_NODE_ENGINE__]"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cbnventures/docusaurus-preset-nova": "0.
|
|
31
|
-
"@cbnventures/nova": "0.
|
|
30
|
+
"@cbnventures/docusaurus-preset-nova": "0.37.0",
|
|
31
|
+
"@cbnventures/nova": "0.37.0",
|
|
32
32
|
"@docusaurus/core": "[__SCAFFOLD_VERSION_DOCUSAURUS__]",
|
|
33
33
|
"react": "[__SCAFFOLD_VERSION_REACT__]",
|
|
34
34
|
"react-dom": "[__SCAFFOLD_VERSION_REACT_DOM__]"
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>docusaurus/images/nova</title>
|
|
4
|
+
<g id="docusaurus/images/nova" stroke="none" fill="none" fill-rule="nonzero">
|
|
5
|
+
<g id="nova-logo-nobg">
|
|
6
|
+
<path d="M511.997004,230.397703 C524.10067,230.397703 536.154753,233.971412 548.159255,241.118829 L670.995809,311.636795 L962.728896,478.424274 L966.962784,480.688689 C975.421293,485.232411 983.808033,489.888331 991.831956,495.067735 L994.096933,496.39226 C1006.53964,503.739074 1018.51485,512.420414 1021.69911,528.662997 C1022.57439,534.225065 1022.87162,539.421248 1022.62158,544.293348 L1022.56429,545.26346 C1021.4169,566.703636 1010.57148,581.96216 990.304353,593.500967 C842.685524,677.546041 695.213677,761.853966 548.159255,846.881171 C535.806383,854.023607 524.266871,857.533941 512.780599,857.601769 L511.997518,857.601769 C500.252095,857.69188 488.46883,854.1862 475.834753,846.881171 C328.780331,761.853966 181.308484,677.546041 33.6896545,593.500967 C12.0835784,581.199847 1.15218764,564.743158 1.28587682,541.02502 C1.28587682,538.105667 1.46625503,535.072605 1.84341858,531.918382 C1.95289104,530.947448 2.07799753,529.965432 2.2191731,528.97221 L2.25581523,528.919708 L2.29489382,528.662997 C5.672248,511.435499 18.9389953,502.714041 32.1638724,495.069108 C41.5232958,489.025097 51.3783731,483.694979 61.2745246,478.418605 L353.002506,311.634781 L475.834753,241.118829 C487.839255,233.971412 499.893338,230.397703 511.997004,230.397703 Z" id="Path" fill="#E25050"></path>
|
|
7
|
+
<path d="M1020.93724,525.443722 L1020.92981,525.383562 L1020.94824,525.465903 L1020.91106,525.383562 C1022.64704,529.062193 1023.06128,536.441085 1023.09805,541.672386 L1023.15937,564.270396 C1023.28165,604.853532 1023.48799,646.074327 1023.85565,686.555814 L1024,699.590359 C1024,700.838355 1023.98806,702.064449 1023.93389,703.268895 C1023.20742,721.146074 1015.05848,734.48165 1000.2342,743.411868 C967.322974,763.237957 934.254569,782.802105 901.160433,802.323526 L872.790796,819.050822 C858.605892,827.41435 844.42316,835.781535 830.252947,844.169632 L805.67792,858.725849 C782.409055,872.623898 759.136744,886.51609 735.820314,900.333598 C711.969157,914.467985 688.098598,928.56954 664.222448,942.661635 L658.443502,946.112431 L636.369526,959.320916 C607.208418,976.772938 578.028864,994.192121 548.563786,1011.1073 L541.191414,1015.32532 C540.740909,1015.58517 540.291714,1015.84151 539.841852,1016.09207 L538.143291,1017.06065 C529.706124,1021.85677 520.889273,1024.10586 511.999788,1024.00357 C503.110351,1024.10576 494.293696,1021.85667 485.856709,1017.06065 L484.210703,1016.1242 C483.744811,1015.86234 483.277324,1015.59583 482.810603,1015.32309 C441.445137,991.741668 400.686196,967.090983 359.796607,942.670201 C335.91348,928.576675 312.036878,914.471561 288.179686,900.333598 C264.88382,886.528277 241.631996,872.648403 218.383648,858.762622 L193.747053,844.169632 C184.300244,838.577567 174.847872,832.994797 165.393001,827.416208 L122.839566,802.323526 C89.7454303,782.802105 56.6770256,763.237957 23.7657994,743.411868 C8.95211308,734.488028 0.804222396,721.165123 0.067900491,703.307021 C0.0123852226,702.090552 0,700.851641 0,699.590359 L0.144034969,686.55489 C0.511961899,646.074184 0.71834058,604.853511 0.840630063,564.270393 L0.899459562,542.205655 C0.911310592,537.129417 1.26808694,529.703938 2.91403395,525.77707 L3.05175667,525.465903 L3.07019009,525.383562 L3.06169907,525.443722 L3.08894175,525.383562 L3.07019009,525.383562 C-0.943182007,555.398102 10.76848,577.84587 35.8000662,593.588327 L72.6563584,614.617205 C207.176568,690.984273 341.273505,768.105762 475.097403,845.691522 C487.941141,853.137794 499.948283,857.000036 511.999083,857.06142 C524.051046,857.000251 536.0585,853.138002 548.902597,845.691522 C682.726495,768.105762 816.823432,690.984273 951.343124,614.616262 L988.186715,593.59532 C1012.72709,578.16763 1024.46983,556.298041 1021.15179,527.175635 L1021.04204,526.251865 L1020.91106,525.383562 L1020.93724,525.443722 Z" id="Path" fill="#9B1F1F"></path>
|
|
8
|
+
<path d="M552.949162,248.395935 C552.991782,332.722855 552.830694,415.85732 552.734119,498.991901 C552.67372,551.007322 552.846919,603.023367 552.63506,655.038005 C552.553079,675.180431 541.585143,690.109325 523.803778,695.684126 C507.160004,700.902106 488.200021,695.404264 479.299441,679.89127 C474.311895,671.198464 471.685465,659.895418 471.64533,649.75377 C471.146422,523.554287 471.320708,397.352106 471.311082,271.150591 C471.310578,264.756015 471.211868,258.361477 471.037815,250.776473 C471.050819,179.66803 471.189431,109.749993 471.316749,39.8319753 C471.361348,15.3498981 486.705515,1.26730252 513.35955,1.27999142 C537.602434,1.29156259 552.712226,16.1325234 552.720611,39.9815372 C552.74491,109.055555 552.756166,178.129574 552.949162,248.395935 Z" id="Path" fill="#FFBA33"></path>
|
|
9
|
+
<path d="M296.949144,343.110377 C296.984854,400.093029 296.957763,455.88408 296.643747,511.673529 C296.533318,531.293456 286.079018,546.034241 269.050157,551.908258 C252.443333,557.636567 233.680906,552.791412 224.093817,537.583422 C218.979171,529.470115 215.95768,518.701958 215.706623,509.034263 C214.723082,471.152733 215.218792,433.232257 215.042881,394.136158 C215.054643,327.279205 215.229272,261.612406 215.309348,195.94553 C215.373314,143.490328 215.29844,91.034992 215.333298,38.5797511 C215.348668,15.4898187 231.426906,1.2678295 257.348103,1.2799922 C280.937785,1.29109041 296.706357,16.2244318 296.714856,38.7014728 C296.752972,139.773667 296.757047,240.845879 296.949144,343.110377 Z" id="Path" fill="#FFBA33"></path>
|
|
10
|
+
<path d="M798.702361,386.708888 C798.743774,427.928659 798.637918,467.956286 798.464284,507.9836 C798.346098,535.222377 782.069543,553.927967 758.333346,554.243767 C734.096488,554.550872 717.233658,535.593982 717.178442,507.733509 C717.06871,452.370341 717.055138,397.006938 716.880188,340.453618 C716.892284,239.919713 717.464989,140.572818 716.793952,41.234457 C716.657775,21.0762463 730.442046,5.6687871 745.258577,1.73096756 C767.223311,-4.10666929 787.327632,5.1692772 795.708253,24.30691 C797.791852,29.0648236 798.359981,34.8260907 798.367426,40.1279513 C798.527721,155.257333 798.509885,270.38695 798.702361,386.708888 Z" id="Path" fill="#FFBA33"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|
|
@@ -9,6 +9,15 @@ import { defineConfig } from 'vitest/config';
|
|
|
9
9
|
* @since 0.20.0
|
|
10
10
|
*/
|
|
11
11
|
const currentFilePath = fileURLToPath(import.meta.url);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Vitest Configuration - Root directory.
|
|
15
|
+
*
|
|
16
|
+
* Stores this module-level value in one named location.
|
|
17
|
+
* Related code reuses it instead of duplicating the definition.
|
|
18
|
+
*
|
|
19
|
+
* @since UNRELEASED
|
|
20
|
+
*/
|
|
12
21
|
const rootDirectory = dirname(currentFilePath);
|
|
13
22
|
|
|
14
23
|
export default defineConfig({
|
package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc
CHANGED
|
@@ -10,6 +10,8 @@ require_once('services.inc');
|
|
|
10
10
|
* Returns the saved package settings.
|
|
11
11
|
*
|
|
12
12
|
* @return array<string, mixed> Package settings.
|
|
13
|
+
*
|
|
14
|
+
* @since UNRELEASED
|
|
13
15
|
*/
|
|
14
16
|
function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings(): array
|
|
15
17
|
{
|
|
@@ -24,6 +26,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings(): array
|
|
|
24
26
|
* @param string $frequency Selected frequency.
|
|
25
27
|
*
|
|
26
28
|
* @return array{string, string, string, string, string} Cron fields.
|
|
29
|
+
*
|
|
30
|
+
* @since UNRELEASED
|
|
27
31
|
*/
|
|
28
32
|
function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetCronFields(string $frequency): array
|
|
29
33
|
{
|
|
@@ -37,6 +41,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetCronFields(string $frequency
|
|
|
37
41
|
|
|
38
42
|
/**
|
|
39
43
|
* Synchronizes the package cron job with the saved WebGUI settings.
|
|
44
|
+
*
|
|
45
|
+
* @since UNRELEASED
|
|
40
46
|
*/
|
|
41
47
|
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Sync(): void
|
|
42
48
|
{
|
|
@@ -63,6 +69,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]Sync(): void
|
|
|
63
69
|
|
|
64
70
|
/**
|
|
65
71
|
* Removes the package cron job.
|
|
72
|
+
*
|
|
73
|
+
* @since UNRELEASED
|
|
66
74
|
*/
|
|
67
75
|
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove(): void
|
|
68
76
|
{
|
|
@@ -74,6 +82,8 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove(): void
|
|
|
74
82
|
*
|
|
75
83
|
* @param array<string, mixed> $post Submitted values.
|
|
76
84
|
* @param string[] $inputErrors Validation errors.
|
|
85
|
+
*
|
|
86
|
+
* @since UNRELEASED
|
|
77
87
|
*/
|
|
78
88
|
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Validate(array $post, array &$inputErrors): void
|
|
79
89
|
{
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: "Publish [__WORKSPACE_TITLE__] pfSense Package"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types:
|
|
6
|
+
- "published"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
inputs:
|
|
9
|
+
tag:
|
|
10
|
+
description: "Existing GitHub release tag that receives the package"
|
|
11
|
+
required: true
|
|
12
|
+
type: "string"
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: "write"
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: "${{ github.workflow }}-${{ github.event.release.tag_name || inputs.tag }}"
|
|
19
|
+
cancel-in-progress: false
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
package:
|
|
23
|
+
name: "Build pfSense Package"
|
|
24
|
+
runs-on: "ubuntu-latest"
|
|
25
|
+
env:
|
|
26
|
+
RELEASE_TAG: "${{ github.event.release.tag_name || inputs.tag }}"
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- name: "Checkout"
|
|
30
|
+
uses: "actions/checkout@v7"
|
|
31
|
+
|
|
32
|
+
- name: "Validate and Stage Port"
|
|
33
|
+
run: |
|
|
34
|
+
node "./[__WORKSPACE_RELATIVE_PATH__]/scripts/check-package.mjs"
|
|
35
|
+
node "./[__WORKSPACE_RELATIVE_PATH__]/scripts/stage-package.mjs"
|
|
36
|
+
|
|
37
|
+
- name: "Build on FreeBSD"
|
|
38
|
+
uses: "vmactions/freebsd-vm@v1"
|
|
39
|
+
with:
|
|
40
|
+
release: "${{ vars.PFSENSE_FREEBSD_VERSION || '15' }}"
|
|
41
|
+
copyback: true
|
|
42
|
+
prepare: |
|
|
43
|
+
pkg install -y ca_root_nss git
|
|
44
|
+
run: |
|
|
45
|
+
git clone --depth 1 --single-branch --branch devel --filter=blob:none --sparse https://github.com/pfsense/FreeBSD-ports.git /usr/ports
|
|
46
|
+
git -C /usr/ports sparse-checkout set Mk Templates Keywords
|
|
47
|
+
PFSENSE_PORTS_DIR=/usr/ports sh "./[__WORKSPACE_RELATIVE_PATH__]/scripts/build-package.sh"
|
|
48
|
+
|
|
49
|
+
- name: "Upload Workflow Artifact"
|
|
50
|
+
uses: "actions/upload-artifact@v7"
|
|
51
|
+
with:
|
|
52
|
+
name: "pfsense-[__WORKSPACE_NAME__]"
|
|
53
|
+
path: "./[__WORKSPACE_RELATIVE_PATH__]/build/release/*"
|
|
54
|
+
if-no-files-found: "error"
|
|
55
|
+
retention-days: 7
|
|
56
|
+
include-hidden-files: true
|
|
57
|
+
|
|
58
|
+
- name: "Upload GitHub Release Assets"
|
|
59
|
+
env:
|
|
60
|
+
GH_TOKEN: "${{ github.token }}"
|
|
61
|
+
run: |
|
|
62
|
+
gh release upload "${RELEASE_TAG}" "./[__WORKSPACE_RELATIVE_PATH__]/build/release/"* --clobber
|
|
@@ -10,8 +10,22 @@ import androidx.compose.material3.Surface
|
|
|
10
10
|
import androidx.compose.ui.Modifier
|
|
11
11
|
import [__ANDROID_APPLICATION_ID__].theme.[__WORKSPACE_IDENTIFIER__]Theme
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Main Activity.
|
|
15
|
+
*
|
|
16
|
+
* Hosts the generated Compose application.
|
|
17
|
+
*
|
|
18
|
+
* @since UNRELEASED
|
|
19
|
+
*/
|
|
20
|
+
public class MainActivity : ComponentActivity() {
|
|
21
|
+
/**
|
|
22
|
+
* Main Activity - On Create.
|
|
23
|
+
*
|
|
24
|
+
* @param savedInstanceState - Saved instance state.
|
|
25
|
+
*
|
|
26
|
+
* @since UNRELEASED
|
|
27
|
+
*/
|
|
28
|
+
public override fun onCreate(savedInstanceState: Bundle?) {
|
|
15
29
|
super.onCreate(savedInstanceState)
|
|
16
30
|
|
|
17
31
|
enableEdgeToEdge()
|
|
@@ -3,4 +3,10 @@ package [__ANDROID_APPLICATION_ID__]
|
|
|
3
3
|
import androidx.navigation3.runtime.NavKey
|
|
4
4
|
import kotlinx.serialization.Serializable
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Main Navigation Key.
|
|
8
|
+
*
|
|
9
|
+
* @since UNRELEASED
|
|
10
|
+
*/
|
|
11
|
+
@Serializable
|
|
12
|
+
public data object Main : NavKey
|
|
@@ -3,10 +3,34 @@ package [__ANDROID_APPLICATION_ID__].data
|
|
|
3
3
|
import kotlinx.coroutines.flow.Flow
|
|
4
4
|
import kotlinx.coroutines.flow.flow
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Data Repository.
|
|
8
|
+
*
|
|
9
|
+
* Defines the starter data source consumed by the generated launch screen.
|
|
10
|
+
*
|
|
11
|
+
* @since UNRELEASED
|
|
12
|
+
*/
|
|
13
|
+
public interface DataRepository {
|
|
14
|
+
/**
|
|
15
|
+
* Data Repository - Data.
|
|
16
|
+
*
|
|
17
|
+
* @since UNRELEASED
|
|
18
|
+
*/
|
|
19
|
+
public val data: Flow<List<String>>
|
|
8
20
|
}
|
|
9
21
|
|
|
10
|
-
|
|
11
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Default Data Repository.
|
|
24
|
+
*
|
|
25
|
+
* Supplies starter data until the generated project adopts a real data source.
|
|
26
|
+
*
|
|
27
|
+
* @since UNRELEASED
|
|
28
|
+
*/
|
|
29
|
+
public class DefaultDataRepository : DataRepository {
|
|
30
|
+
/**
|
|
31
|
+
* Default Data Repository - Data.
|
|
32
|
+
*
|
|
33
|
+
* @since UNRELEASED
|
|
34
|
+
*/
|
|
35
|
+
public override val data: Flow<List<String>> = flow { emit(listOf("Android")) }
|
|
12
36
|
}
|
|
@@ -2,10 +2,44 @@ package [__ANDROID_APPLICATION_ID__].theme
|
|
|
2
2
|
|
|
3
3
|
import androidx.compose.ui.graphics.Color
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Purple 80.
|
|
7
|
+
*
|
|
8
|
+
* @since UNRELEASED
|
|
9
|
+
*/
|
|
10
|
+
public val Purple80: Color = Color(0xFFD0BCFF)
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Purple Grey 80.
|
|
14
|
+
*
|
|
15
|
+
* @since UNRELEASED
|
|
16
|
+
*/
|
|
17
|
+
public val PurpleGrey80: Color = Color(0xFFCCC2DC)
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Pink 80.
|
|
21
|
+
*
|
|
22
|
+
* @since UNRELEASED
|
|
23
|
+
*/
|
|
24
|
+
public val Pink80: Color = Color(0xFFEFB8C8)
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Purple 40.
|
|
28
|
+
*
|
|
29
|
+
* @since UNRELEASED
|
|
30
|
+
*/
|
|
31
|
+
public val Purple40: Color = Color(0xFF6650a4)
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Purple Grey 40.
|
|
35
|
+
*
|
|
36
|
+
* @since UNRELEASED
|
|
37
|
+
*/
|
|
38
|
+
public val PurpleGrey40: Color = Color(0xFF625b71)
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Pink 40.
|
|
42
|
+
*
|
|
43
|
+
* @since UNRELEASED
|
|
44
|
+
*/
|
|
45
|
+
public val Pink40: Color = Color(0xFF7D5260)
|
|
@@ -10,8 +10,20 @@ import androidx.compose.material3.lightColorScheme
|
|
|
10
10
|
import androidx.compose.runtime.Composable
|
|
11
11
|
import androidx.compose.ui.platform.LocalContext
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Dark Color Scheme.
|
|
15
|
+
*
|
|
16
|
+
* @private
|
|
17
|
+
* @since UNRELEASED
|
|
18
|
+
*/
|
|
13
19
|
private val DarkColorScheme = darkColorScheme(primary = Purple80, secondary = PurpleGrey80, tertiary = Pink80)
|
|
14
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Light Color Scheme.
|
|
23
|
+
*
|
|
24
|
+
* @private
|
|
25
|
+
* @since UNRELEASED
|
|
26
|
+
*/
|
|
15
27
|
private val LightColorScheme =
|
|
16
28
|
lightColorScheme(
|
|
17
29
|
primary = Purple40,
|
|
@@ -29,8 +41,17 @@ private val LightColorScheme =
|
|
|
29
41
|
*/
|
|
30
42
|
)
|
|
31
43
|
|
|
44
|
+
/**
|
|
45
|
+
* [__WORKSPACE_TITLE__] Theme.
|
|
46
|
+
*
|
|
47
|
+
* @param darkTheme - Dark theme.
|
|
48
|
+
* @param dynamicColor - Dynamic color.
|
|
49
|
+
* @param content - Content.
|
|
50
|
+
*
|
|
51
|
+
* @since UNRELEASED
|
|
52
|
+
*/
|
|
32
53
|
@Composable
|
|
33
|
-
fun [__WORKSPACE_IDENTIFIER__]Theme(
|
|
54
|
+
public fun [__WORKSPACE_IDENTIFIER__]Theme(
|
|
34
55
|
darkTheme: Boolean = isSystemInDarkTheme(),
|
|
35
56
|
// Dynamic color is available on Android 12+
|
|
36
57
|
dynamicColor: Boolean = true,
|
|
@@ -6,8 +6,14 @@ import androidx.compose.ui.text.font.FontFamily
|
|
|
6
6
|
import androidx.compose.ui.text.font.FontWeight
|
|
7
7
|
import androidx.compose.ui.unit.sp
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Typography.
|
|
11
|
+
*
|
|
12
|
+
* Provides the starter Material typography used by the generated application.
|
|
13
|
+
*
|
|
14
|
+
* @since UNRELEASED
|
|
15
|
+
*/
|
|
16
|
+
public val Typography: Typography =
|
|
11
17
|
Typography(
|
|
12
18
|
bodyLarge =
|
|
13
19
|
TextStyle(
|
|
@@ -10,18 +10,54 @@ import kotlinx.coroutines.flow.catch
|
|
|
10
10
|
import kotlinx.coroutines.flow.map
|
|
11
11
|
import kotlinx.coroutines.flow.stateIn
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Main Screen View Model.
|
|
15
|
+
*
|
|
16
|
+
* @param dataRepository - Data repository.
|
|
17
|
+
*
|
|
18
|
+
* @since UNRELEASED
|
|
19
|
+
*/
|
|
20
|
+
public class MainScreenViewModel(dataRepository: DataRepository) : ViewModel() {
|
|
21
|
+
/**
|
|
22
|
+
* Main Screen View Model - UI State.
|
|
23
|
+
*
|
|
24
|
+
* @since UNRELEASED
|
|
25
|
+
*/
|
|
26
|
+
public val uiState: StateFlow<MainScreenUiState> =
|
|
15
27
|
dataRepository.data
|
|
16
28
|
.map<List<String>, MainScreenUiState>(::Success)
|
|
17
29
|
.catch { emit(MainScreenUiState.Error(it)) }
|
|
18
30
|
.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5000), MainScreenUiState.Loading)
|
|
19
31
|
}
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Main Screen UI State.
|
|
35
|
+
*
|
|
36
|
+
* @since UNRELEASED
|
|
37
|
+
*/
|
|
38
|
+
public sealed interface MainScreenUiState {
|
|
39
|
+
/**
|
|
40
|
+
* Main Screen UI State - Loading.
|
|
41
|
+
*
|
|
42
|
+
* @since UNRELEASED
|
|
43
|
+
*/
|
|
44
|
+
public object Loading : MainScreenUiState
|
|
23
45
|
|
|
24
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Main Screen UI State - Error.
|
|
48
|
+
*
|
|
49
|
+
* @param throwable - Throwable.
|
|
50
|
+
*
|
|
51
|
+
* @since UNRELEASED
|
|
52
|
+
*/
|
|
53
|
+
public data class Error(public val throwable: Throwable) : MainScreenUiState
|
|
25
54
|
|
|
26
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Main Screen UI State - Success.
|
|
57
|
+
*
|
|
58
|
+
* @param data - Data.
|
|
59
|
+
*
|
|
60
|
+
* @since UNRELEASED
|
|
61
|
+
*/
|
|
62
|
+
public data class Success(public val data: List<String>) : MainScreenUiState
|
|
27
63
|
}
|