Add curated env config UI with Chinese labels and deploy secret bootstrap
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user