@wendongfly/myhi 1.3.171 → 1.3.172
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 +7 -10
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -541,8 +541,7 @@
|
|
|
541
541
|
</div>
|
|
542
542
|
<div class="fp-path" id="fp-path"></div>
|
|
543
543
|
<div id="fp-tools" style="display:flex;gap:0.4rem;align-items:center;padding:0.3rem 0.75rem;flex-wrap:wrap">
|
|
544
|
-
<button class="fp-btn" onclick="fpOpenFolder()" title="
|
|
545
|
-
<button class="fp-btn" onclick="fpOpenEditor()" title="在服务端本机用 VS Code 打开(需装 code 命令)">VS Code(服务端)</button>
|
|
544
|
+
<button class="fp-btn" onclick="fpOpenFolder()" title="在本机桌面打开该任务的文件夹——仅当浏览器与 myhi 服务在同一台机器时有效;远程访问不会有效果,请用下方列表浏览/下载">📂 打开当前文件夹(不支持远程)</button>
|
|
546
545
|
<span style="flex:1"></span>
|
|
547
546
|
<button class="fp-btn" id="fp-sort-btn" onclick="fpToggleSort()" title="切换排序">排序: 名称</button>
|
|
548
547
|
</div>
|
|
@@ -3130,14 +3129,12 @@
|
|
|
3130
3129
|
try {
|
|
3131
3130
|
const r = await fetch(`/api/session/${SESSION_ID}/open-folder`, { method: 'POST' });
|
|
3132
3131
|
const d = await r.json();
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
const d = await r.json();
|
|
3140
|
-
addStatusMessage(d.ok ? '已尝试用 VS Code 打开(需服务端装了 code 命令且你在本机)' : ('打开失败: ' + (d.error || '')));
|
|
3132
|
+
if (d.ok) {
|
|
3133
|
+
closeFilePanel();
|
|
3134
|
+
addStatusMessage('📂 已在本机打开文件夹 ' + (d.cwd || ''));
|
|
3135
|
+
} else {
|
|
3136
|
+
addStatusMessage('打开失败: ' + (d.error || '') + '(若你是远程访问本面板,此按钮本就不生效)');
|
|
3137
|
+
}
|
|
3141
3138
|
} catch (e) { addStatusMessage('打开出错: ' + e.message); }
|
|
3142
3139
|
};
|
|
3143
3140
|
window.openFilePanel = function() {
|