Spaces:
Running
Running
Z User commited on
Commit ·
14fbbb2
1
Parent(s): 5da5903
chore: terminal=cloud, timezone display=北京时间
Browse files- config.yaml +1 -1
- dashboard.html +3 -3
- entry.py +1 -1
config.yaml
CHANGED
|
@@ -16,6 +16,6 @@ compress:
|
|
| 16 |
protect_last: 20
|
| 17 |
no_mcp: true
|
| 18 |
terminal:
|
| 19 |
-
backend:
|
| 20 |
timeout: 180
|
| 21 |
timezone: Asia/Shanghai
|
|
|
|
| 16 |
protect_last: 20
|
| 17 |
no_mcp: true
|
| 18 |
terminal:
|
| 19 |
+
backend: cloud
|
| 20 |
timeout: 180
|
| 21 |
timezone: Asia/Shanghai
|
dashboard.html
CHANGED
|
@@ -217,7 +217,7 @@ body{font-family:-apple-system,"SF Pro Display","Noto Sans SC","PingFang SC","He
|
|
| 217 |
<div class="cfg-row"><span class="cfg-k">上下文压缩</span><span class="cfg-v" id="x-comp">--</span></div>
|
| 218 |
<div class="cfg-row"><span class="cfg-k">记忆系统</span><span class="cfg-v" id="x-mem">--</span></div>
|
| 219 |
<div class="cfg-row"><span class="cfg-k">终端类型</span><span class="cfg-v" id="x-term">--</span></div>
|
| 220 |
-
<div class="cfg-row"><span class="cfg-k">时区</span><span class="cfg-v" id="x-tz">
|
| 221 |
</div>
|
| 222 |
|
| 223 |
<div class="sec-title">快捷操作</div>
|
|
@@ -386,8 +386,8 @@ async function poll(){
|
|
| 386 |
document.getElementById('x-comp').style.color=d.config.compress?'var(--accent)':'var(--tx3)';
|
| 387 |
document.getElementById('x-mem').textContent=d.config.memory==='none'?'未配置':'已配置';
|
| 388 |
document.getElementById('x-mem').style.color=d.config.memory!=='none'?'var(--accent)':'var(--tx3)';
|
| 389 |
-
document.getElementById('x-term').textContent=d.config.terminal==='local'?'本地':'
|
| 390 |
-
document.getElementById('x-tz').textContent=
|
| 391 |
// Sync model selector
|
| 392 |
if(d.model){
|
| 393 |
var sel=document.getElementById('msel');
|
|
|
|
| 217 |
<div class="cfg-row"><span class="cfg-k">上下文压缩</span><span class="cfg-v" id="x-comp">--</span></div>
|
| 218 |
<div class="cfg-row"><span class="cfg-k">记忆系统</span><span class="cfg-v" id="x-mem">--</span></div>
|
| 219 |
<div class="cfg-row"><span class="cfg-k">终端类型</span><span class="cfg-v" id="x-term">--</span></div>
|
| 220 |
+
<div class="cfg-row"><span class="cfg-k">时区</span><span class="cfg-v" id="x-tz">北京时间 (UTC+8)</span></div>
|
| 221 |
</div>
|
| 222 |
|
| 223 |
<div class="sec-title">快捷操作</div>
|
|
|
|
| 386 |
document.getElementById('x-comp').style.color=d.config.compress?'var(--accent)':'var(--tx3)';
|
| 387 |
document.getElementById('x-mem').textContent=d.config.memory==='none'?'未配置':'已配置';
|
| 388 |
document.getElementById('x-mem').style.color=d.config.memory!=='none'?'var(--accent)':'var(--tx3)';
|
| 389 |
+
document.getElementById('x-term').textContent=d.config.terminal==='local'?'本地':'云端';
|
| 390 |
+
document.getElementById('x-tz').textContent='北京时间 (UTC+8)';
|
| 391 |
// Sync model selector
|
| 392 |
if(d.model){
|
| 393 |
var sel=document.getElementById('msel');
|
entry.py
CHANGED
|
@@ -349,7 +349,7 @@ class DashboardHandler(BaseHTTPRequestHandler):
|
|
| 349 |
"FEISHU_APP_ID": env.get("FEISHU_APP_ID", ""),
|
| 350 |
"FEISHU_APP_SECRET": _mask_key(env.get("FEISHU_APP_SECRET", "")),
|
| 351 |
"terminal": cfg.get("terminal", {}).get("backend", "local") if isinstance(cfg.get("terminal"), dict) else "local",
|
| 352 |
-
"timezone": cfg.get("timezone", "
|
| 353 |
"max_turns": cfg.get("max_turns", "90"),
|
| 354 |
"memory": cfg.get("memory", {}).get("provider", "none") if isinstance(cfg.get("memory"), dict) else "none",
|
| 355 |
"no_mcp": cfg.get("no_mcp", False),
|
|
|
|
| 349 |
"FEISHU_APP_ID": env.get("FEISHU_APP_ID", ""),
|
| 350 |
"FEISHU_APP_SECRET": _mask_key(env.get("FEISHU_APP_SECRET", "")),
|
| 351 |
"terminal": cfg.get("terminal", {}).get("backend", "local") if isinstance(cfg.get("terminal"), dict) else "local",
|
| 352 |
+
"timezone": cfg.get("timezone", "北京时间 (UTC+8)"),
|
| 353 |
"max_turns": cfg.get("max_turns", "90"),
|
| 354 |
"memory": cfg.get("memory", {}).get("provider", "none") if isinstance(cfg.get("memory"), dict) else "none",
|
| 355 |
"no_mcp": cfg.get("no_mcp", False),
|