@wendongfly/myhi 1.0.119 → 1.0.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat.html +3 -13
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -245,10 +245,10 @@
|
|
|
245
245
|
<button class="top-btn" onclick="openSettings()" title="设置">
|
|
246
246
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 01-2.83 2.83l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 012.83-2.83l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 2.83l-.06.06A1.65 1.65 0 0019.4 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"/></svg>
|
|
247
247
|
</button>
|
|
248
|
+
<button class="top-btn" onclick="showUsage()" title="用量" style="font-size:0.7rem;color:var(--muted)">用量</button>
|
|
248
249
|
<button class="top-btn" onclick="goBack()" title="返回">
|
|
249
|
-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="
|
|
250
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18l6-6-6-6"/></svg>
|
|
250
251
|
</button>
|
|
251
|
-
<button class="top-btn" onclick="showUsage()" title="用量" style="font-size:0.7rem;color:var(--muted)">用量</button>
|
|
252
252
|
</div>
|
|
253
253
|
|
|
254
254
|
<div id="status-bar">
|
|
@@ -432,10 +432,7 @@
|
|
|
432
432
|
const ansi = new AnsiUp();
|
|
433
433
|
ansi.use_classes = false;
|
|
434
434
|
|
|
435
|
-
|
|
436
|
-
fetch('/api/me').then(r => r.json()).then(data => {
|
|
437
|
-
if (data.exclusive || data.hasUsers) document.getElementById('logout-btn').style.display = '';
|
|
438
|
-
}).catch(() => {});
|
|
435
|
+
fetch('/api/me').then(r => r.json()).catch(() => {});
|
|
439
436
|
window.showUsage = async () => {
|
|
440
437
|
try {
|
|
441
438
|
const res = await fetch('/api/usage');
|
|
@@ -485,13 +482,6 @@
|
|
|
485
482
|
document.body.appendChild(overlay);
|
|
486
483
|
} catch (err) { alert('获取用量失败: ' + err.message); }
|
|
487
484
|
};
|
|
488
|
-
window.doLogout = () => {
|
|
489
|
-
if (!confirm('确定退出登录?')) return;
|
|
490
|
-
fetch('/logout', { method: 'POST' }).finally(() => {
|
|
491
|
-
socket.disconnect();
|
|
492
|
-
location.href = '/login';
|
|
493
|
-
});
|
|
494
|
-
};
|
|
495
485
|
|
|
496
486
|
// ── 状态 ──────────────────────────────────────
|
|
497
487
|
const SESSION_ID = location.pathname.split('/').pop();
|
package/dist/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"1.0.
|
|
1
|
+
{"type":"module","version":"1.0.120"}
|
package/package.json
CHANGED