diff --git a/asset/banner.png b/asset/banner.png index 5572107..0d710e0 100644 Binary files a/asset/banner.png and b/asset/banner.png differ diff --git a/web/js/provider_manager.js b/web/js/provider_manager.js index 526bda9..ce669ec 100644 --- a/web/js/provider_manager.js +++ b/web/js/provider_manager.js @@ -82,7 +82,7 @@ const I18N_DICT = { menu_tooltip: "Manage LLM API Providers & Model Config" }, zh: { - manager_title: "LLMs 模型管家", + manager_title: "LLM 管理器", unsaved_title: "未保存更改", unsaved_msg: "你有未保存的更改。\\n确定要放弃它们吗?", cancel: "取消", @@ -142,7 +142,7 @@ const I18N_DICT = { delete: "删除", preview: "预览: ", lang_switch: "EN", - menu_button: "LLM 模型管家", + menu_button: "LLM 管理器", menu_tooltip: "管理 LLM API 供应商与模型配置" } }; @@ -479,24 +479,25 @@ class ProviderManager { style: { position: "absolute", left: "8px", display: "flex", pointerEvents: "none", color: "var(--glass-text-secondary)" }, innerHTML: `` }), - $el("select", { - style: { - background: "transparent", - color: "var(--glass-text-primary)", - border: "none", - outline: "none", - cursor: "pointer", - padding: "6px 28px 6px 30px", - appearance: "none", - fontSize: "0.85em", - fontFamily: "inherit" - } - }, [ - $el("option", { value: "zh", textContent: "简体中文" }), - $el("option", { value: "en", textContent: "English" }) - ], (el) => { - el.value = getLang(); - el.addEventListener("change", (e) => { + (() => { + const langSelect = $el("select", { + style: { + background: "transparent", + color: "var(--glass-text-primary)", + border: "none", + outline: "none", + cursor: "pointer", + padding: "6px 28px 6px 30px", + appearance: "none", + fontSize: "0.85em", + fontFamily: "inherit" + } + }, [ + $el("option", { value: "zh", textContent: "简体中文" }), + $el("option", { value: "en", textContent: "English" }) + ]); + langSelect.value = getLang(); + langSelect.addEventListener("change", (e) => { localStorage.setItem("llm_pm_lang", e.target.value); // Re-render UI this.modal.remove(); @@ -511,7 +512,8 @@ class ProviderManager { menuBtn.title = t("menu_tooltip"); } }); - }), + return langSelect; + })(), $el("div", { style: { position: "absolute", right: "8px", display: "flex", pointerEvents: "none", color: "var(--glass-text-secondary)" }, innerHTML: ``