@wendongfly/myhi 1.3.220 → 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 +27 -6
- package/dist/index.html.gz +0 -0
- package/dist/index.js +6 -6
- package/dist/index.min.js +213 -184
- package/dist/minutes.html +83 -7
- package/dist/minutes.html.gz +0 -0
- package/dist/studio.html +147 -11
- package/dist/studio.html.gz +0 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/index.html
CHANGED
|
@@ -283,6 +283,9 @@
|
|
|
283
283
|
原来收起后只剩左下角一个小「» 任务」,还压在快捷栏上,普通用户根本发现不了 */
|
|
284
284
|
body.ws.ws-collapsed #app { display: none; }
|
|
285
285
|
body.ws.ws-collapsed #ws-main { left: 56px; }
|
|
286
|
+
/* 出图 / 语音:任务栏整个让出来,功能页自己的左栏(导航 + 填写区 + 历史)+ 右侧结果铺满屏幕 */
|
|
287
|
+
body.ws.tool-mode #app, body.ws.tool-mode #ws-rail { display: none !important; }
|
|
288
|
+
body.ws.tool-mode #ws-main { left: 0; }
|
|
286
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;
|
|
287
290
|
gap: 0.35rem; padding: 0.7rem 0 0.6rem; background: var(--surface); border-right: 1px solid var(--border); z-index: 20; }
|
|
288
291
|
#ws-rail .rb { position: relative; width: 38px; height: 38px; border-radius: 10px; border: none; background: none; color: var(--text2); font-size: 1.05rem;
|
|
@@ -804,11 +807,11 @@
|
|
|
804
807
|
<div id="ai-banner" class="ai-banner" style="display:none"></div>
|
|
805
808
|
|
|
806
809
|
<div id="view-controls" style="display:flex;flex-direction:column;gap:0.5rem;padding:0.75rem 0.75rem 0">
|
|
807
|
-
<!-- 一级导航:任务(AI 对话任务)/ 出图 /
|
|
810
|
+
<!-- 一级导航:任务(AI 对话任务)/ 出图 / 语音。电脑在右侧打开,手机进对应页面 -->
|
|
808
811
|
<div id="main-nav">
|
|
809
812
|
<button data-nav="tasks" class="on" onclick="mainNav('tasks')">💬 任务</button>
|
|
810
813
|
<button data-nav="studio" onclick="mainNav('studio')">🖼 出图</button>
|
|
811
|
-
<button data-nav="voice" onclick="mainNav('voice')">🎤
|
|
814
|
+
<button data-nav="voice" onclick="mainNav('voice')">🎤 语音</button>
|
|
812
815
|
</div>
|
|
813
816
|
<!-- 会话搜索:任务多了光看标题认不出,连首条消息/目录/标签一起搜 -->
|
|
814
817
|
<div id="search-row" style="display:flex;align-items:center;gap:0.4rem">
|
|
@@ -855,7 +858,7 @@
|
|
|
855
858
|
<button class="rb" onclick="wsSetCollapsed(false)" data-tip="展开任务栏">☰</button>
|
|
856
859
|
<button class="rb new" onclick="openSheet()" data-tip="新建任务">+</button>
|
|
857
860
|
<button class="rb" data-nav="studio" onclick="mainNav('studio')" data-tip="出图">🖼</button>
|
|
858
|
-
<button class="rb" data-nav="voice" onclick="mainNav('voice')" data-tip="
|
|
861
|
+
<button class="rb" data-nav="voice" onclick="mainNav('voice')" data-tip="语音">🎤</button>
|
|
859
862
|
<div class="rail-sep"></div>
|
|
860
863
|
<div class="rail-list" id="rail-list"></div>
|
|
861
864
|
<div class="rail-sep"></div>
|
|
@@ -2391,9 +2394,9 @@
|
|
|
2391
2394
|
const WS_MQ = matchMedia('(min-width: 1024px)');
|
|
2392
2395
|
const WS_KEEP = 5;
|
|
2393
2396
|
function wsOn() { return document.body.classList.contains('ws'); }
|
|
2394
|
-
// ── 一级导航:出图 /
|
|
2397
|
+
// ── 一级导航:出图 / 语音 在工作台右侧打开(和任务一样留在后台,来回切不重载);手机直接进页面 ──
|
|
2395
2398
|
const TOOL_URL = { studio: '/studio', voice: '/minutes' };
|
|
2396
|
-
const TOOL_TITLE = { studio: '出图', voice: '
|
|
2399
|
+
const TOOL_TITLE = { studio: '出图', voice: '语音' };
|
|
2397
2400
|
const _toolFrames = new Map();
|
|
2398
2401
|
let _tool = null, _lastTask = null;
|
|
2399
2402
|
let _toolPending = new URLSearchParams(location.search).get('tool'); // 刷新后回到上次的工具页
|
|
@@ -2401,7 +2404,24 @@
|
|
|
2401
2404
|
document.querySelectorAll('#main-nav [data-nav]').forEach(b => b.classList.toggle('on', b.dataset.nav === k));
|
|
2402
2405
|
document.querySelectorAll('#ws-rail [data-nav]').forEach(b => b.classList.toggle('on', b.dataset.nav === k));
|
|
2403
2406
|
}
|
|
2404
|
-
function hideTools() { for (const f of _toolFrames.values()) f.style.display = 'none'; _tool = null; setNavActive('tasks'); }
|
|
2407
|
+
function hideTools() { for (const f of _toolFrames.values()) f.style.display = 'none'; _tool = null; document.body.classList.remove('tool-mode'); setNavActive('tasks'); }
|
|
2408
|
+
// 功能页(同源 iframe)左栏里的导航 / ⚙:发消息回首页切换
|
|
2409
|
+
window.addEventListener('message', (e) => {
|
|
2410
|
+
if (e.origin !== location.origin || e.data?.type !== 'myhi-nav') return;
|
|
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
|
+
}
|
|
2423
|
+
mainNav(e.data.to);
|
|
2424
|
+
});
|
|
2405
2425
|
window.mainNav = function(k) {
|
|
2406
2426
|
if (k === 'tasks') {
|
|
2407
2427
|
if (!_tool) return;
|
|
@@ -2424,6 +2444,7 @@
|
|
|
2424
2444
|
for (const [n, fr] of _toolFrames) fr.style.display = n === k ? '' : 'none';
|
|
2425
2445
|
document.getElementById('ws-welcome').style.display = 'none';
|
|
2426
2446
|
_wsCur = null; _tool = k;
|
|
2447
|
+
document.body.classList.add('tool-mode');
|
|
2427
2448
|
history.replaceState(null, '', '/?tool=' + k);
|
|
2428
2449
|
document.title = TOOL_TITLE[k] + ' — myhi';
|
|
2429
2450
|
setNavActive(k);
|
package/dist/index.html.gz
CHANGED
|
Binary file
|