@wendongfly/myhi 1.0.78 → 1.0.79
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 +2 -1
- package/dist/index.html +2 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -374,8 +374,9 @@
|
|
|
374
374
|
if (t.modelUsage) { for (const [m, u] of Object.entries(t.modelUsage)) { if (u.outputTokens > 0) html += `<div style="font-size:0.75rem;color:#8b949e;margin-top:0.3rem">${m.replace(/claude-/,'').replace(/-\d{8}$/,'')} 输入 ${(u.inputTokens/1000).toFixed(0)}K 输出 ${(u.outputTokens/1000).toFixed(0)}K</div>`; } }
|
|
375
375
|
html += '</div>';
|
|
376
376
|
}
|
|
377
|
-
html += '<button onclick="this.
|
|
377
|
+
html += '<button onclick="this.closest(\'[data-usage-overlay]\').remove()" style="margin-top:0.8rem;width:100%;padding:0.7rem;background:#7c3aed;color:#fff;border:none;border-radius:10px;cursor:pointer;font-size:0.9rem;font-weight:600">关闭</button></div>';
|
|
378
378
|
const overlay = document.createElement('div');
|
|
379
|
+
overlay.setAttribute('data-usage-overlay', '');
|
|
379
380
|
overlay.style.cssText = 'position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px)';
|
|
380
381
|
overlay.onclick = (e) => { if (e.target === overlay) overlay.remove(); };
|
|
381
382
|
const box = document.createElement('div');
|
package/dist/index.html
CHANGED
|
@@ -570,8 +570,9 @@
|
|
|
570
570
|
if (t.modelUsage) { for (const [m, u] of Object.entries(t.modelUsage)) { if (u.outputTokens > 0) html += `<div style="font-size:0.75rem;color:#8b949e;margin-top:0.3rem">${m.replace(/claude-/,'').replace(/-\d{8}$/,'')} 输入 ${(u.inputTokens/1000).toFixed(0)}K 输出 ${(u.outputTokens/1000).toFixed(0)}K</div>`; } }
|
|
571
571
|
html += '</div>';
|
|
572
572
|
}
|
|
573
|
-
html += '<button onclick="this.
|
|
573
|
+
html += '<button onclick="this.closest(\'[data-usage-overlay]\').remove()" style="margin-top:0.8rem;width:100%;padding:0.7rem;background:#7c3aed;color:#fff;border:none;border-radius:10px;cursor:pointer;font-size:0.9rem;font-weight:600">关闭</button></div>';
|
|
574
574
|
const overlay = document.createElement('div');
|
|
575
|
+
overlay.setAttribute('data-usage-overlay', '');
|
|
575
576
|
overlay.style.cssText = 'position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px)';
|
|
576
577
|
overlay.onclick = (e) => { if (e.target === overlay) overlay.remove(); };
|
|
577
578
|
const box = document.createElement('div');
|