Add curated env config UI with Chinese labels and deploy secret bootstrap

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 21:03:00 +08:00
parent 0b91d26f71
commit 0d2ce9c126
11 changed files with 767 additions and 23 deletions
+6 -3
View File
@@ -145,7 +145,7 @@
card.className = "env-field-card";
const label = document.createElement("label");
label.className = "env-field-label";
label.textContent = field.key;
label.textContent = field.label || field.key;
card.appendChild(label);
if (field.note) {
const note = document.createElement("div");
@@ -156,10 +156,13 @@
let input;
if (field.type === "bool") {
input = document.createElement("select");
["true", "false"].forEach((v) => {
[
["true", "开启"],
["false", "关闭"],
].forEach(([v, text]) => {
const o = document.createElement("option");
o.value = v;
o.textContent = v;
o.textContent = text;
input.appendChild(o);
});
const cur = (field.current || field.default || "false").toLowerCase();