mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-10 22:15:57 +08:00
Ship Cursor-only MCP admin and modular Admin/Chat UI.
Plugins/Skills install and edit via mcpServers JSON, with clearer row actions, soft reloads, and instant loading placeholders; also drop MCP market and harden related scheduler/logging/exec guards. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2aff012b48
commit
f6f129931f
61 changed files with 18057 additions and 16327 deletions
17
interfaces/admin/static/js/state.js
Normal file
17
interfaces/admin/static/js/state.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
const LANG_KEY = "ops_admin_lang";
|
||||
let lang = "zh";
|
||||
try {
|
||||
lang = String(localStorage.getItem(LANG_KEY) || "zh").toLowerCase();
|
||||
} catch (_) {
|
||||
lang = "zh";
|
||||
}
|
||||
if (lang !== "zh" && lang !== "en") lang = "zh";
|
||||
|
||||
export const state = {
|
||||
currentLang: lang,
|
||||
authSession: null,
|
||||
/** @type {null | (() => any)} */
|
||||
reauthHandler: null,
|
||||
/** @type {null | (() => any)} */
|
||||
navigate: null,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue