@wendongfly/myhi 1.3.221 → 1.3.223
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/build-info.json +3 -3
- package/dist/index.html +17 -6
- package/dist/index.html.gz +0 -0
- package/dist/index.js +6 -6
- package/dist/index.min.js +212 -186
- package/dist/minutes.html +60 -9
- package/dist/minutes.html.gz +0 -0
- package/dist/studio.html +61 -13
- package/dist/studio.html.gz +0 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/index.html
CHANGED
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
原来收起后只剩左下角一个小「» 任务」,还压在快捷栏上,普通用户根本发现不了 */
|
|
284
284
|
body.ws.ws-collapsed #app { display: none; }
|
|
285
285
|
body.ws.ws-collapsed #ws-main { left: 56px; }
|
|
286
|
-
/* 出图 /
|
|
286
|
+
/* 出图 / 语音:任务栏整个让出来,功能页自己的左栏(导航 + 填写区 + 历史)+ 右侧结果铺满屏幕 */
|
|
287
287
|
body.ws.tool-mode #app, body.ws.tool-mode #ws-rail { display: none !important; }
|
|
288
288
|
body.ws.tool-mode #ws-main { left: 0; }
|
|
289
289
|
body.ws.ws-collapsed #ws-rail { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 56px; flex-direction: column; align-items: center;
|
|
@@ -807,11 +807,11 @@
|
|
|
807
807
|
<div id="ai-banner" class="ai-banner" style="display:none"></div>
|
|
808
808
|
|
|
809
809
|
<div id="view-controls" style="display:flex;flex-direction:column;gap:0.5rem;padding:0.75rem 0.75rem 0">
|
|
810
|
-
<!-- 一级导航:任务(AI 对话任务)/ 出图 /
|
|
810
|
+
<!-- 一级导航:任务(AI 对话任务)/ 出图 / 语音。电脑在右侧打开,手机进对应页面 -->
|
|
811
811
|
<div id="main-nav">
|
|
812
812
|
<button data-nav="tasks" class="on" onclick="mainNav('tasks')">💬 任务</button>
|
|
813
813
|
<button data-nav="studio" onclick="mainNav('studio')">🖼 出图</button>
|
|
814
|
-
<button data-nav="voice" onclick="mainNav('voice')">🎤
|
|
814
|
+
<button data-nav="voice" onclick="mainNav('voice')">🎤 语音</button>
|
|
815
815
|
</div>
|
|
816
816
|
<!-- 会话搜索:任务多了光看标题认不出,连首条消息/目录/标签一起搜 -->
|
|
817
817
|
<div id="search-row" style="display:flex;align-items:center;gap:0.4rem">
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
<button class="rb" onclick="wsSetCollapsed(false)" data-tip="展开任务栏">☰</button>
|
|
859
859
|
<button class="rb new" onclick="openSheet()" data-tip="新建任务">+</button>
|
|
860
860
|
<button class="rb" data-nav="studio" onclick="mainNav('studio')" data-tip="出图">🖼</button>
|
|
861
|
-
<button class="rb" data-nav="voice" onclick="mainNav('voice')" data-tip="
|
|
861
|
+
<button class="rb" data-nav="voice" onclick="mainNav('voice')" data-tip="语音">🎤</button>
|
|
862
862
|
<div class="rail-sep"></div>
|
|
863
863
|
<div class="rail-list" id="rail-list"></div>
|
|
864
864
|
<div class="rail-sep"></div>
|
|
@@ -2394,9 +2394,9 @@
|
|
|
2394
2394
|
const WS_MQ = matchMedia('(min-width: 1024px)');
|
|
2395
2395
|
const WS_KEEP = 5;
|
|
2396
2396
|
function wsOn() { return document.body.classList.contains('ws'); }
|
|
2397
|
-
// ── 一级导航:出图 /
|
|
2397
|
+
// ── 一级导航:出图 / 语音 在工作台右侧打开(和任务一样留在后台,来回切不重载);手机直接进页面 ──
|
|
2398
2398
|
const TOOL_URL = { studio: '/studio', voice: '/minutes' };
|
|
2399
|
-
const TOOL_TITLE = { studio: '出图', voice: '
|
|
2399
|
+
const TOOL_TITLE = { studio: '出图', voice: '语音' };
|
|
2400
2400
|
const _toolFrames = new Map();
|
|
2401
2401
|
let _tool = null, _lastTask = null;
|
|
2402
2402
|
let _toolPending = new URLSearchParams(location.search).get('tool'); // 刷新后回到上次的工具页
|
|
@@ -2409,6 +2409,17 @@
|
|
|
2409
2409
|
window.addEventListener('message', (e) => {
|
|
2410
2410
|
if (e.origin !== location.origin || e.data?.type !== 'myhi-nav') return;
|
|
2411
2411
|
if (e.data.to === 'settings') { window.focus(); openSettings(); document.getElementById('set-sheet')?.focus?.(); return; } // 焦点拿回首页:Esc 能关设置
|
|
2412
|
+
if (e.data.to === 'menu-close') return closeWsMenu();
|
|
2413
|
+
if (e.data.to === 'menu') { // 功能页左栏底部的 ⚙:换算成首页坐标,弹出同一个菜单
|
|
2414
|
+
const fr = [..._toolFrames.values()].find((f) => f.contentWindow === e.source); if (!fr) return;
|
|
2415
|
+
const m = document.getElementById('ws-menu');
|
|
2416
|
+
if (m.classList.contains('open')) return closeWsMenu();
|
|
2417
|
+
const o = fr.getBoundingClientRect(), r = e.data.rect || {};
|
|
2418
|
+
m.classList.add('open'); window.focus();
|
|
2419
|
+
m.style.left = Math.max(8, o.left + (r.right || 0) - m.offsetWidth) + 'px';
|
|
2420
|
+
m.style.bottom = (innerHeight - (o.top + (r.top || 0)) + 6) + 'px';
|
|
2421
|
+
return;
|
|
2422
|
+
}
|
|
2412
2423
|
mainNav(e.data.to);
|
|
2413
2424
|
});
|
|
2414
2425
|
window.mainNav = function(k) {
|
package/dist/index.html.gz
CHANGED
|
Binary file
|