@wendongfly/myhi 1.3.185 → 1.3.186
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 +1 -4
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -1112,11 +1112,9 @@
|
|
|
1112
1112
|
const ansi = new AnsiUp();
|
|
1113
1113
|
ansi.use_classes = false;
|
|
1114
1114
|
|
|
1115
|
-
let _myRole = 'admin'; // 成员(operator)@ 只能浏览本项目/绑定目录,不提示项目外用法
|
|
1116
1115
|
fetch('/api/me').then(r => r.json()).then(data => {
|
|
1117
1116
|
// 服务端没有桌面(headless 部署):「打开当前文件夹」必然无效,直接藏掉,只留文件面板
|
|
1118
1117
|
if (data?.desktop === false) document.body.classList.add('no-desktop');
|
|
1119
|
-
_myRole = data?.role || 'admin';
|
|
1120
1118
|
// 打包默认快捷栏预设:用户没自定义过勾选(skVisible 为 null)时采用服务端 config.json 的 skMode
|
|
1121
1119
|
if (data?.skMode && settings.skVisible == null) {
|
|
1122
1120
|
settings.skVisible = data.skMode === 'normal' ? skPresetNormal() : skPresetAll();
|
|
@@ -3324,8 +3322,7 @@
|
|
|
3324
3322
|
if (b && !b.err) {
|
|
3325
3323
|
const tips = [];
|
|
3326
3324
|
if (_mention.items.some(f => f.nav)) tips.push('回车进入文件夹 · Tab 直接引用文件夹');
|
|
3327
|
-
if (!b.dir
|
|
3328
|
-
else if (!b.dir) tips.push('打字搜索本项目 · 项目外打 ' + (b.win ? '@D: 或 @\\' : '@/') + '、@~/ 逐层浏览');
|
|
3325
|
+
if (!b.dir) tips.push('打字搜索本项目 · 项目外打 ' + (b.win ? '@D: 或 @\\' : '@/') + '、@~/ 逐层浏览');
|
|
3329
3326
|
if (tips.length) html += `<div class="mi-tip">${escHtml(tips.join(' · '))}</div>`;
|
|
3330
3327
|
}
|
|
3331
3328
|
_mentionBox.innerHTML = html;
|