refactor: 配置收敛为运行目录单一带注释 .env,移除 config 目录与 JSON 运行时配置

This commit is contained in:
Nixevol
2026-07-09 11:31:48 +08:00
parent 3d4493a314
commit 0e3702f433
12 changed files with 153 additions and 239 deletions
-21
View File
@@ -24,11 +24,6 @@
</n-result>
<template v-else>
<div v-if="traceCodeSalt" class="salt">
<span>traceCodeSalt</span>
<code>{{ traceCodeSalt }}</code>
</div>
<div class="grid">
<section class="box">
<h2>{{ tt('base') }}</h2>
@@ -233,7 +228,6 @@ const form = reactive<InstallForm>({
const loading = ref(true);
const submitting = ref(false);
const installed = ref(false);
const traceCodeSalt = ref('');
const error = ref('');
const success = ref('');
@@ -246,7 +240,6 @@ onMounted(async () => {
const res = await fetch('/api/install/status');
const body = await res.json();
installed.value = Boolean(body.data?.installed);
traceCodeSalt.value = body.data?.traceCodeSalt || '';
const d = body.data?.defaults || {};
form.port = d.port || form.port;
form.mysql.host = d.mysqlHost || form.mysql.host;
@@ -335,20 +328,6 @@ async function submit(): Promise<void> {
font-size: 13px;
color: var(--n-text-color-3, #6a7687);
}
.salt {
display: grid;
grid-template-columns: 120px 1fr;
gap: 10px;
align-items: center;
margin-bottom: 14px;
padding: 10px 12px;
background: var(--soft-bg, #f7f9fc);
border: 1px solid var(--border, #e1e7f0);
border-radius: 8px;
}
.salt code {
overflow-wrap: anywhere;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));