xechat-dsh 0.2.5 → 0.2.7
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/lib/client.js +2 -2
- package/lib/xechat-app.css +141 -108
- package/lib/xechat-app.js +570 -120
- package/package.json +1 -1
package/lib/xechat-app.js
CHANGED
|
@@ -71828,6 +71828,24 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71828
71828
|
if (raw === "WEB" || raw === "IDEA" || raw === "COMMAND") return false;
|
|
71829
71829
|
return true;
|
|
71830
71830
|
}
|
|
71831
|
+
const DEFAULT_RELAY_ORIGIN$1 = "wss://xechat.lesscoding.net";
|
|
71832
|
+
const LOCAL_PONDS = ["lesscoding.net", "xechat.lesscoding.net"];
|
|
71833
|
+
function relayBase() {
|
|
71834
|
+
try {
|
|
71835
|
+
const v2 = localStorage.getItem("xechat_dsh_relay_base");
|
|
71836
|
+
if (v2 !== null) return v2;
|
|
71837
|
+
} catch (e) {
|
|
71838
|
+
}
|
|
71839
|
+
return DEFAULT_RELAY_ORIGIN$1;
|
|
71840
|
+
}
|
|
71841
|
+
function buildWsUrl(host, wsPort) {
|
|
71842
|
+
const h2 = String(host || "").trim();
|
|
71843
|
+
if (!h2) return "";
|
|
71844
|
+
const base2 = relayBase();
|
|
71845
|
+
if (!base2) return "ws://" + h2 + ":" + wsPort + "/xechat";
|
|
71846
|
+
if (LOCAL_PONDS.indexOf(h2.toLowerCase()) >= 0) return base2 + "/xechat";
|
|
71847
|
+
return base2 + "/xechat/relay/" + h2 + "/" + wsPort;
|
|
71848
|
+
}
|
|
71831
71849
|
class WebSocketTransport {
|
|
71832
71850
|
constructor(url) {
|
|
71833
71851
|
this.name = "websocket";
|
|
@@ -71964,7 +71982,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71964
71982
|
*/
|
|
71965
71983
|
async loginToServer(host, port, loginPayload) {
|
|
71966
71984
|
const wsPort = parseInt(port) + 1;
|
|
71967
|
-
const url =
|
|
71985
|
+
const url = buildWsUrl(host, wsPort);
|
|
71968
71986
|
const prevUrl = this._url;
|
|
71969
71987
|
console.log("[WS][loginToServer] host=" + host + ", port=" + port + ", wsPort=" + wsPort + ", url=" + url + ", loginPayload=" + JSON.stringify(loginPayload));
|
|
71970
71988
|
this._loginPayload = loginPayload;
|
|
@@ -72089,6 +72107,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72089
72107
|
* 踢人:走服务端特殊指令聊天帧(服务端 FORCE_DISCONNECTION 识别「踢人:::{用户名}」,仅管理员生效)。
|
|
72090
72108
|
* @param {string} username 目标用户昵称
|
|
72091
72109
|
*/
|
|
72110
|
+
/**
|
|
72111
|
+
* 发送图片(REACT/UPLOAD):base64 字节交给服务端落盘,服务端随后自己广播 IMAGE 消息。
|
|
72112
|
+
*/
|
|
72113
|
+
uploadImage(base64, fileType) {
|
|
72114
|
+
if (!base64) return false;
|
|
72115
|
+
this._send({
|
|
72116
|
+
action: "REACT",
|
|
72117
|
+
body: { react: "UPLOAD", body: { fileType: fileType || "png", bytes: base64 } }
|
|
72118
|
+
});
|
|
72119
|
+
return true;
|
|
72120
|
+
}
|
|
72092
72121
|
kickUser(username) {
|
|
72093
72122
|
if (!username) return false;
|
|
72094
72123
|
this.sendMessage("踢人:::" + username);
|
|
@@ -72407,6 +72436,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72407
72436
|
return false;
|
|
72408
72437
|
}
|
|
72409
72438
|
/** 踢人:WS 走特殊指令聊天帧 */
|
|
72439
|
+
uploadImage(base64, fileType) {
|
|
72440
|
+
if (this._transport && typeof this._transport.uploadImage === "function") {
|
|
72441
|
+
return this._transport.uploadImage(base64, fileType);
|
|
72442
|
+
}
|
|
72443
|
+
console.warn("[Transport] 当前模式不支持 uploadImage: " + this.mode);
|
|
72444
|
+
return false;
|
|
72445
|
+
}
|
|
72410
72446
|
kickUser(username) {
|
|
72411
72447
|
if (this._transport && typeof this._transport.kickUser === "function") {
|
|
72412
72448
|
return this._transport.kickUser(username);
|
|
@@ -73083,6 +73119,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73083
73119
|
let userInfo = username;
|
|
73084
73120
|
if (status) userInfo += " (" + status + ")";
|
|
73085
73121
|
if (platform2) userInfo += " " + platform2;
|
|
73122
|
+
if (data.user && data.user.role === "ADMIN") userInfo += " ☆";
|
|
73086
73123
|
parts.push(userInfo + ":");
|
|
73087
73124
|
return parts.join(" ");
|
|
73088
73125
|
}
|
|
@@ -74109,7 +74146,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74109
74146
|
const raw = localStorage.getItem(HISTORY_KEY);
|
|
74110
74147
|
if (!raw) return [];
|
|
74111
74148
|
const arr = JSON.parse(raw);
|
|
74112
|
-
return Array.isArray(arr) ? arr.filter((item) => typeof item === "string").slice(-MAX_HISTORY) : [];
|
|
74149
|
+
return Array.isArray(arr) ? arr.filter((item) => typeof item === "string" && item.trim().startsWith("#")).slice(-MAX_HISTORY) : [];
|
|
74113
74150
|
} catch (e) {
|
|
74114
74151
|
return [];
|
|
74115
74152
|
}
|
|
@@ -74124,7 +74161,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74124
74161
|
*/
|
|
74125
74162
|
push(cmd) {
|
|
74126
74163
|
const text2 = (cmd || "").trim();
|
|
74127
|
-
if (!text2) return;
|
|
74164
|
+
if (!text2 || !text2.startsWith("#")) return;
|
|
74128
74165
|
if (this.commands[this.commands.length - 1] === text2) return;
|
|
74129
74166
|
this.commands.push(text2);
|
|
74130
74167
|
if (this.commands.length > MAX_HISTORY) {
|
|
@@ -81591,6 +81628,62 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
81591
81628
|
const opts = Object.assign({}, defaults2, options || {});
|
|
81592
81629
|
emoji_plugin$1(md, opts);
|
|
81593
81630
|
}
|
|
81631
|
+
const BORDER_RE = /^[++][\--=_─]+(?:[++][\--=_─]+)+[++]$/;
|
|
81632
|
+
const ROW_RE = /^[||].*[||]$/;
|
|
81633
|
+
function splitCells(line) {
|
|
81634
|
+
return String(line).replace(/^[||]/, "").replace(/[||]$/, "").split(/[||]/).map((c2) => c2.replace(/[\u3000\s]+/g, " ").trim());
|
|
81635
|
+
}
|
|
81636
|
+
function toMarkdownTable(rows) {
|
|
81637
|
+
const width = Math.max.apply(null, rows.map((r) => r.length));
|
|
81638
|
+
const pad = (r) => {
|
|
81639
|
+
const out = r.slice();
|
|
81640
|
+
while (out.length < width) out.push("");
|
|
81641
|
+
return "| " + out.join(" | ") + " |";
|
|
81642
|
+
};
|
|
81643
|
+
const header = pad(rows[0]);
|
|
81644
|
+
const sep = "| " + new Array(width).fill("---").join(" | ") + " |";
|
|
81645
|
+
const body = rows.slice(1).map(pad);
|
|
81646
|
+
return [header, sep].concat(body).join("\n");
|
|
81647
|
+
}
|
|
81648
|
+
const BORDER_ANY_RE = /[++][\--=_─]+(?:[++][\--=_─]+)+[++]/;
|
|
81649
|
+
function hasConsoleTable(text2) {
|
|
81650
|
+
if (!text2 || typeof text2 !== "string") return false;
|
|
81651
|
+
return BORDER_ANY_RE.test(text2);
|
|
81652
|
+
}
|
|
81653
|
+
function normalizeLayout(text2) {
|
|
81654
|
+
return String(text2).replace(new RegExp(BORDER_ANY_RE.source, "g"), "\n$&\n").replace(/[||]([ \u3000]+)[||]/g, "|\n|").replace(/\n{3,}/g, "\n\n");
|
|
81655
|
+
}
|
|
81656
|
+
function consoleTableToMarkdown(text2) {
|
|
81657
|
+
if (!text2 || typeof text2 !== "string" || !hasConsoleTable(text2)) return text2;
|
|
81658
|
+
const lines = normalizeLayout(text2).split(/\r?\n/);
|
|
81659
|
+
const out = [];
|
|
81660
|
+
let rows = [];
|
|
81661
|
+
const flush = () => {
|
|
81662
|
+
if (rows.length) {
|
|
81663
|
+
out.push("", toMarkdownTable(rows), "");
|
|
81664
|
+
rows = [];
|
|
81665
|
+
}
|
|
81666
|
+
};
|
|
81667
|
+
for (const raw of lines) {
|
|
81668
|
+
const line = raw.trim();
|
|
81669
|
+
if (!line) {
|
|
81670
|
+
flush();
|
|
81671
|
+
out.push(raw);
|
|
81672
|
+
continue;
|
|
81673
|
+
}
|
|
81674
|
+
if (BORDER_RE.test(line)) {
|
|
81675
|
+
continue;
|
|
81676
|
+
}
|
|
81677
|
+
if (ROW_RE.test(line)) {
|
|
81678
|
+
rows.push(splitCells(line));
|
|
81679
|
+
continue;
|
|
81680
|
+
}
|
|
81681
|
+
flush();
|
|
81682
|
+
out.push(raw);
|
|
81683
|
+
}
|
|
81684
|
+
flush();
|
|
81685
|
+
return out.join("\n").replace(/\n{3,}/g, "\n\n");
|
|
81686
|
+
}
|
|
81594
81687
|
const _export_sfc = (sfc, props) => {
|
|
81595
81688
|
const target = sfc.__vccOpts || sfc;
|
|
81596
81689
|
for (const [key, val] of props) {
|
|
@@ -81846,7 +81939,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
81846
81939
|
const processed = props.content.replace(/!\[([^]]*)\]\(([^)]+)\)/g, (m2, alt, url) => {
|
|
81847
81940
|
return `})`;
|
|
81848
81941
|
});
|
|
81849
|
-
return parsePlatformMarkup(md.render(preprocessFont(processed)));
|
|
81942
|
+
return parsePlatformMarkup(md.render(preprocessFont(consoleTableToMarkdown(processed))));
|
|
81850
81943
|
});
|
|
81851
81944
|
const isDirectImage = computed(() => {
|
|
81852
81945
|
if (!props.fileName) return false;
|
|
@@ -81974,7 +82067,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
81974
82067
|
};
|
|
81975
82068
|
}
|
|
81976
82069
|
};
|
|
81977
|
-
const MarkdownMessage = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
82070
|
+
const MarkdownMessage = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-9cce9056"]]);
|
|
81978
82071
|
const STORAGE_KEY$2 = "xechat_text_styles";
|
|
81979
82072
|
const BUILTIN_STYLES = [
|
|
81980
82073
|
{ id: "red", name: "红色文字", tag: '<span style="color:#ff4444">{text}</span>' },
|
|
@@ -94224,6 +94317,19 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
94224
94317
|
const messageListRef = /* @__PURE__ */ ref(null);
|
|
94225
94318
|
const inputRef = /* @__PURE__ */ ref(null);
|
|
94226
94319
|
const inputText = /* @__PURE__ */ ref("");
|
|
94320
|
+
const fileInputRef = /* @__PURE__ */ ref(null);
|
|
94321
|
+
const uploading = /* @__PURE__ */ ref(false);
|
|
94322
|
+
const sysStyle = /* @__PURE__ */ ref("block");
|
|
94323
|
+
try {
|
|
94324
|
+
sysStyle.value = localStorage.getItem("xechat_sys_msg_style") || "block";
|
|
94325
|
+
} catch (e) {
|
|
94326
|
+
}
|
|
94327
|
+
if (typeof window !== "undefined") {
|
|
94328
|
+
window.addEventListener("xechat:sys-style-changed", function(e) {
|
|
94329
|
+
sysStyle.value = (e && e.detail) === "inline" ? "inline" : "block";
|
|
94330
|
+
});
|
|
94331
|
+
}
|
|
94332
|
+
const ctxMenu = /* @__PURE__ */ ref({ show: false, x: 0, y: 0, link: "", selection: "" });
|
|
94227
94333
|
const histIndex = /* @__PURE__ */ ref(-1);
|
|
94228
94334
|
const histDraft = /* @__PURE__ */ ref("");
|
|
94229
94335
|
const showTopBtn = /* @__PURE__ */ ref(false);
|
|
@@ -94933,12 +95039,153 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
94933
95039
|
}
|
|
94934
95040
|
return toUsers;
|
|
94935
95041
|
}
|
|
95042
|
+
function pickImage() {
|
|
95043
|
+
if (uploading.value) return;
|
|
95044
|
+
if (fileInputRef.value) {
|
|
95045
|
+
fileInputRef.value.value = "";
|
|
95046
|
+
fileInputRef.value.click();
|
|
95047
|
+
}
|
|
95048
|
+
}
|
|
95049
|
+
function onPickFile(e) {
|
|
95050
|
+
const f2 = e.target && e.target.files && e.target.files[0];
|
|
95051
|
+
if (f2) uploadImageFile(f2);
|
|
95052
|
+
}
|
|
95053
|
+
function onPaste(e) {
|
|
95054
|
+
const items = e.clipboardData && e.clipboardData.items || [];
|
|
95055
|
+
for (let i = 0; i < items.length; i++) {
|
|
95056
|
+
if (items[i].type && items[i].type.indexOf("image/") === 0) {
|
|
95057
|
+
const f2 = items[i].getAsFile();
|
|
95058
|
+
if (f2) {
|
|
95059
|
+
e.preventDefault();
|
|
95060
|
+
uploadImageFile(f2);
|
|
95061
|
+
return;
|
|
95062
|
+
}
|
|
95063
|
+
}
|
|
95064
|
+
}
|
|
95065
|
+
}
|
|
95066
|
+
function compressImage(file, maxEdge, quality) {
|
|
95067
|
+
return new Promise(function(resolve2, reject) {
|
|
95068
|
+
const img = new Image();
|
|
95069
|
+
const url = URL.createObjectURL(file);
|
|
95070
|
+
img.onload = function() {
|
|
95071
|
+
URL.revokeObjectURL(url);
|
|
95072
|
+
let w2 = img.naturalWidth;
|
|
95073
|
+
let h2 = img.naturalHeight;
|
|
95074
|
+
const scale = Math.min(1, maxEdge / Math.max(w2, h2));
|
|
95075
|
+
w2 = Math.max(1, Math.round(w2 * scale));
|
|
95076
|
+
h2 = Math.max(1, Math.round(h2 * scale));
|
|
95077
|
+
const canvas = document.createElement("canvas");
|
|
95078
|
+
canvas.width = w2;
|
|
95079
|
+
canvas.height = h2;
|
|
95080
|
+
canvas.getContext("2d").drawImage(img, 0, 0, w2, h2);
|
|
95081
|
+
canvas.toBlob(function(blob) {
|
|
95082
|
+
if (!blob) return reject(new Error("压缩失败"));
|
|
95083
|
+
const reader = new FileReader();
|
|
95084
|
+
reader.onload = function() {
|
|
95085
|
+
resolve2({ base64: String(reader.result).split(",")[1], type: "jpg", size: blob.size });
|
|
95086
|
+
};
|
|
95087
|
+
reader.onerror = reject;
|
|
95088
|
+
reader.readAsDataURL(blob);
|
|
95089
|
+
}, "image/jpeg", quality);
|
|
95090
|
+
};
|
|
95091
|
+
img.onerror = function() {
|
|
95092
|
+
URL.revokeObjectURL(url);
|
|
95093
|
+
reject(new Error("图片解码失败"));
|
|
95094
|
+
};
|
|
95095
|
+
img.src = url;
|
|
95096
|
+
});
|
|
95097
|
+
}
|
|
95098
|
+
function uploadImageFile(file) {
|
|
95099
|
+
const type0 = (file.type || "").split("/")[1] || "png";
|
|
95100
|
+
if (["png", "jpeg", "jpg", "gif", "bmp", "webp"].indexOf(type0) < 0) {
|
|
95101
|
+
console.warn("[xechat] 不支持的图片类型:", type0);
|
|
95102
|
+
return;
|
|
95103
|
+
}
|
|
95104
|
+
uploading.value = true;
|
|
95105
|
+
compressImage(file, 2048, 0.85).then(function(out) {
|
|
95106
|
+
if (out.size > 8 * 1024 * 1024) {
|
|
95107
|
+
console.warn("[xechat] 压缩后仍超过上限:", out.size);
|
|
95108
|
+
uploading.value = false;
|
|
95109
|
+
return;
|
|
95110
|
+
}
|
|
95111
|
+
const ok = transport.uploadImage(out.base64, out.type);
|
|
95112
|
+
setTimeout(function() {
|
|
95113
|
+
uploading.value = false;
|
|
95114
|
+
}, ok ? 4e3 : 0);
|
|
95115
|
+
if (!ok) console.warn("[xechat] 当前端不支持发送图片");
|
|
95116
|
+
}).catch(function(e) {
|
|
95117
|
+
console.warn("[xechat] 图片处理失败:", e && e.message);
|
|
95118
|
+
uploading.value = false;
|
|
95119
|
+
});
|
|
95120
|
+
}
|
|
95121
|
+
function onContextMenu(e) {
|
|
95122
|
+
const sel = window.getSelection ? String(window.getSelection() || "") : "";
|
|
95123
|
+
ctxMenu.value = {
|
|
95124
|
+
show: true,
|
|
95125
|
+
x: Math.min(e.clientX, window.innerWidth - 180),
|
|
95126
|
+
y: Math.min(e.clientY, window.innerHeight - 200),
|
|
95127
|
+
selection: sel.trim(),
|
|
95128
|
+
link: sel.trim() && /^(https?:\/\/|www\.)/i.test(sel.trim()) ? sel.trim() : ""
|
|
95129
|
+
};
|
|
95130
|
+
const close2 = () => {
|
|
95131
|
+
ctxMenu.value.show = false;
|
|
95132
|
+
window.removeEventListener("click", close2);
|
|
95133
|
+
};
|
|
95134
|
+
setTimeout(() => window.addEventListener("click", close2), 0);
|
|
95135
|
+
}
|
|
95136
|
+
async function ctxCopy() {
|
|
95137
|
+
const t = ctxMenu.value.selection;
|
|
95138
|
+
ctxMenu.value.show = false;
|
|
95139
|
+
if (!t) return;
|
|
95140
|
+
try {
|
|
95141
|
+
await navigator.clipboard.writeText(t);
|
|
95142
|
+
} catch (e) {
|
|
95143
|
+
}
|
|
95144
|
+
}
|
|
95145
|
+
function ctxOpenLink() {
|
|
95146
|
+
const u2 = ctxMenu.value.link;
|
|
95147
|
+
ctxMenu.value.show = false;
|
|
95148
|
+
if (u2) window.open(u2.indexOf("http") === 0 ? u2 : "https://" + u2, "_blank");
|
|
95149
|
+
}
|
|
95150
|
+
function lastUsername() {
|
|
95151
|
+
try {
|
|
95152
|
+
const raw = localStorage.getItem("xechat_settings_v1");
|
|
95153
|
+
if (raw) {
|
|
95154
|
+
const v2 = JSON.parse(raw);
|
|
95155
|
+
if (v2 && v2.username) return String(v2.username);
|
|
95156
|
+
}
|
|
95157
|
+
} catch (e) {
|
|
95158
|
+
}
|
|
95159
|
+
return localStorage.getItem("xechat_last_username") || "";
|
|
95160
|
+
}
|
|
95161
|
+
function ctxQuickLogin() {
|
|
95162
|
+
ctxMenu.value.show = false;
|
|
95163
|
+
const name = lastUsername();
|
|
95164
|
+
if (!name) {
|
|
95165
|
+
console.warn("[xechat] 没有可用的历史用户名,请先登录一次");
|
|
95166
|
+
return;
|
|
95167
|
+
}
|
|
95168
|
+
inputText.value = "#login " + name + " -s 0";
|
|
95169
|
+
send();
|
|
95170
|
+
}
|
|
95171
|
+
function ctxCommand(cmd) {
|
|
95172
|
+
ctxMenu.value.show = false;
|
|
95173
|
+
inputText.value = cmd;
|
|
95174
|
+
send();
|
|
95175
|
+
}
|
|
94936
95176
|
async function send() {
|
|
94937
95177
|
const text2 = inputText.value.trim();
|
|
94938
95178
|
if (!text2) return;
|
|
94939
95179
|
console.log("[ChatPanel] send() 触发, text=" + text2.substring(0, 50));
|
|
94940
95180
|
try {
|
|
94941
95181
|
if (text2.startsWith("#")) {
|
|
95182
|
+
const loginMatch = /^#login\s+(\S+)/i.exec(text2);
|
|
95183
|
+
if (loginMatch && loginMatch[1]) {
|
|
95184
|
+
try {
|
|
95185
|
+
localStorage.setItem("xechat_last_username", loginMatch[1]);
|
|
95186
|
+
} catch (e) {
|
|
95187
|
+
}
|
|
95188
|
+
}
|
|
94942
95189
|
const handled = await dispatchChatCommand(text2);
|
|
94943
95190
|
if (!handled) {
|
|
94944
95191
|
console.log("[ChatPanel] → execCommand: " + text2);
|
|
@@ -95026,11 +95273,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95026
95273
|
});
|
|
95027
95274
|
});
|
|
95028
95275
|
return (_ctx, _cache) => {
|
|
95276
|
+
const _component_font = resolveComponent("font");
|
|
95029
95277
|
const _component_el_switch = resolveComponent("el-switch");
|
|
95030
95278
|
const _component_Top = resolveComponent("Top");
|
|
95031
95279
|
const _component_el_icon = resolveComponent("el-icon");
|
|
95032
95280
|
const _component_el_button = resolveComponent("el-button");
|
|
95033
95281
|
const _component_Bottom = resolveComponent("Bottom");
|
|
95282
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
95034
95283
|
const _component_el_input = resolveComponent("el-input");
|
|
95035
95284
|
return openBlock(), createElementBlock("div", {
|
|
95036
95285
|
class: normalizeClass(["chat-panel", { "is-minimal": minimalMode.value }])
|
|
@@ -95039,24 +95288,48 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95039
95288
|
class: "message-list",
|
|
95040
95289
|
ref_key: "messageListRef",
|
|
95041
95290
|
ref: messageListRef,
|
|
95042
|
-
onScroll: onMessageScroll
|
|
95291
|
+
onScroll: onMessageScroll,
|
|
95292
|
+
onContextmenu: withModifiers(onContextMenu, ["prevent"])
|
|
95043
95293
|
}, [
|
|
95044
95294
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(chatStore).messages, (msg, idx) => {
|
|
95045
95295
|
return openBlock(), createElementBlock("div", {
|
|
95046
95296
|
key: idx,
|
|
95047
95297
|
class: "message-item"
|
|
95048
95298
|
}, [
|
|
95049
|
-
msg.type === "system" ? (openBlock(), createElementBlock("div", {
|
|
95299
|
+
msg.type === "system" && sysStyle.value === "inline" ? (openBlock(), createElementBlock("div", {
|
|
95050
95300
|
key: 0,
|
|
95301
|
+
class: normalizeClass(["system-msg-inline", classifySystemMsg(msg.text)])
|
|
95302
|
+
}, [
|
|
95303
|
+
createVNode(_component_font, { class: "sys-tag" }, {
|
|
95304
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
95305
|
+
createBaseVNode("strong", null, "【系统提示】", -1)
|
|
95306
|
+
])]),
|
|
95307
|
+
_: 1
|
|
95308
|
+
}),
|
|
95309
|
+
unref(hasConsoleTable)(msg.text) ? (openBlock(), createBlock(MarkdownMessage, {
|
|
95310
|
+
key: 0,
|
|
95311
|
+
content: msg.text
|
|
95312
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
95313
|
+
createTextVNode(toDisplayString(stripHtml(msg.text)), 1)
|
|
95314
|
+
], 64))
|
|
95315
|
+
], 2)) : msg.type === "system" ? (openBlock(), createElementBlock("div", {
|
|
95316
|
+
key: 1,
|
|
95051
95317
|
class: normalizeClass(["system-msg-box", classifySystemMsg(msg.text)])
|
|
95052
95318
|
}, [
|
|
95053
95319
|
createBaseVNode("span", _hoisted_1$8, toDisplayString(systemMsgIcon(msg.text)), 1),
|
|
95054
95320
|
createBaseVNode("div", _hoisted_2$8, [
|
|
95055
95321
|
createBaseVNode("div", _hoisted_3$8, toDisplayString(systemMsgTitle(msg.text)), 1),
|
|
95056
|
-
createBaseVNode("div", _hoisted_4$8,
|
|
95322
|
+
createBaseVNode("div", _hoisted_4$8, [
|
|
95323
|
+
unref(hasConsoleTable)(msg.text) ? (openBlock(), createBlock(MarkdownMessage, {
|
|
95324
|
+
key: 0,
|
|
95325
|
+
content: msg.text
|
|
95326
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
95327
|
+
createTextVNode(toDisplayString(stripHtml(msg.text)), 1)
|
|
95328
|
+
], 64))
|
|
95329
|
+
])
|
|
95057
95330
|
])
|
|
95058
95331
|
], 2)) : (openBlock(), createBlock(MarkdownMessage, {
|
|
95059
|
-
key:
|
|
95332
|
+
key: 2,
|
|
95060
95333
|
content: msg.text,
|
|
95061
95334
|
"msg-type": msg.msgType,
|
|
95062
95335
|
"file-name": msg.fileName
|
|
@@ -95146,6 +95419,39 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95146
95419
|
])) : createCommentVNode("", true),
|
|
95147
95420
|
createBaseVNode("div", _hoisted_21$2, [
|
|
95148
95421
|
createVNode(StyleSelector, { onSelect: onStyleSelect }),
|
|
95422
|
+
createVNode(_component_el_tooltip, {
|
|
95423
|
+
content: "发送图片(也可以直接 Ctrl+V 粘贴截图)",
|
|
95424
|
+
placement: "top"
|
|
95425
|
+
}, {
|
|
95426
|
+
default: withCtx(() => [
|
|
95427
|
+
createVNode(_component_el_button, {
|
|
95428
|
+
class: "img-btn",
|
|
95429
|
+
circle: "",
|
|
95430
|
+
size: "small",
|
|
95431
|
+
loading: uploading.value,
|
|
95432
|
+
onClick: pickImage
|
|
95433
|
+
}, {
|
|
95434
|
+
default: withCtx(() => [
|
|
95435
|
+
createVNode(_component_el_icon, { size: 14 }, {
|
|
95436
|
+
default: withCtx(() => [
|
|
95437
|
+
createVNode(unref(picture_default))
|
|
95438
|
+
]),
|
|
95439
|
+
_: 1
|
|
95440
|
+
})
|
|
95441
|
+
]),
|
|
95442
|
+
_: 1
|
|
95443
|
+
}, 8, ["loading"])
|
|
95444
|
+
]),
|
|
95445
|
+
_: 1
|
|
95446
|
+
}),
|
|
95447
|
+
createBaseVNode("input", {
|
|
95448
|
+
ref_key: "fileInputRef",
|
|
95449
|
+
ref: fileInputRef,
|
|
95450
|
+
type: "file",
|
|
95451
|
+
accept: "image/png,image/jpeg,image/gif,image/bmp",
|
|
95452
|
+
style: { "display": "none" },
|
|
95453
|
+
onChange: onPickFile
|
|
95454
|
+
}, null, 544),
|
|
95149
95455
|
createVNode(_component_el_input, {
|
|
95150
95456
|
ref_key: "inputRef",
|
|
95151
95457
|
ref: inputRef,
|
|
@@ -95161,15 +95467,54 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95161
95467
|
],
|
|
95162
95468
|
onCompositionstart: onCompositionStart2,
|
|
95163
95469
|
onCompositionend: onCompositionEnd2,
|
|
95470
|
+
onPaste,
|
|
95164
95471
|
class: "chat-input"
|
|
95165
95472
|
}, null, 8, ["modelValue"])
|
|
95166
95473
|
])
|
|
95167
|
-
])
|
|
95474
|
+
]),
|
|
95475
|
+
ctxMenu.value.show ? (openBlock(), createElementBlock("div", {
|
|
95476
|
+
key: 0,
|
|
95477
|
+
class: "ctx-menu",
|
|
95478
|
+
style: normalizeStyle({ left: ctxMenu.value.x + "px", top: ctxMenu.value.y + "px" }),
|
|
95479
|
+
onClick: _cache[5] || (_cache[5] = withModifiers(() => {
|
|
95480
|
+
}, ["stop"]))
|
|
95481
|
+
}, [
|
|
95482
|
+
createBaseVNode("div", {
|
|
95483
|
+
class: normalizeClass(["ctx-item", { disabled: !ctxMenu.value.selection }]),
|
|
95484
|
+
onClick: ctxCopy
|
|
95485
|
+
}, "复制选中", 2),
|
|
95486
|
+
createBaseVNode("div", {
|
|
95487
|
+
class: normalizeClass(["ctx-item", { disabled: !ctxMenu.value.link }]),
|
|
95488
|
+
onClick: ctxOpenLink
|
|
95489
|
+
}, "打开链接", 2),
|
|
95490
|
+
_cache[7] || (_cache[7] = createBaseVNode("div", { class: "ctx-sep" }, null, -1)),
|
|
95491
|
+
createBaseVNode("div", {
|
|
95492
|
+
class: "ctx-item",
|
|
95493
|
+
onClick: _cache[1] || (_cache[1] = ($event) => ctxCommand("#showServer -c"))
|
|
95494
|
+
}, "获取服务器列表(#showServer -c)"),
|
|
95495
|
+
createBaseVNode("div", {
|
|
95496
|
+
class: "ctx-item",
|
|
95497
|
+
onClick: ctxQuickLogin
|
|
95498
|
+
}, "快捷登录(#login 用户名 -s 0)"),
|
|
95499
|
+
_cache[8] || (_cache[8] = createBaseVNode("div", { class: "ctx-sep" }, null, -1)),
|
|
95500
|
+
createBaseVNode("div", {
|
|
95501
|
+
class: "ctx-item",
|
|
95502
|
+
onClick: _cache[2] || (_cache[2] = ($event) => ctxCommand("#help"))
|
|
95503
|
+
}, "需要帮助(#help)"),
|
|
95504
|
+
createBaseVNode("div", {
|
|
95505
|
+
class: "ctx-item",
|
|
95506
|
+
onClick: _cache[3] || (_cache[3] = ($event) => ctxCommand("#clean"))
|
|
95507
|
+
}, "清屏(#clean)"),
|
|
95508
|
+
createBaseVNode("div", {
|
|
95509
|
+
class: "ctx-item",
|
|
95510
|
+
onClick: _cache[4] || (_cache[4] = ($event) => ctxCommand("#exit"))
|
|
95511
|
+
}, "退出鱼塘(#exit)")
|
|
95512
|
+
], 4)) : createCommentVNode("", true)
|
|
95168
95513
|
], 2);
|
|
95169
95514
|
};
|
|
95170
95515
|
}
|
|
95171
95516
|
};
|
|
95172
|
-
const ChatPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
95517
|
+
const ChatPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-21629da5"]]);
|
|
95173
95518
|
const PALETTES = {
|
|
95174
95519
|
dark: {
|
|
95175
95520
|
/** iframe 背后的底色:页面加载中/空白时露出的颜色 */
|
|
@@ -99324,7 +99669,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99324
99669
|
key: 3,
|
|
99325
99670
|
class: "game-grid"
|
|
99326
99671
|
};
|
|
99327
|
-
const _hoisted_7$4 = ["src"];
|
|
99672
|
+
const _hoisted_7$4 = ["src", "onError"];
|
|
99328
99673
|
const _hoisted_8$4 = {
|
|
99329
99674
|
key: 1,
|
|
99330
99675
|
class: "icon-placeholder"
|
|
@@ -99344,6 +99689,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99344
99689
|
const categories = /* @__PURE__ */ ref([]);
|
|
99345
99690
|
const activeCategory = /* @__PURE__ */ ref(null);
|
|
99346
99691
|
const games = /* @__PURE__ */ ref([]);
|
|
99692
|
+
const failedIcons = /* @__PURE__ */ ref(/* @__PURE__ */ new Set());
|
|
99347
99693
|
const gradientPool = [
|
|
99348
99694
|
"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
99349
99695
|
"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",
|
|
@@ -99352,15 +99698,33 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99352
99698
|
"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",
|
|
99353
99699
|
"linear-gradient(135deg, #30cfd0 0%, #330867 100%)"
|
|
99354
99700
|
];
|
|
99701
|
+
function iconKey(game) {
|
|
99702
|
+
var _a, _b;
|
|
99703
|
+
return String((_b = (_a = game.id) != null ? _a : game.gameName) != null ? _b : "");
|
|
99704
|
+
}
|
|
99705
|
+
function hasIcon(game) {
|
|
99706
|
+
return !!game.iconUrl && !failedIcons.value.has(iconKey(game));
|
|
99707
|
+
}
|
|
99708
|
+
function onIconError(game) {
|
|
99709
|
+
const next = new Set(failedIcons.value);
|
|
99710
|
+
next.add(iconKey(game));
|
|
99711
|
+
failedIcons.value = next;
|
|
99712
|
+
}
|
|
99355
99713
|
function iconStyle(game) {
|
|
99356
|
-
if (game
|
|
99714
|
+
if (hasIcon(game)) return {};
|
|
99357
99715
|
const hash = String(game.id || game.gameName || "").length;
|
|
99358
99716
|
return { background: gradientPool[hash % gradientPool.length] };
|
|
99359
99717
|
}
|
|
99360
99718
|
function placeholderText(game) {
|
|
99361
|
-
const name = game.gameNameZhCn || game.gameName || "";
|
|
99362
|
-
|
|
99363
|
-
return
|
|
99719
|
+
const name = String(game.gameNameZhCn || game.gameName || "?").trim();
|
|
99720
|
+
const chars = Array.from(name);
|
|
99721
|
+
if (chars.length <= 2) return chars.join(" ");
|
|
99722
|
+
if (/^[\x00-\x7F]+$/.test(name)) {
|
|
99723
|
+
const words = name.split(/[\s_\-]+/).filter(Boolean);
|
|
99724
|
+
const abbr = words.length > 1 ? words.map((w2) => w2[0]).join("") : name.slice(0, 2);
|
|
99725
|
+
return abbr.slice(0, 2).toUpperCase();
|
|
99726
|
+
}
|
|
99727
|
+
return chars.slice(0, 2).join("");
|
|
99364
99728
|
}
|
|
99365
99729
|
async function loadCategories() {
|
|
99366
99730
|
try {
|
|
@@ -99372,6 +99736,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99372
99736
|
}
|
|
99373
99737
|
async function loadGames() {
|
|
99374
99738
|
loading.value = true;
|
|
99739
|
+
failedIcons.value = /* @__PURE__ */ new Set();
|
|
99375
99740
|
try {
|
|
99376
99741
|
const params = { pageSize: 500, status: 1 };
|
|
99377
99742
|
if (activeCategory.value !== null) {
|
|
@@ -99419,11 +99784,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99419
99784
|
class: "game-icon",
|
|
99420
99785
|
style: normalizeStyle(iconStyle(game))
|
|
99421
99786
|
}, [
|
|
99422
|
-
game
|
|
99787
|
+
hasIcon(game) ? (openBlock(), createElementBlock("img", {
|
|
99423
99788
|
key: 0,
|
|
99424
99789
|
src: unref(resolveAssetUrl)(game.iconUrl),
|
|
99425
|
-
alt: "
|
|
99426
|
-
|
|
99790
|
+
alt: "",
|
|
99791
|
+
onError: ($event) => onIconError(game)
|
|
99792
|
+
}, null, 40, _hoisted_7$4)) : (openBlock(), createElementBlock("span", _hoisted_8$4, toDisplayString(placeholderText(game)), 1))
|
|
99427
99793
|
], 4),
|
|
99428
99794
|
createBaseVNode("div", _hoisted_9$4, toDisplayString(game.gameNameZhCn || game.gameName || "-"), 1),
|
|
99429
99795
|
game.description ? (openBlock(), createElementBlock("div", _hoisted_10$4, toDisplayString(game.description), 1)) : createCommentVNode("", true),
|
|
@@ -99439,7 +99805,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99439
99805
|
};
|
|
99440
99806
|
}
|
|
99441
99807
|
};
|
|
99442
|
-
const GameHall = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
99808
|
+
const GameHall = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-adff3af6"]]);
|
|
99443
99809
|
const _hoisted_1$4 = { class: "game-panel" };
|
|
99444
99810
|
const _hoisted_2$4 = { class: "panel-header" };
|
|
99445
99811
|
const _hoisted_3$4 = {
|
|
@@ -100072,44 +100438,50 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100072
100438
|
const StyleEditor = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-02c4e5e7"]]);
|
|
100073
100439
|
const _hoisted_1$1 = { class: "settings-panel" };
|
|
100074
100440
|
const _hoisted_2$1 = { class: "settings-body" };
|
|
100075
|
-
const _hoisted_3$1 = {
|
|
100441
|
+
const _hoisted_3$1 = { class: "setting-block" };
|
|
100442
|
+
const _hoisted_4$1 = { class: "setting-inline" };
|
|
100443
|
+
const _hoisted_5$1 = { class: "setting-block" };
|
|
100444
|
+
const _hoisted_6$1 = { class: "setting-inline" };
|
|
100445
|
+
const _hoisted_7 = { class: "inline-hint" };
|
|
100446
|
+
const _hoisted_8 = {
|
|
100076
100447
|
key: 0,
|
|
100077
100448
|
class: "setting-block"
|
|
100078
100449
|
};
|
|
100079
|
-
const
|
|
100080
|
-
const
|
|
100081
|
-
const
|
|
100082
|
-
const
|
|
100083
|
-
const _hoisted_8 = { class: "setting-row" };
|
|
100084
|
-
const _hoisted_9 = { class: "setting-row" };
|
|
100085
|
-
const _hoisted_10 = { class: "setting-row" };
|
|
100086
|
-
const _hoisted_11 = { class: "setting-row" };
|
|
100087
|
-
const _hoisted_12 = { class: "slider-wrap" };
|
|
100450
|
+
const _hoisted_9 = { class: "setting-inline" };
|
|
100451
|
+
const _hoisted_10 = { class: "setting-inline" };
|
|
100452
|
+
const _hoisted_11 = { class: "setting-hint" };
|
|
100453
|
+
const _hoisted_12 = { class: "setting-row" };
|
|
100088
100454
|
const _hoisted_13 = { class: "setting-row" };
|
|
100089
|
-
const _hoisted_14 = { class: "
|
|
100090
|
-
const _hoisted_15 = { class: "
|
|
100455
|
+
const _hoisted_14 = { class: "setting-row" };
|
|
100456
|
+
const _hoisted_15 = { class: "setting-row" };
|
|
100091
100457
|
const _hoisted_16 = { class: "setting-row" };
|
|
100092
100458
|
const _hoisted_17 = { class: "slider-wrap" };
|
|
100093
|
-
const _hoisted_18 = { class: "
|
|
100094
|
-
const _hoisted_19 = { class: "
|
|
100095
|
-
const _hoisted_20 = { class: "
|
|
100096
|
-
const _hoisted_21 =
|
|
100097
|
-
const _hoisted_22 =
|
|
100098
|
-
const _hoisted_23 = {
|
|
100459
|
+
const _hoisted_18 = { class: "setting-row" };
|
|
100460
|
+
const _hoisted_19 = { class: "slider-wrap" };
|
|
100461
|
+
const _hoisted_20 = { class: "slider-value" };
|
|
100462
|
+
const _hoisted_21 = { class: "setting-row" };
|
|
100463
|
+
const _hoisted_22 = { class: "slider-wrap" };
|
|
100464
|
+
const _hoisted_23 = { class: "slider-value" };
|
|
100465
|
+
const _hoisted_24 = { class: "setting-block" };
|
|
100466
|
+
const _hoisted_25 = { class: "shortcut-actions" };
|
|
100467
|
+
const _hoisted_26 = ["onClick"];
|
|
100468
|
+
const _hoisted_27 = ["onClick"];
|
|
100469
|
+
const _hoisted_28 = {
|
|
100099
100470
|
key: 0,
|
|
100100
100471
|
class: "shortcut-hint"
|
|
100101
100472
|
};
|
|
100102
|
-
const
|
|
100103
|
-
const
|
|
100104
|
-
const
|
|
100105
|
-
const
|
|
100106
|
-
const
|
|
100107
|
-
const
|
|
100108
|
-
const
|
|
100473
|
+
const _hoisted_29 = { class: "setting-block" };
|
|
100474
|
+
const _hoisted_30 = { class: "setting-inline" };
|
|
100475
|
+
const _hoisted_31 = { class: "inline-label" };
|
|
100476
|
+
const _hoisted_32 = { class: "setting-inline" };
|
|
100477
|
+
const _hoisted_33 = { class: "inline-label" };
|
|
100478
|
+
const _hoisted_34 = { class: "setting-row" };
|
|
100479
|
+
const _hoisted_35 = {
|
|
100109
100480
|
key: 1,
|
|
100110
100481
|
class: "setting-row"
|
|
100111
100482
|
};
|
|
100112
|
-
const
|
|
100483
|
+
const _hoisted_36 = { style: { "color": "var(--text-secondary)" } };
|
|
100484
|
+
const DEFAULT_RELAY_ORIGIN = "wss://xechat.lesscoding.net";
|
|
100113
100485
|
const DOCK_LAYOUT_KEY = "xechat-dsh:layout";
|
|
100114
100486
|
const DOCK_EVENT_LAYOUT = "xechat-dsh:layout";
|
|
100115
100487
|
const DOCK_EVENT_SET = "xechat-dsh:set-size";
|
|
@@ -100117,6 +100489,40 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100117
100489
|
const _sfc_main$1 = {
|
|
100118
100490
|
__name: "SettingsPanel",
|
|
100119
100491
|
setup(__props) {
|
|
100492
|
+
const sysStyle = /* @__PURE__ */ ref("block");
|
|
100493
|
+
try {
|
|
100494
|
+
sysStyle.value = localStorage.getItem("xechat_sys_msg_style") || "block";
|
|
100495
|
+
} catch (e) {
|
|
100496
|
+
}
|
|
100497
|
+
function setSysStyle(v2) {
|
|
100498
|
+
sysStyle.value = v2 === "inline" ? "inline" : "block";
|
|
100499
|
+
try {
|
|
100500
|
+
localStorage.setItem("xechat_sys_msg_style", sysStyle.value);
|
|
100501
|
+
} catch (e) {
|
|
100502
|
+
}
|
|
100503
|
+
try {
|
|
100504
|
+
window.dispatchEvent(new CustomEvent("xechat:sys-style-changed", { detail: sysStyle.value }));
|
|
100505
|
+
} catch (e) {
|
|
100506
|
+
}
|
|
100507
|
+
}
|
|
100508
|
+
const relayOrigin = DEFAULT_RELAY_ORIGIN;
|
|
100509
|
+
const useRelay = /* @__PURE__ */ ref(true);
|
|
100510
|
+
try {
|
|
100511
|
+
useRelay.value = localStorage.getItem("xechat_dsh_relay_base") !== "";
|
|
100512
|
+
} catch (e) {
|
|
100513
|
+
}
|
|
100514
|
+
function setUseRelay(on2) {
|
|
100515
|
+
useRelay.value = !!on2;
|
|
100516
|
+
try {
|
|
100517
|
+
if (useRelay.value) localStorage.removeItem("xechat_dsh_relay_base");
|
|
100518
|
+
else localStorage.setItem("xechat_dsh_relay_base", "");
|
|
100519
|
+
} catch (e) {
|
|
100520
|
+
}
|
|
100521
|
+
try {
|
|
100522
|
+
window.dispatchEvent(new CustomEvent("xechat:relay-changed", { detail: useRelay.value }));
|
|
100523
|
+
} catch (e) {
|
|
100524
|
+
}
|
|
100525
|
+
}
|
|
100120
100526
|
const settingsStore = useSettingsStore();
|
|
100121
100527
|
const isDsh = typeof window !== "undefined" && (!!window.__XECHAT_DSH_EMBEDDED__ || typeof document !== "undefined" && !!document.querySelector("[data-xechat-dsh]"));
|
|
100122
100528
|
const dockLimits = /* @__PURE__ */ ref({ minWidth: 280, maxWidth: 720, minHeight: 240, maxHeight: 800 });
|
|
@@ -100258,11 +100664,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100258
100664
|
settingsStore.setAdminToken(val || "");
|
|
100259
100665
|
}
|
|
100260
100666
|
return (_ctx, _cache) => {
|
|
100261
|
-
const _component_el_input = resolveComponent("el-input");
|
|
100262
|
-
const _component_el_button = resolveComponent("el-button");
|
|
100263
|
-
const _component_el_switch = resolveComponent("el-switch");
|
|
100264
100667
|
const _component_el_radio_button = resolveComponent("el-radio-button");
|
|
100265
100668
|
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
100669
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
100670
|
+
const _component_el_input = resolveComponent("el-input");
|
|
100671
|
+
const _component_el_button = resolveComponent("el-button");
|
|
100266
100672
|
const _component_el_slider = resolveComponent("el-slider");
|
|
100267
100673
|
const _component_InfoFilled = resolveComponent("InfoFilled");
|
|
100268
100674
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -100270,57 +100676,101 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100270
100676
|
const _component_el_tag = resolveComponent("el-tag");
|
|
100271
100677
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
100272
100678
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
100273
|
-
_cache[
|
|
100679
|
+
_cache[49] || (_cache[49] = createBaseVNode("div", { class: "panel-header" }, [
|
|
100274
100680
|
createBaseVNode("span", { class: "panel-title" }, "设置")
|
|
100275
100681
|
], -1)),
|
|
100276
100682
|
createBaseVNode("div", _hoisted_2$1, [
|
|
100277
|
-
|
|
100278
|
-
_cache[
|
|
100683
|
+
createBaseVNode("div", _hoisted_3$1, [
|
|
100684
|
+
_cache[17] || (_cache[17] = createBaseVNode("div", { class: "block-title" }, "消息显示", -1)),
|
|
100279
100685
|
createBaseVNode("div", _hoisted_4$1, [
|
|
100280
|
-
_cache[
|
|
100686
|
+
_cache[16] || (_cache[16] = createBaseVNode("div", { class: "inline-label" }, [
|
|
100687
|
+
createBaseVNode("span", null, "系统提示样式")
|
|
100688
|
+
], -1)),
|
|
100689
|
+
createVNode(_component_el_radio_group, {
|
|
100690
|
+
"model-value": sysStyle.value,
|
|
100691
|
+
size: "small",
|
|
100692
|
+
onChange: _cache[0] || (_cache[0] = (v2) => setSysStyle(v2))
|
|
100693
|
+
}, {
|
|
100694
|
+
default: withCtx(() => [
|
|
100695
|
+
createVNode(_component_el_radio_button, { value: "block" }, {
|
|
100696
|
+
default: withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
100697
|
+
createTextVNode("卡片块", -1)
|
|
100698
|
+
])]),
|
|
100699
|
+
_: 1
|
|
100700
|
+
}),
|
|
100701
|
+
createVNode(_component_el_radio_button, { value: "inline" }, {
|
|
100702
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
100703
|
+
createTextVNode("行内【系统提示】", -1)
|
|
100704
|
+
])]),
|
|
100705
|
+
_: 1
|
|
100706
|
+
})
|
|
100707
|
+
]),
|
|
100708
|
+
_: 1
|
|
100709
|
+
}, 8, ["model-value"])
|
|
100710
|
+
])
|
|
100711
|
+
]),
|
|
100712
|
+
createBaseVNode("div", _hoisted_5$1, [
|
|
100713
|
+
_cache[19] || (_cache[19] = createBaseVNode("div", { class: "block-title" }, "网络连接", -1)),
|
|
100714
|
+
createBaseVNode("div", _hoisted_6$1, [
|
|
100715
|
+
_cache[18] || (_cache[18] = createBaseVNode("div", { class: "inline-label" }, [
|
|
100716
|
+
createBaseVNode("span", null, "经中继连接(推荐)")
|
|
100717
|
+
], -1)),
|
|
100718
|
+
createVNode(_component_el_switch, {
|
|
100719
|
+
"model-value": useRelay.value,
|
|
100720
|
+
onChange: _cache[1] || (_cache[1] = (v2) => setUseRelay(v2)),
|
|
100721
|
+
"active-text": "开",
|
|
100722
|
+
"inactive-text": "关"
|
|
100723
|
+
}, null, 8, ["model-value"])
|
|
100724
|
+
]),
|
|
100725
|
+
createBaseVNode("div", _hoisted_7, " 开启后经 " + toDisplayString(unref(relayOrigin)) + " 转发,可发大图;关闭则直连目标鱼塘(64KB 单帧的塘发图会断开)。下次登录生效。 ", 1)
|
|
100726
|
+
]),
|
|
100727
|
+
unref(isDsh) ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
100728
|
+
_cache[26] || (_cache[26] = createBaseVNode("div", { class: "block-title" }, "面板尺寸", -1)),
|
|
100729
|
+
createBaseVNode("div", _hoisted_9, [
|
|
100730
|
+
_cache[20] || (_cache[20] = createBaseVNode("div", { class: "inline-label" }, [
|
|
100281
100731
|
createBaseVNode("span", null, "宽度 (px)")
|
|
100282
100732
|
], -1)),
|
|
100283
100733
|
createVNode(_component_el_input, {
|
|
100284
100734
|
modelValue: dockWidthDraft.value,
|
|
100285
|
-
"onUpdate:modelValue": _cache[
|
|
100735
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dockWidthDraft.value = $event),
|
|
100286
100736
|
type: "number",
|
|
100287
100737
|
min: dockLimits.value.minWidth,
|
|
100288
100738
|
max: dockLimits.value.maxWidth,
|
|
100289
100739
|
placeholder: "380",
|
|
100290
|
-
onFocus: _cache[
|
|
100740
|
+
onFocus: _cache[3] || (_cache[3] = ($event) => dockEditing.value = true),
|
|
100291
100741
|
onBlur: onDockInputBlur,
|
|
100292
100742
|
onChange: applyDockSize,
|
|
100293
100743
|
onKeyup: withKeys(applyDockSize, ["enter"])
|
|
100294
100744
|
}, null, 8, ["modelValue", "min", "max"])
|
|
100295
100745
|
]),
|
|
100296
|
-
createBaseVNode("div",
|
|
100297
|
-
_cache[
|
|
100746
|
+
createBaseVNode("div", _hoisted_10, [
|
|
100747
|
+
_cache[21] || (_cache[21] = createBaseVNode("div", { class: "inline-label" }, [
|
|
100298
100748
|
createBaseVNode("span", null, "高度 (px)")
|
|
100299
100749
|
], -1)),
|
|
100300
100750
|
createVNode(_component_el_input, {
|
|
100301
100751
|
modelValue: dockHeightDraft.value,
|
|
100302
|
-
"onUpdate:modelValue": _cache[
|
|
100752
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dockHeightDraft.value = $event),
|
|
100303
100753
|
type: "number",
|
|
100304
100754
|
min: dockLimits.value.minHeight,
|
|
100305
100755
|
max: dockLimits.value.maxHeight,
|
|
100306
100756
|
placeholder: "留空 = 铺满",
|
|
100307
|
-
onFocus: _cache[
|
|
100757
|
+
onFocus: _cache[5] || (_cache[5] = ($event) => dockEditing.value = true),
|
|
100308
100758
|
onBlur: onDockInputBlur,
|
|
100309
100759
|
onChange: applyDockSize,
|
|
100310
100760
|
onKeyup: withKeys(applyDockSize, ["enter"])
|
|
100311
100761
|
}, null, 8, ["modelValue", "min", "max"])
|
|
100312
100762
|
]),
|
|
100313
|
-
createBaseVNode("div",
|
|
100763
|
+
createBaseVNode("div", _hoisted_11, [
|
|
100314
100764
|
createTextVNode(" 宽度 " + toDisplayString(dockLimits.value.minWidth) + "–" + toDisplayString(dockLimits.value.maxWidth) + " px,高度 " + toDisplayString(dockLimits.value.minHeight) + "–" + toDisplayString(dockLimits.value.maxHeight) + " px; 高度留空表示铺满窗口。回车或失焦立即生效。", 1),
|
|
100315
|
-
_cache[
|
|
100316
|
-
_cache[
|
|
100765
|
+
_cache[22] || (_cache[22] = createBaseVNode("br", null, null, -1)),
|
|
100766
|
+
_cache[23] || (_cache[23] = createTextVNode(" 也可以拖动面板左边缘(调宽)、上边缘或下边缘(调高)的拖拽条。 ", -1))
|
|
100317
100767
|
]),
|
|
100318
|
-
createBaseVNode("div",
|
|
100768
|
+
createBaseVNode("div", _hoisted_12, [
|
|
100319
100769
|
createVNode(_component_el_button, {
|
|
100320
100770
|
size: "small",
|
|
100321
100771
|
onClick: resetDockSize
|
|
100322
100772
|
}, {
|
|
100323
|
-
default: withCtx(() => [..._cache[
|
|
100773
|
+
default: withCtx(() => [..._cache[24] || (_cache[24] = [
|
|
100324
100774
|
createTextVNode("恢复默认", -1)
|
|
100325
100775
|
])]),
|
|
100326
100776
|
_: 1
|
|
@@ -100329,63 +100779,63 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100329
100779
|
size: "small",
|
|
100330
100780
|
onClick: openDockSizePanel
|
|
100331
100781
|
}, {
|
|
100332
|
-
default: withCtx(() => [..._cache[
|
|
100782
|
+
default: withCtx(() => [..._cache[25] || (_cache[25] = [
|
|
100333
100783
|
createTextVNode("在侧栏打开尺寸浮层", -1)
|
|
100334
100784
|
])]),
|
|
100335
100785
|
_: 1
|
|
100336
100786
|
})
|
|
100337
100787
|
])
|
|
100338
100788
|
])) : createCommentVNode("", true),
|
|
100339
|
-
createBaseVNode("div",
|
|
100340
|
-
_cache[
|
|
100789
|
+
createBaseVNode("div", _hoisted_13, [
|
|
100790
|
+
_cache[27] || (_cache[27] = createBaseVNode("span", null, "主题", -1)),
|
|
100341
100791
|
createVNode(_component_el_switch, {
|
|
100342
100792
|
"model-value": unref(isDark),
|
|
100343
|
-
onChange: _cache[
|
|
100793
|
+
onChange: _cache[6] || (_cache[6] = ($event) => unref(toggleTheme)()),
|
|
100344
100794
|
"active-text": "暗色",
|
|
100345
100795
|
"inactive-text": "亮色"
|
|
100346
100796
|
}, null, 8, ["model-value"])
|
|
100347
100797
|
]),
|
|
100348
|
-
createBaseVNode("div",
|
|
100349
|
-
_cache[
|
|
100798
|
+
createBaseVNode("div", _hoisted_14, [
|
|
100799
|
+
_cache[29] || (_cache[29] = createBaseVNode("span", null, "文字样式", -1)),
|
|
100350
100800
|
createVNode(_component_el_button, {
|
|
100351
100801
|
size: "small",
|
|
100352
|
-
onClick: _cache[
|
|
100802
|
+
onClick: _cache[7] || (_cache[7] = ($event) => unref(state).currentRoute = "style-editor")
|
|
100353
100803
|
}, {
|
|
100354
|
-
default: withCtx(() => [..._cache[
|
|
100804
|
+
default: withCtx(() => [..._cache[28] || (_cache[28] = [
|
|
100355
100805
|
createTextVNode(" 管理 ", -1)
|
|
100356
100806
|
])]),
|
|
100357
100807
|
_: 1
|
|
100358
100808
|
})
|
|
100359
100809
|
]),
|
|
100360
|
-
createBaseVNode("div",
|
|
100361
|
-
_cache[
|
|
100810
|
+
createBaseVNode("div", _hoisted_15, [
|
|
100811
|
+
_cache[34] || (_cache[34] = createBaseVNode("span", null, "浏览器配色", -1)),
|
|
100362
100812
|
createVNode(_component_el_radio_group, {
|
|
100363
100813
|
modelValue: browserTheme.value,
|
|
100364
|
-
"onUpdate:modelValue": _cache[
|
|
100814
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => browserTheme.value = $event),
|
|
100365
100815
|
size: "small",
|
|
100366
100816
|
onChange: onBrowserThemeChange
|
|
100367
100817
|
}, {
|
|
100368
100818
|
default: withCtx(() => [
|
|
100369
100819
|
createVNode(_component_el_radio_button, { value: "auto" }, {
|
|
100370
|
-
default: withCtx(() => [..._cache[
|
|
100820
|
+
default: withCtx(() => [..._cache[30] || (_cache[30] = [
|
|
100371
100821
|
createTextVNode("跟随主题", -1)
|
|
100372
100822
|
])]),
|
|
100373
100823
|
_: 1
|
|
100374
100824
|
}),
|
|
100375
100825
|
createVNode(_component_el_radio_button, { value: "dark" }, {
|
|
100376
|
-
default: withCtx(() => [..._cache[
|
|
100826
|
+
default: withCtx(() => [..._cache[31] || (_cache[31] = [
|
|
100377
100827
|
createTextVNode("深色", -1)
|
|
100378
100828
|
])]),
|
|
100379
100829
|
_: 1
|
|
100380
100830
|
}),
|
|
100381
100831
|
createVNode(_component_el_radio_button, { value: "light" }, {
|
|
100382
|
-
default: withCtx(() => [..._cache[
|
|
100832
|
+
default: withCtx(() => [..._cache[32] || (_cache[32] = [
|
|
100383
100833
|
createTextVNode("浅色", -1)
|
|
100384
100834
|
])]),
|
|
100385
100835
|
_: 1
|
|
100386
100836
|
}),
|
|
100387
100837
|
createVNode(_component_el_radio_button, { value: "off" }, {
|
|
100388
|
-
default: withCtx(() => [..._cache[
|
|
100838
|
+
default: withCtx(() => [..._cache[33] || (_cache[33] = [
|
|
100389
100839
|
createTextVNode("不做处理", -1)
|
|
100390
100840
|
])]),
|
|
100391
100841
|
_: 1
|
|
@@ -100394,12 +100844,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100394
100844
|
_: 1
|
|
100395
100845
|
}, 8, ["modelValue"])
|
|
100396
100846
|
]),
|
|
100397
|
-
createBaseVNode("div",
|
|
100398
|
-
_cache[
|
|
100399
|
-
createBaseVNode("div",
|
|
100847
|
+
createBaseVNode("div", _hoisted_16, [
|
|
100848
|
+
_cache[35] || (_cache[35] = createBaseVNode("span", null, "网页降亮", -1)),
|
|
100849
|
+
createBaseVNode("div", _hoisted_17, [
|
|
100400
100850
|
createVNode(_component_el_slider, {
|
|
100401
100851
|
modelValue: browserDim.value,
|
|
100402
|
-
"onUpdate:modelValue": _cache[
|
|
100852
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => browserDim.value = $event),
|
|
100403
100853
|
min: 0,
|
|
100404
100854
|
max: 0.6,
|
|
100405
100855
|
step: 0.05,
|
|
@@ -100407,70 +100857,70 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100407
100857
|
}, null, 8, ["modelValue", "format-tooltip"])
|
|
100408
100858
|
])
|
|
100409
100859
|
]),
|
|
100410
|
-
_cache[
|
|
100411
|
-
createBaseVNode("div",
|
|
100412
|
-
_cache[
|
|
100413
|
-
createBaseVNode("div",
|
|
100860
|
+
_cache[48] || (_cache[48] = createBaseVNode("div", { class: "setting-hint" }, " 内置浏览器是 iframe,跨源站点受同源策略保护,插件无法改写其内部元素, 因此这里只能给容器着色并加一层降亮遮罩,无法像 DarkReader 那样逐元素反色。 ", -1)),
|
|
100861
|
+
createBaseVNode("div", _hoisted_18, [
|
|
100862
|
+
_cache[36] || (_cache[36] = createBaseVNode("span", null, "插件透明度", -1)),
|
|
100863
|
+
createBaseVNode("div", _hoisted_19, [
|
|
100414
100864
|
createVNode(_component_el_slider, {
|
|
100415
100865
|
modelValue: pluginOpacity.value,
|
|
100416
|
-
"onUpdate:modelValue": _cache[
|
|
100866
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => pluginOpacity.value = $event),
|
|
100417
100867
|
min: 0,
|
|
100418
100868
|
max: 1,
|
|
100419
100869
|
step: 0.05,
|
|
100420
100870
|
"format-tooltip": (v2) => Math.round(v2 * 100) + "%",
|
|
100421
100871
|
style: { "width": "130px" }
|
|
100422
100872
|
}, null, 8, ["modelValue", "format-tooltip"]),
|
|
100423
|
-
createBaseVNode("span",
|
|
100873
|
+
createBaseVNode("span", _hoisted_20, toDisplayString(Math.round(pluginOpacity.value * 100)) + "%", 1)
|
|
100424
100874
|
])
|
|
100425
100875
|
]),
|
|
100426
|
-
createBaseVNode("div",
|
|
100427
|
-
_cache[
|
|
100428
|
-
createBaseVNode("div",
|
|
100876
|
+
createBaseVNode("div", _hoisted_21, [
|
|
100877
|
+
_cache[37] || (_cache[37] = createBaseVNode("span", null, "游戏面板透明度", -1)),
|
|
100878
|
+
createBaseVNode("div", _hoisted_22, [
|
|
100429
100879
|
createVNode(_component_el_slider, {
|
|
100430
100880
|
modelValue: gamePanelOpacity.value,
|
|
100431
|
-
"onUpdate:modelValue": _cache[
|
|
100881
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => gamePanelOpacity.value = $event),
|
|
100432
100882
|
min: 0.1,
|
|
100433
100883
|
max: 1,
|
|
100434
100884
|
step: 0.05,
|
|
100435
100885
|
"format-tooltip": (v2) => Math.round(v2 * 100) + "%",
|
|
100436
100886
|
style: { "width": "130px" }
|
|
100437
100887
|
}, null, 8, ["modelValue", "format-tooltip"]),
|
|
100438
|
-
createBaseVNode("span",
|
|
100888
|
+
createBaseVNode("span", _hoisted_23, toDisplayString(Math.round(gamePanelOpacity.value * 100)) + "%", 1)
|
|
100439
100889
|
]),
|
|
100440
|
-
_cache[
|
|
100890
|
+
_cache[38] || (_cache[38] = createBaseVNode("div", { style: { "font-size": "11px", "color": "var(--el-text-color-secondary)", "margin-top": "4px", "width": "100%", "text-align": "right" } }, " 游戏播放时面板透明度 ", -1))
|
|
100441
100891
|
]),
|
|
100442
|
-
createBaseVNode("div",
|
|
100443
|
-
_cache[
|
|
100892
|
+
createBaseVNode("div", _hoisted_24, [
|
|
100893
|
+
_cache[39] || (_cache[39] = createBaseVNode("div", { class: "block-title" }, "快捷键", -1)),
|
|
100444
100894
|
(openBlock(), createElementBlock(Fragment, null, renderList(shortcutItems, (item) => {
|
|
100445
100895
|
return createBaseVNode("div", {
|
|
100446
100896
|
key: item.type,
|
|
100447
100897
|
class: "shortcut-row"
|
|
100448
100898
|
}, [
|
|
100449
100899
|
createBaseVNode("span", null, toDisplayString(item.label), 1),
|
|
100450
|
-
createBaseVNode("div",
|
|
100900
|
+
createBaseVNode("div", _hoisted_25, [
|
|
100451
100901
|
createBaseVNode("button", {
|
|
100452
100902
|
class: normalizeClass(["shortcut-btn", { recording: recordingShortcut.value === item.type }]),
|
|
100453
100903
|
onClick: ($event) => startRecording(item.type)
|
|
100454
|
-
}, toDisplayString(recordingShortcut.value === item.type ? "按下新组合键..." : unref(formatShortcut)(unref(settingsStore)[item.getter])), 11,
|
|
100904
|
+
}, toDisplayString(recordingShortcut.value === item.type ? "按下新组合键..." : unref(formatShortcut)(unref(settingsStore)[item.getter])), 11, _hoisted_26),
|
|
100455
100905
|
createBaseVNode("button", {
|
|
100456
100906
|
class: "shortcut-reset",
|
|
100457
100907
|
title: "恢复默认",
|
|
100458
100908
|
onClick: ($event) => unref(settingsStore)[item.setter](DEFAULT_SHORTCUTS[item.type])
|
|
100459
|
-
}, "默认", 8,
|
|
100909
|
+
}, "默认", 8, _hoisted_27)
|
|
100460
100910
|
])
|
|
100461
100911
|
]);
|
|
100462
100912
|
}), 64)),
|
|
100463
|
-
recordingShortcut.value ? (openBlock(), createElementBlock("div",
|
|
100913
|
+
recordingShortcut.value ? (openBlock(), createElementBlock("div", _hoisted_28, " 请按下新的组合键(建议 Ctrl+Alt+主键,避免使用 Shift 以免键位漂移),按 Esc 取消 ")) : createCommentVNode("", true)
|
|
100464
100914
|
]),
|
|
100465
|
-
createBaseVNode("div",
|
|
100466
|
-
createBaseVNode("div",
|
|
100467
|
-
createBaseVNode("div",
|
|
100468
|
-
_cache[
|
|
100915
|
+
createBaseVNode("div", _hoisted_29, [
|
|
100916
|
+
createBaseVNode("div", _hoisted_30, [
|
|
100917
|
+
createBaseVNode("div", _hoisted_31, [
|
|
100918
|
+
_cache[41] || (_cache[41] = createBaseVNode("span", null, "紧急模式", -1)),
|
|
100469
100919
|
createVNode(_component_el_tooltip, {
|
|
100470
100920
|
placement: "top",
|
|
100471
100921
|
effect: "dark"
|
|
100472
100922
|
}, {
|
|
100473
|
-
content: withCtx(() => [..._cache[
|
|
100923
|
+
content: withCtx(() => [..._cache[40] || (_cache[40] = [
|
|
100474
100924
|
createTextVNode(" 按下快捷键全屏显示伪装内容(图片或网页),再按一次恢复摸鱼页面", -1),
|
|
100475
100925
|
createBaseVNode("br", null, null, -1),
|
|
100476
100926
|
createTextVNode(" 以 .png/.jpg/.gif/.webp 等图片扩展名结尾的地址按图片展示,其余按网页加载 ", -1)
|
|
@@ -100488,20 +100938,20 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100488
100938
|
]),
|
|
100489
100939
|
createVNode(_component_el_input, {
|
|
100490
100940
|
modelValue: localPanicUrl.value,
|
|
100491
|
-
"onUpdate:modelValue": _cache[
|
|
100941
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => localPanicUrl.value = $event),
|
|
100492
100942
|
placeholder: "图片 URL / 网页地址",
|
|
100493
100943
|
clearable: "",
|
|
100494
100944
|
onChange: onPanicUrlChange
|
|
100495
100945
|
}, null, 8, ["modelValue"])
|
|
100496
100946
|
]),
|
|
100497
|
-
createBaseVNode("div",
|
|
100498
|
-
createBaseVNode("div",
|
|
100499
|
-
_cache[
|
|
100947
|
+
createBaseVNode("div", _hoisted_32, [
|
|
100948
|
+
createBaseVNode("div", _hoisted_33, [
|
|
100949
|
+
_cache[43] || (_cache[43] = createBaseVNode("span", null, "管理员 Token", -1)),
|
|
100500
100950
|
createVNode(_component_el_tooltip, {
|
|
100501
100951
|
placement: "top",
|
|
100502
100952
|
effect: "dark"
|
|
100503
100953
|
}, {
|
|
100504
|
-
content: withCtx(() => [..._cache[
|
|
100954
|
+
content: withCtx(() => [..._cache[42] || (_cache[42] = [
|
|
100505
100955
|
createTextVNode(" 与服务端 application.yml 的 token 一致时,登录后获得管理员权限", -1),
|
|
100506
100956
|
createBaseVNode("br", null, null, -1),
|
|
100507
100957
|
createTextVNode(" 登录时随 LOGIN 帧上报;修改后需重新登录(#login)生效 ", -1)
|
|
@@ -100519,7 +100969,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100519
100969
|
]),
|
|
100520
100970
|
createVNode(_component_el_input, {
|
|
100521
100971
|
modelValue: localAdminToken.value,
|
|
100522
|
-
"onUpdate:modelValue": _cache[
|
|
100972
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => localAdminToken.value = $event),
|
|
100523
100973
|
type: "password",
|
|
100524
100974
|
"show-password": "",
|
|
100525
100975
|
clearable: "",
|
|
@@ -100534,17 +100984,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100534
100984
|
type: "success",
|
|
100535
100985
|
size: "small"
|
|
100536
100986
|
}, {
|
|
100537
|
-
default: withCtx(() => [..._cache[
|
|
100987
|
+
default: withCtx(() => [..._cache[44] || (_cache[44] = [
|
|
100538
100988
|
createTextVNode("WebSocket", -1)
|
|
100539
100989
|
])]),
|
|
100540
100990
|
_: 1
|
|
100541
100991
|
}),
|
|
100542
|
-
_cache[
|
|
100992
|
+
_cache[45] || (_cache[45] = createBaseVNode("div", { style: { "font-size": "11px", "color": "var(--el-text-color-secondary)", "margin-top": "4px" } }, " xechat-dsh 仅支持 WebSocket,服务端地址由 #login 指定 ", -1))
|
|
100543
100993
|
]),
|
|
100544
100994
|
_: 1
|
|
100545
100995
|
}),
|
|
100546
|
-
createBaseVNode("div",
|
|
100547
|
-
_cache[
|
|
100996
|
+
createBaseVNode("div", _hoisted_34, [
|
|
100997
|
+
_cache[46] || (_cache[46] = createBaseVNode("span", null, "在线状态", -1)),
|
|
100548
100998
|
createVNode(_component_el_tag, {
|
|
100549
100999
|
type: unref(state).online ? "success" : "info",
|
|
100550
101000
|
size: "small"
|
|
@@ -100555,16 +101005,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
100555
101005
|
_: 1
|
|
100556
101006
|
}, 8, ["type"])
|
|
100557
101007
|
]),
|
|
100558
|
-
unref(state).username ? (openBlock(), createElementBlock("div",
|
|
100559
|
-
_cache[
|
|
100560
|
-
createBaseVNode("span",
|
|
101008
|
+
unref(state).username ? (openBlock(), createElementBlock("div", _hoisted_35, [
|
|
101009
|
+
_cache[47] || (_cache[47] = createBaseVNode("span", null, "用户名", -1)),
|
|
101010
|
+
createBaseVNode("span", _hoisted_36, toDisplayString(unref(state).username), 1)
|
|
100561
101011
|
])) : createCommentVNode("", true)
|
|
100562
101012
|
])
|
|
100563
101013
|
]);
|
|
100564
101014
|
};
|
|
100565
101015
|
}
|
|
100566
101016
|
};
|
|
100567
|
-
const SettingsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
101017
|
+
const SettingsPanel = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-83d3f6d8"]]);
|
|
100568
101018
|
const _hoisted_1 = { class: "nav-buttons" };
|
|
100569
101019
|
const _hoisted_2 = { class: "nav-bottom" };
|
|
100570
101020
|
const _hoisted_3 = {
|