xechat-dsh 0.2.5 → 0.2.6
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 +240 -225
- package/lib/xechat-app.js +200 -14
- package/package.json +97 -97
package/lib/xechat-app.js
CHANGED
|
@@ -72089,6 +72089,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72089
72089
|
* 踢人:走服务端特殊指令聊天帧(服务端 FORCE_DISCONNECTION 识别「踢人:::{用户名}」,仅管理员生效)。
|
|
72090
72090
|
* @param {string} username 目标用户昵称
|
|
72091
72091
|
*/
|
|
72092
|
+
/**
|
|
72093
|
+
* 发送图片(REACT/UPLOAD):base64 字节交给服务端落盘,服务端随后自己广播 IMAGE 消息。
|
|
72094
|
+
*/
|
|
72095
|
+
uploadImage(base64, fileType) {
|
|
72096
|
+
if (!base64) return false;
|
|
72097
|
+
this._send({
|
|
72098
|
+
action: "REACT",
|
|
72099
|
+
body: { react: "UPLOAD", body: { fileType: fileType || "png", bytes: base64 } }
|
|
72100
|
+
});
|
|
72101
|
+
return true;
|
|
72102
|
+
}
|
|
72092
72103
|
kickUser(username) {
|
|
72093
72104
|
if (!username) return false;
|
|
72094
72105
|
this.sendMessage("踢人:::" + username);
|
|
@@ -72407,6 +72418,13 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72407
72418
|
return false;
|
|
72408
72419
|
}
|
|
72409
72420
|
/** 踢人:WS 走特殊指令聊天帧 */
|
|
72421
|
+
uploadImage(base64, fileType) {
|
|
72422
|
+
if (this._transport && typeof this._transport.uploadImage === "function") {
|
|
72423
|
+
return this._transport.uploadImage(base64, fileType);
|
|
72424
|
+
}
|
|
72425
|
+
console.warn("[Transport] 当前模式不支持 uploadImage: " + this.mode);
|
|
72426
|
+
return false;
|
|
72427
|
+
}
|
|
72410
72428
|
kickUser(username) {
|
|
72411
72429
|
if (this._transport && typeof this._transport.kickUser === "function") {
|
|
72412
72430
|
return this._transport.kickUser(username);
|
|
@@ -73083,6 +73101,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
73083
73101
|
let userInfo = username;
|
|
73084
73102
|
if (status) userInfo += " (" + status + ")";
|
|
73085
73103
|
if (platform2) userInfo += " " + platform2;
|
|
73104
|
+
if (data.user && data.user.role === "ADMIN") userInfo += " ☆";
|
|
73086
73105
|
parts.push(userInfo + ":");
|
|
73087
73106
|
return parts.join(" ");
|
|
73088
73107
|
}
|
|
@@ -74109,7 +74128,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74109
74128
|
const raw = localStorage.getItem(HISTORY_KEY);
|
|
74110
74129
|
if (!raw) return [];
|
|
74111
74130
|
const arr = JSON.parse(raw);
|
|
74112
|
-
return Array.isArray(arr) ? arr.filter((item) => typeof item === "string").slice(-MAX_HISTORY) : [];
|
|
74131
|
+
return Array.isArray(arr) ? arr.filter((item) => typeof item === "string" && item.trim().startsWith("#")).slice(-MAX_HISTORY) : [];
|
|
74113
74132
|
} catch (e) {
|
|
74114
74133
|
return [];
|
|
74115
74134
|
}
|
|
@@ -74124,7 +74143,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74124
74143
|
*/
|
|
74125
74144
|
push(cmd) {
|
|
74126
74145
|
const text2 = (cmd || "").trim();
|
|
74127
|
-
if (!text2) return;
|
|
74146
|
+
if (!text2 || !text2.startsWith("#")) return;
|
|
74128
74147
|
if (this.commands[this.commands.length - 1] === text2) return;
|
|
74129
74148
|
this.commands.push(text2);
|
|
74130
74149
|
if (this.commands.length > MAX_HISTORY) {
|
|
@@ -94206,6 +94225,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
94206
94225
|
const _hoisted_19$2 = { class: "cmd-name" };
|
|
94207
94226
|
const _hoisted_20$2 = { class: "cmd-desc" };
|
|
94208
94227
|
const _hoisted_21$2 = { class: "input-row" };
|
|
94228
|
+
const IMAGE_MAX_BYTES = 1 << 20;
|
|
94209
94229
|
const _sfc_main$8 = {
|
|
94210
94230
|
__name: "ChatPanel",
|
|
94211
94231
|
setup(__props) {
|
|
@@ -94224,6 +94244,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
94224
94244
|
const messageListRef = /* @__PURE__ */ ref(null);
|
|
94225
94245
|
const inputRef = /* @__PURE__ */ ref(null);
|
|
94226
94246
|
const inputText = /* @__PURE__ */ ref("");
|
|
94247
|
+
const fileInputRef = /* @__PURE__ */ ref(null);
|
|
94248
|
+
const uploading = /* @__PURE__ */ ref(false);
|
|
94249
|
+
const ctxMenu = /* @__PURE__ */ ref({ show: false, x: 0, y: 0, link: "", selection: "" });
|
|
94227
94250
|
const histIndex = /* @__PURE__ */ ref(-1);
|
|
94228
94251
|
const histDraft = /* @__PURE__ */ ref("");
|
|
94229
94252
|
const showTopBtn = /* @__PURE__ */ ref(false);
|
|
@@ -94933,6 +94956,83 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
94933
94956
|
}
|
|
94934
94957
|
return toUsers;
|
|
94935
94958
|
}
|
|
94959
|
+
function pickImage() {
|
|
94960
|
+
if (uploading.value) return;
|
|
94961
|
+
if (fileInputRef.value) {
|
|
94962
|
+
fileInputRef.value.value = "";
|
|
94963
|
+
fileInputRef.value.click();
|
|
94964
|
+
}
|
|
94965
|
+
}
|
|
94966
|
+
function onPickFile(e) {
|
|
94967
|
+
const f2 = e.target && e.target.files && e.target.files[0];
|
|
94968
|
+
if (f2) uploadImageFile(f2);
|
|
94969
|
+
}
|
|
94970
|
+
function onPaste(e) {
|
|
94971
|
+
const items = e.clipboardData && e.clipboardData.items || [];
|
|
94972
|
+
for (let i = 0; i < items.length; i++) {
|
|
94973
|
+
if (items[i].type && items[i].type.indexOf("image/") === 0) {
|
|
94974
|
+
const f2 = items[i].getAsFile();
|
|
94975
|
+
if (f2) {
|
|
94976
|
+
e.preventDefault();
|
|
94977
|
+
uploadImageFile(f2);
|
|
94978
|
+
return;
|
|
94979
|
+
}
|
|
94980
|
+
}
|
|
94981
|
+
}
|
|
94982
|
+
}
|
|
94983
|
+
function uploadImageFile(file) {
|
|
94984
|
+
const type = (file.type || "").split("/")[1] || "png";
|
|
94985
|
+
if (["png", "jpeg", "jpg", "gif", "bmp"].indexOf(type) < 0) return;
|
|
94986
|
+
if (file.size > IMAGE_MAX_BYTES) {
|
|
94987
|
+
console.warn("[xechat] 图片超过 1MB");
|
|
94988
|
+
return;
|
|
94989
|
+
}
|
|
94990
|
+
const reader = new FileReader();
|
|
94991
|
+
reader.onload = function() {
|
|
94992
|
+
const d2 = String(reader.result || "");
|
|
94993
|
+
const b64 = d2.substring(d2.indexOf(",") + 1);
|
|
94994
|
+
uploading.value = true;
|
|
94995
|
+
const ok = transport.uploadImage(b64, type === "jpeg" ? "jpg" : type);
|
|
94996
|
+
setTimeout(function() {
|
|
94997
|
+
uploading.value = false;
|
|
94998
|
+
}, ok ? 4e3 : 0);
|
|
94999
|
+
};
|
|
95000
|
+
reader.readAsDataURL(file);
|
|
95001
|
+
}
|
|
95002
|
+
function onContextMenu(e) {
|
|
95003
|
+
const sel = window.getSelection ? String(window.getSelection() || "") : "";
|
|
95004
|
+
ctxMenu.value = {
|
|
95005
|
+
show: true,
|
|
95006
|
+
x: Math.min(e.clientX, window.innerWidth - 180),
|
|
95007
|
+
y: Math.min(e.clientY, window.innerHeight - 200),
|
|
95008
|
+
selection: sel.trim(),
|
|
95009
|
+
link: sel.trim() && /^(https?:\/\/|www\.)/i.test(sel.trim()) ? sel.trim() : ""
|
|
95010
|
+
};
|
|
95011
|
+
const close2 = () => {
|
|
95012
|
+
ctxMenu.value.show = false;
|
|
95013
|
+
window.removeEventListener("click", close2);
|
|
95014
|
+
};
|
|
95015
|
+
setTimeout(() => window.addEventListener("click", close2), 0);
|
|
95016
|
+
}
|
|
95017
|
+
async function ctxCopy() {
|
|
95018
|
+
const t = ctxMenu.value.selection;
|
|
95019
|
+
ctxMenu.value.show = false;
|
|
95020
|
+
if (!t) return;
|
|
95021
|
+
try {
|
|
95022
|
+
await navigator.clipboard.writeText(t);
|
|
95023
|
+
} catch (e) {
|
|
95024
|
+
}
|
|
95025
|
+
}
|
|
95026
|
+
function ctxOpenLink() {
|
|
95027
|
+
const u2 = ctxMenu.value.link;
|
|
95028
|
+
ctxMenu.value.show = false;
|
|
95029
|
+
if (u2) window.open(u2.indexOf("http") === 0 ? u2 : "https://" + u2, "_blank");
|
|
95030
|
+
}
|
|
95031
|
+
function ctxCommand(cmd) {
|
|
95032
|
+
ctxMenu.value.show = false;
|
|
95033
|
+
inputText.value = cmd;
|
|
95034
|
+
send();
|
|
95035
|
+
}
|
|
94936
95036
|
async function send() {
|
|
94937
95037
|
const text2 = inputText.value.trim();
|
|
94938
95038
|
if (!text2) return;
|
|
@@ -95031,6 +95131,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95031
95131
|
const _component_el_icon = resolveComponent("el-icon");
|
|
95032
95132
|
const _component_el_button = resolveComponent("el-button");
|
|
95033
95133
|
const _component_Bottom = resolveComponent("Bottom");
|
|
95134
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
95034
95135
|
const _component_el_input = resolveComponent("el-input");
|
|
95035
95136
|
return openBlock(), createElementBlock("div", {
|
|
95036
95137
|
class: normalizeClass(["chat-panel", { "is-minimal": minimalMode.value }])
|
|
@@ -95039,7 +95140,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95039
95140
|
class: "message-list",
|
|
95040
95141
|
ref_key: "messageListRef",
|
|
95041
95142
|
ref: messageListRef,
|
|
95042
|
-
onScroll: onMessageScroll
|
|
95143
|
+
onScroll: onMessageScroll,
|
|
95144
|
+
onContextmenu: withModifiers(onContextMenu, ["prevent"])
|
|
95043
95145
|
}, [
|
|
95044
95146
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(chatStore).messages, (msg, idx) => {
|
|
95045
95147
|
return openBlock(), createElementBlock("div", {
|
|
@@ -95146,6 +95248,39 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95146
95248
|
])) : createCommentVNode("", true),
|
|
95147
95249
|
createBaseVNode("div", _hoisted_21$2, [
|
|
95148
95250
|
createVNode(StyleSelector, { onSelect: onStyleSelect }),
|
|
95251
|
+
createVNode(_component_el_tooltip, {
|
|
95252
|
+
content: "发送图片(也可以直接 Ctrl+V 粘贴截图)",
|
|
95253
|
+
placement: "top"
|
|
95254
|
+
}, {
|
|
95255
|
+
default: withCtx(() => [
|
|
95256
|
+
createVNode(_component_el_button, {
|
|
95257
|
+
class: "img-btn",
|
|
95258
|
+
circle: "",
|
|
95259
|
+
size: "small",
|
|
95260
|
+
loading: uploading.value,
|
|
95261
|
+
onClick: pickImage
|
|
95262
|
+
}, {
|
|
95263
|
+
default: withCtx(() => [
|
|
95264
|
+
createVNode(_component_el_icon, { size: 14 }, {
|
|
95265
|
+
default: withCtx(() => [
|
|
95266
|
+
createVNode(unref(picture_default))
|
|
95267
|
+
]),
|
|
95268
|
+
_: 1
|
|
95269
|
+
})
|
|
95270
|
+
]),
|
|
95271
|
+
_: 1
|
|
95272
|
+
}, 8, ["loading"])
|
|
95273
|
+
]),
|
|
95274
|
+
_: 1
|
|
95275
|
+
}),
|
|
95276
|
+
createBaseVNode("input", {
|
|
95277
|
+
ref_key: "fileInputRef",
|
|
95278
|
+
ref: fileInputRef,
|
|
95279
|
+
type: "file",
|
|
95280
|
+
accept: "image/png,image/jpeg,image/gif,image/bmp",
|
|
95281
|
+
style: { "display": "none" },
|
|
95282
|
+
onChange: onPickFile
|
|
95283
|
+
}, null, 544),
|
|
95149
95284
|
createVNode(_component_el_input, {
|
|
95150
95285
|
ref_key: "inputRef",
|
|
95151
95286
|
ref: inputRef,
|
|
@@ -95161,15 +95296,45 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
95161
95296
|
],
|
|
95162
95297
|
onCompositionstart: onCompositionStart2,
|
|
95163
95298
|
onCompositionend: onCompositionEnd2,
|
|
95299
|
+
onPaste,
|
|
95164
95300
|
class: "chat-input"
|
|
95165
95301
|
}, null, 8, ["modelValue"])
|
|
95166
95302
|
])
|
|
95167
|
-
])
|
|
95303
|
+
]),
|
|
95304
|
+
ctxMenu.value.show ? (openBlock(), createElementBlock("div", {
|
|
95305
|
+
key: 0,
|
|
95306
|
+
class: "ctx-menu",
|
|
95307
|
+
style: normalizeStyle({ left: ctxMenu.value.x + "px", top: ctxMenu.value.y + "px" }),
|
|
95308
|
+
onClick: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
95309
|
+
}, ["stop"]))
|
|
95310
|
+
}, [
|
|
95311
|
+
createBaseVNode("div", {
|
|
95312
|
+
class: normalizeClass(["ctx-item", { disabled: !ctxMenu.value.selection }]),
|
|
95313
|
+
onClick: ctxCopy
|
|
95314
|
+
}, "复制选中", 2),
|
|
95315
|
+
createBaseVNode("div", {
|
|
95316
|
+
class: normalizeClass(["ctx-item", { disabled: !ctxMenu.value.link }]),
|
|
95317
|
+
onClick: ctxOpenLink
|
|
95318
|
+
}, "打开链接", 2),
|
|
95319
|
+
_cache[5] || (_cache[5] = createBaseVNode("div", { class: "ctx-sep" }, null, -1)),
|
|
95320
|
+
createBaseVNode("div", {
|
|
95321
|
+
class: "ctx-item",
|
|
95322
|
+
onClick: _cache[1] || (_cache[1] = ($event) => ctxCommand("#help"))
|
|
95323
|
+
}, "需要帮助(#help)"),
|
|
95324
|
+
createBaseVNode("div", {
|
|
95325
|
+
class: "ctx-item",
|
|
95326
|
+
onClick: _cache[2] || (_cache[2] = ($event) => ctxCommand("#clean"))
|
|
95327
|
+
}, "清屏(#clean)"),
|
|
95328
|
+
createBaseVNode("div", {
|
|
95329
|
+
class: "ctx-item",
|
|
95330
|
+
onClick: _cache[3] || (_cache[3] = ($event) => ctxCommand("#exit"))
|
|
95331
|
+
}, "退出鱼塘(#exit)")
|
|
95332
|
+
], 4)) : createCommentVNode("", true)
|
|
95168
95333
|
], 2);
|
|
95169
95334
|
};
|
|
95170
95335
|
}
|
|
95171
95336
|
};
|
|
95172
|
-
const ChatPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
95337
|
+
const ChatPanel = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-45cd2a8e"]]);
|
|
95173
95338
|
const PALETTES = {
|
|
95174
95339
|
dark: {
|
|
95175
95340
|
/** iframe 背后的底色:页面加载中/空白时露出的颜色 */
|
|
@@ -99324,7 +99489,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99324
99489
|
key: 3,
|
|
99325
99490
|
class: "game-grid"
|
|
99326
99491
|
};
|
|
99327
|
-
const _hoisted_7$4 = ["src"];
|
|
99492
|
+
const _hoisted_7$4 = ["src", "onError"];
|
|
99328
99493
|
const _hoisted_8$4 = {
|
|
99329
99494
|
key: 1,
|
|
99330
99495
|
class: "icon-placeholder"
|
|
@@ -99344,6 +99509,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99344
99509
|
const categories = /* @__PURE__ */ ref([]);
|
|
99345
99510
|
const activeCategory = /* @__PURE__ */ ref(null);
|
|
99346
99511
|
const games = /* @__PURE__ */ ref([]);
|
|
99512
|
+
const failedIcons = /* @__PURE__ */ ref(/* @__PURE__ */ new Set());
|
|
99347
99513
|
const gradientPool = [
|
|
99348
99514
|
"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
99349
99515
|
"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",
|
|
@@ -99352,15 +99518,33 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99352
99518
|
"linear-gradient(135deg, #fa709a 0%, #fee140 100%)",
|
|
99353
99519
|
"linear-gradient(135deg, #30cfd0 0%, #330867 100%)"
|
|
99354
99520
|
];
|
|
99521
|
+
function iconKey(game) {
|
|
99522
|
+
var _a, _b;
|
|
99523
|
+
return String((_b = (_a = game.id) != null ? _a : game.gameName) != null ? _b : "");
|
|
99524
|
+
}
|
|
99525
|
+
function hasIcon(game) {
|
|
99526
|
+
return !!game.iconUrl && !failedIcons.value.has(iconKey(game));
|
|
99527
|
+
}
|
|
99528
|
+
function onIconError(game) {
|
|
99529
|
+
const next = new Set(failedIcons.value);
|
|
99530
|
+
next.add(iconKey(game));
|
|
99531
|
+
failedIcons.value = next;
|
|
99532
|
+
}
|
|
99355
99533
|
function iconStyle(game) {
|
|
99356
|
-
if (game
|
|
99534
|
+
if (hasIcon(game)) return {};
|
|
99357
99535
|
const hash = String(game.id || game.gameName || "").length;
|
|
99358
99536
|
return { background: gradientPool[hash % gradientPool.length] };
|
|
99359
99537
|
}
|
|
99360
99538
|
function placeholderText(game) {
|
|
99361
|
-
const name = game.gameNameZhCn || game.gameName || "";
|
|
99362
|
-
|
|
99363
|
-
return
|
|
99539
|
+
const name = String(game.gameNameZhCn || game.gameName || "?").trim();
|
|
99540
|
+
const chars = Array.from(name);
|
|
99541
|
+
if (chars.length <= 2) return chars.join(" ");
|
|
99542
|
+
if (/^[\x00-\x7F]+$/.test(name)) {
|
|
99543
|
+
const words = name.split(/[\s_\-]+/).filter(Boolean);
|
|
99544
|
+
const abbr = words.length > 1 ? words.map((w2) => w2[0]).join("") : name.slice(0, 2);
|
|
99545
|
+
return abbr.slice(0, 2).toUpperCase();
|
|
99546
|
+
}
|
|
99547
|
+
return chars.slice(0, 2).join("");
|
|
99364
99548
|
}
|
|
99365
99549
|
async function loadCategories() {
|
|
99366
99550
|
try {
|
|
@@ -99372,6 +99556,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99372
99556
|
}
|
|
99373
99557
|
async function loadGames() {
|
|
99374
99558
|
loading.value = true;
|
|
99559
|
+
failedIcons.value = /* @__PURE__ */ new Set();
|
|
99375
99560
|
try {
|
|
99376
99561
|
const params = { pageSize: 500, status: 1 };
|
|
99377
99562
|
if (activeCategory.value !== null) {
|
|
@@ -99419,11 +99604,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99419
99604
|
class: "game-icon",
|
|
99420
99605
|
style: normalizeStyle(iconStyle(game))
|
|
99421
99606
|
}, [
|
|
99422
|
-
game
|
|
99607
|
+
hasIcon(game) ? (openBlock(), createElementBlock("img", {
|
|
99423
99608
|
key: 0,
|
|
99424
99609
|
src: unref(resolveAssetUrl)(game.iconUrl),
|
|
99425
|
-
alt: "
|
|
99426
|
-
|
|
99610
|
+
alt: "",
|
|
99611
|
+
onError: ($event) => onIconError(game)
|
|
99612
|
+
}, null, 40, _hoisted_7$4)) : (openBlock(), createElementBlock("span", _hoisted_8$4, toDisplayString(placeholderText(game)), 1))
|
|
99427
99613
|
], 4),
|
|
99428
99614
|
createBaseVNode("div", _hoisted_9$4, toDisplayString(game.gameNameZhCn || game.gameName || "-"), 1),
|
|
99429
99615
|
game.description ? (openBlock(), createElementBlock("div", _hoisted_10$4, toDisplayString(game.description), 1)) : createCommentVNode("", true),
|
|
@@ -99439,7 +99625,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
99439
99625
|
};
|
|
99440
99626
|
}
|
|
99441
99627
|
};
|
|
99442
|
-
const GameHall = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
99628
|
+
const GameHall = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-adff3af6"]]);
|
|
99443
99629
|
const _hoisted_1$4 = { class: "game-panel" };
|
|
99444
99630
|
const _hoisted_2$4 = { class: "panel-header" };
|
|
99445
99631
|
const _hoisted_3$4 = {
|
package/package.json
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xechat-dsh",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "xechat side-panel chat client for the DeepSeek Harness Web UI: a dockable sidebar that keeps the XEChat pond conversation available while you work.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/chargeduck/xechat-dsh.git"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/chargeduck/xechat-dsh#readme",
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/chargeduck/xechat-dsh/issues"
|
|
13
|
-
},
|
|
14
|
-
"main": "./lib/index.js",
|
|
15
|
-
"exports": {
|
|
16
|
-
".": {
|
|
17
|
-
"default": "./lib/index.js"
|
|
18
|
-
},
|
|
19
|
-
"./client": "./lib/client.js",
|
|
20
|
-
"./package.json": "./package.json"
|
|
21
|
-
},
|
|
22
|
-
"dsh": {
|
|
23
|
-
"bundle": {
|
|
24
|
-
"patch": "./cordis.patch.yml"
|
|
25
|
-
},
|
|
26
|
-
"client": {
|
|
27
|
-
"platform": "web"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"lib",
|
|
32
|
-
"cordis.patch.yml",
|
|
33
|
-
"README.md",
|
|
34
|
-
"INSTALL.md",
|
|
35
|
-
"LICENSE",
|
|
36
|
-
"screenshots.json",
|
|
37
|
-
"install.sh",
|
|
38
|
-
"install.ps1",
|
|
39
|
-
"install.bat"
|
|
40
|
-
],
|
|
41
|
-
"keywords": [
|
|
42
|
-
"dsh",
|
|
43
|
-
"dsh-plugin",
|
|
44
|
-
"deepseek-harness",
|
|
45
|
-
"plugin",
|
|
46
|
-
"sidebar",
|
|
47
|
-
"chat",
|
|
48
|
-
"xechat"
|
|
49
|
-
],
|
|
50
|
-
"scripts": {
|
|
51
|
-
"dev": "vite",
|
|
52
|
-
"build:vite": "vite build",
|
|
53
|
-
"build:plugin": "tsdown -c tsdown.config.mjs",
|
|
54
|
-
"build": "vite build && tsdown -c tsdown.config.mjs",
|
|
55
|
-
"test": "node --experimental-strip-types --test tests/app-bundle.test.ts tests/browser-theme.test.ts tests/dock-size.test.ts tests/layout.test.ts tests/transport-session.test.ts tests/platform-fallback.test.ts tests/bundle.test.ts",
|
|
56
|
-
"verify:dock": "node scripts/verify-dock-states.mjs",
|
|
57
|
-
"verify:bundle": "node scripts/verify-client-bundle.mjs",
|
|
58
|
-
"preview": "vite preview"
|
|
59
|
-
},
|
|
60
|
-
"license": "MIT",
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=20",
|
|
63
|
-
"dsh": ">=0.2.0-rc.1"
|
|
64
|
-
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"react": "^18.2.0",
|
|
67
|
-
"react-dom": "^18.2.0"
|
|
68
|
-
},
|
|
69
|
-
"peerDependenciesMeta": {
|
|
70
|
-
"react": {
|
|
71
|
-
"optional": true
|
|
72
|
-
},
|
|
73
|
-
"react-dom": {
|
|
74
|
-
"optional": true
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@element-plus/icons-vue": "^2.3.1",
|
|
79
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
80
|
-
"@vitejs/plugin-vue": "^5.2.3",
|
|
81
|
-
"@vueuse/core": "^12.8.0",
|
|
82
|
-
"axios": "^1.19.0",
|
|
83
|
-
"element-plus": "^2.9.7",
|
|
84
|
-
"lunar-javascript": "^1.7.7",
|
|
85
|
-
"markdown-it": "^15.0.0",
|
|
86
|
-
"markdown-it-container": "^4.0.0",
|
|
87
|
-
"markdown-it-emoji": "^3.1.0",
|
|
88
|
-
"pinia": "^4.0.2",
|
|
89
|
-
"react": "^18.3.1",
|
|
90
|
-
"react-dom": "^18.3.1",
|
|
91
|
-
"sass": "^1.85.0",
|
|
92
|
-
"tsdown": "^0.22.14",
|
|
93
|
-
"unplugin-element-plus": "^0.9.0",
|
|
94
|
-
"vite": "^6.3.5",
|
|
95
|
-
"vue": "^3.5.13"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xechat-dsh",
|
|
3
|
+
"version": "0.2.6",
|
|
4
|
+
"description": "xechat side-panel chat client for the DeepSeek Harness Web UI: a dockable sidebar that keeps the XEChat pond conversation available while you work.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/chargeduck/xechat-dsh.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/chargeduck/xechat-dsh#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/chargeduck/xechat-dsh/issues"
|
|
13
|
+
},
|
|
14
|
+
"main": "./lib/index.js",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"default": "./lib/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./client": "./lib/client.js",
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"dsh": {
|
|
23
|
+
"bundle": {
|
|
24
|
+
"patch": "./cordis.patch.yml"
|
|
25
|
+
},
|
|
26
|
+
"client": {
|
|
27
|
+
"platform": "web"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"lib",
|
|
32
|
+
"cordis.patch.yml",
|
|
33
|
+
"README.md",
|
|
34
|
+
"INSTALL.md",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
"screenshots.json",
|
|
37
|
+
"install.sh",
|
|
38
|
+
"install.ps1",
|
|
39
|
+
"install.bat"
|
|
40
|
+
],
|
|
41
|
+
"keywords": [
|
|
42
|
+
"dsh",
|
|
43
|
+
"dsh-plugin",
|
|
44
|
+
"deepseek-harness",
|
|
45
|
+
"plugin",
|
|
46
|
+
"sidebar",
|
|
47
|
+
"chat",
|
|
48
|
+
"xechat"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"dev": "vite",
|
|
52
|
+
"build:vite": "vite build",
|
|
53
|
+
"build:plugin": "tsdown -c tsdown.config.mjs",
|
|
54
|
+
"build": "vite build && tsdown -c tsdown.config.mjs",
|
|
55
|
+
"test": "node --experimental-strip-types --test tests/app-bundle.test.ts tests/browser-theme.test.ts tests/dock-size.test.ts tests/layout.test.ts tests/transport-session.test.ts tests/platform-fallback.test.ts tests/bundle.test.ts",
|
|
56
|
+
"verify:dock": "node scripts/verify-dock-states.mjs",
|
|
57
|
+
"verify:bundle": "node scripts/verify-client-bundle.mjs",
|
|
58
|
+
"preview": "vite preview"
|
|
59
|
+
},
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=20",
|
|
63
|
+
"dsh": ">=0.2.0-rc.1"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"react": "^18.2.0",
|
|
67
|
+
"react-dom": "^18.2.0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"react": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"react-dom": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
79
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
80
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
81
|
+
"@vueuse/core": "^12.8.0",
|
|
82
|
+
"axios": "^1.19.0",
|
|
83
|
+
"element-plus": "^2.9.7",
|
|
84
|
+
"lunar-javascript": "^1.7.7",
|
|
85
|
+
"markdown-it": "^15.0.0",
|
|
86
|
+
"markdown-it-container": "^4.0.0",
|
|
87
|
+
"markdown-it-emoji": "^3.1.0",
|
|
88
|
+
"pinia": "^4.0.2",
|
|
89
|
+
"react": "^18.3.1",
|
|
90
|
+
"react-dom": "^18.3.1",
|
|
91
|
+
"sass": "^1.85.0",
|
|
92
|
+
"tsdown": "^0.22.14",
|
|
93
|
+
"unplugin-element-plus": "^0.9.0",
|
|
94
|
+
"vite": "^6.3.5",
|
|
95
|
+
"vue": "^3.5.13"
|
|
96
|
+
}
|
|
97
|
+
}
|