Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

feat(wizard): use environment variables for default admin account values (#254)

Timothy Yindf9ba9acda33
diff --git a/app/components/Wizard/Step.vue b/app/components/Wizard/Step.vue
index 92746e06..80ee089a 100644
--- a/app/components/Wizard/Step.vue
+++ b/app/components/Wizard/Step.vue
@@ -16,14 +16,14 @@ defineProps<{
class="flex flex-col h-full"
>
<!-- Header -->
- <div class="shrink-0 px-6 lg:px-12 py-8 border-b border-white/10">
- <div class="max-w-2xl mx-auto space-y-2">
- <h1 class="text-3xl font-bold tracking-tight text-white">
+ <div class="shrink-0 px-6 lg:px-10 py-6 border-b border-white/10">
+ <div class="max-w-3xl mx-auto space-y-2">
+ <h1 class="text-2xl font-bold tracking-tight text-white">
{{ title }}
</h1>
<p
v-if="description"
- class="text-lg text-neutral-400"
+ class="text-sm text-neutral-400"
>
{{ description }}
</p>
@@ -31,8 +31,8 @@ defineProps<{
</div>
<!-- Scrollable Content -->
- <div class="flex-1 overflow-y-auto custom-scrollbar px-6 lg:px-12 py-8">
- <div class="max-w-2xl mx-auto h-full">
+ <div class="flex-1 overflow-y-auto custom-scrollbar px-6 lg:px-10 py-6">
+ <div class="max-w-3xl mx-auto h-full">
<slot />
</div>
</div>
@@ -40,9 +40,9 @@ defineProps<{
<!-- Footer -->
<div
v-if="$slots.actions"
- class="shrink-0 px-6 lg:px-12 py-6 border-t border-white/10"
+ class="shrink-0 px-6 lg:px-10 py-6 border-t border-white/10"
>
- <div class="max-w-2xl mx-auto flex items-center justify-end gap-4">
+ <div class="max-w-3xl mx-auto flex items-center justify-end gap-4">
<slot name="actions" />
</div>
</div>
diff --git a/app/components/photo/Viewer.vue b/app/components/photo/Viewer.vue
index 03590f11..ef20872c 100644
--- a/app/components/photo/Viewer.vue
+++ b/app/components/photo/Viewer.vue
@@ -615,7 +615,7 @@ const swiperModules = [Navigation, Keyboard, Virtual]
:name="
isLivePhotoMuted ? 'tabler:volume-off' : 'tabler:volume'
"
- class="size-[17px]"
+ class="size-4.25"
/>
</div>
</div>
diff --git a/app/layouts/onboarding.vue b/app/layouts/onboarding.vue
index 2ce0e969..bed71d11 100644
--- a/app/layouts/onboarding.vue
+++ b/app/layouts/onboarding.vue
@@ -76,7 +76,7 @@ const currentStepIndex = computed(() => {
<!-- Main Container -->
<motion.div
- class="relative z-10 w-full max-w-6xl h-[80vh] max-h-[900px] mx-4 lg:mx-8 flex rounded-3xl overflow-hidden border border-white/10 bg-neutral-900/40 backdrop-blur-2xl shadow-2xl shadow-black/50"
+ class="relative z-10 w-full max-w-6xl h-[80vh] max-h-225 mx-4 lg:mx-8 flex rounded-3xl overflow-hidden border border-white/10 bg-neutral-900/40 backdrop-blur-2xl shadow-2xl shadow-black/50"
:initial="{ opacity: 0, scale: 0.95, y: 20 }"
:animate="{ opacity: 1, scale: 1, y: 0 }"
:transition="{ duration: 0.8, ease: [0.16, 1, 0.3, 1] }"
@@ -104,7 +104,7 @@ const currentStepIndex = computed(() => {
<div class="space-y-1 relative">
<!-- Connecting Line -->
<div
- class="absolute left-[27px] top-4 bottom-4 w-0.5 bg-white/5 rounded-full"
+ class="absolute left-6.75 top-4 bottom-4 w-0.5 bg-white/5 rounded-full"
>
<!-- Active Line Wrapper -->
<div
diff --git a/app/pages/onboarding/index.vue b/app/pages/onboarding/index.vue
index ebc7eeb7..948aeaa0 100644
--- a/app/pages/onboarding/index.vue
+++ b/app/pages/onboarding/index.vue
@@ -9,8 +9,8 @@ definePageMeta({
title="欢迎使用 ChronoFrame"
description="跟随向导,在几分钟内设置好您的画廊。"
>
- <div class="space-y-8">
- <div class="text-neutral-300 space-y-4 text-lg leading-relaxed">
+ <div class="space-y-6">
+ <div class="text-neutral-300 text-base leading-relaxed">
<p>
ChronoFrame
是一款多功能个人画廊应用程序。在您开始上传照片之前,我们需要先配置一些内容:
diff --git a/package.json b/package.json
index 548a4c2b..ae915ef5 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,7 @@
"@tailwindcss/vite": "^4.2.2",
"@unhead/vue": "^2.1.13",
"@vingle/bmp-js": "^0.2.5",
- "@vueuse/nuxt": "13.9.0",
+ "@vueuse/nuxt": "14.2.1",
"@yeger/vue-masonry-wall": "^5.1.5",
"better-sqlite3": "^12.8.0",
"dayjs-nuxt": "2.1.11",
@@ -93,6 +93,7 @@
"@nuxt/test-utils": "3.23.0",
"@types/better-sqlite3": "^7.6.13",
"@types/heic-convert": "^2.1.0",
+ "@vueuse/core": "^14.2.1",
"baseline-browser-mapping": "^2.10.16",
"consola": "^3.4.2",
"dayjs": "^1.11.20",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8a6646b5..8ec4dfc7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -25,25 +25,25 @@ importers:
'@nuxt/fonts':
specifier: 0.14.0
'@nuxt/icon':
specifier: 2.2.1
'@nuxt/image':
specifier: 1.11.0
'@nuxt/ui':
specifier: ^4.6.1
'@nuxthub/core':
specifier: 0.10.7
'@nuxtjs/i18n':
specifier: 10.2.4
'@pinia/nuxt':
specifier: ^0.11.3
'@tailwindcss/vite':
specifier: ^4.2.2
@@ -54,8 +54,8 @@ importers:
specifier: ^0.2.5
version: 0.2.5
'@vueuse/nuxt':
- specifier: 13.9.0
- version: 13.9.0([email protected])([email protected](bd5d5cd06c6fb6bc96820770350a40e4))([email protected]([email protected]))
+ specifier: 14.2.1
+ version: 14.2.1([email protected])([email protected](60aa6f558da747e1b135c692ceb917d5))([email protected]([email protected]))
'@yeger/vue-masonry-wall':
specifier: ^5.1.5
@@ -64,7 +64,7 @@ importers:
version: 12.8.0
dayjs-nuxt:
specifier: 2.1.11
- version: 2.1.11([email protected])
+ version: 2.1.11([email protected])
drizzle-orm:
specifier: ^0.45.2
version: 0.45.2(@cloudflare/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])
@@ -91,22 +91,22 @@ importers:
nuxt:
specifier: ^4.4.2
- version: 4.4.2(bd5d5cd06c6fb6bc96820770350a40e4)
+ version: 4.4.2(60aa6f558da747e1b135c692ceb917d5)
nuxt-auth-utils:
specifier: 0.5.29
- version: 0.5.29([email protected])
+ version: 0.5.29([email protected])
nuxt-gtag:
specifier: 4.1.0
- version: 4.1.0([email protected])
+ version: 4.1.0([email protected])
nuxt-mapbox:
specifier: 1.6.4
nuxt-maplibre:
specifier: ^1.2.2
nuxt-og-image:
specifier: 5.1.13
pinia:
specifier: ^3.0.4
@@ -179,13 +179,16 @@ importers:
version: 1.2.33
'@nuxt/test-utils':
specifier: 3.23.0
'@types/better-sqlite3':
specifier: ^7.6.13
version: 7.6.13
'@types/heic-convert':
specifier: ^2.1.0
version: 2.1.0
+ '@vueuse/core':
+ specifier: ^14.2.1
baseline-browser-mapping:
specifier: ^2.10.16
version: 2.10.16
@@ -4410,8 +4413,8 @@ packages:
'@vueuse/[email protected]':
resolution: {integrity: sha512-1ButlVtj5Sb/HDtIy1HFr1VqCP4G6Ypqt5MAo0lCgjokrk2mvQKsK2uuy0vqu/Ks+sHfuHo0B9Y9jn9xKdjZsw==}
- '@vueuse/[email protected]':
- resolution: {integrity: sha512-n/9BRU3nLl2mVI6rYbB3jOctCmQD0xT799hXPCwCn1PyvK7r6O9Nt1dxfVCMfKCDAiCi8Fz2IqPC6Zs2Dv1pVA==}
+ '@vueuse/[email protected]':
+ resolution: {integrity: sha512-DHgFMUpyH98M1YM9pbnRjFXMAMKEsHntJeOp8rOXs8QN2cvJBzEZ+TTWIBSPESNFOEwM02RA6BDsaTL35OK4Mw==}
peerDependencies:
nuxt: ^3.0.0 || ^4.0.0-0
vue: ^3.5.0
@@ -9625,10 +9628,10 @@ snapshots:
'@drizzle-team/[email protected]': {}
dependencies:
'@dxup/unimport': 0.1.2
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
chokidar: 5.0.0
pathe: 2.0.3
tinyglobby: 0.2.15
@@ -10449,11 +10452,11 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.19.1
dependencies:
'@bomb.sh/tab': 0.0.14([email protected])([email protected])
'@clack/prompts': 1.2.0
- c12: 3.3.4([email protected])
+ c12: 3.3.4([email protected])
citty: 0.2.2
confbox: 0.2.4
consola: 3.4.2
@@ -10497,14 +10500,6 @@ snapshots:
transitivePeerDependencies:
- magicast
- dependencies:
- '@nuxt/kit': 4.4.2([email protected])
- execa: 8.0.1
- transitivePeerDependencies:
- - magicast
-
dependencies:
'@nuxt/kit': 4.4.2([email protected])
@@ -10607,7 +10602,7 @@ snapshots:
structured-clone-es: 2.0.0
tinyglobby: 0.2.15
which: 6.0.1
ws: 8.20.0
@@ -10617,10 +10612,10 @@ snapshots:
- utf-8-validate
- vue
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
consola: 3.4.2
defu: 6.1.4
@@ -10657,14 +10652,14 @@ snapshots:
- uploadthing
- vite
dependencies:
'@iconify/collections': 1.0.668
'@iconify/types': 2.0.0
'@iconify/utils': 3.1.0
'@iconify/vue': 5.0.0([email protected]([email protected]))
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
consola: 3.4.2
local-pkg: 1.1.2
mlly: 1.8.0
@@ -10678,9 +10673,9 @@ snapshots:
- vite
- vue
dependencies:
- '@nuxt/kit': 3.19.3([email protected])
+ '@nuxt/kit': 3.19.3([email protected])
consola: 3.4.2
defu: 6.1.4
h3: 1.15.4
@@ -10714,9 +10709,9 @@ snapshots:
- magicast
- uploadthing
dependencies:
- c12: 3.3.1([email protected])
+ c12: 3.3.1([email protected])
consola: 3.4.2
defu: 6.1.6
destr: 2.0.5
@@ -10768,41 +10763,40 @@ snapshots:
transitivePeerDependencies:
- magicast
dependencies:
- c12: 3.3.1([email protected])
+ c12: 3.3.4([email protected])
consola: 3.4.2
defu: 6.1.6
destr: 2.0.5
errx: 0.1.0
- exsolve: 1.0.7
+ exsolve: 1.0.8
ignore: 7.0.5
jiti: 2.6.1
klona: 2.0.6
+ knitwork: 1.3.0
mlly: 1.8.2
ohash: 2.0.11
pathe: 2.0.3
pkg-types: 2.3.0
- rc9: 2.1.2
+ rc9: 3.0.1
scule: 1.3.0
semver: 7.7.4
- std-env: 3.10.0
tinyglobby: 0.2.15
ufo: 1.6.3
- unctx: 2.4.1
- unimport: 5.5.0
+ unctx: 2.5.0
untyped: 2.0.0
transitivePeerDependencies:
- magicast
dependencies:
- c12: 3.3.4([email protected])
+ c12: 3.3.1([email protected])
consola: 3.4.2
defu: 6.1.6
destr: 2.0.5
errx: 0.1.0
- exsolve: 1.0.8
+ exsolve: 1.0.7
ignore: 7.0.5
jiti: 2.6.1
klona: 2.0.6
@@ -10810,12 +10804,14 @@ snapshots:
ohash: 2.0.11
pathe: 2.0.3
pkg-types: 2.3.0
- rc9: 3.0.1
+ rc9: 2.1.2
scule: 1.3.0
semver: 7.7.4
+ std-env: 3.10.0
tinyglobby: 0.2.15
ufo: 1.6.3
- unctx: 2.5.0
+ unctx: 2.4.1
+ unimport: 5.5.0
untyped: 2.0.0
transitivePeerDependencies:
- magicast
@@ -10845,11 +10841,11 @@ snapshots:
transitivePeerDependencies:
- magicast
dependencies:
'@babel/plugin-syntax-typescript': 7.28.6(@babel/[email protected])
'@nuxt/devalue': 2.0.2
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@unhead/vue': 2.1.13([email protected]([email protected]))
'@vue/shared': 3.5.31
consola: 3.4.2
@@ -10864,7 +10860,7 @@ snapshots:
klona: 2.0.6
mocked-exports: 0.1.1
- nuxt: 4.4.2(bd5d5cd06c6fb6bc96820770350a40e4)
+ nuxt: 4.4.2(60aa6f558da747e1b135c692ceb917d5)
nypm: 0.6.5
ohash: 2.0.11
pathe: 2.0.3
@@ -10921,20 +10917,20 @@ snapshots:
pkg-types: 2.3.0
std-env: 4.0.0
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
citty: 0.2.2
consola: 3.4.2
ofetch: 2.0.0-alpha.3
rc9: 3.0.1
std-env: 4.0.0
dependencies:
'@clack/prompts': 1.0.0-alpha.9
- '@nuxt/kit': 3.21.2([email protected])
- c12: 3.3.4([email protected])
+ '@nuxt/kit': 3.21.2([email protected])
+ c12: 3.3.4([email protected])
consola: 3.4.2
defu: 6.1.4
destr: 2.0.5
@@ -10958,7 +10954,7 @@ snapshots:
tinyexec: 1.0.4
ufo: 1.6.1
unplugin: 2.3.11
- vitest-environment-nuxt: 1.0.1([email protected])([email protected])([email protected])
+ vitest-environment-nuxt: 1.0.1([email protected])([email protected])([email protected])
vue: 3.5.32([email protected])
optionalDependencies:
playwright-core: 1.59.1
@@ -10967,17 +10963,17 @@ snapshots:
- magicast
- typescript
dependencies:
'@floating-ui/dom': 1.7.6
'@iconify/vue': 5.0.0([email protected]([email protected]))
'@internationalized/date': 3.12.0
'@internationalized/number': 3.6.5
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@nuxt/schema': 4.4.2
- '@nuxtjs/color-mode': 3.5.2([email protected])
+ '@nuxtjs/color-mode': 3.5.2([email protected])
'@standard-schema/spec': 1.1.0
'@tailwindcss/postcss': 4.2.2
@@ -11031,8 +11027,8 @@ snapshots:
typescript: 5.9.3
ufo: 1.6.3
unplugin: 3.0.0
vue-component-type-helpers: 3.2.6
optionalDependencies:
@@ -11081,9 +11077,9 @@ snapshots:
- vue
- yjs
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@rollup/plugin-replace': 6.0.3([email protected])
@@ -11099,7 +11095,7 @@ snapshots:
magic-string: 0.30.21
mlly: 1.8.2
mocked-exports: 0.1.1
- nuxt: 4.4.2(bd5d5cd06c6fb6bc96820770350a40e4)
+ nuxt: 4.4.2(60aa6f558da747e1b135c692ceb917d5)
nypm: 0.6.5
pathe: 2.0.3
pkg-types: 2.3.0
@@ -11142,12 +11138,12 @@ snapshots:
- vue-tsc
- yaml
dependencies:
'@cloudflare/workers-types': 4.20260402.1
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@uploadthing/mime-types': 0.3.6
- c12: 3.3.4([email protected])
+ c12: 3.3.4([email protected])
chokidar: 5.0.0
citty: 0.2.2
consola: 3.4.2
@@ -11204,16 +11200,16 @@ snapshots:
- uploadthing
- vue-tsc
dependencies:
- '@nuxt/kit': 3.21.2([email protected])
+ '@nuxt/kit': 3.21.2([email protected])
pathe: 1.1.2
pkg-types: 1.3.1
semver: 7.7.4
transitivePeerDependencies:
- magicast
dependencies:
'@intlify/core': 11.3.0
'@intlify/h3': 0.7.4
@@ -11221,7 +11217,7 @@ snapshots:
'@intlify/utils': 0.14.1
'@miyaneee/rollup-plugin-json5': 1.2.0([email protected])
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@rollup/plugin-yaml': 4.1.2([email protected])
'@vue/compiler-sfc': 3.5.22
defu: 6.1.4
@@ -11794,9 +11790,9 @@ snapshots:
'@photostructure/[email protected]': {}
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
transitivePeerDependencies:
- magicast
@@ -13441,13 +13437,13 @@ snapshots:
'@vueuse/[email protected]': {}
dependencies:
- '@nuxt/kit': 3.19.3([email protected])
- '@vueuse/core': 13.9.0([email protected]([email protected]))
- '@vueuse/metadata': 13.9.0
+ '@nuxt/kit': 4.4.2([email protected])
+ '@vueuse/core': 14.2.1([email protected]([email protected]))
+ '@vueuse/metadata': 14.2.1
local-pkg: 1.1.2
- nuxt: 4.4.2(bd5d5cd06c6fb6bc96820770350a40e4)
+ nuxt: 4.4.2(60aa6f558da747e1b135c692ceb917d5)
vue: 3.5.32([email protected])
transitivePeerDependencies:
- magicast
@@ -13716,7 +13712,7 @@ snapshots:
dependencies:
chokidar: 4.0.3
confbox: 0.2.2
@@ -13731,7 +13727,7 @@ snapshots:
pkg-types: 2.3.0
rc9: 2.1.2
optionalDependencies:
- magicast: 0.3.5
+ magicast: 0.5.2
dependencies:
@@ -14057,9 +14053,9 @@ snapshots:
dependencies:
- '@nuxt/kit': 3.19.3([email protected])
+ '@nuxt/kit': 3.19.3([email protected])
dayjs: 1.11.20
transitivePeerDependencies:
- magicast
@@ -15923,10 +15919,10 @@ snapshots:
dependencies:
boolbase: 1.0.0
dependencies:
'@adonisjs/hash': 9.1.1
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
defu: 6.1.4
h3: 1.15.4
hookable: 6.1.0
@@ -15943,20 +15939,20 @@ snapshots:
dependencies:
- '@nuxt/kit': 4.1.3([email protected])
+ '@nuxt/kit': 4.1.3([email protected])
defu: 6.1.4
pathe: 2.0.3
ufo: 1.6.1
transitivePeerDependencies:
- magicast
dependencies:
'@mapbox/mapbox-gl-geocoder': 5.1.2
- '@nuxt/kit': 4.1.3([email protected])
+ '@nuxt/kit': 4.1.3([email protected])
'@types/mapbox__mapbox-gl-geocoder': 5.1.0
'@vueuse/core': 13.9.0([email protected]([email protected]))
defu: 6.1.4
@@ -15977,10 +15973,10 @@ snapshots:
transitivePeerDependencies:
- vue
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@resvg/resvg-js': 2.6.2
'@resvg/resvg-wasm': 2.6.2
'@unhead/vue': 2.1.13([email protected]([email protected]))
@@ -15993,7 +15989,7 @@ snapshots:
image-size: 2.0.2
magic-string: 0.30.21
mocked-exports: 0.1.1
nypm: 0.6.2
ofetch: 1.5.1
ohash: 2.0.11
@@ -16018,9 +16014,9 @@ snapshots:
- vite
- vue
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
pkg-types: 2.3.0
site-config-stack: 3.2.11([email protected]([email protected]))
std-env: 3.10.0
@@ -16029,11 +16025,11 @@ snapshots:
- magicast
- vue
dependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
h3: 2.0.1-rc.20
- nuxt-site-config-kit: 3.2.11([email protected])([email protected]([email protected]))
+ nuxt-site-config-kit: 3.2.11([email protected])([email protected]([email protected]))
pathe: 2.0.3
pkg-types: 2.3.0
sirv: 3.0.2
@@ -16043,19 +16039,19 @@ snapshots:
- magicast
- vue
- [email protected](bd5d5cd06c6fb6bc96820770350a40e4):
+ [email protected](60aa6f558da747e1b135c692ceb917d5):
dependencies:
- '@dxup/nuxt': 0.4.0([email protected])([email protected])
+ '@dxup/nuxt': 0.4.0([email protected])([email protected])
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@nuxt/schema': 4.4.2
- '@nuxt/telemetry': 2.8.0(@nuxt/[email protected]([email protected]))
+ '@nuxt/telemetry': 2.8.0(@nuxt/[email protected]([email protected]))
'@unhead/vue': 2.1.13([email protected]([email protected]))
'@vue/shared': 3.5.31
- c12: 3.3.4([email protected])
+ c12: 3.3.4([email protected])
chokidar: 5.0.0
compatx: 0.2.0
consola: 3.4.2
@@ -17944,7 +17940,7 @@ snapshots:
dependencies:
local-pkg: 1.1.2
magic-string: 0.30.21
@@ -17953,7 +17949,7 @@ snapshots:
unplugin: 2.3.11
unplugin-utils: 0.3.1
optionalDependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
'@vueuse/core': 14.2.1([email protected]([email protected]))
@@ -17961,7 +17957,7 @@ snapshots:
pathe: 2.0.3
picomatch: 4.0.3
dependencies:
chokidar: 5.0.0
local-pkg: 1.1.2
@@ -17974,7 +17970,7 @@ snapshots:
unplugin-utils: 0.3.1
vue: 3.5.32([email protected])
optionalDependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
dependencies:
@@ -18166,7 +18162,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
ansis: 4.2.0
debug: 4.4.3
@@ -18179,7 +18175,7 @@ snapshots:
optionalDependencies:
- '@nuxt/kit': 4.4.2([email protected])
+ '@nuxt/kit': 4.4.2([email protected])
transitivePeerDependencies:
- supports-color
@@ -18290,9 +18286,9 @@ snapshots:
- universal-cookie
- yaml
dependencies:
transitivePeerDependencies:
- '@cucumber/cucumber'
- '@jest/globals'
diff --git a/server/api/wizard/schema.get.ts b/server/api/wizard/schema.get.ts
index 8f5d9e4e..3787b8d9 100644
--- a/server/api/wizard/schema.get.ts
+++ b/server/api/wizard/schema.get.ts
@@ -13,13 +13,18 @@ export default eventHandler(async (event) => {
// 1. Admin Account Schema
if (query.namespace === 'admin') {
+ // Use env variables for default values if configured
+ const defaultUsername = process.env.CFRAME_ADMIN_NAME || 'admin'
+ const defaultEmail = process.env.CFRAME_ADMIN_EMAIL || ''
+ const defaultPassword = process.env.CFRAME_ADMIN_PASSWORD || ''
+
const fields: FieldDescriptor[] = [
{
namespace: 'admin',
key: 'username',
type: 'string',
- defaultValue: 'admin',
- value: 'admin',
+ defaultValue: defaultUsername,
+ value: defaultUsername,
label: 'wizard.admin.username.label',
ui: { type: 'input', required: true, placeholder: 'admin' },
},
@@ -27,8 +32,8 @@ export default eventHandler(async (event) => {
namespace: 'admin',
key: 'email',
type: 'string',
- defaultValue: '',
- value: '',
+ defaultValue: defaultEmail,
+ value: defaultEmail,
label: 'wizard.admin.email.label',
ui: { type: 'input', required: true, placeholder: '[email protected]' },
},
@@ -36,8 +41,8 @@ export default eventHandler(async (event) => {
namespace: 'admin',
key: 'password',
type: 'string',
- defaultValue: '',
- value: '',
+ defaultValue: defaultPassword,
+ value: defaultPassword,
label: 'wizard.admin.password.label',
ui: { type: 'password', required: true },
},
@@ -45,8 +50,8 @@ export default eventHandler(async (event) => {
namespace: 'admin',
key: 'confirmPassword',
type: 'string',
- defaultValue: '',
- value: '',
+ defaultValue: defaultPassword,
+ value: defaultPassword,
label: 'wizard.admin.confirmPassword.label',
ui: { type: 'password', required: true },
},