bilitoolkit-ui 0.1.0 → 0.1.2
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/bilitoolkit-ui.css +1 -1
- package/dist/index.d.ts +43 -4
- package/dist/index.js +1119 -986
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { defaultAppThemeState as
|
|
4
|
-
import { setupToolkitApi as
|
|
5
|
-
import
|
|
1
|
+
import { reactive as xe, watch as J, ref as E, onMounted as ee, onUnmounted as re, computed as C, toValue as Z, shallowRef as $t, useTemplateRef as te, onBeforeUnmount as Ze, defineComponent as S, withDirectives as G, openBlock as r, createElementBlock as f, createElementVNode as a, vShow as ce, toDisplayString as m, createApp as De, renderSlot as P, normalizeClass as W, createVNode as v, createCommentVNode as $, useModel as ye, createBlock as b, withCtx as d, unref as h, createTextVNode as k, mergeModels as X, Fragment as L, renderList as q, normalizeStyle as fe, toRaw as zt, render as _e, useCssVars as Dt, mergeProps as Y, normalizeProps as It, guardReactiveProps as Pt, withModifiers as Ee, nextTick as ue, useSlots as We, useAttrs as Vt, h as Mt } from "vue";
|
|
2
|
+
import { defineStore as Ge, storeToRefs as Qt } from "pinia";
|
|
3
|
+
import { defaultAppThemeState as Je, APP_THEME_STATE as Le, UI_DB_KEYS as Fe } from "./common.js";
|
|
4
|
+
import { setupToolkitApi as Tt } from "bilitoolkit-runtime";
|
|
5
|
+
import Ke from "lodash-es/cloneDeep";
|
|
6
6
|
import "element-plus/theme-chalk/dark/css-vars.css";
|
|
7
7
|
import "element-plus/theme-chalk/el-loading.css";
|
|
8
8
|
import "element-plus/theme-chalk/el-message.css";
|
|
9
9
|
import "element-plus/theme-chalk/el-message-box.css";
|
|
10
|
-
import { ElMessageBox as
|
|
11
|
-
import { BiliApiBusinessError as
|
|
12
|
-
import { isCanceledError as
|
|
13
|
-
import { AppError as
|
|
14
|
-
import {
|
|
10
|
+
import { ElMessageBox as Ht, ElMessage as Rt } from "element-plus";
|
|
11
|
+
import { BiliApiBusinessError as Lt, BiliClient as Ft, audioQualityMap as Ut, videoQualityMap as Ot, videoCodecIdMap as qt, parseVideoZoneV1 as jt, parseVideoZoneV2 as Nt } from "@ybgnb/bili-api";
|
|
12
|
+
import { isCanceledError as Zt, getErrorMessage as Wt, createAbortError as Ye, serializeError as Gt, getFormattedDateTime as Jt, unwrapBizResult as Kt, inArray as Yt, formatFileSizeFromKB as Xt, formatDuration as Ie, formatTime as he } from "@ybgnb/utils";
|
|
13
|
+
import { AppError as es, downloadTaskStatusMap as Xe, downloadResourceNameMap as ts } from "bilitoolkit-types";
|
|
14
|
+
import { ElLoadingDirective as Pe, ElDialog as de, ElButton as K, ElRow as ss, ElCol as ls, ElInput as et, ElProgress as tt, ElIcon as Ve, ElTooltip as Me, ElPopconfirm as ns, ElMenuItem as st, ElSubMenu as as, ElMenu as os, ElPopover as is, ElDropdown as cs, ElDropdownMenu as rs, ElDropdownItem as us, ElTable as ds, ElTableColumn as vs, ElEmpty as lt, ElPagination as nt, ElCheckbox as ps, ElTag as at, ElText as ms, ElImage as ot, ElDescriptions as gs, ElDescriptionsItem as fs, ElRadioGroup as _s, ElRadioButton as hs } from "element-plus/es";
|
|
15
15
|
import "element-plus/es/components/base/style/css";
|
|
16
|
+
import "element-plus/es/components/loading/style/css";
|
|
16
17
|
import "element-plus/es/components/dialog/style/css";
|
|
17
18
|
import "element-plus/es/components/button/style/css";
|
|
18
|
-
import "element-plus/es/components/loading/style/css";
|
|
19
19
|
import "element-plus/es/components/row/style/css";
|
|
20
20
|
import "element-plus/es/components/col/style/css";
|
|
21
21
|
import "element-plus/es/components/input/style/css";
|
|
@@ -42,69 +42,69 @@ import "element-plus/es/components/image/style/css";
|
|
|
42
42
|
import "element-plus/es/components/text/style/css";
|
|
43
43
|
import "element-plus/es/components/radio-group/style/css";
|
|
44
44
|
import "element-plus/es/components/radio-button/style/css";
|
|
45
|
-
const T =
|
|
46
|
-
var
|
|
45
|
+
const T = Tt();
|
|
46
|
+
var R = (e, l, s, t = "srgb", o) => `color-mix(in ${t}, ${e} ${s}%, ${l} ${100 - s}%)`, it = (e) => {
|
|
47
47
|
let l = parseInt(e.slice(1, 3), 16), s = parseInt(e.slice(3, 5), 16), t = parseInt(e.slice(5, 7), 16);
|
|
48
48
|
return { r: l, g: s, b: t };
|
|
49
|
-
},
|
|
49
|
+
}, ws = (e, l) => {
|
|
50
50
|
document.documentElement.style.setProperty(e, l);
|
|
51
51
|
};
|
|
52
|
-
const
|
|
53
|
-
const { r: t, g:
|
|
54
|
-
for (let
|
|
55
|
-
const c =
|
|
56
|
-
l[`${s}-transparent-${
|
|
52
|
+
const Ue = "#ffffff", Oe = "#000000", Ae = (e, l, s) => {
|
|
53
|
+
const { r: t, g: o, b: n } = it(e);
|
|
54
|
+
for (let i = 2; i < 100; ) {
|
|
55
|
+
const c = i / 100;
|
|
56
|
+
l[`${s}-transparent-${i}`] = `rgba(${t}, ${o}, ${n}, ${c})`, i >= 10 ? i += 5 : i++;
|
|
57
57
|
}
|
|
58
58
|
}, Qe = (e, l, s) => {
|
|
59
59
|
const t = {};
|
|
60
60
|
s ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
61
|
-
const
|
|
62
|
-
t["--app-primary-color"] = e, t["--el-color-primary"] = e, t["--el-color-primary-light-1"] =
|
|
63
|
-
const { r:
|
|
64
|
-
t["--app-bg-color-overlay"] = `rgba(${
|
|
65
|
-
for (const
|
|
66
|
-
|
|
67
|
-
},
|
|
61
|
+
const o = t["--app-color-foreground"] = s ? Ue : Oe, n = t["--app-color-background"] = s ? Oe : Ue;
|
|
62
|
+
t["--app-primary-color"] = e, t["--el-color-primary"] = e, t["--el-color-primary-light-1"] = R(e, n, 90), t["--el-color-primary-light-2"] = R(e, n, 80), t["--el-color-primary-light-3"] = R(e, n, 70), t["--el-color-primary-light-4"] = R(e, n, 60), t["--el-color-primary-light-5"] = R(e, n, 50), t["--el-color-primary-light-6"] = R(e, n, 40), t["--el-color-primary-light-7"] = R(e, n, 30), t["--el-color-primary-light-8"] = R(e, n, 20), t["--el-color-primary-light-9"] = R(e, n, 12), t["--el-color-primary-dark-1"] = R(e, o, 90), t["--el-color-primary-dark-2"] = R(e, o, 80), t["--el-color-primary-dark-3"] = R(e, o, 70), t["--el-color-primary-dark-4"] = R(e, o, 60), t["--el-color-primary-dark-5"] = R(e, o, 50), t["--el-color-primary-dark-6"] = R(e, o, 40), t["--el-color-primary-dark-7"] = R(e, o, 30), t["--el-color-primary-dark-8"] = R(e, o, 20), t["--el-color-primary-dark-9"] = R(e, o, 12);
|
|
63
|
+
const { r: i, g: c, b: u } = it(e);
|
|
64
|
+
t["--app-bg-color-overlay"] = `rgba(${i}, ${c}, ${u}, 0.05)`, t["--app-bg-color-overlay-hover"] = `rgba(${i}, ${c}, ${u}, 0.15)`, t["--app-bg-color-page"] = s ? "var(--el-fill-color-blank)" : "transparent", t["--app-bg-color-menus"] = "var(--app-bg-color-page)", s ? t["--app-text-shadow"] = " 0px 1px 2px rgba(255, 255, 255, .4)" : t["--app-text-shadow"] = " 0px 1px 2px rgba(0, 0, 0, .4)", Ae(e, t, "--app-color-primary"), Ae(n, t, "--app-color-background"), Ae(o, t, "--app-color-foreground");
|
|
65
|
+
for (const p in t)
|
|
66
|
+
ws(p, t[p]);
|
|
67
|
+
}, Te = async (e) => {
|
|
68
68
|
const l = e ?? (await T.system.getAppThemeState()).themeMode;
|
|
69
69
|
return l === "system" ? await T.system.shouldUseDarkColors() : l === "dark";
|
|
70
|
-
},
|
|
71
|
-
const l = e ?? await T.system.getAppThemeState(), s = await
|
|
70
|
+
}, we = async (e) => {
|
|
71
|
+
const l = e ?? await T.system.getAppThemeState(), s = await Te(l.themeMode);
|
|
72
72
|
Qe(l.primaryColor, l.themeMode, s);
|
|
73
|
-
},
|
|
74
|
-
await
|
|
75
|
-
},
|
|
76
|
-
await
|
|
77
|
-
},
|
|
78
|
-
const s =
|
|
73
|
+
}, Eo = async () => {
|
|
74
|
+
await we(void 0);
|
|
75
|
+
}, Bo = async () => {
|
|
76
|
+
await we(Je);
|
|
77
|
+
}, So = async (e) => {
|
|
78
|
+
const s = ke().state, t = await Te(e);
|
|
79
79
|
s.dark = t, s.themeMode = e, Qe(s.primaryColor, e, t);
|
|
80
|
-
},
|
|
81
|
-
const s =
|
|
80
|
+
}, $o = async (e) => {
|
|
81
|
+
const s = ke().state, t = await Te(s.themeMode);
|
|
82
82
|
s.primaryColor = e, Qe(e, s.themeMode, t);
|
|
83
|
-
},
|
|
83
|
+
}, ke = Ge(
|
|
84
84
|
"biliToolkit-ui-theme",
|
|
85
85
|
() => {
|
|
86
|
-
const e =
|
|
86
|
+
const e = xe(Je);
|
|
87
87
|
let l = !1;
|
|
88
|
-
const s = async (n,
|
|
88
|
+
const s = async (n, i) => {
|
|
89
89
|
const c = await window.toolkitApi.system.getAppThemeState();
|
|
90
|
-
Object.assign(e, c), await
|
|
90
|
+
Object.assign(e, c), await we(c), n && i && (l = !0, J(
|
|
91
91
|
() => e,
|
|
92
92
|
(u) => {
|
|
93
|
-
const
|
|
94
|
-
window.toolkitApi.db.write(n,
|
|
95
|
-
await window.toolkitApi.event.emit(
|
|
93
|
+
const p = Ke(u);
|
|
94
|
+
window.toolkitApi.db.write(n, p).then(async () => {
|
|
95
|
+
await window.toolkitApi.event.emit(i, p);
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
98
|
{ deep: !0 }
|
|
99
99
|
));
|
|
100
100
|
};
|
|
101
101
|
window.toolkitApi.event.onUpdateAppTheme((n) => {
|
|
102
|
-
l || Object.assign(e, n),
|
|
102
|
+
l || Object.assign(e, n), we(n).then();
|
|
103
103
|
}).catch();
|
|
104
104
|
const t = (n) => (e.primaryColor = n, e.primaryColor);
|
|
105
105
|
return { init: s, state: e, switchThemeColor: () => {
|
|
106
|
-
e.primaryColorIndex = (e.primaryColorIndex + 1) %
|
|
107
|
-
const n =
|
|
106
|
+
e.primaryColorIndex = (e.primaryColorIndex + 1) % Le.primaryColors.length;
|
|
107
|
+
const n = Le.primaryColors[e.primaryColorIndex];
|
|
108
108
|
return t(n);
|
|
109
109
|
}, setPrimaryColor: t };
|
|
110
110
|
},
|
|
@@ -113,20 +113,20 @@ const Re = "#ffffff", Fe = "#000000", ke = (e, l, s) => {
|
|
|
113
113
|
persist: !1
|
|
114
114
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
115
115
|
}
|
|
116
|
-
),
|
|
117
|
-
const e =
|
|
116
|
+
), He = Ge("biliToolkit-ui-selected-user", () => {
|
|
117
|
+
const e = E(null), l = async () => {
|
|
118
118
|
try {
|
|
119
|
-
e.value = (await window.toolkitApi.db.init(
|
|
119
|
+
e.value = (await window.toolkitApi.db.init(Fe.UI_SELECTED_USER))?.user ?? null;
|
|
120
120
|
} catch {
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
|
-
return
|
|
123
|
+
return J(
|
|
124
124
|
() => e.value,
|
|
125
125
|
async (n) => {
|
|
126
|
-
let
|
|
127
|
-
await window.toolkitApi.db.write(
|
|
128
|
-
user:
|
|
129
|
-
}),
|
|
126
|
+
let i = n != null ? Ke(n) : null;
|
|
127
|
+
await window.toolkitApi.db.write(Fe.UI_SELECTED_USER, {
|
|
128
|
+
user: i
|
|
129
|
+
}), i && await window.toolkitApi.user.switchCurrUser(i);
|
|
130
130
|
},
|
|
131
131
|
{ deep: !0 }
|
|
132
132
|
), { init: l, user: e, deleteUser: () => {
|
|
@@ -137,56 +137,56 @@ const Re = "#ffffff", Fe = "#000000", ke = (e, l, s) => {
|
|
|
137
137
|
if (e.value == null)
|
|
138
138
|
throw new Error("请先登录");
|
|
139
139
|
} };
|
|
140
|
-
}),
|
|
140
|
+
}), zo = async (e, l) => (Promise.resolve({ }), Promise.resolve({ }), Promise.resolve({ }), await ke(e).init(l?.appThemeDBName, l?.appThemeUpdateEvent), await He(e).init(), {
|
|
141
141
|
install(s) {
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
function
|
|
144
|
+
function ys(e) {
|
|
145
145
|
T.system.saveLog({
|
|
146
146
|
level: "error",
|
|
147
|
-
data: [JSON.stringify(
|
|
147
|
+
data: [JSON.stringify(Gt(e))]
|
|
148
148
|
}).catch();
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function qe(e, l) {
|
|
151
151
|
return e == null ? !1 : e instanceof l || typeof e == "object" && "name" in e && e.name === l.name;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
if (!
|
|
153
|
+
const Do = (e) => {
|
|
154
|
+
if (!Zt(e))
|
|
155
155
|
if (e) {
|
|
156
156
|
console.error(e);
|
|
157
157
|
const l = () => {
|
|
158
|
-
T && T.system &&
|
|
158
|
+
T && T.system && ys(e);
|
|
159
159
|
};
|
|
160
|
-
|
|
160
|
+
qe(e, es) ? ie(`${e.message}`) : qe(e, Lt) ? (ie(`${e.message} (${e.responseCode})`), l()) : (ie(Wt(e)), l());
|
|
161
161
|
} else
|
|
162
|
-
|
|
162
|
+
se({
|
|
163
163
|
message: "未知错误",
|
|
164
164
|
type: "error"
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
function
|
|
167
|
+
function se(e) {
|
|
168
168
|
const l = {
|
|
169
169
|
message: "",
|
|
170
170
|
type: "success",
|
|
171
171
|
duration: 3e3
|
|
172
172
|
};
|
|
173
|
-
typeof e == "string" ? l.message = e : Object.assign(l, e),
|
|
173
|
+
typeof e == "string" ? l.message = e : Object.assign(l, e), Rt(l);
|
|
174
174
|
}
|
|
175
175
|
function ie(e) {
|
|
176
|
-
|
|
176
|
+
se({
|
|
177
177
|
message: e,
|
|
178
178
|
type: "error"
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
181
|
+
function Io(e) {
|
|
182
|
+
se({
|
|
183
183
|
message: e,
|
|
184
184
|
type: "warning"
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return new Promise((t,
|
|
189
|
-
|
|
187
|
+
function ks(e, l = "提示", s = {}) {
|
|
188
|
+
return new Promise((t, o) => {
|
|
189
|
+
Ht.confirm(
|
|
190
190
|
e,
|
|
191
191
|
l,
|
|
192
192
|
Object.assign(
|
|
@@ -202,164 +202,288 @@ function ws(e, l = "提示", s = {}) {
|
|
|
202
202
|
).then(() => {
|
|
203
203
|
t();
|
|
204
204
|
}).catch(() => {
|
|
205
|
-
|
|
205
|
+
o(Ye());
|
|
206
206
|
});
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
async function
|
|
209
|
+
async function Po(e) {
|
|
210
210
|
for (const [l, s, t] of e)
|
|
211
|
-
await
|
|
211
|
+
await ks(l, s, t);
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
const l = e?.loading ??
|
|
213
|
+
const Re = (e) => {
|
|
214
|
+
const l = e?.loading ?? E(!1);
|
|
215
215
|
let s = null;
|
|
216
|
-
const t =
|
|
216
|
+
const t = E(!1);
|
|
217
217
|
return {
|
|
218
218
|
loading: l,
|
|
219
219
|
hasLoaded: t,
|
|
220
|
-
loadingData: (n) => async (...
|
|
220
|
+
loadingData: (n) => async (...i) => (e?.singleFlight && l.value && s || (s = (async () => {
|
|
221
221
|
l.value = !0;
|
|
222
222
|
try {
|
|
223
|
-
return typeof n == "function" ? await n(...
|
|
223
|
+
return typeof n == "function" ? await n(...i) : await n;
|
|
224
224
|
} finally {
|
|
225
225
|
l.value = !1, t.value = !0, s = null;
|
|
226
226
|
}
|
|
227
227
|
})()), s)
|
|
228
228
|
};
|
|
229
|
-
},
|
|
230
|
-
const { loading: s, loadingData: t } =
|
|
229
|
+
}, Vo = (e, l = 3e3) => {
|
|
230
|
+
const { loading: s, loadingData: t } = Re({ singleFlight: !0 }), o = t(e);
|
|
231
231
|
let n = null;
|
|
232
|
-
return
|
|
233
|
-
n = setInterval(
|
|
234
|
-
}),
|
|
232
|
+
return ee(async () => {
|
|
233
|
+
n = setInterval(o, l);
|
|
234
|
+
}), re(() => {
|
|
235
235
|
n && (clearInterval(n), n = null);
|
|
236
|
-
}), { loading: s, refreshTableData:
|
|
237
|
-
n && (clearInterval(n), n = null),
|
|
236
|
+
}), { loading: s, refreshTableData: o, reset: () => {
|
|
237
|
+
n && (clearInterval(n), n = null), o(), n = setInterval(o, l);
|
|
238
238
|
} };
|
|
239
|
-
},
|
|
240
|
-
const { fetchPage: l, pageParams: s, queryParams: t, autoLoad:
|
|
241
|
-
const D =
|
|
239
|
+
}, ct = (e) => {
|
|
240
|
+
const { fetchPage: l, pageParams: s, queryParams: t, autoLoad: o, onLoaded: n } = e, i = C(() => {
|
|
241
|
+
const D = Z(s);
|
|
242
242
|
return {
|
|
243
243
|
pageNum: D?.pageNum ?? 1,
|
|
244
244
|
pageSize: D?.pageSize ?? 20,
|
|
245
245
|
totalPages: 0,
|
|
246
246
|
total: 0
|
|
247
247
|
};
|
|
248
|
-
}), c =
|
|
249
|
-
const D =
|
|
248
|
+
}), c = E(i.value), u = E([]), { loading: p, loadingData: g } = Re(), w = g(async () => {
|
|
249
|
+
const D = Z(t), M = {
|
|
250
250
|
pageNum: c.value.pageNum,
|
|
251
251
|
pageSize: c.value.pageSize
|
|
252
|
-
}, { data: F, ...
|
|
253
|
-
u.value = F, c.value =
|
|
254
|
-
}),
|
|
255
|
-
const { pageSize: D, ...
|
|
256
|
-
Object.assign(c.value,
|
|
257
|
-
},
|
|
258
|
-
|
|
252
|
+
}, { data: F, ...I } = D ? await l(M, D) : await l(M);
|
|
253
|
+
u.value = F, c.value = I, n?.();
|
|
254
|
+
}), _ = () => {
|
|
255
|
+
const { pageSize: D, ...M } = i.value;
|
|
256
|
+
Object.assign(c.value, M);
|
|
257
|
+
}, A = async () => {
|
|
258
|
+
_(), await w();
|
|
259
259
|
}, x = async () => {
|
|
260
260
|
c.value.pageNum = 1, await w();
|
|
261
261
|
}, V = async () => {
|
|
262
262
|
await x();
|
|
263
|
-
},
|
|
263
|
+
}, B = async () => {
|
|
264
264
|
await w();
|
|
265
265
|
};
|
|
266
|
-
return
|
|
267
|
-
await
|
|
266
|
+
return o && ee(async () => {
|
|
267
|
+
await A();
|
|
268
268
|
}), {
|
|
269
269
|
pageData: c,
|
|
270
270
|
tableData: u,
|
|
271
|
-
loading:
|
|
271
|
+
loading: p,
|
|
272
272
|
refresh: w,
|
|
273
|
-
resetAndRefresh:
|
|
273
|
+
resetAndRefresh: A,
|
|
274
274
|
resetPageAndRefresh: x,
|
|
275
275
|
handleSizeChange: V,
|
|
276
|
-
handleCurrPageChange:
|
|
276
|
+
handleCurrPageChange: B
|
|
277
277
|
};
|
|
278
|
-
},
|
|
279
|
-
const t =
|
|
280
|
-
function
|
|
281
|
-
return t.value.includes(l(
|
|
278
|
+
}, Mo = (e, l, s = []) => {
|
|
279
|
+
const t = $t([...s]);
|
|
280
|
+
function o(_) {
|
|
281
|
+
return t.value.includes(l(_));
|
|
282
282
|
}
|
|
283
|
-
function n(
|
|
284
|
-
const
|
|
285
|
-
|
|
283
|
+
function n(_) {
|
|
284
|
+
const A = l(_);
|
|
285
|
+
o(_) ? t.value = t.value.filter((x) => x !== A) : t.value = [...t.value, A];
|
|
286
286
|
}
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
return
|
|
287
|
+
const i = C(() => {
|
|
288
|
+
const _ = Z(e);
|
|
289
|
+
return _.length > 0 && _.every((A) => t.value.includes(l(A)));
|
|
290
290
|
});
|
|
291
291
|
function c() {
|
|
292
|
-
|
|
292
|
+
i.value ? t.value = [] : t.value = Z(e).map(l);
|
|
293
293
|
}
|
|
294
294
|
function u() {
|
|
295
|
-
return
|
|
295
|
+
return Z(e).filter((_) => t.value.includes(l(_)));
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
const
|
|
299
|
-
t.value = t.value.filter((
|
|
297
|
+
function p() {
|
|
298
|
+
const _ = new Set(Z(e).map(l));
|
|
299
|
+
t.value = t.value.filter((A) => _.has(A));
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function g() {
|
|
302
302
|
t.value = [];
|
|
303
303
|
}
|
|
304
|
-
function w(
|
|
305
|
-
t.value = [...
|
|
304
|
+
function w(_) {
|
|
305
|
+
t.value = [..._];
|
|
306
306
|
}
|
|
307
307
|
return {
|
|
308
308
|
selectedIds: t,
|
|
309
|
-
isSelected:
|
|
309
|
+
isSelected: o,
|
|
310
310
|
toggleSelect: n,
|
|
311
|
-
isAllSelected:
|
|
311
|
+
isAllSelected: i,
|
|
312
312
|
toggleAll: c,
|
|
313
313
|
getSelectedData: u,
|
|
314
|
-
cleanupSelected:
|
|
315
|
-
clearSelected:
|
|
314
|
+
cleanupSelected: p,
|
|
315
|
+
clearSelected: g,
|
|
316
316
|
select: w
|
|
317
317
|
};
|
|
318
|
-
},
|
|
319
|
-
const l =
|
|
318
|
+
}, bs = (e) => {
|
|
319
|
+
const l = te(e), s = E(0), t = () => {
|
|
320
320
|
l.value?.clientHeight && (s.value = l.value.clientHeight);
|
|
321
321
|
};
|
|
322
|
-
let
|
|
323
|
-
return
|
|
324
|
-
l.value && (t(),
|
|
322
|
+
let o, n = 0;
|
|
323
|
+
return ee(() => {
|
|
324
|
+
l.value && (t(), o = new ResizeObserver(() => {
|
|
325
325
|
cancelAnimationFrame(n), n = requestAnimationFrame(t);
|
|
326
|
-
}),
|
|
327
|
-
}),
|
|
328
|
-
|
|
326
|
+
}), o.observe(l.value));
|
|
327
|
+
}), re(() => {
|
|
328
|
+
o?.disconnect(), cancelAnimationFrame(n);
|
|
329
329
|
}), {
|
|
330
330
|
elementRef: l,
|
|
331
331
|
height: s,
|
|
332
332
|
updateHeight: t
|
|
333
333
|
};
|
|
334
|
-
}
|
|
334
|
+
};
|
|
335
|
+
function Qo(e) {
|
|
336
|
+
const l = E(!1), s = E(!1), t = E(!1);
|
|
337
|
+
let o = null, n = null;
|
|
338
|
+
const i = () => {
|
|
339
|
+
const c = Z(e);
|
|
340
|
+
if (!c) {
|
|
341
|
+
l.value = !1, s.value = !1, t.value = !1;
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
l.value = c.scrollWidth > c.clientWidth, s.value = c.scrollHeight > c.clientHeight, t.value = l.value || s.value;
|
|
345
|
+
};
|
|
346
|
+
return J(
|
|
347
|
+
() => Z(e),
|
|
348
|
+
(c) => {
|
|
349
|
+
o?.disconnect(), n?.disconnect(), c && (i(), o = new ResizeObserver(() => {
|
|
350
|
+
i();
|
|
351
|
+
}), o.observe(c), n = new MutationObserver(() => {
|
|
352
|
+
i();
|
|
353
|
+
}), n.observe(c, {
|
|
354
|
+
childList: !0,
|
|
355
|
+
subtree: !0,
|
|
356
|
+
characterData: !0
|
|
357
|
+
}));
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
immediate: !0
|
|
361
|
+
}
|
|
362
|
+
), Ze(() => {
|
|
363
|
+
o?.disconnect(), n?.disconnect();
|
|
364
|
+
}), {
|
|
365
|
+
hasHorizontalScrollbar: l,
|
|
366
|
+
hasVerticalScrollbar: s,
|
|
367
|
+
hasScrollbar: t,
|
|
368
|
+
checkScrollbar: i
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
const As = { class: "loading-mask el-overlay" }, Cs = { class: "loading-content" }, xs = { class: "loading-spinner" }, Es = { class: "loading-text" }, Bs = /* @__PURE__ */ S({
|
|
372
|
+
__name: "LoadingDialog",
|
|
373
|
+
setup(e, { expose: l }) {
|
|
374
|
+
const s = E(!1), t = E(""), o = E(!1);
|
|
375
|
+
let n;
|
|
376
|
+
const i = (g = {}) => {
|
|
377
|
+
typeof g == "string" ? t.value = g || "加载中" : (t.value = g.message ?? "加载中", o.value = g.showCancel ?? !1, n = g.onCancel, g?.autoCloseDelay && setTimeout(() => {
|
|
378
|
+
u();
|
|
379
|
+
}, g?.autoCloseDelay)), s.value = !0;
|
|
380
|
+
}, c = (g) => {
|
|
381
|
+
t.value = g;
|
|
382
|
+
}, u = () => {
|
|
383
|
+
s.value = !1;
|
|
384
|
+
}, p = async () => {
|
|
385
|
+
await n?.(), u();
|
|
386
|
+
};
|
|
387
|
+
return l({
|
|
388
|
+
show: i,
|
|
389
|
+
update: c,
|
|
390
|
+
close: u
|
|
391
|
+
}), (g, w) => {
|
|
392
|
+
const _ = Pe;
|
|
393
|
+
return G((r(), f("div", As, [
|
|
394
|
+
a("div", Cs, [
|
|
395
|
+
G(a("div", {
|
|
396
|
+
class: "options-close-btn",
|
|
397
|
+
onClick: p
|
|
398
|
+
}, null, 512), [
|
|
399
|
+
[ce, o.value]
|
|
400
|
+
]),
|
|
401
|
+
G(a("div", xs, null, 512), [
|
|
402
|
+
[_, !0]
|
|
403
|
+
]),
|
|
404
|
+
a("div", Es, m(t.value), 1)
|
|
405
|
+
])
|
|
406
|
+
], 512)), [
|
|
407
|
+
[ce, s.value]
|
|
408
|
+
]);
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
}), H = (e, l) => {
|
|
412
|
+
const s = e.__vccOpts || e;
|
|
413
|
+
for (const [t, o] of l)
|
|
414
|
+
s[t] = o;
|
|
415
|
+
return s;
|
|
416
|
+
}, Ss = /* @__PURE__ */ H(Bs, [["__scopeId", "data-v-3a3348da"]]);
|
|
417
|
+
let me = null;
|
|
418
|
+
function Ce() {
|
|
419
|
+
if (me) return me;
|
|
420
|
+
const e = document.createElement("div");
|
|
421
|
+
return document.body.appendChild(e), me = De(Ss).mount(e), me;
|
|
422
|
+
}
|
|
423
|
+
const je = {
|
|
424
|
+
show(e) {
|
|
425
|
+
Ce().show(e);
|
|
426
|
+
},
|
|
427
|
+
update(e) {
|
|
428
|
+
Ce().update(e);
|
|
429
|
+
},
|
|
430
|
+
close() {
|
|
431
|
+
Ce().close();
|
|
432
|
+
}
|
|
433
|
+
}, To = (e, l) => {
|
|
434
|
+
const s = l?.loading ?? E(!1), t = E(!1), o = He();
|
|
435
|
+
return {
|
|
436
|
+
loading: s,
|
|
437
|
+
execTask: async (...i) => {
|
|
438
|
+
try {
|
|
439
|
+
s.value = !0, o.assertLoggedIn();
|
|
440
|
+
const c = new AbortController();
|
|
441
|
+
return je.show({
|
|
442
|
+
message: l?.initMsg ?? "加载中",
|
|
443
|
+
showCancel: !l?.disableCancel,
|
|
444
|
+
onCancel: () => c.abort()
|
|
445
|
+
}), await e(
|
|
446
|
+
{
|
|
447
|
+
signal: c.signal,
|
|
448
|
+
user: o.user
|
|
449
|
+
},
|
|
450
|
+
...i
|
|
451
|
+
);
|
|
452
|
+
} finally {
|
|
453
|
+
je.close(), s.value = !1;
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
isAborted: t
|
|
457
|
+
};
|
|
458
|
+
}, $s = { class: "setting-group" }, zs = { class: "setting-group__name" }, Ds = { class: "setting-group__list" }, Ho = /* @__PURE__ */ S({
|
|
335
459
|
__name: "SettingGroup",
|
|
336
460
|
props: {
|
|
337
461
|
name: {}
|
|
338
462
|
},
|
|
339
463
|
setup(e) {
|
|
340
464
|
const l = e;
|
|
341
|
-
return (s, t) => (r(),
|
|
342
|
-
a("div",
|
|
343
|
-
a("div",
|
|
344
|
-
|
|
465
|
+
return (s, t) => (r(), f("div", $s, [
|
|
466
|
+
a("div", zs, m(l.name), 1),
|
|
467
|
+
a("div", Ds, [
|
|
468
|
+
P(s.$slots, "default")
|
|
345
469
|
])
|
|
346
470
|
]));
|
|
347
471
|
}
|
|
348
|
-
}), N = /* @__PURE__ */
|
|
472
|
+
}), N = /* @__PURE__ */ S({
|
|
349
473
|
__name: "AppIcon",
|
|
350
474
|
props: {
|
|
351
475
|
icon: {}
|
|
352
476
|
},
|
|
353
477
|
setup(e) {
|
|
354
|
-
const l = e, s =
|
|
355
|
-
return (
|
|
478
|
+
const l = e, s = ke(), t = C(() => s.state.dark ? `ri-${l.icon}-fill` : `ri-${l.icon}-line`);
|
|
479
|
+
return (o, n) => (r(), f("i", {
|
|
356
480
|
class: W([t.value, "icon-font"])
|
|
357
481
|
}, null, 2));
|
|
358
482
|
}
|
|
359
|
-
}),
|
|
483
|
+
}), Is = { class: "setting-item" }, Ps = { class: "setting-item__content" }, Vs = { class: "setting-item__content__title" }, Ms = {
|
|
360
484
|
key: 0,
|
|
361
485
|
class: "setting-item__content__desc"
|
|
362
|
-
},
|
|
486
|
+
}, Qs = { class: "setting-item__options" }, Ts = /* @__PURE__ */ S({
|
|
363
487
|
__name: "SettingItem",
|
|
364
488
|
props: {
|
|
365
489
|
title: {},
|
|
@@ -367,43 +491,38 @@ const Te = (e) => {
|
|
|
367
491
|
iconClass: {}
|
|
368
492
|
},
|
|
369
493
|
setup(e) {
|
|
370
|
-
const l = e, s =
|
|
371
|
-
return (t,
|
|
494
|
+
const l = e, s = E("equalizer-2");
|
|
495
|
+
return (t, o) => {
|
|
372
496
|
const n = N;
|
|
373
|
-
return r(),
|
|
497
|
+
return r(), f("div", Is, [
|
|
374
498
|
v(n, {
|
|
375
499
|
class: "setting-item__icon",
|
|
376
500
|
icon: l.iconClass || s.value
|
|
377
501
|
}, null, 8, ["icon"]),
|
|
378
|
-
a("div",
|
|
379
|
-
a("div",
|
|
380
|
-
l.desc ? (r(),
|
|
502
|
+
a("div", Ps, [
|
|
503
|
+
a("div", Vs, m(l.title), 1),
|
|
504
|
+
l.desc ? (r(), f("div", Ms, m(l.desc), 1)) : $("", !0)
|
|
381
505
|
]),
|
|
382
|
-
a("div",
|
|
383
|
-
|
|
506
|
+
a("div", Qs, [
|
|
507
|
+
P(t.$slots, "default", {}, void 0, !0)
|
|
384
508
|
])
|
|
385
509
|
]);
|
|
386
510
|
};
|
|
387
511
|
}
|
|
388
|
-
}),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
s[t] = i;
|
|
392
|
-
return s;
|
|
393
|
-
}, Po = /* @__PURE__ */ L($s, [["__scopeId", "data-v-bb581bf5"]]);
|
|
394
|
-
function zs(e) {
|
|
395
|
-
const l = z(e), s = z(null), t = (n) => {
|
|
512
|
+
}), Ro = /* @__PURE__ */ H(Ts, [["__scopeId", "data-v-bb581bf5"]]);
|
|
513
|
+
function Hs(e) {
|
|
514
|
+
const l = E(e), s = E(null), t = (n) => {
|
|
396
515
|
l.value = e, s.value = setInterval(() => {
|
|
397
|
-
l.value > 1 ? l.value-- : (
|
|
516
|
+
l.value > 1 ? l.value-- : (o(), n());
|
|
398
517
|
}, 1e3);
|
|
399
|
-
},
|
|
518
|
+
}, o = () => {
|
|
400
519
|
s.value && (clearInterval(s.value), s.value = null);
|
|
401
520
|
};
|
|
402
|
-
return
|
|
521
|
+
return re(o), { countdown: l, start: t, stop: o };
|
|
403
522
|
}
|
|
404
|
-
const
|
|
523
|
+
const Rs = { class: "dialog-footer" }, Lo = /* @__PURE__ */ S({
|
|
405
524
|
__name: "CountdownDialog",
|
|
406
|
-
props: /* @__PURE__ */
|
|
525
|
+
props: /* @__PURE__ */ X({
|
|
407
526
|
content: {},
|
|
408
527
|
countdown: {},
|
|
409
528
|
title: { default: "提示" },
|
|
@@ -414,22 +533,22 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
414
533
|
modelValue: { type: Boolean, required: !0 },
|
|
415
534
|
modelModifiers: {}
|
|
416
535
|
}),
|
|
417
|
-
emits: /* @__PURE__ */
|
|
536
|
+
emits: /* @__PURE__ */ X(["onConfirm", "onCancel"], ["update:modelValue"]),
|
|
418
537
|
setup(e, { expose: l, emit: s }) {
|
|
419
|
-
const t = e,
|
|
420
|
-
let
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
}, w = () =>
|
|
424
|
-
|
|
538
|
+
const t = e, o = ye(e, "modelValue"), n = s, { countdown: i, start: c, stop: u } = Hs(t.countdown);
|
|
539
|
+
let p = !1;
|
|
540
|
+
const g = (x) => {
|
|
541
|
+
p || (p = !0, u(), n(x === "confirm" ? "onConfirm" : "onCancel", x), o.value = !1, p = !1);
|
|
542
|
+
}, w = () => g("confirm"), _ = () => g("cancel"), A = () => {
|
|
543
|
+
o.value = !0, c(_);
|
|
425
544
|
};
|
|
426
|
-
return
|
|
427
|
-
x && !V && c(
|
|
428
|
-
}), l({ show:
|
|
429
|
-
const
|
|
430
|
-
return r(),
|
|
431
|
-
modelValue:
|
|
432
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
545
|
+
return J(o, (x, V) => {
|
|
546
|
+
x && !V && c(_);
|
|
547
|
+
}), l({ show: A }), (x, V) => {
|
|
548
|
+
const B = K, D = de;
|
|
549
|
+
return r(), b(D, {
|
|
550
|
+
modelValue: o.value,
|
|
551
|
+
"onUpdate:modelValue": V[0] || (V[0] = (M) => o.value = M),
|
|
433
552
|
title: e.title,
|
|
434
553
|
width: e.width,
|
|
435
554
|
"close-on-click-modal": !1,
|
|
@@ -438,36 +557,36 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
438
557
|
"append-to-body": !0
|
|
439
558
|
}, {
|
|
440
559
|
footer: d(() => [
|
|
441
|
-
a("div",
|
|
442
|
-
v(
|
|
560
|
+
a("div", Rs, [
|
|
561
|
+
v(B, { onClick: _ }, {
|
|
443
562
|
default: d(() => [
|
|
444
|
-
|
|
563
|
+
k(m(e.cancelBtnText) + "(" + m(h(i)) + "s)", 1)
|
|
445
564
|
]),
|
|
446
565
|
_: 1
|
|
447
566
|
}),
|
|
448
|
-
v(
|
|
567
|
+
v(B, {
|
|
449
568
|
type: "primary",
|
|
450
|
-
disabled: h(
|
|
569
|
+
disabled: h(i) <= 0,
|
|
451
570
|
onClick: w
|
|
452
571
|
}, {
|
|
453
572
|
default: d(() => [
|
|
454
|
-
|
|
573
|
+
k(m(e.confirmBtnText), 1)
|
|
455
574
|
]),
|
|
456
575
|
_: 1
|
|
457
576
|
}, 8, ["disabled"])
|
|
458
577
|
])
|
|
459
578
|
]),
|
|
460
579
|
default: d(() => [
|
|
461
|
-
a("div", null,
|
|
462
|
-
a("div", null,
|
|
580
|
+
a("div", null, m(e.content), 1),
|
|
581
|
+
a("div", null, m(h(i)) + "秒后自动取消", 1)
|
|
463
582
|
]),
|
|
464
583
|
_: 1
|
|
465
584
|
}, 8, ["modelValue", "title", "width"]);
|
|
466
585
|
};
|
|
467
586
|
}
|
|
468
|
-
}),
|
|
587
|
+
}), Ls = { class: "select-dialog" }, Fs = ["onClick"], Us = { class: "option-item-label" }, Os = { key: 0 }, qs = { key: 1 }, js = /* @__PURE__ */ S({
|
|
469
588
|
__name: "SelectDialog",
|
|
470
|
-
props: /* @__PURE__ */
|
|
589
|
+
props: /* @__PURE__ */ X({
|
|
471
590
|
title: { default: "请选择" },
|
|
472
591
|
options: {},
|
|
473
592
|
defaultSelectedList: { default: () => [] },
|
|
@@ -483,70 +602,70 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
483
602
|
modelValue: { type: Boolean, required: !0 },
|
|
484
603
|
modelModifiers: {}
|
|
485
604
|
}),
|
|
486
|
-
emits: /* @__PURE__ */
|
|
605
|
+
emits: /* @__PURE__ */ X(["confirm"], ["update:modelValue"]),
|
|
487
606
|
setup(e, { emit: l }) {
|
|
488
|
-
const s = e, t =
|
|
607
|
+
const s = e, t = ye(e, "modelValue"), o = xe([]), n = xe([]), i = E(0), c = te("listRef"), { loading: u, loadingData: p } = Re(), g = E(!1), w = p(async (y) => {
|
|
489
608
|
n.splice(0, n.length, ...s.defaultSelectedList);
|
|
490
|
-
let
|
|
609
|
+
let z = !1;
|
|
491
610
|
y(() => {
|
|
492
|
-
|
|
611
|
+
z = !0;
|
|
493
612
|
});
|
|
494
613
|
const U = typeof s.options == "function" ? await s.options() : s.options;
|
|
495
|
-
|
|
496
|
-
}),
|
|
497
|
-
|
|
614
|
+
z || o.splice(0, o.length, ...U);
|
|
615
|
+
}), _ = () => {
|
|
616
|
+
i.value = c.value?.clientWidth ?? 0, g.value = !0;
|
|
498
617
|
};
|
|
499
|
-
|
|
618
|
+
J(
|
|
500
619
|
t,
|
|
501
|
-
async (y,
|
|
620
|
+
async (y, z, U) => {
|
|
502
621
|
if (!y) {
|
|
503
|
-
|
|
622
|
+
g.value = !1;
|
|
504
623
|
return;
|
|
505
624
|
}
|
|
506
625
|
await w(U);
|
|
507
626
|
},
|
|
508
627
|
{ immediate: !0 }
|
|
509
628
|
);
|
|
510
|
-
const
|
|
629
|
+
const A = l, x = () => {
|
|
511
630
|
t.value = !1;
|
|
512
631
|
}, V = () => {
|
|
513
632
|
if (!n || n.length === 0) {
|
|
514
633
|
ie(s.noSelectionTip);
|
|
515
634
|
return;
|
|
516
635
|
}
|
|
517
|
-
|
|
518
|
-
},
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
}, F = C(() =>
|
|
522
|
-
F.value ? n.splice(0, n.length) : n.splice(0, n.length, ...
|
|
636
|
+
A("confirm", zt(n)), t.value = !1;
|
|
637
|
+
}, B = C(() => s.showCurrentSelection && g.value && !u.value && n.length > 0), D = (y) => n.includes(y), M = (y) => {
|
|
638
|
+
const z = n.indexOf(y);
|
|
639
|
+
z > -1 ? n.splice(z, 1) : s.multiple ? n.push(y) : n.splice(0, n.length, y);
|
|
640
|
+
}, F = C(() => o.every((y) => n.includes(y))), I = () => {
|
|
641
|
+
F.value ? n.splice(0, n.length) : n.splice(0, n.length, ...o);
|
|
523
642
|
};
|
|
524
|
-
return (y,
|
|
525
|
-
const U =
|
|
526
|
-
return r(),
|
|
527
|
-
v(
|
|
643
|
+
return (y, z) => {
|
|
644
|
+
const U = K, le = de, ne = Pe;
|
|
645
|
+
return r(), f("div", Ls, [
|
|
646
|
+
v(le, {
|
|
528
647
|
title: e.title,
|
|
529
648
|
modelValue: t.value,
|
|
530
|
-
"onUpdate:modelValue":
|
|
649
|
+
"onUpdate:modelValue": z[0] || (z[0] = (O) => t.value = O),
|
|
531
650
|
style: { width: "fit-content", "min-width": "300px", "max-width": "800px", "max-height": "88vh", overflow: "auto" },
|
|
532
651
|
"close-on-click-modal": !1,
|
|
533
652
|
"close-on-press-escape": !1,
|
|
534
653
|
"show-close": !0,
|
|
535
654
|
"align-center": "",
|
|
536
|
-
onOpened:
|
|
655
|
+
onOpened: _
|
|
537
656
|
}, {
|
|
538
657
|
footer: d(() => [
|
|
539
|
-
e.multiple && e.canSelectAll ? (r(),
|
|
658
|
+
e.multiple && e.canSelectAll ? (r(), f("span", {
|
|
540
659
|
key: 0,
|
|
541
660
|
class: W(["select-all", F.value ? "selected" : ""]),
|
|
542
|
-
onClick:
|
|
543
|
-
}, [...
|
|
661
|
+
onClick: I
|
|
662
|
+
}, [...z[1] || (z[1] = [
|
|
544
663
|
a("span", { class: "select-icon" }, null, -1),
|
|
545
|
-
|
|
664
|
+
k("全选", -1)
|
|
546
665
|
])], 2)) : $("", !0),
|
|
547
666
|
v(U, { onClick: x }, {
|
|
548
667
|
default: d(() => [
|
|
549
|
-
|
|
668
|
+
k(m(e.cancelText), 1)
|
|
550
669
|
]),
|
|
551
670
|
_: 1
|
|
552
671
|
}),
|
|
@@ -556,13 +675,13 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
556
675
|
disabled: h(u)
|
|
557
676
|
}, {
|
|
558
677
|
default: d(() => [
|
|
559
|
-
|
|
678
|
+
k(m(e.confirmText), 1)
|
|
560
679
|
]),
|
|
561
680
|
_: 1
|
|
562
681
|
}, 8, ["disabled"])
|
|
563
682
|
]),
|
|
564
683
|
default: d(() => [
|
|
565
|
-
G((r(),
|
|
684
|
+
G((r(), f("div", {
|
|
566
685
|
class: W(["dialog-content", h(u) ? "loading" : ""])
|
|
567
686
|
}, [
|
|
568
687
|
a("div", {
|
|
@@ -570,40 +689,40 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
570
689
|
ref: c,
|
|
571
690
|
class: "option-list"
|
|
572
691
|
}, [
|
|
573
|
-
(r(!0),
|
|
574
|
-
class: W(["option-item", D(
|
|
575
|
-
key: e.getDataId(
|
|
576
|
-
onClick: (
|
|
692
|
+
(r(!0), f(L, null, q(o, (O) => (r(), f("div", {
|
|
693
|
+
class: W(["option-item", D(O) ? "selected" : ""]),
|
|
694
|
+
key: e.getDataId(O),
|
|
695
|
+
onClick: (ve) => M(O)
|
|
577
696
|
}, [
|
|
578
|
-
|
|
697
|
+
P(y.$slots, "item", {}, () => [
|
|
579
698
|
a("span", {
|
|
580
699
|
class: W(["select-icon", e.multiple ? "checkbox" : "radio"])
|
|
581
700
|
}, null, 2),
|
|
582
|
-
a("span",
|
|
583
|
-
|
|
584
|
-
|
|
701
|
+
a("span", Us, [
|
|
702
|
+
P(y.$slots, "item-label", {}, () => [
|
|
703
|
+
k(m(e.getDataLabel(O)), 1)
|
|
585
704
|
], !0)
|
|
586
705
|
])
|
|
587
706
|
], !0)
|
|
588
|
-
], 10,
|
|
707
|
+
], 10, Fs))), 128))
|
|
589
708
|
], 512),
|
|
590
|
-
|
|
709
|
+
B.value ? (r(), f("div", {
|
|
591
710
|
key: 0,
|
|
592
711
|
class: "current-selection",
|
|
593
|
-
style:
|
|
712
|
+
style: fe({ width: `${i.value}px` })
|
|
594
713
|
}, [
|
|
595
|
-
e.multiple ? (r(),
|
|
714
|
+
e.multiple ? (r(), f("span", Os, "已选择(" + m(n.length) + "):", 1)) : (r(), f("span", qs, "已选择:")),
|
|
596
715
|
a("div", {
|
|
597
716
|
class: "current-selection-list",
|
|
598
|
-
style:
|
|
717
|
+
style: fe({ display: e.multiple ? "flex" : "contents" })
|
|
599
718
|
}, [
|
|
600
|
-
(r(!0),
|
|
601
|
-
key: e.getDataId(
|
|
602
|
-
},
|
|
719
|
+
(r(!0), f(L, null, q(n, (O) => (r(), f("span", {
|
|
720
|
+
key: e.getDataId(O)
|
|
721
|
+
}, m(e.getDataLabel(O)), 1))), 128))
|
|
603
722
|
], 4)
|
|
604
723
|
], 4)) : $("", !0)
|
|
605
724
|
], 2)), [
|
|
606
|
-
[
|
|
725
|
+
[ne, h(u)]
|
|
607
726
|
])
|
|
608
727
|
]),
|
|
609
728
|
_: 3
|
|
@@ -611,11 +730,11 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
611
730
|
]);
|
|
612
731
|
};
|
|
613
732
|
}
|
|
614
|
-
}),
|
|
733
|
+
}), Ns = /* @__PURE__ */ H(js, [["__scopeId", "data-v-2ad04bd4"]]), Fo = (e) => new Promise((l) => {
|
|
615
734
|
let s = document.createElement("div");
|
|
616
735
|
const t = (n) => {
|
|
617
|
-
l(n), s && (
|
|
618
|
-
},
|
|
736
|
+
l(n), s && (_e(null, s), s.remove(), s = null);
|
|
737
|
+
}, o = v(Ns, {
|
|
619
738
|
...e,
|
|
620
739
|
modelValue: !0,
|
|
621
740
|
"onUpdate:modelValue": (n) => {
|
|
@@ -625,13 +744,13 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
625
744
|
t(n);
|
|
626
745
|
}
|
|
627
746
|
});
|
|
628
|
-
document.body.appendChild(s),
|
|
629
|
-
}),
|
|
747
|
+
document.body.appendChild(s), _e(o, s);
|
|
748
|
+
}), Zs = { class: "dialog-content" }, Ws = { class: "header" }, Gs = {
|
|
630
749
|
key: 0,
|
|
631
750
|
class: "total-desc"
|
|
632
|
-
},
|
|
751
|
+
}, Js = { class: "page-size-desc" }, Ks = { class: "range-desc" }, Ys = /* @__PURE__ */ S({
|
|
633
752
|
__name: "PageRangeDialog",
|
|
634
|
-
props: /* @__PURE__ */
|
|
753
|
+
props: /* @__PURE__ */ X({
|
|
635
754
|
title: { default: "请选择页码范围" },
|
|
636
755
|
defaultRange: { default: () => [1, 1] },
|
|
637
756
|
total: {},
|
|
@@ -644,33 +763,33 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
644
763
|
modelValue: { type: Boolean, required: !0 },
|
|
645
764
|
modelModifiers: {}
|
|
646
765
|
}),
|
|
647
|
-
emits: /* @__PURE__ */
|
|
766
|
+
emits: /* @__PURE__ */ X(["confirm"], ["update:modelValue"]),
|
|
648
767
|
setup(e, { emit: l }) {
|
|
649
|
-
const s = e, t =
|
|
768
|
+
const s = e, t = ye(e, "modelValue"), o = C(() => s.total != null && s.maxPage != null ? Math.min(s.maxPage, Math.ceil(s.total / s.pageSize)) : s.total != null ? Math.ceil(s.total / s.pageSize) : s.maxPage), n = E(1), i = E(1), c = C(() => `共有 ${s.total} 条数据`), u = C(() => `每页可获取 ${s.pageSize} 条数据`), p = C(() => {
|
|
650
769
|
if (s.total != null) {
|
|
651
|
-
const
|
|
652
|
-
return `共选择 ${(
|
|
770
|
+
const A = s.pageSize - Math.max(i.value * s.pageSize - s.total, 0);
|
|
771
|
+
return `共选择 ${(i.value - n.value) * s.pageSize + A} 条数据`;
|
|
653
772
|
} else
|
|
654
|
-
return `共选择 ${(
|
|
773
|
+
return `共选择 ${(i.value + 1 - n.value) * s.pageSize} 条数据`;
|
|
655
774
|
});
|
|
656
|
-
|
|
775
|
+
J(
|
|
657
776
|
t,
|
|
658
|
-
async (
|
|
659
|
-
|
|
777
|
+
async (A) => {
|
|
778
|
+
A && (n.value = s.defaultRange[0], i.value = s.defaultRange[1]);
|
|
660
779
|
},
|
|
661
780
|
{ immediate: !0 }
|
|
662
781
|
);
|
|
663
|
-
const
|
|
782
|
+
const g = l, w = () => {
|
|
664
783
|
t.value = !1;
|
|
665
|
-
},
|
|
666
|
-
|
|
784
|
+
}, _ = () => {
|
|
785
|
+
g("confirm", [n.value, i.value]), t.value = !1;
|
|
667
786
|
};
|
|
668
|
-
return (
|
|
669
|
-
const V =
|
|
670
|
-
return r(),
|
|
787
|
+
return (A, x) => {
|
|
788
|
+
const V = et, B = ls, D = ss, M = K, F = de;
|
|
789
|
+
return r(), b(F, {
|
|
671
790
|
title: e.title,
|
|
672
791
|
modelValue: t.value,
|
|
673
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
792
|
+
"onUpdate:modelValue": x[2] || (x[2] = (I) => t.value = I),
|
|
674
793
|
width: "200px",
|
|
675
794
|
"close-on-click-modal": !1,
|
|
676
795
|
"close-on-press-escape": !1,
|
|
@@ -678,43 +797,43 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
678
797
|
"align-center": ""
|
|
679
798
|
}, {
|
|
680
799
|
footer: d(() => [
|
|
681
|
-
v(
|
|
800
|
+
v(M, { onClick: w }, {
|
|
682
801
|
default: d(() => [
|
|
683
|
-
|
|
802
|
+
k(m(e.cancelText), 1)
|
|
684
803
|
]),
|
|
685
804
|
_: 1
|
|
686
805
|
}),
|
|
687
|
-
v(
|
|
806
|
+
v(M, {
|
|
688
807
|
type: "primary",
|
|
689
|
-
onClick:
|
|
808
|
+
onClick: _
|
|
690
809
|
}, {
|
|
691
810
|
default: d(() => [
|
|
692
|
-
|
|
811
|
+
k(m(e.confirmText), 1)
|
|
693
812
|
]),
|
|
694
813
|
_: 1
|
|
695
814
|
})
|
|
696
815
|
]),
|
|
697
816
|
default: d(() => [
|
|
698
|
-
a("div",
|
|
699
|
-
a("div",
|
|
700
|
-
e.total ? (r(),
|
|
701
|
-
a("div",
|
|
817
|
+
a("div", Zs, [
|
|
818
|
+
a("div", Ws, [
|
|
819
|
+
e.total ? (r(), f("div", Gs, m(c.value), 1)) : $("", !0),
|
|
820
|
+
a("div", Js, m(u.value), 1)
|
|
702
821
|
]),
|
|
703
822
|
v(D, { class: "page-range" }, {
|
|
704
823
|
default: d(() => [
|
|
705
|
-
v(
|
|
824
|
+
v(B, { span: 11 }, {
|
|
706
825
|
default: d(() => [
|
|
707
826
|
v(V, {
|
|
708
827
|
type: "number",
|
|
709
828
|
modelValue: n.value,
|
|
710
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
829
|
+
"onUpdate:modelValue": x[0] || (x[0] = (I) => n.value = I),
|
|
711
830
|
min: e.minPage,
|
|
712
|
-
max:
|
|
831
|
+
max: i.value
|
|
713
832
|
}, null, 8, ["modelValue", "min", "max"])
|
|
714
833
|
]),
|
|
715
834
|
_: 1
|
|
716
835
|
}),
|
|
717
|
-
v(
|
|
836
|
+
v(B, {
|
|
718
837
|
span: 2,
|
|
719
838
|
style: { "text-align": "center" }
|
|
720
839
|
}, {
|
|
@@ -723,14 +842,14 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
723
842
|
])]),
|
|
724
843
|
_: 1
|
|
725
844
|
}),
|
|
726
|
-
v(
|
|
845
|
+
v(B, { span: 11 }, {
|
|
727
846
|
default: d(() => [
|
|
728
847
|
v(V, {
|
|
729
848
|
type: "number",
|
|
730
|
-
modelValue:
|
|
731
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
849
|
+
modelValue: i.value,
|
|
850
|
+
"onUpdate:modelValue": x[1] || (x[1] = (I) => i.value = I),
|
|
732
851
|
min: n.value,
|
|
733
|
-
max:
|
|
852
|
+
max: o.value
|
|
734
853
|
}, null, 8, ["modelValue", "min", "max"])
|
|
735
854
|
]),
|
|
736
855
|
_: 1
|
|
@@ -738,18 +857,18 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
738
857
|
]),
|
|
739
858
|
_: 1
|
|
740
859
|
}),
|
|
741
|
-
a("div",
|
|
860
|
+
a("div", Ks, m(p.value), 1)
|
|
742
861
|
])
|
|
743
862
|
]),
|
|
744
863
|
_: 1
|
|
745
864
|
}, 8, ["title", "modelValue"]);
|
|
746
865
|
};
|
|
747
866
|
}
|
|
748
|
-
}),
|
|
867
|
+
}), Xs = /* @__PURE__ */ H(Ys, [["__scopeId", "data-v-715af5da"]]), Uo = (e) => new Promise((l) => {
|
|
749
868
|
let s = document.createElement("div");
|
|
750
869
|
const t = (n) => {
|
|
751
|
-
s && (
|
|
752
|
-
},
|
|
870
|
+
s && (_e(null, s), s.remove(), s = null), l(n);
|
|
871
|
+
}, o = v(Xs, {
|
|
753
872
|
...e,
|
|
754
873
|
modelValue: !0,
|
|
755
874
|
"onUpdate:modelValue"(n) {
|
|
@@ -759,70 +878,13 @@ const Ds = { class: "dialog-footer" }, Io = /* @__PURE__ */ B({
|
|
|
759
878
|
t(n);
|
|
760
879
|
}
|
|
761
880
|
});
|
|
762
|
-
document.body.appendChild(s),
|
|
763
|
-
})
|
|
764
|
-
|
|
765
|
-
setup(e, { expose: l }) {
|
|
766
|
-
const s = z(!1), t = z(""), i = z(!1);
|
|
767
|
-
let n;
|
|
768
|
-
const o = (_ = {}) => {
|
|
769
|
-
t.value = _.message ?? "加载中", i.value = _.showCancel ?? !1, n = _.onCancel, _?.autoCloseDelay && setTimeout(() => {
|
|
770
|
-
u();
|
|
771
|
-
}, _?.autoCloseDelay), s.value = !0;
|
|
772
|
-
}, c = (_) => {
|
|
773
|
-
t.value = _;
|
|
774
|
-
}, u = () => {
|
|
775
|
-
s.value = !1;
|
|
776
|
-
}, m = async () => {
|
|
777
|
-
await n?.(), u();
|
|
778
|
-
};
|
|
779
|
-
return l({
|
|
780
|
-
show: o,
|
|
781
|
-
update: c,
|
|
782
|
-
close: u
|
|
783
|
-
}), (_, w) => {
|
|
784
|
-
const f = Ie;
|
|
785
|
-
return G((r(), g("div", Ns, [
|
|
786
|
-
a("div", Zs, [
|
|
787
|
-
G(a("div", {
|
|
788
|
-
class: "options-close-btn",
|
|
789
|
-
onClick: m
|
|
790
|
-
}, null, 512), [
|
|
791
|
-
[ge, i.value]
|
|
792
|
-
]),
|
|
793
|
-
G(a("div", Ws, null, 512), [
|
|
794
|
-
[f, !0]
|
|
795
|
-
]),
|
|
796
|
-
a("div", Gs, p(t.value), 1)
|
|
797
|
-
])
|
|
798
|
-
], 512)), [
|
|
799
|
-
[ge, s.value]
|
|
800
|
-
]);
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
}), Ks = /* @__PURE__ */ L(Js, [["__scopeId", "data-v-a0557392"]]);
|
|
804
|
-
let ve = null;
|
|
805
|
-
function be() {
|
|
806
|
-
if (ve) return ve;
|
|
807
|
-
const e = document.createElement("div");
|
|
808
|
-
return document.body.appendChild(e), ve = De(Ks).mount(e), ve;
|
|
809
|
-
}
|
|
810
|
-
const Mo = {
|
|
811
|
-
show(e) {
|
|
812
|
-
be().show(e);
|
|
813
|
-
},
|
|
814
|
-
update(e) {
|
|
815
|
-
be().update(e);
|
|
816
|
-
},
|
|
817
|
-
close() {
|
|
818
|
-
be().close();
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
var Ys = /* @__PURE__ */ B({
|
|
881
|
+
document.body.appendChild(s), _e(o, s);
|
|
882
|
+
});
|
|
883
|
+
var el = /* @__PURE__ */ S({
|
|
822
884
|
name: "CircleCheck",
|
|
823
885
|
__name: "circle-check",
|
|
824
886
|
setup(e) {
|
|
825
|
-
return (l, s) => (r(),
|
|
887
|
+
return (l, s) => (r(), f("svg", {
|
|
826
888
|
xmlns: "http://www.w3.org/2000/svg",
|
|
827
889
|
viewBox: "0 0 1024 1024"
|
|
828
890
|
}, [
|
|
@@ -836,11 +898,11 @@ var Ys = /* @__PURE__ */ B({
|
|
|
836
898
|
})
|
|
837
899
|
]));
|
|
838
900
|
}
|
|
839
|
-
}),
|
|
901
|
+
}), tl = el, sl = /* @__PURE__ */ S({
|
|
840
902
|
name: "CircleClose",
|
|
841
903
|
__name: "circle-close",
|
|
842
904
|
setup(e) {
|
|
843
|
-
return (l, s) => (r(),
|
|
905
|
+
return (l, s) => (r(), f("svg", {
|
|
844
906
|
xmlns: "http://www.w3.org/2000/svg",
|
|
845
907
|
viewBox: "0 0 1024 1024"
|
|
846
908
|
}, [
|
|
@@ -854,11 +916,11 @@ var Ys = /* @__PURE__ */ B({
|
|
|
854
916
|
})
|
|
855
917
|
]));
|
|
856
918
|
}
|
|
857
|
-
}),
|
|
919
|
+
}), ll = sl, nl = /* @__PURE__ */ S({
|
|
858
920
|
name: "Picture",
|
|
859
921
|
__name: "picture",
|
|
860
922
|
setup(e) {
|
|
861
|
-
return (l, s) => (r(),
|
|
923
|
+
return (l, s) => (r(), f("svg", {
|
|
862
924
|
xmlns: "http://www.w3.org/2000/svg",
|
|
863
925
|
viewBox: "0 0 1024 1024"
|
|
864
926
|
}, [
|
|
@@ -872,103 +934,103 @@ var Ys = /* @__PURE__ */ B({
|
|
|
872
934
|
})
|
|
873
935
|
]));
|
|
874
936
|
}
|
|
875
|
-
}),
|
|
876
|
-
const
|
|
937
|
+
}), rt = nl;
|
|
938
|
+
const al = { class: "loading-mask el-overlay" }, ol = { class: "loading-content" }, il = { class: "status-icon" }, cl = { class: "loading-text" }, rl = { class: "actions" }, ul = /* @__PURE__ */ S({
|
|
877
939
|
__name: "ProcessDialog",
|
|
878
940
|
setup(e, { expose: l }) {
|
|
879
|
-
const s =
|
|
941
|
+
const s = E(!1), t = E(""), o = E(0), n = E("loading"), i = E(!1);
|
|
880
942
|
let c, u;
|
|
881
|
-
const
|
|
882
|
-
t.value =
|
|
883
|
-
},
|
|
884
|
-
|
|
885
|
-
}, w = (
|
|
886
|
-
n.value = "success", t.value =
|
|
887
|
-
},
|
|
888
|
-
n.value = "error", t.value =
|
|
889
|
-
},
|
|
943
|
+
const p = (B = {}) => {
|
|
944
|
+
t.value = B.message ?? "加载中", i.value = B.showCancel ?? !1, o.value = B.percentage ?? 0, n.value = "loading", c = B.onCancel, u = B.onConfirm, s.value = !0;
|
|
945
|
+
}, g = (B, D) => {
|
|
946
|
+
B != null && (o.value = B), D != null && (t.value = D);
|
|
947
|
+
}, w = (B = "操作成功") => {
|
|
948
|
+
n.value = "success", t.value = B;
|
|
949
|
+
}, _ = (B = "操作失败") => {
|
|
950
|
+
n.value = "error", t.value = B;
|
|
951
|
+
}, A = () => {
|
|
890
952
|
s.value = !1;
|
|
891
953
|
}, x = async () => {
|
|
892
|
-
await c?.(),
|
|
954
|
+
await c?.(), A();
|
|
893
955
|
}, V = async () => {
|
|
894
|
-
await u?.(n.value),
|
|
956
|
+
await u?.(n.value), A();
|
|
895
957
|
};
|
|
896
958
|
return l({
|
|
897
|
-
show:
|
|
898
|
-
update:
|
|
959
|
+
show: p,
|
|
960
|
+
update: g,
|
|
899
961
|
setSuccess: w,
|
|
900
|
-
setError:
|
|
901
|
-
close:
|
|
902
|
-
}), (
|
|
903
|
-
const
|
|
904
|
-
return G((r(),
|
|
905
|
-
a("div",
|
|
962
|
+
setError: _,
|
|
963
|
+
close: A
|
|
964
|
+
}), (B, D) => {
|
|
965
|
+
const M = tt, F = Ve, I = K;
|
|
966
|
+
return G((r(), f("div", al, [
|
|
967
|
+
a("div", ol, [
|
|
906
968
|
G(a("div", {
|
|
907
969
|
class: "options-close-btn",
|
|
908
970
|
onClick: x
|
|
909
971
|
}, null, 512), [
|
|
910
|
-
[
|
|
972
|
+
[ce, i.value && n.value === "loading"]
|
|
911
973
|
]),
|
|
912
|
-
a("div",
|
|
913
|
-
n.value === "loading" ? (r(),
|
|
974
|
+
a("div", il, [
|
|
975
|
+
n.value === "loading" ? (r(), b(M, {
|
|
914
976
|
key: 0,
|
|
915
977
|
type: "circle",
|
|
916
|
-
percentage:
|
|
978
|
+
percentage: o.value,
|
|
917
979
|
width: 96
|
|
918
|
-
}, null, 8, ["percentage"])) : n.value === "success" ? (r(),
|
|
980
|
+
}, null, 8, ["percentage"])) : n.value === "success" ? (r(), b(F, {
|
|
919
981
|
key: 1,
|
|
920
982
|
size: 42
|
|
921
983
|
}, {
|
|
922
984
|
default: d(() => [
|
|
923
|
-
v(h(
|
|
985
|
+
v(h(tl), { style: { color: "var(--el-color-success)" } })
|
|
924
986
|
]),
|
|
925
987
|
_: 1
|
|
926
|
-
})) : (r(),
|
|
988
|
+
})) : (r(), b(F, {
|
|
927
989
|
key: 2,
|
|
928
990
|
size: 42
|
|
929
991
|
}, {
|
|
930
992
|
default: d(() => [
|
|
931
|
-
v(h(
|
|
993
|
+
v(h(ll), { style: { color: "var(--el-color-error)" } })
|
|
932
994
|
]),
|
|
933
995
|
_: 1
|
|
934
996
|
}))
|
|
935
997
|
]),
|
|
936
|
-
a("div",
|
|
937
|
-
a("div",
|
|
938
|
-
|
|
998
|
+
a("div", cl, m(t.value), 1),
|
|
999
|
+
a("div", rl, [
|
|
1000
|
+
i.value && n.value === "loading" ? (r(), b(I, {
|
|
939
1001
|
key: 0,
|
|
940
1002
|
onClick: x
|
|
941
1003
|
}, {
|
|
942
1004
|
default: d(() => [...D[0] || (D[0] = [
|
|
943
|
-
|
|
1005
|
+
k(" 取消 ", -1)
|
|
944
1006
|
])]),
|
|
945
1007
|
_: 1
|
|
946
1008
|
})) : $("", !0),
|
|
947
|
-
n.value !== "loading" ? (r(),
|
|
1009
|
+
n.value !== "loading" ? (r(), b(I, {
|
|
948
1010
|
key: 1,
|
|
949
1011
|
type: "primary",
|
|
950
1012
|
onClick: V
|
|
951
1013
|
}, {
|
|
952
1014
|
default: d(() => [...D[1] || (D[1] = [
|
|
953
|
-
|
|
1015
|
+
k(" 确定 ", -1)
|
|
954
1016
|
])]),
|
|
955
1017
|
_: 1
|
|
956
1018
|
})) : $("", !0)
|
|
957
1019
|
])
|
|
958
1020
|
])
|
|
959
1021
|
], 512)), [
|
|
960
|
-
[
|
|
1022
|
+
[ce, s.value]
|
|
961
1023
|
]);
|
|
962
1024
|
};
|
|
963
1025
|
}
|
|
964
|
-
}),
|
|
965
|
-
let
|
|
1026
|
+
}), dl = /* @__PURE__ */ H(ul, [["__scopeId", "data-v-8ddebb07"]]);
|
|
1027
|
+
let ge = null;
|
|
966
1028
|
function oe() {
|
|
967
|
-
if (
|
|
1029
|
+
if (ge) return ge;
|
|
968
1030
|
const e = document.createElement("div");
|
|
969
|
-
return document.body.appendChild(e),
|
|
1031
|
+
return document.body.appendChild(e), ge = De(dl).mount(e), ge;
|
|
970
1032
|
}
|
|
971
|
-
const
|
|
1033
|
+
const Oo = {
|
|
972
1034
|
show(e) {
|
|
973
1035
|
oe().show(e);
|
|
974
1036
|
},
|
|
@@ -984,7 +1046,7 @@ const To = {
|
|
|
984
1046
|
close() {
|
|
985
1047
|
oe().close();
|
|
986
1048
|
}
|
|
987
|
-
},
|
|
1049
|
+
}, vl = { class: "tooltip" }, pl = { class: "label" }, ae = /* @__PURE__ */ S({
|
|
988
1050
|
__name: "AppTooltip",
|
|
989
1051
|
props: {
|
|
990
1052
|
content: {},
|
|
@@ -993,50 +1055,50 @@ const To = {
|
|
|
993
1055
|
iconClass: {}
|
|
994
1056
|
},
|
|
995
1057
|
setup(e) {
|
|
996
|
-
|
|
1058
|
+
Dt((c) => ({
|
|
997
1059
|
v22da9023: h(s)
|
|
998
1060
|
}));
|
|
999
1061
|
const l = e, s = l.lines, t = () => ({
|
|
1000
1062
|
"txt-ellipsis-right": l.ellipsis === "right",
|
|
1001
1063
|
"txt-ellipsis-left": l.ellipsis === "left",
|
|
1002
1064
|
"single-line": l.lines === 1
|
|
1003
|
-
}),
|
|
1004
|
-
n.value && (l.lines === 1 ?
|
|
1065
|
+
}), o = E(!1), n = te("refContent"), i = new ResizeObserver(() => {
|
|
1066
|
+
n.value && (l.lines === 1 ? o.value = n.value.scrollWidth > n.value.clientWidth : o.value = n.value.scrollHeight > n.value.clientHeight);
|
|
1005
1067
|
});
|
|
1006
|
-
return
|
|
1007
|
-
n.value &&
|
|
1008
|
-
}),
|
|
1009
|
-
|
|
1068
|
+
return ee(() => {
|
|
1069
|
+
n.value && i.observe(n.value);
|
|
1070
|
+
}), re(() => {
|
|
1071
|
+
i.disconnect();
|
|
1010
1072
|
}), (c, u) => {
|
|
1011
|
-
const
|
|
1012
|
-
return r(),
|
|
1013
|
-
a("div",
|
|
1014
|
-
e.iconClass ? (r(),
|
|
1073
|
+
const p = Me;
|
|
1074
|
+
return r(), f("div", vl, [
|
|
1075
|
+
a("div", pl, [
|
|
1076
|
+
e.iconClass ? (r(), b(N, {
|
|
1015
1077
|
key: 0,
|
|
1016
1078
|
icon: e.iconClass
|
|
1017
1079
|
}, null, 8, ["icon"])) : $("", !0)
|
|
1018
1080
|
]),
|
|
1019
|
-
e.content ? (r(),
|
|
1081
|
+
e.content ? (r(), b(p, {
|
|
1020
1082
|
key: 0,
|
|
1021
1083
|
effect: "light",
|
|
1022
1084
|
content: e.content,
|
|
1023
1085
|
placement: "top",
|
|
1024
|
-
disabled: !
|
|
1086
|
+
disabled: !o.value,
|
|
1025
1087
|
"show-after": 800
|
|
1026
1088
|
}, {
|
|
1027
1089
|
content: d(() => [
|
|
1028
|
-
|
|
1090
|
+
P(c.$slots, "tooltipContent")
|
|
1029
1091
|
]),
|
|
1030
1092
|
default: d(() => [
|
|
1031
|
-
a("div",
|
|
1093
|
+
a("div", Y({
|
|
1032
1094
|
ref_key: "refContent",
|
|
1033
1095
|
ref: n
|
|
1034
1096
|
}, c.$attrs, {
|
|
1035
1097
|
class: ["tooltip__content", t()]
|
|
1036
1098
|
}), [
|
|
1037
1099
|
a("span", null, [
|
|
1038
|
-
|
|
1039
|
-
|
|
1100
|
+
P(c.$slots, "default", {}, () => [
|
|
1101
|
+
k(m(e.content), 1)
|
|
1040
1102
|
])
|
|
1041
1103
|
])
|
|
1042
1104
|
], 16)
|
|
@@ -1046,7 +1108,7 @@ const To = {
|
|
|
1046
1108
|
]);
|
|
1047
1109
|
};
|
|
1048
1110
|
}
|
|
1049
|
-
}),
|
|
1111
|
+
}), qo = /* @__PURE__ */ S({
|
|
1050
1112
|
inheritAttrs: !1,
|
|
1051
1113
|
__name: "IconButton",
|
|
1052
1114
|
props: {
|
|
@@ -1059,18 +1121,18 @@ const To = {
|
|
|
1059
1121
|
const s = l, t = () => {
|
|
1060
1122
|
s("click");
|
|
1061
1123
|
};
|
|
1062
|
-
return (
|
|
1063
|
-
const
|
|
1064
|
-
return e.tip ? (r(),
|
|
1065
|
-
e.confirm ? (r(),
|
|
1124
|
+
return (o, n) => {
|
|
1125
|
+
const i = Me, c = ns;
|
|
1126
|
+
return e.tip ? (r(), f(L, { key: 0 }, [
|
|
1127
|
+
e.confirm ? (r(), b(c, {
|
|
1066
1128
|
key: 0,
|
|
1067
1129
|
title: e.confirm,
|
|
1068
1130
|
placement: "left",
|
|
1069
1131
|
onConfirm: t
|
|
1070
1132
|
}, {
|
|
1071
1133
|
reference: d(() => [
|
|
1072
|
-
a("span",
|
|
1073
|
-
v(
|
|
1134
|
+
a("span", It(Pt(o.$attrs)), [
|
|
1135
|
+
v(i, {
|
|
1074
1136
|
effect: "light",
|
|
1075
1137
|
content: e.tip,
|
|
1076
1138
|
placement: "top",
|
|
@@ -1087,7 +1149,7 @@ const To = {
|
|
|
1087
1149
|
], 16)
|
|
1088
1150
|
]),
|
|
1089
1151
|
_: 1
|
|
1090
|
-
}, 8, ["title"])) : (r(),
|
|
1152
|
+
}, 8, ["title"])) : (r(), b(i, {
|
|
1091
1153
|
key: 1,
|
|
1092
1154
|
effect: "light",
|
|
1093
1155
|
content: e.tip,
|
|
@@ -1095,49 +1157,49 @@ const To = {
|
|
|
1095
1157
|
"show-after": 800
|
|
1096
1158
|
}, {
|
|
1097
1159
|
default: d(() => [
|
|
1098
|
-
v(N,
|
|
1160
|
+
v(N, Y({
|
|
1099
1161
|
class: "icon-btn",
|
|
1100
1162
|
icon: e.icon,
|
|
1101
1163
|
onClick: Ee(t, ["stop"])
|
|
1102
|
-
},
|
|
1164
|
+
}, o.$attrs), null, 16, ["icon"])
|
|
1103
1165
|
]),
|
|
1104
1166
|
_: 1
|
|
1105
1167
|
}, 8, ["content"]))
|
|
1106
|
-
], 64)) : (r(),
|
|
1107
|
-
e.confirm ? (r(),
|
|
1168
|
+
], 64)) : (r(), f(L, { key: 1 }, [
|
|
1169
|
+
e.confirm ? (r(), b(c, {
|
|
1108
1170
|
key: 0,
|
|
1109
1171
|
title: e.confirm,
|
|
1110
1172
|
placement: "left",
|
|
1111
1173
|
onConfirm: t
|
|
1112
1174
|
}, {
|
|
1113
1175
|
reference: d(() => [
|
|
1114
|
-
v(N,
|
|
1176
|
+
v(N, Y({
|
|
1115
1177
|
class: "icon-btn",
|
|
1116
1178
|
icon: e.icon
|
|
1117
|
-
},
|
|
1179
|
+
}, o.$attrs), null, 16, ["icon"])
|
|
1118
1180
|
]),
|
|
1119
1181
|
_: 1
|
|
1120
|
-
}, 8, ["title"])) : (r(),
|
|
1182
|
+
}, 8, ["title"])) : (r(), b(N, Y({
|
|
1121
1183
|
key: 1,
|
|
1122
1184
|
class: "icon-btn",
|
|
1123
1185
|
icon: e.icon,
|
|
1124
1186
|
onClick: Ee(t, ["stop"])
|
|
1125
|
-
},
|
|
1187
|
+
}, o.$attrs), null, 16, ["icon"]))
|
|
1126
1188
|
], 64));
|
|
1127
1189
|
};
|
|
1128
1190
|
}
|
|
1129
|
-
}),
|
|
1191
|
+
}), ml = { class: "icon-label" }, ut = /* @__PURE__ */ S({
|
|
1130
1192
|
__name: "IconLabel",
|
|
1131
1193
|
props: {
|
|
1132
1194
|
icon: {}
|
|
1133
1195
|
},
|
|
1134
1196
|
setup(e) {
|
|
1135
|
-
return (l, s) => (r(),
|
|
1197
|
+
return (l, s) => (r(), f("div", ml, [
|
|
1136
1198
|
v(N, { icon: e.icon }, null, 8, ["icon"]),
|
|
1137
|
-
|
|
1199
|
+
P(l.$slots, "default")
|
|
1138
1200
|
]));
|
|
1139
1201
|
}
|
|
1140
|
-
}),
|
|
1202
|
+
}), jo = /* @__PURE__ */ S({
|
|
1141
1203
|
__name: "ExternalLink",
|
|
1142
1204
|
props: {
|
|
1143
1205
|
url: {}
|
|
@@ -1146,64 +1208,64 @@ const To = {
|
|
|
1146
1208
|
const l = e, s = () => {
|
|
1147
1209
|
T.system.browsePage(l.url);
|
|
1148
1210
|
};
|
|
1149
|
-
return (t,
|
|
1211
|
+
return (t, o) => (r(), f("span", {
|
|
1150
1212
|
class: "external-link",
|
|
1151
1213
|
onClick: Ee(s, ["prevent"])
|
|
1152
1214
|
}, [
|
|
1153
|
-
|
|
1215
|
+
P(t.$slots, "default")
|
|
1154
1216
|
]));
|
|
1155
1217
|
}
|
|
1156
|
-
}),
|
|
1218
|
+
}), gl = ["innerHTML"], No = /* @__PURE__ */ S({
|
|
1157
1219
|
__name: "LogPrint",
|
|
1158
1220
|
setup(e, { expose: l }) {
|
|
1159
|
-
const s =
|
|
1160
|
-
function i
|
|
1161
|
-
s.value.push(`[${
|
|
1221
|
+
const s = E([]), t = te("logBoxRef");
|
|
1222
|
+
function o(i) {
|
|
1223
|
+
s.value.push(`[${Jt()}] ${i}`), s.value.length > 500 && s.value.shift(), ue(() => {
|
|
1162
1224
|
t.value && (t.value.scrollTop = t.value.scrollHeight);
|
|
1163
1225
|
});
|
|
1164
1226
|
}
|
|
1165
1227
|
return l({
|
|
1166
|
-
addLog:
|
|
1228
|
+
addLog: o,
|
|
1167
1229
|
reset: () => {
|
|
1168
1230
|
s.value = [];
|
|
1169
1231
|
}
|
|
1170
|
-
}), (
|
|
1232
|
+
}), (i, c) => (r(), f("div", {
|
|
1171
1233
|
ref_key: "logBoxRef",
|
|
1172
1234
|
ref: t,
|
|
1173
1235
|
class: "log-print-box"
|
|
1174
1236
|
}, [
|
|
1175
|
-
(r(!0),
|
|
1176
|
-
key:
|
|
1237
|
+
(r(!0), f(L, null, q(s.value, (u, p) => (r(), f("div", {
|
|
1238
|
+
key: p,
|
|
1177
1239
|
innerHTML: u,
|
|
1178
1240
|
class: "log-print-box__line"
|
|
1179
|
-
}, null, 8,
|
|
1241
|
+
}, null, 8, gl))), 128))
|
|
1180
1242
|
], 512));
|
|
1181
1243
|
}
|
|
1182
|
-
}), rt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv1{fill:transparent;}.st1.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23C0C0C0;}%3c/style%3e%3crect%20class='st0%20lv1'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv1'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv1'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.2v0.7c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M15.8,18.9h2.6c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4h-0.6%20v-5.6c0-0.2-0.2-0.4-0.4-0.4h-1.4c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h0.4v4.6h-0.6c-0.2,0-0.4,0.2-0.4,0.4v0.6%20C15.3,18.7,15.5,18.9,15.8,18.9z%20M12.7,16.3v0.1c0,0.1-0.1,0.2-0.2,0.2c0,0,0,0-0.1,0.1l-2,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4V16.3L12.7,16.3z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", ut = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv2{fill:transparent;}.st1.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%238BD29B;}%3c/style%3e%3crect%20class='st0%20lv2'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv2'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv2'%20d='M14,10h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6C1.3,20,1,19.8,1,19.4v-7.8%20C1,11.3,1.2,11,1.6,11h11.8v-0.4C13.4,10.3,13.6,10,14,10z%20M19.4,15.8c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H16v-1.7H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", dt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv3{fill:transparent;}.st1.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%237BCDEF;}%3c/style%3e%3crect%20class='st0%20lv3'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv3'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv3'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", vt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv4{fill:transparent;}.st1.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEBB8B;}%3c/style%3e%3crect%20class='st0%20lv4'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv4'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv4'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4h-0.6%20c-0.2,0-0.4,0.2-0.4,0.4v2.7H16v-2.7c0-0.2-0.2-0.4-0.4-0.4H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v2.7%20c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1s-0.4,0-0.5-0.1l-2-2%20c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", pt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv5{fill:transparent;}.st1.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23EE672A;}%3c/style%3e%3crect%20class='st0%20lv5'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv5'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv5'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,12.7c0.2,0,0.4-0.2,0.4-0.4v-0.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H16v-1.6H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2%20v-3.3c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", mt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv6{fill:transparent;}.st1.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23F04C49;}%3c/style%3e%3crect%20class='st0%20lv6'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv6'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv6'%20d='M14,10c-0.4,0-0.6,0.3-0.6,0.6V11H1.6C1.2,11,1,11.3,1,11.6v7.8C1,19.8,1.3,20,1.6,20h18.8%20c0.4,0,0.6-0.3,0.6-0.6v-8.8c0.1-0.3-0.2-0.6-0.5-0.6H14z%20M19.8,12.3c0,0.2-0.2,0.4-0.4,0.4H16v1.6h3.4c0.2,0,0.4,0.2,0.4,0.4v3.7%20c0,0.2-0.2,0.4-0.4,0.4H15c-0.2,0-0.4-0.2-0.4-0.4v-6.8c0-0.2,0.2-0.4,0.4-0.4h4.4c0.2,0,0.4,0.2,0.4,0.4V12.3z%20M12.6,16.7%20c0.1-0.1,0.1-0.2,0.1-0.4v-0.1v-3.4c0-0.2-0.2-0.4-0.4-0.4h-0.6c-0.2,0-0.4,0.2-0.4,0.4v3.3L10,17.3l-1.2-1.2v-3.4%20c0-0.2-0.2-0.4-0.4-0.4H7.8c-0.2,0-0.4,0.2-0.4,0.4v3.5v0.1c0,0.2,0,0.4,0.1,0.4l2,2c0.1,0.1,0.5,0.1,0.5,0.1s0.4,0,0.5-0.1%20L12.6,16.7z%20M6.1,18.9H2.6c-0.2,0-0.4-0.2-0.4-0.4v-5.8c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v4.7h2.4%20c0.2,0,0.4,0.2,0.4,0.4v0.6C6.5,18.7,6.3,18.9,6.1,18.9z%20M18.4,17.4H16v-1.7h2.4V17.4z'/%3e%3c/svg%3e", Be = "data:image/jpeg;base64,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", ml = { class: "user-card" }, gl = { class: "user-card__face-wrapper" }, fl = ["src"], _l = {
|
|
1244
|
+
}), dt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv1{fill:transparent;}.st1.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23C0C0C0;}%3c/style%3e%3crect%20class='st0%20lv1'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv1'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv1'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.2v0.7c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M15.8,18.9h2.6c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4h-0.6%20v-5.6c0-0.2-0.2-0.4-0.4-0.4h-1.4c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h0.4v4.6h-0.6c-0.2,0-0.4,0.2-0.4,0.4v0.6%20C15.3,18.7,15.5,18.9,15.8,18.9z%20M12.7,16.3v0.1c0,0.1-0.1,0.2-0.2,0.2c0,0,0,0-0.1,0.1l-2,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4V16.3L12.7,16.3z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", vt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv2{fill:transparent;}.st1.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%238BD29B;}%3c/style%3e%3crect%20class='st0%20lv2'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv2'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv2'%20d='M14,10h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6C1.3,20,1,19.8,1,19.4v-7.8%20C1,11.3,1.2,11,1.6,11h11.8v-0.4C13.4,10.3,13.6,10,14,10z%20M19.4,15.8c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H16v-1.7H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", pt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv3{fill:transparent;}.st1.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%237BCDEF;}%3c/style%3e%3crect%20class='st0%20lv3'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv3'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv3'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", mt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv4{fill:transparent;}.st1.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEBB8B;}%3c/style%3e%3crect%20class='st0%20lv4'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv4'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv4'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4h-0.6%20c-0.2,0-0.4,0.2-0.4,0.4v2.7H16v-2.7c0-0.2-0.2-0.4-0.4-0.4H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v2.7%20c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1s-0.4,0-0.5-0.1l-2-2%20c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", gt = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv5{fill:transparent;}.st1.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23EE672A;}%3c/style%3e%3crect%20class='st0%20lv5'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv5'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv5'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,12.7c0.2,0,0.4-0.2,0.4-0.4v-0.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H16v-1.6H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2%20v-3.3c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", ft = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv6{fill:transparent;}.st1.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23F04C49;}%3c/style%3e%3crect%20class='st0%20lv6'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv6'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv6'%20d='M14,10c-0.4,0-0.6,0.3-0.6,0.6V11H1.6C1.2,11,1,11.3,1,11.6v7.8C1,19.8,1.3,20,1.6,20h18.8%20c0.4,0,0.6-0.3,0.6-0.6v-8.8c0.1-0.3-0.2-0.6-0.5-0.6H14z%20M19.8,12.3c0,0.2-0.2,0.4-0.4,0.4H16v1.6h3.4c0.2,0,0.4,0.2,0.4,0.4v3.7%20c0,0.2-0.2,0.4-0.4,0.4H15c-0.2,0-0.4-0.2-0.4-0.4v-6.8c0-0.2,0.2-0.4,0.4-0.4h4.4c0.2,0,0.4,0.2,0.4,0.4V12.3z%20M12.6,16.7%20c0.1-0.1,0.1-0.2,0.1-0.4v-0.1v-3.4c0-0.2-0.2-0.4-0.4-0.4h-0.6c-0.2,0-0.4,0.2-0.4,0.4v3.3L10,17.3l-1.2-1.2v-3.4%20c0-0.2-0.2-0.4-0.4-0.4H7.8c-0.2,0-0.4,0.2-0.4,0.4v3.5v0.1c0,0.2,0,0.4,0.1,0.4l2,2c0.1,0.1,0.5,0.1,0.5,0.1s0.4,0,0.5-0.1%20L12.6,16.7z%20M6.1,18.9H2.6c-0.2,0-0.4-0.2-0.4-0.4v-5.8c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v4.7h2.4%20c0.2,0,0.4,0.2,0.4,0.4v0.6C6.5,18.7,6.3,18.9,6.1,18.9z%20M18.4,17.4H16v-1.7h2.4V17.4z'/%3e%3c/svg%3e", Be = "data:image/jpeg;base64,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", fl = { class: "user-card" }, _l = { class: "user-card__face-wrapper" }, hl = ["src"], wl = {
|
|
1183
1245
|
key: 0,
|
|
1184
1246
|
class: "user-card--blocked"
|
|
1185
|
-
},
|
|
1247
|
+
}, yl = { class: "user-card__info" }, kl = { class: "user-card__row" }, bl = ["src"], Al = { class: "user-card__row" }, Cl = { class: "user-card__uid" }, xl = { class: "user-card__row" }, El = { class: "user-card__stat__item" }, Bl = { class: "user-card__stat__value" }, Sl = { class: "user-card__stat__item" }, $l = { class: "user-card__stat__value" }, zl = { class: "user-card__stat__item" }, Dl = { class: "user-card__stat__value" }, Il = /* @__PURE__ */ S({
|
|
1186
1248
|
__name: "BiliUserCard",
|
|
1187
1249
|
props: {
|
|
1188
1250
|
user: {}
|
|
1189
1251
|
},
|
|
1190
1252
|
setup(e) {
|
|
1191
|
-
const l = e, s = C(() => l.user.face || Be), t = C(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg":
|
|
1192
|
-
return (
|
|
1193
|
-
const
|
|
1194
|
-
return r(),
|
|
1195
|
-
|
|
1196
|
-
a("div",
|
|
1253
|
+
const l = e, s = C(() => l.user.face || Be), t = C(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": dt, "../../assets/images/user_level/level_2.svg": vt, "../../assets/images/user_level/level_3.svg": pt, "../../assets/images/user_level/level_4.svg": mt, "../../assets/images/user_level/level_5.svg": gt, "../../assets/images/user_level/level_6.svg": ft }))[`../../assets/images/user_level/level_${l.user.level}.svg`], import.meta.url).href);
|
|
1254
|
+
return (o, n) => {
|
|
1255
|
+
const i = ae;
|
|
1256
|
+
return r(), f("div", fl, [
|
|
1257
|
+
P(o.$slots, "default"),
|
|
1258
|
+
a("div", _l, [
|
|
1197
1259
|
a("img", {
|
|
1198
1260
|
class: "user-card__face",
|
|
1199
1261
|
alt: "face",
|
|
1200
1262
|
src: s.value
|
|
1201
|
-
}, null, 8,
|
|
1202
|
-
e.user.silence === 1 ? (r(),
|
|
1263
|
+
}, null, 8, hl),
|
|
1264
|
+
e.user.silence === 1 ? (r(), f("span", wl, "账号已封禁")) : $("", !0)
|
|
1203
1265
|
]),
|
|
1204
|
-
a("div",
|
|
1205
|
-
a("div",
|
|
1206
|
-
v(
|
|
1266
|
+
a("div", yl, [
|
|
1267
|
+
a("div", kl, [
|
|
1268
|
+
v(i, {
|
|
1207
1269
|
class: "user-card__name",
|
|
1208
1270
|
content: e.user.name
|
|
1209
1271
|
}, null, 8, ["content"]),
|
|
@@ -1211,23 +1273,23 @@ const To = {
|
|
|
1211
1273
|
class: "user-card__level",
|
|
1212
1274
|
src: t.value,
|
|
1213
1275
|
alt: "level"
|
|
1214
|
-
}, null, 8,
|
|
1276
|
+
}, null, 8, bl)
|
|
1215
1277
|
]),
|
|
1216
1278
|
a("div", Al, [
|
|
1217
1279
|
n[0] || (n[0] = a("span", { class: "user-card__uid-icon" }, null, -1)),
|
|
1218
|
-
a("span",
|
|
1280
|
+
a("span", Cl, m(e.user.mid), 1)
|
|
1219
1281
|
]),
|
|
1220
|
-
a("div",
|
|
1221
|
-
a("span",
|
|
1222
|
-
a("span",
|
|
1282
|
+
a("div", xl, [
|
|
1283
|
+
a("span", El, [
|
|
1284
|
+
a("span", Bl, m(e.user.following), 1),
|
|
1223
1285
|
n[1] || (n[1] = a("span", { class: "user-card__stat__label" }, "关注", -1))
|
|
1224
1286
|
]),
|
|
1225
|
-
a("span",
|
|
1226
|
-
a("span",
|
|
1287
|
+
a("span", Sl, [
|
|
1288
|
+
a("span", $l, m(e.user.follower), 1),
|
|
1227
1289
|
n[2] || (n[2] = a("span", { class: "user-card__stat__label" }, "粉丝", -1))
|
|
1228
1290
|
]),
|
|
1229
|
-
a("span",
|
|
1230
|
-
a("span",
|
|
1291
|
+
a("span", zl, [
|
|
1292
|
+
a("span", Dl, m(e.user.coins), 1),
|
|
1231
1293
|
n[3] || (n[3] = a("span", { class: "user-card__stat__label" }, "硬币", -1))
|
|
1232
1294
|
])
|
|
1233
1295
|
])
|
|
@@ -1235,7 +1297,7 @@ const To = {
|
|
|
1235
1297
|
]);
|
|
1236
1298
|
};
|
|
1237
1299
|
}
|
|
1238
|
-
}),
|
|
1300
|
+
}), Pl = { class: "bili-user-info" }, Vl = ["src"], Ml = { class: "bili-user-info__right" }, Ql = { class: "bili-user-info__info-row" }, Tl = { class: "bili-user-info__uid" }, Hl = /* @__PURE__ */ S({
|
|
1239
1301
|
__name: "BiliUserInfo",
|
|
1240
1302
|
props: {
|
|
1241
1303
|
user: {}
|
|
@@ -1243,51 +1305,51 @@ const To = {
|
|
|
1243
1305
|
setup(e) {
|
|
1244
1306
|
return (l, s) => {
|
|
1245
1307
|
const t = ae;
|
|
1246
|
-
return r(),
|
|
1247
|
-
e.user.face ? (r(),
|
|
1308
|
+
return r(), f("div", Pl, [
|
|
1309
|
+
e.user.face ? (r(), f("img", {
|
|
1248
1310
|
key: 0,
|
|
1249
1311
|
class: "bili-user-info__face",
|
|
1250
1312
|
src: e.user.face,
|
|
1251
1313
|
alt: "face"
|
|
1252
|
-
}, null, 8,
|
|
1253
|
-
a("div",
|
|
1314
|
+
}, null, 8, Vl)) : $("", !0),
|
|
1315
|
+
a("div", Ml, [
|
|
1254
1316
|
v(t, {
|
|
1255
1317
|
class: "bili-user-info__name",
|
|
1256
1318
|
content: e.user.name
|
|
1257
1319
|
}, null, 8, ["content"]),
|
|
1258
|
-
a("div",
|
|
1320
|
+
a("div", Ql, [
|
|
1259
1321
|
s[0] || (s[0] = a("span", { class: "bili-user-info__uid-icon" }, null, -1)),
|
|
1260
|
-
a("span",
|
|
1322
|
+
a("span", Tl, m(e.user.mid), 1)
|
|
1261
1323
|
])
|
|
1262
1324
|
])
|
|
1263
1325
|
]);
|
|
1264
1326
|
};
|
|
1265
1327
|
}
|
|
1266
|
-
}),
|
|
1328
|
+
}), Zo = /* @__PURE__ */ H(Hl, [["__scopeId", "data-v-a22bf16f"]]), _t = /* @__PURE__ */ S({
|
|
1267
1329
|
__name: "PluginMenuItem",
|
|
1268
1330
|
props: {
|
|
1269
1331
|
menu: {}
|
|
1270
1332
|
},
|
|
1271
1333
|
setup(e) {
|
|
1272
1334
|
return (l, s) => {
|
|
1273
|
-
const t =
|
|
1274
|
-
return !e.menu.children || e.menu.children.length === 0 ? (r(),
|
|
1335
|
+
const t = st, o = as;
|
|
1336
|
+
return !e.menu.children || e.menu.children.length === 0 ? (r(), b(t, {
|
|
1275
1337
|
key: 0,
|
|
1276
1338
|
index: e.menu.path
|
|
1277
1339
|
}, {
|
|
1278
1340
|
title: d(() => [
|
|
1279
|
-
|
|
1341
|
+
k(m(e.menu.title), 1)
|
|
1280
1342
|
]),
|
|
1281
1343
|
_: 1
|
|
1282
|
-
}, 8, ["index"])) : (r(),
|
|
1344
|
+
}, 8, ["index"])) : (r(), b(o, {
|
|
1283
1345
|
key: 1,
|
|
1284
1346
|
index: e.menu.path
|
|
1285
1347
|
}, {
|
|
1286
1348
|
title: d(() => [
|
|
1287
|
-
|
|
1349
|
+
k(m(e.menu.title), 1)
|
|
1288
1350
|
]),
|
|
1289
1351
|
default: d(() => [
|
|
1290
|
-
(r(!0),
|
|
1352
|
+
(r(!0), f(L, null, q(e.menu.children, (n) => (r(), b(_t, {
|
|
1291
1353
|
key: n.path,
|
|
1292
1354
|
menu: n
|
|
1293
1355
|
}, null, 8, ["menu"]))), 128))
|
|
@@ -1296,7 +1358,7 @@ const To = {
|
|
|
1296
1358
|
}, 8, ["index"]));
|
|
1297
1359
|
};
|
|
1298
1360
|
}
|
|
1299
|
-
}),
|
|
1361
|
+
}), Rl = /* @__PURE__ */ S({
|
|
1300
1362
|
__name: "PluginMenus",
|
|
1301
1363
|
props: {
|
|
1302
1364
|
menus: {},
|
|
@@ -1304,45 +1366,45 @@ const To = {
|
|
|
1304
1366
|
},
|
|
1305
1367
|
emits: ["handleSelect"],
|
|
1306
1368
|
setup(e, { emit: l }) {
|
|
1307
|
-
const s = e, t = (
|
|
1308
|
-
w.set(
|
|
1309
|
-
}), w),
|
|
1310
|
-
const w =
|
|
1369
|
+
const s = e, t = (g, w = /* @__PURE__ */ new Map()) => (g.forEach((_) => {
|
|
1370
|
+
w.set(_.path, _), _.children && _.children.length > 0 && t(_.children, w);
|
|
1371
|
+
}), w), o = C(() => t(s.menus)), n = l, i = (g) => {
|
|
1372
|
+
const w = o.value.get(g);
|
|
1311
1373
|
w && n("handleSelect", w);
|
|
1312
|
-
}, c =
|
|
1313
|
-
return (
|
|
1314
|
-
const
|
|
1315
|
-
return r(),
|
|
1374
|
+
}, c = We(), u = C(() => !!c["left-item"] || !!c.left), p = C(() => !!c["right-item"] || !!c.right);
|
|
1375
|
+
return (g, w) => {
|
|
1376
|
+
const _ = st, A = os;
|
|
1377
|
+
return r(), b(A, {
|
|
1316
1378
|
"default-active": e.activeIndex,
|
|
1317
1379
|
class: "plugin-menus",
|
|
1318
1380
|
mode: "horizontal",
|
|
1319
1381
|
ellipsis: !1,
|
|
1320
|
-
onSelect:
|
|
1382
|
+
onSelect: i
|
|
1321
1383
|
}, {
|
|
1322
1384
|
default: d(() => [
|
|
1323
|
-
u.value ?
|
|
1324
|
-
v(
|
|
1385
|
+
u.value ? P(g.$slots, "left-item", { key: 0 }, () => [
|
|
1386
|
+
v(_, {
|
|
1325
1387
|
index: "-left",
|
|
1326
1388
|
style: { "margin-right": "auto" }
|
|
1327
1389
|
}, {
|
|
1328
1390
|
default: d(() => [
|
|
1329
|
-
|
|
1391
|
+
P(g.$slots, "left", {}, void 0, !0)
|
|
1330
1392
|
]),
|
|
1331
1393
|
_: 3
|
|
1332
1394
|
})
|
|
1333
1395
|
], !0) : $("", !0),
|
|
1334
|
-
(r(!0),
|
|
1396
|
+
(r(!0), f(L, null, q(e.menus, (x) => (r(), b(_t, {
|
|
1335
1397
|
key: x.path,
|
|
1336
1398
|
menu: x,
|
|
1337
1399
|
index: String(x.path)
|
|
1338
1400
|
}, null, 8, ["menu", "index"]))), 128)),
|
|
1339
|
-
|
|
1340
|
-
v(
|
|
1401
|
+
p.value ? P(g.$slots, "right-item", { key: 1 }, () => [
|
|
1402
|
+
v(_, {
|
|
1341
1403
|
index: "-right",
|
|
1342
1404
|
style: { "margin-left": "auto" }
|
|
1343
1405
|
}, {
|
|
1344
1406
|
default: d(() => [
|
|
1345
|
-
|
|
1407
|
+
P(g.$slots, "right", {}, void 0, !0)
|
|
1346
1408
|
]),
|
|
1347
1409
|
_: 3
|
|
1348
1410
|
})
|
|
@@ -1352,9 +1414,9 @@ const To = {
|
|
|
1352
1414
|
}, 8, ["default-active"]);
|
|
1353
1415
|
};
|
|
1354
1416
|
}
|
|
1355
|
-
}),
|
|
1356
|
-
new
|
|
1357
|
-
var Se = /* @__PURE__ */ new Map(),
|
|
1417
|
+
}), Ll = /* @__PURE__ */ H(Rl, [["__scopeId", "data-v-6dfc7821"]]);
|
|
1418
|
+
new Ft();
|
|
1419
|
+
var Se = /* @__PURE__ */ new Map(), ht = async (e, l) => {
|
|
1358
1420
|
const s = await window.toolkitApi.bili.createBiliClient({
|
|
1359
1421
|
context: {
|
|
1360
1422
|
userCookie: e.userCookie
|
|
@@ -1363,26 +1425,26 @@ var Se = /* @__PURE__ */ new Map(), ft = async (e, l) => {
|
|
|
1363
1425
|
});
|
|
1364
1426
|
if (!s) throw new Error("内部错误,创建 BiliClient 失败");
|
|
1365
1427
|
return Se.set(e.mid, s.id), s.id;
|
|
1366
|
-
},
|
|
1428
|
+
}, Fl = async (e, l) => {
|
|
1367
1429
|
if (!e || !e.mid) throw new Error("用户未登录");
|
|
1368
|
-
return Se.has(e.mid) ? Se.get(e.mid) : await
|
|
1369
|
-
},
|
|
1370
|
-
reset:
|
|
1371
|
-
get:
|
|
1372
|
-
},
|
|
1373
|
-
},
|
|
1374
|
-
function
|
|
1375
|
-
return new Proxy(
|
|
1430
|
+
return Se.has(e.mid) ? Se.get(e.mid) : await ht(e, l);
|
|
1431
|
+
}, Ul = {
|
|
1432
|
+
reset: ht,
|
|
1433
|
+
get: Fl
|
|
1434
|
+
}, Ol = () => {
|
|
1435
|
+
}, ql = /* @__PURE__ */ new Set(["then", "catch", "finally", "toJSON", "toString", "valueOf"]);
|
|
1436
|
+
function wt(e, l = []) {
|
|
1437
|
+
return new Proxy(Ol, {
|
|
1376
1438
|
get(s, t) {
|
|
1377
|
-
if (typeof t != "symbol" && !(l.length === 0 &&
|
|
1378
|
-
return
|
|
1439
|
+
if (typeof t != "symbol" && !(l.length === 0 && ql.has(t)))
|
|
1440
|
+
return wt(e, l.concat(t));
|
|
1379
1441
|
},
|
|
1380
|
-
async apply(s, t,
|
|
1381
|
-
let n,
|
|
1382
|
-
if (
|
|
1383
|
-
for (const u of
|
|
1384
|
-
typeof u == "object" && "signal" in u && u.signal instanceof AbortSignal && (n = u.signal,
|
|
1385
|
-
window.toolkitApi.bili.abortBiliApi(
|
|
1442
|
+
async apply(s, t, o) {
|
|
1443
|
+
let n, i, c;
|
|
1444
|
+
if (o && o.length > 0)
|
|
1445
|
+
for (const u of o)
|
|
1446
|
+
typeof u == "object" && "signal" in u && u.signal instanceof AbortSignal && (n = u.signal, i = crypto.randomUUID(), u.signal = i, c = () => {
|
|
1447
|
+
window.toolkitApi.bili.abortBiliApi(i);
|
|
1386
1448
|
}, n.addEventListener("abort", c));
|
|
1387
1449
|
try {
|
|
1388
1450
|
const u = await window.toolkitApi.bili.invokeBiliApi(
|
|
@@ -1391,22 +1453,22 @@ function _t(e, l = []) {
|
|
|
1391
1453
|
},
|
|
1392
1454
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1393
1455
|
l.join("."),
|
|
1394
|
-
...
|
|
1456
|
+
...o
|
|
1395
1457
|
);
|
|
1396
|
-
return
|
|
1458
|
+
return Kt(u);
|
|
1397
1459
|
} finally {
|
|
1398
1460
|
c && n && n.removeEventListener("abort", c);
|
|
1399
1461
|
}
|
|
1400
1462
|
}
|
|
1401
1463
|
});
|
|
1402
1464
|
}
|
|
1403
|
-
async function
|
|
1404
|
-
return
|
|
1465
|
+
async function jl(e, l) {
|
|
1466
|
+
return wt(await Ul.reset(e, l));
|
|
1405
1467
|
}
|
|
1406
|
-
const
|
|
1468
|
+
const Nl = { class: "plugin-page-header" }, Zl = { class: "plugin-page-header__user-container" }, Wl = { class: "plugin-page-header__user-container__info" }, Gl = ["src"], Jl = ["src"], Kl = {
|
|
1407
1469
|
key: 1,
|
|
1408
1470
|
class: "plugin-page-header__user-container__info"
|
|
1409
|
-
},
|
|
1471
|
+
}, Wo = /* @__PURE__ */ S({
|
|
1410
1472
|
__name: "PluginPageHeader",
|
|
1411
1473
|
props: {
|
|
1412
1474
|
menus: {},
|
|
@@ -1414,46 +1476,46 @@ const jl = { class: "plugin-page-header" }, Ol = { class: "plugin-page-header__u
|
|
|
1414
1476
|
},
|
|
1415
1477
|
emits: ["handleMenuSelect"],
|
|
1416
1478
|
setup(e, { emit: l }) {
|
|
1417
|
-
const s =
|
|
1418
|
-
const
|
|
1419
|
-
s.setUser(
|
|
1479
|
+
const s = He(), { user: t } = Qt(s), o = C(() => t.value?.face || Be), n = C(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": dt, "../../assets/images/user_level/level_2.svg": vt, "../../assets/images/user_level/level_3.svg": pt, "../../assets/images/user_level/level_4.svg": mt, "../../assets/images/user_level/level_5.svg": gt, "../../assets/images/user_level/level_6.svg": ft }))[`../../assets/images/user_level/level_${t.value?.level ?? 0}.svg`], import.meta.url).href), i = async () => {
|
|
1480
|
+
const g = await T.user.switchUser(!0);
|
|
1481
|
+
s.setUser(g), await jl(g);
|
|
1420
1482
|
}, c = () => {
|
|
1421
1483
|
s.deleteUser();
|
|
1422
|
-
}, u = l,
|
|
1423
|
-
|
|
1484
|
+
}, u = l, p = (g) => {
|
|
1485
|
+
g && u("handleMenuSelect", g);
|
|
1424
1486
|
};
|
|
1425
|
-
return
|
|
1487
|
+
return ee(async () => {
|
|
1426
1488
|
if (t.value)
|
|
1427
1489
|
try {
|
|
1428
|
-
const
|
|
1429
|
-
s.setUser(
|
|
1490
|
+
const g = await T.user.getMyInfoByCookie(t.value.userCookie);
|
|
1491
|
+
s.setUser(g);
|
|
1430
1492
|
} catch {
|
|
1431
1493
|
ie("当前用户 cookie 已失效"), s.deleteUser();
|
|
1432
1494
|
}
|
|
1433
|
-
}), (
|
|
1434
|
-
const
|
|
1435
|
-
return r(),
|
|
1436
|
-
v(
|
|
1495
|
+
}), (g, w) => {
|
|
1496
|
+
const _ = Ll, A = ae, x = Il, V = is, B = us, D = rs, M = cs;
|
|
1497
|
+
return r(), f("div", Nl, [
|
|
1498
|
+
v(_, {
|
|
1437
1499
|
class: "plugin-page-header__menus",
|
|
1438
1500
|
"active-index": e.activeIndex,
|
|
1439
1501
|
menus: e.menus,
|
|
1440
|
-
onHandleSelect:
|
|
1502
|
+
onHandleSelect: p
|
|
1441
1503
|
}, null, 8, ["active-index", "menus"]),
|
|
1442
|
-
a("div",
|
|
1443
|
-
h(t) ? (r(),
|
|
1504
|
+
a("div", Zl, [
|
|
1505
|
+
h(t) ? (r(), b(V, {
|
|
1444
1506
|
key: 0,
|
|
1445
1507
|
placement: "bottom-end",
|
|
1446
1508
|
width: "auto",
|
|
1447
1509
|
trigger: "hover"
|
|
1448
1510
|
}, {
|
|
1449
1511
|
reference: d(() => [
|
|
1450
|
-
a("div",
|
|
1512
|
+
a("div", Wl, [
|
|
1451
1513
|
a("img", {
|
|
1452
1514
|
class: "plugin-page-header__user-container__info__face",
|
|
1453
|
-
src:
|
|
1515
|
+
src: o.value,
|
|
1454
1516
|
alt: "face"
|
|
1455
|
-
}, null, 8,
|
|
1456
|
-
v(
|
|
1517
|
+
}, null, 8, Gl),
|
|
1518
|
+
v(A, {
|
|
1457
1519
|
class: "plugin-page-header__user-container__info__name",
|
|
1458
1520
|
content: h(t).name
|
|
1459
1521
|
}, null, 8, ["content"]),
|
|
@@ -1461,14 +1523,14 @@ const jl = { class: "plugin-page-header" }, Ol = { class: "plugin-page-header__u
|
|
|
1461
1523
|
class: "plugin-page-header__user-container__info__level",
|
|
1462
1524
|
src: n.value,
|
|
1463
1525
|
alt: "level img"
|
|
1464
|
-
}, null, 8,
|
|
1526
|
+
}, null, 8, Jl)
|
|
1465
1527
|
])
|
|
1466
1528
|
]),
|
|
1467
1529
|
default: d(() => [
|
|
1468
1530
|
v(x, { user: h(t) }, null, 8, ["user"])
|
|
1469
1531
|
]),
|
|
1470
1532
|
_: 1
|
|
1471
|
-
})) : (r(),
|
|
1533
|
+
})) : (r(), f("div", Kl, [...w[0] || (w[0] = [
|
|
1472
1534
|
a("img", {
|
|
1473
1535
|
class: "plugin-page-header__user-container__info__face",
|
|
1474
1536
|
alt: "",
|
|
@@ -1476,7 +1538,7 @@ const jl = { class: "plugin-page-header" }, Ol = { class: "plugin-page-header__u
|
|
|
1476
1538
|
}, null, -1),
|
|
1477
1539
|
a("span", { class: "plugin-page-header__user-container__info__name" }, "未登录", -1)
|
|
1478
1540
|
])])),
|
|
1479
|
-
v(
|
|
1541
|
+
v(M, {
|
|
1480
1542
|
placement: "bottom-end",
|
|
1481
1543
|
trigger: "click",
|
|
1482
1544
|
size: "default"
|
|
@@ -1484,18 +1546,18 @@ const jl = { class: "plugin-page-header" }, Ol = { class: "plugin-page-header__u
|
|
|
1484
1546
|
dropdown: d(() => [
|
|
1485
1547
|
v(D, null, {
|
|
1486
1548
|
default: d(() => [
|
|
1487
|
-
v(
|
|
1549
|
+
v(B, { onClick: i }, {
|
|
1488
1550
|
default: d(() => [...w[1] || (w[1] = [
|
|
1489
|
-
|
|
1551
|
+
k("选择用户", -1)
|
|
1490
1552
|
])]),
|
|
1491
1553
|
_: 1
|
|
1492
1554
|
}),
|
|
1493
|
-
h(t) ? (r(),
|
|
1555
|
+
h(t) ? (r(), b(B, {
|
|
1494
1556
|
key: 0,
|
|
1495
1557
|
onClick: c
|
|
1496
1558
|
}, {
|
|
1497
1559
|
default: d(() => [...w[2] || (w[2] = [
|
|
1498
|
-
|
|
1560
|
+
k("取消选择", -1)
|
|
1499
1561
|
])]),
|
|
1500
1562
|
_: 1
|
|
1501
1563
|
})) : $("", !0)
|
|
@@ -1512,13 +1574,13 @@ const jl = { class: "plugin-page-header" }, Ol = { class: "plugin-page-header__u
|
|
|
1512
1574
|
]);
|
|
1513
1575
|
};
|
|
1514
1576
|
}
|
|
1515
|
-
}),
|
|
1516
|
-
function
|
|
1517
|
-
return r(),
|
|
1518
|
-
|
|
1577
|
+
}), Yl = {}, Xl = { class: "plugin-page-container" };
|
|
1578
|
+
function en(e, l) {
|
|
1579
|
+
return r(), f("div", Xl, [
|
|
1580
|
+
P(e.$slots, "default", {}, void 0, !0)
|
|
1519
1581
|
]);
|
|
1520
1582
|
}
|
|
1521
|
-
const
|
|
1583
|
+
const Go = /* @__PURE__ */ H(Yl, [["render", en], ["__scopeId", "data-v-ddcb3392"]]), tn = { class: "page-table__toolbar" }, sn = { class: "page-table__actions" }, ln = /* @__PURE__ */ S({
|
|
1522
1584
|
inheritAttrs: !1,
|
|
1523
1585
|
__name: "PageTable",
|
|
1524
1586
|
props: {
|
|
@@ -1535,79 +1597,79 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1535
1597
|
},
|
|
1536
1598
|
emits: ["reset", "search"],
|
|
1537
1599
|
setup(e, { expose: l, emit: s }) {
|
|
1538
|
-
const t =
|
|
1600
|
+
const t = Vt(), o = C(() => ({
|
|
1539
1601
|
class: t.class,
|
|
1540
1602
|
style: t.style
|
|
1541
1603
|
})), n = C(() => {
|
|
1542
|
-
const { class:
|
|
1543
|
-
return
|
|
1544
|
-
}),
|
|
1604
|
+
const { class: Q, style: j, ...pe } = t;
|
|
1605
|
+
return pe;
|
|
1606
|
+
}), i = e, c = E(!1), u = C(() => i.pageParams ? i.pageParams : {
|
|
1545
1607
|
pageNum: 1,
|
|
1546
|
-
pageSize:
|
|
1608
|
+
pageSize: i.pageSizes[0]
|
|
1547
1609
|
}), {
|
|
1548
|
-
pageData:
|
|
1549
|
-
tableData:
|
|
1610
|
+
pageData: p,
|
|
1611
|
+
tableData: g,
|
|
1550
1612
|
loading: w,
|
|
1551
|
-
refresh:
|
|
1552
|
-
resetAndRefresh:
|
|
1613
|
+
refresh: _,
|
|
1614
|
+
resetAndRefresh: A,
|
|
1553
1615
|
resetPageAndRefresh: x,
|
|
1554
1616
|
handleSizeChange: V,
|
|
1555
|
-
handleCurrPageChange:
|
|
1556
|
-
} =
|
|
1557
|
-
fetchPage:
|
|
1617
|
+
handleCurrPageChange: B
|
|
1618
|
+
} = ct({
|
|
1619
|
+
fetchPage: i.fetchPage,
|
|
1558
1620
|
pageParams: () => u.value,
|
|
1559
|
-
queryParams:
|
|
1560
|
-
autoLoad:
|
|
1621
|
+
queryParams: i.queryParams ? () => i.queryParams : void 0,
|
|
1622
|
+
autoLoad: i.autoLoad,
|
|
1561
1623
|
onLoaded: () => {
|
|
1562
|
-
c.value = !0,
|
|
1624
|
+
c.value = !0, z.value?.setScrollTop(0);
|
|
1563
1625
|
}
|
|
1564
|
-
}), D = s,
|
|
1565
|
-
D("search"),
|
|
1626
|
+
}), D = s, M = () => {
|
|
1627
|
+
D("search"), _();
|
|
1566
1628
|
}, F = async () => {
|
|
1567
|
-
D("reset"), await
|
|
1568
|
-
}, { elementRef:
|
|
1569
|
-
search:
|
|
1570
|
-
resetQuery:
|
|
1571
|
-
})),
|
|
1629
|
+
D("reset"), await ue(), await A();
|
|
1630
|
+
}, { elementRef: I, height: y } = bs("tableWrapperRef"), z = te("tableRef"), U = C(() => i.tableHeight ? i.tableHeight : y.value), le = C(() => ({
|
|
1631
|
+
search: i.actions.includes("search"),
|
|
1632
|
+
resetQuery: i.actions.includes("resetQuery")
|
|
1633
|
+
})), ne = C(() => i.pageSizes && i.pageSizes.length > 1 ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), ve = !!We().query;
|
|
1572
1634
|
return l({
|
|
1573
1635
|
loading: w,
|
|
1574
|
-
tableRef:
|
|
1575
|
-
tableData:
|
|
1576
|
-
pageData:
|
|
1577
|
-
refresh:
|
|
1578
|
-
resetAndRefresh:
|
|
1636
|
+
tableRef: z,
|
|
1637
|
+
tableData: g,
|
|
1638
|
+
pageData: p,
|
|
1639
|
+
refresh: _,
|
|
1640
|
+
resetAndRefresh: A,
|
|
1579
1641
|
resetPageAndRefresh: x,
|
|
1580
|
-
getSelectionRows:
|
|
1581
|
-
toggleRowSelection:
|
|
1582
|
-
setCurrentRow:
|
|
1583
|
-
clearSelection:
|
|
1584
|
-
scrollTo:
|
|
1585
|
-
}), (
|
|
1586
|
-
const
|
|
1587
|
-
return G((r(),
|
|
1588
|
-
a("div",
|
|
1642
|
+
getSelectionRows: z.value?.getSelectionRows,
|
|
1643
|
+
toggleRowSelection: z.value?.toggleRowSelection,
|
|
1644
|
+
setCurrentRow: z.value?.setCurrentRow,
|
|
1645
|
+
clearSelection: z.value?.clearSelection,
|
|
1646
|
+
scrollTo: z.value?.scrollTo
|
|
1647
|
+
}), (Q, j) => {
|
|
1648
|
+
const pe = K, Ct = vs, xt = lt, Et = ds, Bt = nt, St = Pe;
|
|
1649
|
+
return G((r(), f("div", Y({ class: "page-table" }, o.value), [
|
|
1650
|
+
a("div", tn, [
|
|
1589
1651
|
a("div", {
|
|
1590
|
-
class: W(["page-table__query",
|
|
1652
|
+
class: W(["page-table__query", ve ? "has-query" : ""])
|
|
1591
1653
|
}, [
|
|
1592
|
-
|
|
1593
|
-
a("div",
|
|
1594
|
-
|
|
1595
|
-
|
|
1654
|
+
P(Q.$slots, "query", {}, void 0, !0),
|
|
1655
|
+
a("div", sn, [
|
|
1656
|
+
P(Q.$slots, "actions", {}, void 0, !0),
|
|
1657
|
+
le.value.search ? (r(), b(pe, {
|
|
1596
1658
|
key: 0,
|
|
1597
1659
|
type: "primary",
|
|
1598
|
-
onClick:
|
|
1660
|
+
onClick: M
|
|
1599
1661
|
}, {
|
|
1600
1662
|
default: d(() => [
|
|
1601
|
-
|
|
1663
|
+
k(m(e.searchActionLabel), 1)
|
|
1602
1664
|
]),
|
|
1603
1665
|
_: 1
|
|
1604
1666
|
})) : $("", !0),
|
|
1605
|
-
|
|
1667
|
+
le.value.resetQuery ? (r(), b(pe, {
|
|
1606
1668
|
key: 1,
|
|
1607
1669
|
onClick: F
|
|
1608
1670
|
}, {
|
|
1609
|
-
default: d(() => [...
|
|
1610
|
-
|
|
1671
|
+
default: d(() => [...j[2] || (j[2] = [
|
|
1672
|
+
k("重置", -1)
|
|
1611
1673
|
])]),
|
|
1612
1674
|
_: 1
|
|
1613
1675
|
})) : $("", !0)
|
|
@@ -1616,55 +1678,55 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1616
1678
|
]),
|
|
1617
1679
|
a("div", {
|
|
1618
1680
|
ref_key: "tableWrapperRef",
|
|
1619
|
-
ref:
|
|
1681
|
+
ref: I,
|
|
1620
1682
|
class: "page-table__table-wrapper"
|
|
1621
1683
|
}, [
|
|
1622
|
-
c.value ? (r(),
|
|
1684
|
+
c.value ? (r(), b(Et, Y({
|
|
1623
1685
|
key: 0,
|
|
1624
1686
|
ref_key: "tableRef",
|
|
1625
|
-
ref:
|
|
1687
|
+
ref: z
|
|
1626
1688
|
}, n.value, {
|
|
1627
1689
|
class: "page-table__table",
|
|
1628
|
-
data: h(
|
|
1690
|
+
data: h(g),
|
|
1629
1691
|
border: "",
|
|
1630
1692
|
height: U.value,
|
|
1631
1693
|
"table-layout": e.tableLayout,
|
|
1632
1694
|
"highlight-current-row": e.selectionMode === "single"
|
|
1633
1695
|
}), {
|
|
1634
1696
|
empty: d(() => [
|
|
1635
|
-
|
|
1636
|
-
v(
|
|
1697
|
+
P(Q.$slots, "empty", {}, () => [
|
|
1698
|
+
v(xt, { description: "没有数据" })
|
|
1637
1699
|
], !0)
|
|
1638
1700
|
]),
|
|
1639
1701
|
default: d(() => [
|
|
1640
|
-
e.selectionMode === "multiple" ? (r(),
|
|
1702
|
+
e.selectionMode === "multiple" ? (r(), b(Ct, {
|
|
1641
1703
|
key: 0,
|
|
1642
1704
|
type: "selection",
|
|
1643
1705
|
width: "55"
|
|
1644
1706
|
})) : $("", !0),
|
|
1645
|
-
|
|
1707
|
+
P(Q.$slots, "default", {}, void 0, !0)
|
|
1646
1708
|
]),
|
|
1647
1709
|
_: 3
|
|
1648
1710
|
}, 16, ["data", "height", "table-layout", "highlight-current-row"])) : $("", !0)
|
|
1649
1711
|
], 512),
|
|
1650
|
-
v(
|
|
1712
|
+
v(Bt, {
|
|
1651
1713
|
class: "page-table__pagination",
|
|
1652
|
-
"current-page": h(
|
|
1653
|
-
"onUpdate:currentPage":
|
|
1654
|
-
"page-size": h(
|
|
1655
|
-
"onUpdate:pageSize":
|
|
1714
|
+
"current-page": h(p).pageNum,
|
|
1715
|
+
"onUpdate:currentPage": j[0] || (j[0] = (be) => h(p).pageNum = be),
|
|
1716
|
+
"page-size": h(p).pageSize,
|
|
1717
|
+
"onUpdate:pageSize": j[1] || (j[1] = (be) => h(p).pageSize = be),
|
|
1656
1718
|
"page-sizes": e.pageSizes,
|
|
1657
|
-
total: h(
|
|
1658
|
-
layout:
|
|
1659
|
-
onCurrentChange: h(
|
|
1719
|
+
total: h(p).total,
|
|
1720
|
+
layout: ne.value,
|
|
1721
|
+
onCurrentChange: h(B),
|
|
1660
1722
|
onSizeChange: h(V)
|
|
1661
1723
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout", "onCurrentChange", "onSizeChange"])
|
|
1662
1724
|
], 16)), [
|
|
1663
|
-
[
|
|
1725
|
+
[St, h(w)]
|
|
1664
1726
|
]);
|
|
1665
1727
|
};
|
|
1666
1728
|
}
|
|
1667
|
-
}),
|
|
1729
|
+
}), Jo = /* @__PURE__ */ H(ln, [["__scopeId", "data-v-293a15d1"]]), Ne = "delete-confirm-dialog:delete-source-file", nn = /* @__PURE__ */ S({
|
|
1668
1730
|
__name: "DeleteConfirmDialog",
|
|
1669
1731
|
props: {
|
|
1670
1732
|
visible: { type: Boolean },
|
|
@@ -1675,53 +1737,53 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1675
1737
|
},
|
|
1676
1738
|
emits: ["confirm", "cancel"],
|
|
1677
1739
|
setup(e, { emit: l }) {
|
|
1678
|
-
const s = l, t =
|
|
1679
|
-
function
|
|
1680
|
-
localStorage.setItem(
|
|
1740
|
+
const s = l, t = E(localStorage.getItem(Ne) === "true");
|
|
1741
|
+
function o() {
|
|
1742
|
+
localStorage.setItem(Ne, String(t.value));
|
|
1681
1743
|
}
|
|
1682
1744
|
function n() {
|
|
1683
1745
|
s("confirm", t.value);
|
|
1684
1746
|
}
|
|
1685
|
-
function
|
|
1747
|
+
function i() {
|
|
1686
1748
|
s("cancel");
|
|
1687
1749
|
}
|
|
1688
1750
|
return (c, u) => {
|
|
1689
|
-
const
|
|
1690
|
-
return r(),
|
|
1751
|
+
const p = ps, g = K, w = de;
|
|
1752
|
+
return r(), b(w, {
|
|
1691
1753
|
"model-value": e.visible,
|
|
1692
1754
|
title: e.title,
|
|
1693
1755
|
width: "420px",
|
|
1694
1756
|
"close-on-click-modal": !1,
|
|
1695
1757
|
"close-on-press-escape": !1,
|
|
1696
|
-
onClose:
|
|
1758
|
+
onClose: i
|
|
1697
1759
|
}, {
|
|
1698
1760
|
footer: d(() => [
|
|
1699
|
-
v(
|
|
1761
|
+
v(g, { onClick: i }, {
|
|
1700
1762
|
default: d(() => [
|
|
1701
|
-
|
|
1763
|
+
k(m(e.cancelButtonText), 1)
|
|
1702
1764
|
]),
|
|
1703
1765
|
_: 1
|
|
1704
1766
|
}),
|
|
1705
|
-
v(
|
|
1767
|
+
v(g, {
|
|
1706
1768
|
type: "danger",
|
|
1707
1769
|
onClick: n
|
|
1708
1770
|
}, {
|
|
1709
1771
|
default: d(() => [
|
|
1710
|
-
|
|
1772
|
+
k(m(e.confirmButtonText), 1)
|
|
1711
1773
|
]),
|
|
1712
1774
|
_: 1
|
|
1713
1775
|
})
|
|
1714
1776
|
]),
|
|
1715
1777
|
default: d(() => [
|
|
1716
|
-
a("div", null,
|
|
1717
|
-
v(
|
|
1778
|
+
a("div", null, m(e.message), 1),
|
|
1779
|
+
v(p, {
|
|
1718
1780
|
modelValue: t.value,
|
|
1719
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1781
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => t.value = _),
|
|
1720
1782
|
style: { "margin-top": "16px" },
|
|
1721
|
-
onChange:
|
|
1783
|
+
onChange: o
|
|
1722
1784
|
}, {
|
|
1723
1785
|
default: d(() => [...u[1] || (u[1] = [
|
|
1724
|
-
|
|
1786
|
+
k(" 同时删除本地磁盘源文件 ", -1)
|
|
1725
1787
|
])]),
|
|
1726
1788
|
_: 1
|
|
1727
1789
|
}, 8, ["modelValue"])
|
|
@@ -1730,7 +1792,7 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1730
1792
|
}, 8, ["model-value", "title"]);
|
|
1731
1793
|
};
|
|
1732
1794
|
}
|
|
1733
|
-
}),
|
|
1795
|
+
}), yt = /* @__PURE__ */ S({
|
|
1734
1796
|
__name: "DownloadStatus",
|
|
1735
1797
|
props: {
|
|
1736
1798
|
task: {}
|
|
@@ -1755,22 +1817,22 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1755
1817
|
default:
|
|
1756
1818
|
return "info";
|
|
1757
1819
|
}
|
|
1758
|
-
}), t = C(() =>
|
|
1759
|
-
return (
|
|
1760
|
-
const
|
|
1761
|
-
return r(),
|
|
1820
|
+
}), t = C(() => Xe[l.task.status]);
|
|
1821
|
+
return (o, n) => {
|
|
1822
|
+
const i = at;
|
|
1823
|
+
return r(), b(i, {
|
|
1762
1824
|
type: s.value,
|
|
1763
1825
|
"disable-transitions": "",
|
|
1764
1826
|
size: "small"
|
|
1765
1827
|
}, {
|
|
1766
1828
|
default: d(() => [
|
|
1767
|
-
|
|
1829
|
+
k(m(t.value), 1)
|
|
1768
1830
|
]),
|
|
1769
1831
|
_: 1
|
|
1770
1832
|
}, 8, ["type"]);
|
|
1771
1833
|
};
|
|
1772
1834
|
}
|
|
1773
|
-
}),
|
|
1835
|
+
}), kt = /* @__PURE__ */ S({
|
|
1774
1836
|
__name: "DownloadProgress",
|
|
1775
1837
|
props: {
|
|
1776
1838
|
task: {}
|
|
@@ -1785,10 +1847,10 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1785
1847
|
default:
|
|
1786
1848
|
return;
|
|
1787
1849
|
}
|
|
1788
|
-
}), t = C(() =>
|
|
1789
|
-
return (
|
|
1790
|
-
const
|
|
1791
|
-
return r(),
|
|
1850
|
+
}), t = C(() => Yt(l.task.status, ["downloading", "merging"]));
|
|
1851
|
+
return (o, n) => {
|
|
1852
|
+
const i = tt;
|
|
1853
|
+
return r(), b(i, {
|
|
1792
1854
|
percentage: e.task.progress ? e.task.progress.percent : 0,
|
|
1793
1855
|
"stroke-width": 8,
|
|
1794
1856
|
"show-text": !0,
|
|
@@ -1799,7 +1861,7 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1799
1861
|
}, null, 8, ["percentage", "status", "striped", "striped-flow"]);
|
|
1800
1862
|
};
|
|
1801
1863
|
}
|
|
1802
|
-
}), $e = (e) =>
|
|
1864
|
+
}), $e = (e) => Xt(e / 1024), an = (e) => e === 0 ? "0 KB/s" : e < 1024 ? e.toFixed(1) + " KB/s" : (e / 1024).toFixed(1) + " MB/s", ze = (e) => e <= 1e4 ? String(e) : e < 1e8 ? (e / 1e4).toFixed(1) + "万" : (e / 1e8).toFixed(1) + "亿", on = { class: "detail-item" }, cn = { class: "value" }, rn = { class: "detail-item" }, un = { class: "value" }, dn = { class: "detail-item" }, vn = { class: "value" }, pn = /* @__PURE__ */ S({
|
|
1803
1865
|
__name: "DownloadProgressDetails",
|
|
1804
1866
|
props: {
|
|
1805
1867
|
task: {},
|
|
@@ -1807,38 +1869,38 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1807
1869
|
isCompact: { type: Boolean }
|
|
1808
1870
|
},
|
|
1809
1871
|
setup(e) {
|
|
1810
|
-
return (l, s) => (r(),
|
|
1872
|
+
return (l, s) => (r(), f("div", {
|
|
1811
1873
|
class: "download-progress-details",
|
|
1812
|
-
style:
|
|
1874
|
+
style: fe({ gap: e.isCompact ? "10px" : "20px" })
|
|
1813
1875
|
}, [
|
|
1814
|
-
e.task.progress ? (r(),
|
|
1815
|
-
a("div",
|
|
1876
|
+
e.task.progress ? (r(), f(L, { key: 0 }, [
|
|
1877
|
+
a("div", on, [
|
|
1816
1878
|
s[0] || (s[0] = a("span", { class: "label" }, "速度:", -1)),
|
|
1817
|
-
a("span",
|
|
1879
|
+
a("span", cn, m(h(an)(e.task.progress.speedKBps)), 1)
|
|
1818
1880
|
]),
|
|
1819
|
-
a("div",
|
|
1881
|
+
a("div", rn, [
|
|
1820
1882
|
s[2] || (s[2] = a("span", { class: "label" }, "文件:", -1)),
|
|
1821
|
-
a("div",
|
|
1822
|
-
a("span", null,
|
|
1883
|
+
a("div", un, [
|
|
1884
|
+
a("span", null, m(e.task.progress?.currentItem), 1),
|
|
1823
1885
|
s[1] || (s[1] = a("span", null, " / ", -1)),
|
|
1824
|
-
a("span", null,
|
|
1886
|
+
a("span", null, m(e.resourceCount), 1)
|
|
1825
1887
|
])
|
|
1826
1888
|
]),
|
|
1827
|
-
a("div",
|
|
1889
|
+
a("div", dn, [
|
|
1828
1890
|
s[4] || (s[4] = a("span", { class: "label" }, "已完成:", -1)),
|
|
1829
|
-
a("div",
|
|
1830
|
-
a("span", null,
|
|
1891
|
+
a("div", vn, [
|
|
1892
|
+
a("span", null, m(h($e)(e.task.progress.completedBytes)), 1),
|
|
1831
1893
|
s[3] || (s[3] = a("span", null, " / ", -1)),
|
|
1832
|
-
a("span", null,
|
|
1894
|
+
a("span", null, m(h($e)(e.task.progress.totalBytes)), 1)
|
|
1833
1895
|
])
|
|
1834
1896
|
])
|
|
1835
1897
|
], 64)) : $("", !0)
|
|
1836
1898
|
], 4));
|
|
1837
1899
|
}
|
|
1838
|
-
}),
|
|
1900
|
+
}), bt = /* @__PURE__ */ H(pn, [["__scopeId", "data-v-1923a35f"]]), mn = { class: "download-result" }, gn = {
|
|
1839
1901
|
key: 0,
|
|
1840
1902
|
class: "detail-item"
|
|
1841
|
-
},
|
|
1903
|
+
}, fn = { class: "detail-item" }, _n = { class: "detail-item" }, hn = /* @__PURE__ */ S({
|
|
1842
1904
|
__name: "DownloadResult",
|
|
1843
1905
|
props: {
|
|
1844
1906
|
task: {},
|
|
@@ -1848,23 +1910,23 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1848
1910
|
setup(e) {
|
|
1849
1911
|
return (l, s) => {
|
|
1850
1912
|
const t = N;
|
|
1851
|
-
return r(),
|
|
1913
|
+
return r(), f("div", mn, [
|
|
1852
1914
|
s[0] || (s[0] = a("span", { class: "hint" }, "总共:", -1)),
|
|
1853
|
-
e.task.result ? (r(),
|
|
1854
|
-
a("span", null,
|
|
1915
|
+
e.task.result ? (r(), f("span", gn, [
|
|
1916
|
+
a("span", null, m(h($e)(e.task.result.totalBytes)), 1)
|
|
1855
1917
|
])) : $("", !0),
|
|
1856
|
-
a("span",
|
|
1918
|
+
a("span", fn, [
|
|
1857
1919
|
v(t, { icon: "video" }),
|
|
1858
|
-
a("span", null,
|
|
1920
|
+
a("span", null, m(e.videoCount) + " 个视频", 1)
|
|
1859
1921
|
]),
|
|
1860
|
-
a("span",
|
|
1922
|
+
a("span", _n, [
|
|
1861
1923
|
v(t, { icon: "file" }),
|
|
1862
|
-
a("span", null,
|
|
1924
|
+
a("span", null, m(e.resourceCount) + " 个文件", 1)
|
|
1863
1925
|
])
|
|
1864
1926
|
]);
|
|
1865
1927
|
};
|
|
1866
1928
|
}
|
|
1867
|
-
}), At = /* @__PURE__ */
|
|
1929
|
+
}), At = /* @__PURE__ */ H(hn, [["__scopeId", "data-v-a28b3695"]]), wn = { class: "video-stats-info" }, yn = { class: "value" }, kn = /* @__PURE__ */ S({
|
|
1868
1930
|
__name: "VideoStatsInfo",
|
|
1869
1931
|
props: {
|
|
1870
1932
|
stat: {},
|
|
@@ -1878,56 +1940,56 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1878
1940
|
share: "share-forward",
|
|
1879
1941
|
reply: "discuss"
|
|
1880
1942
|
}, t = C(() => {
|
|
1881
|
-
const
|
|
1943
|
+
const o = [];
|
|
1882
1944
|
for (const n of l.fields)
|
|
1883
|
-
|
|
1945
|
+
o.push({
|
|
1884
1946
|
icon: s[n],
|
|
1885
1947
|
value: ze(l.stat[n])
|
|
1886
1948
|
});
|
|
1887
|
-
return
|
|
1949
|
+
return o;
|
|
1888
1950
|
});
|
|
1889
|
-
return (
|
|
1890
|
-
const
|
|
1891
|
-
return r(),
|
|
1892
|
-
(r(!0),
|
|
1951
|
+
return (o, n) => {
|
|
1952
|
+
const i = N;
|
|
1953
|
+
return r(), f("div", wn, [
|
|
1954
|
+
(r(!0), f(L, null, q(t.value, (c) => (r(), f("div", {
|
|
1893
1955
|
class: "stat-item",
|
|
1894
1956
|
key: c.icon
|
|
1895
1957
|
}, [
|
|
1896
|
-
v(
|
|
1958
|
+
v(i, {
|
|
1897
1959
|
icon: c.icon
|
|
1898
1960
|
}, null, 8, ["icon"]),
|
|
1899
|
-
a("span",
|
|
1961
|
+
a("span", yn, m(c.value), 1)
|
|
1900
1962
|
]))), 128))
|
|
1901
1963
|
]);
|
|
1902
1964
|
};
|
|
1903
1965
|
}
|
|
1904
|
-
}),
|
|
1966
|
+
}), bn = /* @__PURE__ */ H(kn, [["__scopeId", "data-v-f75c0017"]]), An = /* @__PURE__ */ S({
|
|
1905
1967
|
__name: "DownloadResourceTag",
|
|
1906
1968
|
props: {
|
|
1907
1969
|
type: {}
|
|
1908
1970
|
},
|
|
1909
1971
|
setup(e) {
|
|
1910
|
-
const l = e, s = C(() =>
|
|
1972
|
+
const l = e, s = C(() => ts[l.type]), t = {
|
|
1911
1973
|
audio: "file-music",
|
|
1912
1974
|
video: "file-video",
|
|
1913
1975
|
dm: "keyboard",
|
|
1914
1976
|
cover: "image",
|
|
1915
1977
|
subtitle: "closed-captioning"
|
|
1916
1978
|
};
|
|
1917
|
-
return (
|
|
1918
|
-
const
|
|
1919
|
-
return r(),
|
|
1979
|
+
return (o, n) => {
|
|
1980
|
+
const i = at;
|
|
1981
|
+
return r(), b(i, {
|
|
1920
1982
|
type: "primary",
|
|
1921
1983
|
effect: "plain",
|
|
1922
1984
|
"disable-transitions": "",
|
|
1923
1985
|
size: "small"
|
|
1924
1986
|
}, {
|
|
1925
1987
|
default: d(() => [
|
|
1926
|
-
v(
|
|
1988
|
+
v(ut, {
|
|
1927
1989
|
icon: t[e.type]
|
|
1928
1990
|
}, {
|
|
1929
1991
|
default: d(() => [
|
|
1930
|
-
|
|
1992
|
+
k(m(s.value), 1)
|
|
1931
1993
|
]),
|
|
1932
1994
|
_: 1
|
|
1933
1995
|
}, 8, ["icon"])
|
|
@@ -1936,98 +1998,98 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
1936
1998
|
});
|
|
1937
1999
|
};
|
|
1938
2000
|
}
|
|
1939
|
-
}),
|
|
2001
|
+
}), Cn = { class: "download-video-part-card" }, xn = { class: "left-info" }, En = { class: "right-info" }, Bn = /* @__PURE__ */ S({
|
|
1940
2002
|
__name: "DownloadVideoPartCard",
|
|
1941
2003
|
props: {
|
|
1942
2004
|
part: {}
|
|
1943
2005
|
},
|
|
1944
2006
|
setup(e) {
|
|
1945
|
-
const l = e, s = C(() => l.part.resources.find((n) => n.type === "audio")?.source.audioQuality), t = C(() => l.part.resources.find((n) => n.type === "video")?.source.videoQuality),
|
|
1946
|
-
return (n,
|
|
1947
|
-
const c = ae, u =
|
|
1948
|
-
return r(),
|
|
1949
|
-
a("div",
|
|
1950
|
-
a("div", null,
|
|
2007
|
+
const l = e, s = C(() => l.part.resources.find((n) => n.type === "audio")?.source.audioQuality), t = C(() => l.part.resources.find((n) => n.type === "video")?.source.videoQuality), o = C(() => l.part.resources.find((n) => n.type === "video")?.source.videoCodec);
|
|
2008
|
+
return (n, i) => {
|
|
2009
|
+
const c = ae, u = ms;
|
|
2010
|
+
return r(), f("div", Cn, [
|
|
2011
|
+
a("div", xn, [
|
|
2012
|
+
a("div", null, m(e.part.snapshot.page) + "P", 1),
|
|
1951
2013
|
v(c, {
|
|
1952
2014
|
content: e.part.snapshot.part
|
|
1953
2015
|
}, {
|
|
1954
2016
|
default: d(() => [
|
|
1955
|
-
|
|
2017
|
+
k(m(e.part.snapshot.part), 1)
|
|
1956
2018
|
]),
|
|
1957
2019
|
_: 1
|
|
1958
2020
|
}, 8, ["content"])
|
|
1959
2021
|
]),
|
|
1960
|
-
a("div",
|
|
1961
|
-
s.value ? (r(),
|
|
2022
|
+
a("div", En, [
|
|
2023
|
+
s.value ? (r(), b(u, {
|
|
1962
2024
|
key: 0,
|
|
1963
2025
|
type: "info",
|
|
1964
2026
|
effect: "plain"
|
|
1965
2027
|
}, {
|
|
1966
2028
|
default: d(() => [
|
|
1967
|
-
|
|
2029
|
+
k(m(h(Ut)[s.value]), 1)
|
|
1968
2030
|
]),
|
|
1969
2031
|
_: 1
|
|
1970
2032
|
})) : $("", !0),
|
|
1971
|
-
t.value ? (r(),
|
|
2033
|
+
t.value ? (r(), b(u, {
|
|
1972
2034
|
key: 1,
|
|
1973
2035
|
type: "info",
|
|
1974
2036
|
effect: "plain"
|
|
1975
2037
|
}, {
|
|
1976
2038
|
default: d(() => [
|
|
1977
|
-
|
|
2039
|
+
k(m(h(Ot)[t.value]), 1)
|
|
1978
2040
|
]),
|
|
1979
2041
|
_: 1
|
|
1980
2042
|
})) : $("", !0),
|
|
1981
|
-
|
|
2043
|
+
o.value ? (r(), b(u, {
|
|
1982
2044
|
key: 2,
|
|
1983
2045
|
type: "info",
|
|
1984
2046
|
effect: "plain"
|
|
1985
2047
|
}, {
|
|
1986
2048
|
default: d(() => [
|
|
1987
|
-
|
|
2049
|
+
k(m(h(qt)[o.value]), 1)
|
|
1988
2050
|
]),
|
|
1989
2051
|
_: 1
|
|
1990
2052
|
})) : $("", !0),
|
|
1991
|
-
a("span", null,
|
|
2053
|
+
a("span", null, m(h(Ie)(e.part.snapshot.duration)), 1)
|
|
1992
2054
|
])
|
|
1993
2055
|
]);
|
|
1994
2056
|
};
|
|
1995
2057
|
}
|
|
1996
|
-
}),
|
|
1997
|
-
const l =
|
|
2058
|
+
}), Sn = /* @__PURE__ */ H(Bn, [["__scopeId", "data-v-84c28695"]]), $n = (e) => {
|
|
2059
|
+
const l = jt(e.tid), s = Nt(e.tid_v2);
|
|
1998
2060
|
return s ? s.subZoneName ? `${s.mainZoneName} > ${s.subZoneName}` : s.mainZoneName : l ? l.subZoneName ? `${l.mainZoneName} > ${l.subZoneName}` : l.mainZoneName : "";
|
|
1999
|
-
},
|
|
2061
|
+
}, zn = { class: "download-video-card" }, Dn = { class: "info-row" }, In = { class: "info-left" }, Pn = { class: "cover-image" }, Vn = { class: "cover-placeholder" }, Mn = { class: "download-cover-stats" }, Qn = { class: "download-cover-stats__duration" }, Tn = { class: "info-right" }, Hn = { class: "info-row" }, Rn = { class: "info-row" }, Ln = { class: "user-info" }, Fn = ["src"], Un = { class: "user-name" }, On = { class: "zone" }, qn = { class: "pubdate" }, jn = { class: "info-row stats" }, Nn = { class: "bvid" }, Zn = { class: "info-row" }, Wn = { class: "part-list" }, Gn = /* @__PURE__ */ S({
|
|
2000
2062
|
__name: "DownloadVideoCard",
|
|
2001
2063
|
props: {
|
|
2002
2064
|
video: {}
|
|
2003
2065
|
},
|
|
2004
2066
|
emits: ["open-folder"],
|
|
2005
2067
|
setup(e, { emit: l }) {
|
|
2006
|
-
const s = e, t = C(() => s.video.snapshot),
|
|
2068
|
+
const s = e, t = C(() => s.video.snapshot), o = C(() => {
|
|
2007
2069
|
const c = s.video.parts;
|
|
2008
2070
|
return c.length >= 1 ? c[0].resources.map((u) => u.type) : [];
|
|
2009
2071
|
}), n = async () => {
|
|
2010
2072
|
window.open(`https://www.bilibili.com/video/${t.value.bvid}`);
|
|
2011
|
-
},
|
|
2073
|
+
}, i = l;
|
|
2012
2074
|
return (c, u) => {
|
|
2013
|
-
const
|
|
2014
|
-
return r(),
|
|
2015
|
-
a("div",
|
|
2016
|
-
a("div",
|
|
2075
|
+
const p = Ve, g = ot, w = ut, _ = ae;
|
|
2076
|
+
return r(), f("div", zn, [
|
|
2077
|
+
a("div", Dn, [
|
|
2078
|
+
a("div", In, [
|
|
2017
2079
|
a("div", {
|
|
2018
2080
|
class: "cover",
|
|
2019
2081
|
onClick: n
|
|
2020
2082
|
}, [
|
|
2021
|
-
a("div",
|
|
2022
|
-
v(
|
|
2083
|
+
a("div", Pn, [
|
|
2084
|
+
v(g, {
|
|
2023
2085
|
src: t.value.pic,
|
|
2024
2086
|
fit: "cover"
|
|
2025
2087
|
}, {
|
|
2026
2088
|
error: d(() => [
|
|
2027
|
-
a("div",
|
|
2028
|
-
v(
|
|
2089
|
+
a("div", Vn, [
|
|
2090
|
+
v(p, null, {
|
|
2029
2091
|
default: d(() => [
|
|
2030
|
-
v(h(
|
|
2092
|
+
v(h(rt))
|
|
2031
2093
|
]),
|
|
2032
2094
|
_: 1
|
|
2033
2095
|
})
|
|
@@ -2035,82 +2097,82 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2035
2097
|
]),
|
|
2036
2098
|
_: 1
|
|
2037
2099
|
}, 8, ["src"]),
|
|
2038
|
-
a("div",
|
|
2100
|
+
a("div", Mn, [
|
|
2039
2101
|
v(w, { icon: "video" }, {
|
|
2040
2102
|
default: d(() => [
|
|
2041
|
-
|
|
2103
|
+
k(m(h(ze)(t.value.stat.view)), 1)
|
|
2042
2104
|
]),
|
|
2043
2105
|
_: 1
|
|
2044
2106
|
}),
|
|
2045
2107
|
v(w, { icon: "keyboard" }, {
|
|
2046
2108
|
default: d(() => [
|
|
2047
|
-
|
|
2109
|
+
k(m(h(ze)(t.value.stat.danmaku)), 1)
|
|
2048
2110
|
]),
|
|
2049
2111
|
_: 1
|
|
2050
2112
|
}),
|
|
2051
2113
|
u[0] || (u[0] = a("span", null, null, -1)),
|
|
2052
2114
|
u[1] || (u[1] = a("span", null, null, -1)),
|
|
2053
|
-
a("span",
|
|
2115
|
+
a("span", Qn, m(h(Ie)(t.value.duration)), 1)
|
|
2054
2116
|
])
|
|
2055
2117
|
])
|
|
2056
2118
|
])
|
|
2057
2119
|
]),
|
|
2058
|
-
a("div",
|
|
2059
|
-
a("div",
|
|
2060
|
-
v(
|
|
2120
|
+
a("div", Tn, [
|
|
2121
|
+
a("div", Hn, [
|
|
2122
|
+
v(_, {
|
|
2061
2123
|
class: "title",
|
|
2062
2124
|
content: t.value.title
|
|
2063
2125
|
}, {
|
|
2064
2126
|
default: d(() => [
|
|
2065
|
-
|
|
2127
|
+
k(m(t.value.title), 1)
|
|
2066
2128
|
]),
|
|
2067
2129
|
_: 1
|
|
2068
2130
|
}, 8, ["content"])
|
|
2069
2131
|
]),
|
|
2070
|
-
a("div",
|
|
2071
|
-
a("div",
|
|
2132
|
+
a("div", Rn, [
|
|
2133
|
+
a("div", Ln, [
|
|
2072
2134
|
a("img", {
|
|
2073
2135
|
class: "user-face",
|
|
2074
2136
|
src: t.value.owner.face,
|
|
2075
2137
|
alt: "face"
|
|
2076
|
-
}, null, 8,
|
|
2077
|
-
a("div",
|
|
2138
|
+
}, null, 8, Fn),
|
|
2139
|
+
a("div", Un, m(t.value.owner.name), 1)
|
|
2078
2140
|
]),
|
|
2079
|
-
a("div",
|
|
2080
|
-
a("div",
|
|
2141
|
+
a("div", On, m(h($n)(t.value)), 1),
|
|
2142
|
+
a("div", qn, m(h(he)(t.value.pubdate)), 1)
|
|
2081
2143
|
]),
|
|
2082
|
-
a("div",
|
|
2083
|
-
a("div",
|
|
2084
|
-
v(
|
|
2144
|
+
a("div", jn, [
|
|
2145
|
+
a("div", Nn, m(t.value.bvid), 1),
|
|
2146
|
+
v(bn, {
|
|
2085
2147
|
stat: t.value.stat
|
|
2086
2148
|
}, null, 8, ["stat"])
|
|
2087
2149
|
]),
|
|
2088
|
-
a("div",
|
|
2150
|
+
a("div", Zn, [
|
|
2089
2151
|
u[2] || (u[2] = a("div", null, "下载的资源:", -1)),
|
|
2090
|
-
(r(!0),
|
|
2091
|
-
key:
|
|
2092
|
-
type:
|
|
2152
|
+
(r(!0), f(L, null, q(o.value, (A) => (r(), b(An, {
|
|
2153
|
+
key: A,
|
|
2154
|
+
type: A
|
|
2093
2155
|
}, null, 8, ["type"]))), 128))
|
|
2094
2156
|
])
|
|
2095
2157
|
])
|
|
2096
2158
|
]),
|
|
2097
|
-
a("div",
|
|
2159
|
+
a("div", Wn, [
|
|
2098
2160
|
u[3] || (u[3] = a("div", { class: "header" }, "视频分P:", -1)),
|
|
2099
|
-
(r(!0),
|
|
2100
|
-
key:
|
|
2101
|
-
part:
|
|
2102
|
-
onClick: (V) =>
|
|
2161
|
+
(r(!0), f(L, null, q(e.video.parts, (A, x) => (r(), b(Sn, {
|
|
2162
|
+
key: A.snapshot.cid,
|
|
2163
|
+
part: A,
|
|
2164
|
+
onClick: (V) => i("open-folder", x)
|
|
2103
2165
|
}, null, 8, ["part", "onClick"]))), 128))
|
|
2104
2166
|
])
|
|
2105
2167
|
]);
|
|
2106
2168
|
};
|
|
2107
2169
|
}
|
|
2108
|
-
}),
|
|
2170
|
+
}), Jn = /* @__PURE__ */ H(Gn, [["__scopeId", "data-v-48f910dd"]]), Kn = { class: "task-modal" }, Yn = {
|
|
2109
2171
|
key: 0,
|
|
2110
2172
|
class: "dialog-content"
|
|
2111
|
-
},
|
|
2173
|
+
}, Xn = { key: 1 }, ea = { class: "video-list-container" }, ta = { class: "header" }, sa = /* @__PURE__ */ S({
|
|
2112
2174
|
__name: "DownloadDetailsDialog",
|
|
2113
|
-
props: /* @__PURE__ */
|
|
2175
|
+
props: /* @__PURE__ */ X({
|
|
2114
2176
|
task: {}
|
|
2115
2177
|
}, {
|
|
2116
2178
|
modelValue: { required: !0, type: Boolean },
|
|
@@ -2118,25 +2180,25 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2118
2180
|
}),
|
|
2119
2181
|
emits: ["update:modelValue"],
|
|
2120
2182
|
setup(e) {
|
|
2121
|
-
const l = e, s =
|
|
2122
|
-
|
|
2183
|
+
const l = e, s = ye(e, "modelValue"), t = C(() => l.task?.videos.reduce((c, u) => c + u.parts.length, 0) ?? 0), o = C(() => l.task?.videos.reduce((c, u) => c + u.parts.reduce((p, g) => p + g.resources.length, 0), 0) ?? 0), n = te("refVideoList");
|
|
2184
|
+
J(
|
|
2123
2185
|
() => s.value,
|
|
2124
2186
|
(c) => {
|
|
2125
|
-
c && n.value &&
|
|
2187
|
+
c && n.value && ue(() => {
|
|
2126
2188
|
n.value?.scrollTo(0, 0);
|
|
2127
2189
|
});
|
|
2128
2190
|
}
|
|
2129
2191
|
);
|
|
2130
|
-
const
|
|
2192
|
+
const i = async (c, u) => {
|
|
2131
2193
|
l.task && await T.download.openFolder(l.task.id, c, u);
|
|
2132
2194
|
};
|
|
2133
2195
|
return (c, u) => {
|
|
2134
|
-
const
|
|
2135
|
-
return r(),
|
|
2196
|
+
const p = fs, g = gs, w = de;
|
|
2197
|
+
return r(), f("div", Kn, [
|
|
2136
2198
|
v(w, {
|
|
2137
2199
|
title: "任务详情",
|
|
2138
2200
|
modelValue: s.value,
|
|
2139
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2201
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => s.value = _),
|
|
2140
2202
|
width: "80%",
|
|
2141
2203
|
style: { "max-height": "88vh" },
|
|
2142
2204
|
"close-on-click-modal": !0,
|
|
@@ -2148,65 +2210,65 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2148
2210
|
a("div", { class: "dialog-footer" }, null, -1)
|
|
2149
2211
|
])]),
|
|
2150
2212
|
default: d(() => [
|
|
2151
|
-
e.task ? (r(),
|
|
2152
|
-
v(
|
|
2213
|
+
e.task ? (r(), f("div", Yn, [
|
|
2214
|
+
v(g, {
|
|
2153
2215
|
border: "",
|
|
2154
2216
|
column: 2
|
|
2155
2217
|
}, {
|
|
2156
2218
|
default: d(() => [
|
|
2157
|
-
v(
|
|
2219
|
+
v(p, { label: "任务 ID" }, {
|
|
2158
2220
|
default: d(() => [
|
|
2159
|
-
|
|
2221
|
+
k(m(e.task.id), 1)
|
|
2160
2222
|
]),
|
|
2161
2223
|
_: 1
|
|
2162
2224
|
}),
|
|
2163
|
-
v(
|
|
2225
|
+
v(p, { label: "任务类型" }, {
|
|
2164
2226
|
default: d(() => [
|
|
2165
|
-
|
|
2227
|
+
k(m(e.task.title), 1)
|
|
2166
2228
|
]),
|
|
2167
2229
|
_: 1
|
|
2168
2230
|
}),
|
|
2169
|
-
v(
|
|
2231
|
+
v(p, { label: "创建时间" }, {
|
|
2170
2232
|
default: d(() => [
|
|
2171
|
-
|
|
2233
|
+
k(m(h(he)(e.task.createdAt)), 1)
|
|
2172
2234
|
]),
|
|
2173
2235
|
_: 1
|
|
2174
2236
|
}),
|
|
2175
|
-
v(
|
|
2237
|
+
v(p, { label: "更新时间" }, {
|
|
2176
2238
|
default: d(() => [
|
|
2177
|
-
|
|
2239
|
+
k(m(e.task.updatedAt ? h(he)(e.task.updatedAt) : "-"), 1)
|
|
2178
2240
|
]),
|
|
2179
2241
|
_: 1
|
|
2180
2242
|
}),
|
|
2181
|
-
v(
|
|
2243
|
+
v(p, { label: "任务状态" }, {
|
|
2182
2244
|
default: d(() => [
|
|
2183
|
-
v(
|
|
2245
|
+
v(yt, { task: e.task }, null, 8, ["task"])
|
|
2184
2246
|
]),
|
|
2185
2247
|
_: 1
|
|
2186
2248
|
}),
|
|
2187
|
-
v(
|
|
2249
|
+
v(p, { label: "任务进度" }, {
|
|
2188
2250
|
default: d(() => [
|
|
2189
|
-
e.task.progress ? (r(),
|
|
2251
|
+
e.task.progress ? (r(), b(kt, {
|
|
2190
2252
|
key: 0,
|
|
2191
2253
|
task: e.task
|
|
2192
|
-
}, null, 8, ["task"])) : (r(),
|
|
2254
|
+
}, null, 8, ["task"])) : (r(), f("span", Xn, "-"))
|
|
2193
2255
|
]),
|
|
2194
2256
|
_: 1
|
|
2195
2257
|
}),
|
|
2196
|
-
e.task.progress ? (r(),
|
|
2258
|
+
e.task.progress ? (r(), b(p, {
|
|
2197
2259
|
key: 0,
|
|
2198
2260
|
label: "进度详情",
|
|
2199
2261
|
span: 2
|
|
2200
2262
|
}, {
|
|
2201
2263
|
default: d(() => [
|
|
2202
|
-
v(
|
|
2264
|
+
v(bt, {
|
|
2203
2265
|
task: e.task,
|
|
2204
|
-
resourceCount:
|
|
2266
|
+
resourceCount: o.value
|
|
2205
2267
|
}, null, 8, ["task", "resourceCount"])
|
|
2206
2268
|
]),
|
|
2207
2269
|
_: 1
|
|
2208
2270
|
})) : $("", !0),
|
|
2209
|
-
e.task.result ? (r(),
|
|
2271
|
+
e.task.result ? (r(), b(p, {
|
|
2210
2272
|
key: 1,
|
|
2211
2273
|
label: "任务结果",
|
|
2212
2274
|
span: 2
|
|
@@ -2215,53 +2277,53 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2215
2277
|
v(At, {
|
|
2216
2278
|
task: e.task,
|
|
2217
2279
|
videoCount: t.value,
|
|
2218
|
-
resourceCount:
|
|
2280
|
+
resourceCount: o.value
|
|
2219
2281
|
}, null, 8, ["task", "videoCount", "resourceCount"])
|
|
2220
2282
|
]),
|
|
2221
2283
|
_: 1
|
|
2222
2284
|
})) : $("", !0),
|
|
2223
|
-
e.task.error ? (r(),
|
|
2285
|
+
e.task.error ? (r(), b(p, {
|
|
2224
2286
|
key: 2,
|
|
2225
2287
|
label: "错误信息",
|
|
2226
2288
|
span: 2,
|
|
2227
2289
|
style: { color: "var(--el-color-danger)" }
|
|
2228
2290
|
}, {
|
|
2229
2291
|
default: d(() => [
|
|
2230
|
-
|
|
2292
|
+
k(m(e.task.error), 1)
|
|
2231
2293
|
]),
|
|
2232
2294
|
_: 1
|
|
2233
2295
|
})) : $("", !0),
|
|
2234
|
-
v(
|
|
2296
|
+
v(p, { label: "操作用户" }, {
|
|
2235
2297
|
default: d(() => [
|
|
2236
2298
|
u[1] || (u[1] = a("div", {
|
|
2237
2299
|
class: "uid-icon",
|
|
2238
2300
|
style: { display: "inline-block" }
|
|
2239
2301
|
}, null, -1)),
|
|
2240
|
-
|
|
2302
|
+
k(" " + m(e.task.userCookie.uid), 1)
|
|
2241
2303
|
]),
|
|
2242
2304
|
_: 1
|
|
2243
2305
|
}),
|
|
2244
|
-
|
|
2306
|
+
P(c.$slots, "default", {}, void 0, !0)
|
|
2245
2307
|
]),
|
|
2246
2308
|
_: 3
|
|
2247
2309
|
}),
|
|
2248
|
-
a("div",
|
|
2310
|
+
a("div", ea, [
|
|
2249
2311
|
u[2] || (u[2] = a("div", { class: "header" }, "视频列表:", -1)),
|
|
2250
2312
|
a("div", {
|
|
2251
2313
|
class: "video-list",
|
|
2252
2314
|
ref_key: "refVideoList",
|
|
2253
2315
|
ref: n
|
|
2254
2316
|
}, [
|
|
2255
|
-
(r(!0),
|
|
2317
|
+
(r(!0), f(L, null, q(e.task.videos, (_, A) => (r(), f("div", {
|
|
2256
2318
|
class: "video-item",
|
|
2257
|
-
key:
|
|
2319
|
+
key: _.snapshot.aid
|
|
2258
2320
|
}, [
|
|
2259
|
-
a("div",
|
|
2260
|
-
a("span", null, "#" +
|
|
2321
|
+
a("div", ta, [
|
|
2322
|
+
a("span", null, "#" + m(A + 1), 1)
|
|
2261
2323
|
]),
|
|
2262
|
-
v(
|
|
2263
|
-
video:
|
|
2264
|
-
onOpenFolder: (x) =>
|
|
2324
|
+
v(Jn, {
|
|
2325
|
+
video: _,
|
|
2326
|
+
onOpenFolder: (x) => i(A, x)
|
|
2265
2327
|
}, null, 8, ["video", "onOpenFolder"])
|
|
2266
2328
|
]))), 128))
|
|
2267
2329
|
], 512)
|
|
@@ -2273,32 +2335,32 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2273
2335
|
]);
|
|
2274
2336
|
};
|
|
2275
2337
|
}
|
|
2276
|
-
}),
|
|
2338
|
+
}), la = /* @__PURE__ */ H(sa, [["__scopeId", "data-v-61e2a51e"]]), na = { class: "download-task-card" }, aa = { class: "cover" }, oa = { class: "cover-image" }, ia = { class: "cover-placeholder" }, ca = { class: "download-cover-stats" }, ra = { class: "download-stats__duration" }, ua = { class: "time" }, da = { class: "content" }, va = { class: "header" }, pa = { class: "actions" }, ma = /* @__PURE__ */ S({
|
|
2277
2339
|
__name: "DownloadItem",
|
|
2278
2340
|
props: {
|
|
2279
2341
|
task: {}
|
|
2280
2342
|
},
|
|
2281
2343
|
emits: ["action"],
|
|
2282
2344
|
setup(e) {
|
|
2283
|
-
const l = e, s = C(() => l.task.videos[0].snapshot.pic), t = C(() => l.task.videos.reduce((
|
|
2284
|
-
() => l.task.videos.reduce((
|
|
2345
|
+
const l = e, s = C(() => l.task.videos[0].snapshot.pic), t = C(() => l.task.videos.reduce((i, c) => i + c.parts.length, 0)), o = C(
|
|
2346
|
+
() => l.task.videos.reduce((i, c) => i + c.parts.reduce((u, p) => u + p.resources.length, 0), 0)
|
|
2285
2347
|
), n = C(
|
|
2286
|
-
() => l.task.videos.reduce((
|
|
2348
|
+
() => l.task.videos.reduce((i, c) => i + c.parts.reduce((u, p) => u + p.snapshot.duration, 0), 0)
|
|
2287
2349
|
);
|
|
2288
|
-
return (
|
|
2289
|
-
const u = Ve,
|
|
2290
|
-
return r(),
|
|
2291
|
-
a("div",
|
|
2292
|
-
a("div",
|
|
2293
|
-
v(
|
|
2350
|
+
return (i, c) => {
|
|
2351
|
+
const u = Ve, p = ot, g = ae, w = K;
|
|
2352
|
+
return r(), f("div", na, [
|
|
2353
|
+
a("div", aa, [
|
|
2354
|
+
a("div", oa, [
|
|
2355
|
+
v(p, {
|
|
2294
2356
|
src: s.value,
|
|
2295
2357
|
fit: "cover"
|
|
2296
2358
|
}, {
|
|
2297
2359
|
error: d(() => [
|
|
2298
|
-
a("div",
|
|
2360
|
+
a("div", ia, [
|
|
2299
2361
|
v(u, null, {
|
|
2300
2362
|
default: d(() => [
|
|
2301
|
-
v(h(
|
|
2363
|
+
v(h(rt))
|
|
2302
2364
|
]),
|
|
2303
2365
|
_: 1
|
|
2304
2366
|
})
|
|
@@ -2306,102 +2368,102 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2306
2368
|
]),
|
|
2307
2369
|
_: 1
|
|
2308
2370
|
}, 8, ["src"]),
|
|
2309
|
-
a("div",
|
|
2371
|
+
a("div", ca, [
|
|
2310
2372
|
c[6] || (c[6] = a("span", null, null, -1)),
|
|
2311
|
-
a("span",
|
|
2373
|
+
a("span", ra, m(h(Ie)(n.value)), 1)
|
|
2312
2374
|
])
|
|
2313
2375
|
]),
|
|
2314
|
-
a("span",
|
|
2376
|
+
a("span", ua, m(h(he)(e.task.createdAt)), 1)
|
|
2315
2377
|
]),
|
|
2316
|
-
a("div",
|
|
2317
|
-
a("div",
|
|
2318
|
-
v(
|
|
2378
|
+
a("div", da, [
|
|
2379
|
+
a("div", va, [
|
|
2380
|
+
v(g, {
|
|
2319
2381
|
class: "title",
|
|
2320
2382
|
content: e.task.title
|
|
2321
2383
|
}, {
|
|
2322
2384
|
default: d(() => [
|
|
2323
|
-
|
|
2385
|
+
k(m(e.task.title), 1)
|
|
2324
2386
|
]),
|
|
2325
2387
|
_: 1
|
|
2326
2388
|
}, 8, ["content"]),
|
|
2327
|
-
v(
|
|
2328
|
-
|
|
2389
|
+
v(yt, { task: e.task }, null, 8, ["task"]),
|
|
2390
|
+
P(i.$slots, "titleExtra", { task: e.task }, void 0, !0)
|
|
2329
2391
|
]),
|
|
2330
|
-
v(
|
|
2331
|
-
v(
|
|
2392
|
+
v(kt, { task: e.task }, null, 8, ["task"]),
|
|
2393
|
+
v(bt, {
|
|
2332
2394
|
task: e.task,
|
|
2333
|
-
resourceCount:
|
|
2395
|
+
resourceCount: o.value
|
|
2334
2396
|
}, null, 8, ["task", "resourceCount"]),
|
|
2335
2397
|
v(At, {
|
|
2336
2398
|
task: e.task,
|
|
2337
2399
|
videoCount: t.value,
|
|
2338
|
-
resourceCount:
|
|
2400
|
+
resourceCount: o.value
|
|
2339
2401
|
}, null, 8, ["task", "videoCount", "resourceCount"]),
|
|
2340
|
-
e.task.error ? (r(),
|
|
2402
|
+
e.task.error ? (r(), b(g, {
|
|
2341
2403
|
key: 0,
|
|
2342
2404
|
class: "error",
|
|
2343
2405
|
content: e.task.error
|
|
2344
2406
|
}, {
|
|
2345
2407
|
default: d(() => [
|
|
2346
|
-
|
|
2408
|
+
k(m(e.task.error), 1)
|
|
2347
2409
|
]),
|
|
2348
2410
|
_: 1
|
|
2349
2411
|
}, 8, ["content"])) : $("", !0),
|
|
2350
|
-
a("div",
|
|
2412
|
+
a("div", pa, [
|
|
2351
2413
|
v(w, {
|
|
2352
2414
|
size: "small",
|
|
2353
|
-
onClick: c[0] || (c[0] = (
|
|
2415
|
+
onClick: c[0] || (c[0] = (_) => i.$emit("action", "show-details", e.task))
|
|
2354
2416
|
}, {
|
|
2355
2417
|
default: d(() => [...c[7] || (c[7] = [
|
|
2356
|
-
|
|
2418
|
+
k(" 详情 ", -1)
|
|
2357
2419
|
])]),
|
|
2358
2420
|
_: 1
|
|
2359
2421
|
}),
|
|
2360
2422
|
v(w, {
|
|
2361
2423
|
size: "small",
|
|
2362
|
-
onClick: c[1] || (c[1] = (
|
|
2424
|
+
onClick: c[1] || (c[1] = (_) => i.$emit("action", "open-folder", e.task))
|
|
2363
2425
|
}, {
|
|
2364
2426
|
default: d(() => [...c[8] || (c[8] = [
|
|
2365
|
-
|
|
2427
|
+
k(" 打开文件夹 ", -1)
|
|
2366
2428
|
])]),
|
|
2367
2429
|
_: 1
|
|
2368
2430
|
}),
|
|
2369
|
-
e.task.status === "downloading" ? (r(),
|
|
2431
|
+
e.task.status === "downloading" ? (r(), b(w, {
|
|
2370
2432
|
key: 0,
|
|
2371
2433
|
size: "small",
|
|
2372
|
-
onClick: c[2] || (c[2] = (
|
|
2434
|
+
onClick: c[2] || (c[2] = (_) => i.$emit("action", "pause", e.task))
|
|
2373
2435
|
}, {
|
|
2374
2436
|
default: d(() => [...c[9] || (c[9] = [
|
|
2375
|
-
|
|
2437
|
+
k(" 暂停 ", -1)
|
|
2376
2438
|
])]),
|
|
2377
2439
|
_: 1
|
|
2378
2440
|
})) : $("", !0),
|
|
2379
|
-
e.task.status === "paused" || e.task.status === "pending" ? (r(),
|
|
2441
|
+
e.task.status === "paused" || e.task.status === "pending" ? (r(), b(w, {
|
|
2380
2442
|
key: 1,
|
|
2381
2443
|
size: "small",
|
|
2382
|
-
onClick: c[3] || (c[3] = (
|
|
2444
|
+
onClick: c[3] || (c[3] = (_) => i.$emit("action", "cancel", e.task))
|
|
2383
2445
|
}, {
|
|
2384
2446
|
default: d(() => [...c[10] || (c[10] = [
|
|
2385
|
-
|
|
2447
|
+
k(" 取消 ", -1)
|
|
2386
2448
|
])]),
|
|
2387
2449
|
_: 1
|
|
2388
2450
|
})) : $("", !0),
|
|
2389
|
-
e.task.status === "paused" ? (r(),
|
|
2451
|
+
e.task.status === "paused" ? (r(), b(w, {
|
|
2390
2452
|
key: 2,
|
|
2391
2453
|
size: "small",
|
|
2392
|
-
onClick: c[4] || (c[4] = (
|
|
2454
|
+
onClick: c[4] || (c[4] = (_) => i.$emit("action", "resume", e.task))
|
|
2393
2455
|
}, {
|
|
2394
2456
|
default: d(() => [...c[11] || (c[11] = [
|
|
2395
|
-
|
|
2457
|
+
k(" 继续 ", -1)
|
|
2396
2458
|
])]),
|
|
2397
2459
|
_: 1
|
|
2398
2460
|
})) : $("", !0),
|
|
2399
2461
|
v(w, {
|
|
2400
2462
|
size: "small",
|
|
2401
|
-
onClick: c[5] || (c[5] = (
|
|
2463
|
+
onClick: c[5] || (c[5] = (_) => i.$emit("action", "delete", e.task))
|
|
2402
2464
|
}, {
|
|
2403
2465
|
default: d(() => [...c[12] || (c[12] = [
|
|
2404
|
-
|
|
2466
|
+
k(" 删除 ", -1)
|
|
2405
2467
|
])]),
|
|
2406
2468
|
_: 1
|
|
2407
2469
|
})
|
|
@@ -2410,166 +2472,166 @@ const qo = /* @__PURE__ */ L(Jl, [["render", Yl], ["__scopeId", "data-v-ddcb3392
|
|
|
2410
2472
|
]);
|
|
2411
2473
|
};
|
|
2412
2474
|
}
|
|
2413
|
-
}),
|
|
2414
|
-
function
|
|
2475
|
+
}), ga = /* @__PURE__ */ H(ma, [["__scopeId", "data-v-71192ed6"]]);
|
|
2476
|
+
function fa(e) {
|
|
2415
2477
|
return new Promise((l, s) => {
|
|
2416
|
-
const t =
|
|
2417
|
-
document.body.appendChild(
|
|
2478
|
+
const t = E(!0), o = document.createElement("div");
|
|
2479
|
+
document.body.appendChild(o);
|
|
2418
2480
|
let n = null;
|
|
2419
|
-
function
|
|
2481
|
+
function i() {
|
|
2420
2482
|
setTimeout(() => {
|
|
2421
|
-
n?.unmount(),
|
|
2483
|
+
n?.unmount(), o.remove();
|
|
2422
2484
|
});
|
|
2423
2485
|
}
|
|
2424
2486
|
n = De({
|
|
2425
2487
|
render() {
|
|
2426
|
-
return
|
|
2488
|
+
return Mt(nn, {
|
|
2427
2489
|
...e,
|
|
2428
2490
|
visible: t.value,
|
|
2429
2491
|
onConfirm(c) {
|
|
2430
2492
|
t.value = !1, l({
|
|
2431
2493
|
deleteSourceFile: c
|
|
2432
|
-
}),
|
|
2494
|
+
}), i();
|
|
2433
2495
|
},
|
|
2434
2496
|
onCancel() {
|
|
2435
|
-
t.value = !1, s(
|
|
2497
|
+
t.value = !1, s(Ye()), i();
|
|
2436
2498
|
}
|
|
2437
2499
|
});
|
|
2438
2500
|
}
|
|
2439
|
-
}), n?.mount(
|
|
2501
|
+
}), n?.mount(o);
|
|
2440
2502
|
});
|
|
2441
2503
|
}
|
|
2442
|
-
const
|
|
2504
|
+
const _a = async (e) => {
|
|
2443
2505
|
await T.download.openFolder(e.id, 0, 0);
|
|
2444
|
-
}, fa = async (e) => {
|
|
2445
|
-
await T.download.pause(e.id), X("暂停任务成功");
|
|
2446
|
-
}, _a = async (e) => {
|
|
2447
|
-
await T.download.resume(e.id), X("正在继续下载");
|
|
2448
2506
|
}, ha = async (e) => {
|
|
2449
|
-
await T.download.
|
|
2507
|
+
await T.download.pause(e.id), se("暂停任务成功");
|
|
2450
2508
|
}, wa = async (e) => {
|
|
2451
|
-
|
|
2509
|
+
await T.download.resume(e.id), se("正在继续下载");
|
|
2510
|
+
}, ya = async (e) => {
|
|
2511
|
+
await T.download.cancel(e.id), se("取消任务成功");
|
|
2512
|
+
}, ka = async (e) => {
|
|
2513
|
+
const { deleteSourceFile: l } = await fa({
|
|
2452
2514
|
message: "确定删除该下载任务吗?"
|
|
2453
2515
|
});
|
|
2454
2516
|
await T.download.remove(e.id, {
|
|
2455
2517
|
deleteFiles: l
|
|
2456
2518
|
});
|
|
2457
|
-
},
|
|
2519
|
+
}, ba = { class: "header" }, Aa = { class: "query-list" }, Ca = { class: "actions" }, xa = { class: "download-list-container" }, Ea = /* @__PURE__ */ S({
|
|
2458
2520
|
__name: "DownloadManagePage",
|
|
2459
2521
|
props: {
|
|
2460
2522
|
showDefaultActions: { type: Boolean, default: !0 },
|
|
2461
2523
|
pageSizes: { default: () => [20, 40, 100] }
|
|
2462
2524
|
},
|
|
2463
2525
|
setup(e, { expose: l }) {
|
|
2464
|
-
const s = e, t =
|
|
2526
|
+
const s = e, t = te("refList"), o = E({
|
|
2465
2527
|
pageNum: 1,
|
|
2466
2528
|
pageSize: s.pageSizes[0]
|
|
2467
|
-
}), n =
|
|
2529
|
+
}), n = E("all"), i = E({
|
|
2468
2530
|
status: void 0,
|
|
2469
2531
|
title: ""
|
|
2470
2532
|
}), c = () => {
|
|
2471
|
-
n.value === "all" ?
|
|
2533
|
+
n.value === "all" ? i.value.status = void 0 : i.value.status = n.value, _();
|
|
2472
2534
|
}, {
|
|
2473
2535
|
pageData: u,
|
|
2474
|
-
tableData:
|
|
2475
|
-
loading:
|
|
2536
|
+
tableData: p,
|
|
2537
|
+
loading: g,
|
|
2476
2538
|
refresh: w,
|
|
2477
|
-
resetAndRefresh:
|
|
2478
|
-
resetPageAndRefresh:
|
|
2539
|
+
resetAndRefresh: _,
|
|
2540
|
+
resetPageAndRefresh: A,
|
|
2479
2541
|
handleSizeChange: x,
|
|
2480
2542
|
handleCurrPageChange: V
|
|
2481
|
-
} =
|
|
2543
|
+
} = ct({
|
|
2482
2544
|
fetchPage: T.download.fetchPage,
|
|
2483
|
-
pageParams: () =>
|
|
2484
|
-
queryParams: () =>
|
|
2545
|
+
pageParams: () => o.value,
|
|
2546
|
+
queryParams: () => i.value,
|
|
2485
2547
|
autoLoad: !0,
|
|
2486
2548
|
onLoaded: () => {
|
|
2487
|
-
|
|
2549
|
+
ue(() => t.value?.scrollTo(0, 0));
|
|
2488
2550
|
}
|
|
2489
|
-
}),
|
|
2551
|
+
}), B = E({
|
|
2490
2552
|
visible: !1
|
|
2491
|
-
}), D = async (
|
|
2492
|
-
switch (
|
|
2553
|
+
}), D = async (I, y) => {
|
|
2554
|
+
switch (I) {
|
|
2493
2555
|
case "show-details":
|
|
2494
|
-
|
|
2556
|
+
B.value.task = y, B.value.visible = !0;
|
|
2495
2557
|
break;
|
|
2496
2558
|
case "open-folder":
|
|
2497
|
-
await
|
|
2559
|
+
await _a(y);
|
|
2498
2560
|
break;
|
|
2499
2561
|
case "pause":
|
|
2500
|
-
await
|
|
2562
|
+
await ha(y);
|
|
2501
2563
|
break;
|
|
2502
2564
|
case "resume":
|
|
2503
|
-
await
|
|
2565
|
+
await wa(y);
|
|
2504
2566
|
break;
|
|
2505
2567
|
case "cancel":
|
|
2506
|
-
await
|
|
2568
|
+
await ya(y);
|
|
2507
2569
|
break;
|
|
2508
2570
|
case "delete":
|
|
2509
|
-
await
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2571
|
+
await ka(y);
|
|
2572
|
+
const z = p.value.findIndex((U) => U.id === y.id);
|
|
2573
|
+
z > -1 && p.value.splice(z, 1), p.value.length < 1 && await A(), se("删除任务成功");
|
|
2512
2574
|
break;
|
|
2513
2575
|
}
|
|
2514
2576
|
};
|
|
2515
|
-
let
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
for (let y = 0; y <
|
|
2519
|
-
const
|
|
2520
|
-
if (
|
|
2521
|
-
n.value === "all" ||
|
|
2577
|
+
let M = null;
|
|
2578
|
+
ee(async () => {
|
|
2579
|
+
M = await T.download.onUpdated((I) => {
|
|
2580
|
+
for (let y = 0; y < p.value.length; y++) {
|
|
2581
|
+
const z = p.value[y];
|
|
2582
|
+
if (z.id === I.id) {
|
|
2583
|
+
n.value === "all" || z.status === I.status ? Object.assign(z, I) : p.value.splice(y, 1);
|
|
2522
2584
|
return;
|
|
2523
2585
|
}
|
|
2524
2586
|
}
|
|
2525
2587
|
});
|
|
2526
|
-
}),
|
|
2527
|
-
|
|
2588
|
+
}), re(() => {
|
|
2589
|
+
M?.();
|
|
2528
2590
|
});
|
|
2529
|
-
const F = C(() =>
|
|
2591
|
+
const F = C(() => i.value.status ? `暂无${Xe[i.value.status]}的任务` : "暂无下载任务");
|
|
2530
2592
|
return l({
|
|
2531
2593
|
refresh: w,
|
|
2532
|
-
resetAndRefresh:
|
|
2533
|
-
}), (
|
|
2534
|
-
const
|
|
2535
|
-
return r(),
|
|
2536
|
-
a("div",
|
|
2594
|
+
resetAndRefresh: _
|
|
2595
|
+
}), (I, y) => {
|
|
2596
|
+
const z = hs, U = _s, le = et, ne = K, O = lt, ve = nt;
|
|
2597
|
+
return r(), f(L, null, [
|
|
2598
|
+
a("div", ba, [
|
|
2537
2599
|
a("div", Aa, [
|
|
2538
|
-
I
|
|
2600
|
+
P(I.$slots, "queryList", {}, () => [
|
|
2539
2601
|
v(U, {
|
|
2540
2602
|
modelValue: n.value,
|
|
2541
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
2603
|
+
"onUpdate:modelValue": y[0] || (y[0] = (Q) => n.value = Q),
|
|
2542
2604
|
size: "small",
|
|
2543
2605
|
onChange: c
|
|
2544
2606
|
}, {
|
|
2545
2607
|
default: d(() => [
|
|
2546
|
-
v(
|
|
2608
|
+
v(z, {
|
|
2547
2609
|
label: "全部",
|
|
2548
2610
|
value: "all"
|
|
2549
2611
|
}),
|
|
2550
|
-
v(
|
|
2612
|
+
v(z, {
|
|
2551
2613
|
label: "已完成",
|
|
2552
2614
|
value: "completed"
|
|
2553
2615
|
}),
|
|
2554
|
-
v(
|
|
2616
|
+
v(z, {
|
|
2555
2617
|
label: "下载中",
|
|
2556
2618
|
value: "downloading"
|
|
2557
2619
|
}),
|
|
2558
|
-
v(
|
|
2620
|
+
v(z, {
|
|
2559
2621
|
label: "暂停中",
|
|
2560
2622
|
value: "paused"
|
|
2561
2623
|
}),
|
|
2562
|
-
v(
|
|
2624
|
+
v(z, {
|
|
2563
2625
|
label: "已失败",
|
|
2564
2626
|
value: "failed"
|
|
2565
2627
|
})
|
|
2566
2628
|
]),
|
|
2567
2629
|
_: 1
|
|
2568
2630
|
}, 8, ["modelValue"]),
|
|
2569
|
-
v(
|
|
2570
|
-
modelValue:
|
|
2571
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
2572
|
-
onChange: h(
|
|
2631
|
+
v(le, {
|
|
2632
|
+
modelValue: i.value.title,
|
|
2633
|
+
"onUpdate:modelValue": y[1] || (y[1] = (Q) => i.value.title = Q),
|
|
2634
|
+
onChange: h(A),
|
|
2573
2635
|
size: "small",
|
|
2574
2636
|
placeholder: "标题",
|
|
2575
2637
|
clearable: "",
|
|
@@ -2577,73 +2639,73 @@ const ga = async (e) => {
|
|
|
2577
2639
|
}, null, 8, ["modelValue", "onChange"])
|
|
2578
2640
|
], !0)
|
|
2579
2641
|
]),
|
|
2580
|
-
a("div",
|
|
2581
|
-
I
|
|
2582
|
-
e.showDefaultActions ? (r(),
|
|
2583
|
-
v(
|
|
2642
|
+
a("div", Ca, [
|
|
2643
|
+
P(I.$slots, "actions", {}, void 0, !0),
|
|
2644
|
+
e.showDefaultActions ? (r(), f(L, { key: 0 }, [
|
|
2645
|
+
v(ne, {
|
|
2584
2646
|
size: "small",
|
|
2585
|
-
onClick: y[2] || (y[2] = (
|
|
2647
|
+
onClick: y[2] || (y[2] = (Q) => h(T).download.pauseAll())
|
|
2586
2648
|
}, {
|
|
2587
2649
|
default: d(() => [...y[7] || (y[7] = [
|
|
2588
|
-
|
|
2650
|
+
k("暂停所有任务", -1)
|
|
2589
2651
|
])]),
|
|
2590
2652
|
_: 1
|
|
2591
2653
|
}),
|
|
2592
|
-
v(
|
|
2654
|
+
v(ne, {
|
|
2593
2655
|
size: "small",
|
|
2594
|
-
onClick: y[3] || (y[3] = (
|
|
2656
|
+
onClick: y[3] || (y[3] = (Q) => h(T).download.resumeAll())
|
|
2595
2657
|
}, {
|
|
2596
2658
|
default: d(() => [...y[8] || (y[8] = [
|
|
2597
|
-
|
|
2659
|
+
k("继续所有任务", -1)
|
|
2598
2660
|
])]),
|
|
2599
2661
|
_: 1
|
|
2600
2662
|
})
|
|
2601
2663
|
], 64)) : $("", !0)
|
|
2602
2664
|
])
|
|
2603
2665
|
]),
|
|
2604
|
-
a("div",
|
|
2666
|
+
a("div", xa, [
|
|
2605
2667
|
a("div", {
|
|
2606
2668
|
ref_key: "refList",
|
|
2607
2669
|
ref: t,
|
|
2608
2670
|
class: "download-list"
|
|
2609
2671
|
}, [
|
|
2610
|
-
(r(!0),
|
|
2611
|
-
task:
|
|
2612
|
-
key:
|
|
2672
|
+
(r(!0), f(L, null, q(h(p), (Q) => (r(), b(ga, {
|
|
2673
|
+
task: Q,
|
|
2674
|
+
key: Q.id,
|
|
2613
2675
|
onAction: D
|
|
2614
2676
|
}, {
|
|
2615
|
-
titleExtra: d((
|
|
2616
|
-
I
|
|
2677
|
+
titleExtra: d((j) => [
|
|
2678
|
+
P(I.$slots, "itemTitleExtra", Y({ ref_for: !0 }, j), void 0, !0)
|
|
2617
2679
|
]),
|
|
2618
2680
|
_: 3
|
|
2619
2681
|
}, 8, ["task"]))), 128)),
|
|
2620
|
-
h(
|
|
2682
|
+
h(p).length ? $("", !0) : (r(), b(O, {
|
|
2621
2683
|
key: 0,
|
|
2622
2684
|
description: F.value
|
|
2623
2685
|
}, null, 8, ["description"]))
|
|
2624
2686
|
], 512)
|
|
2625
2687
|
]),
|
|
2626
|
-
v(
|
|
2688
|
+
v(ve, {
|
|
2627
2689
|
class: "pagination",
|
|
2628
2690
|
"current-page": h(u).pageNum,
|
|
2629
|
-
"onUpdate:currentPage": y[4] || (y[4] = (
|
|
2691
|
+
"onUpdate:currentPage": y[4] || (y[4] = (Q) => h(u).pageNum = Q),
|
|
2630
2692
|
"page-size": h(u).pageSize,
|
|
2631
|
-
"onUpdate:pageSize": y[5] || (y[5] = (
|
|
2693
|
+
"onUpdate:pageSize": y[5] || (y[5] = (Q) => h(u).pageSize = Q),
|
|
2632
2694
|
"page-sizes": e.pageSizes,
|
|
2633
2695
|
total: h(u).total,
|
|
2634
2696
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
2635
2697
|
onCurrentChange: h(V),
|
|
2636
2698
|
onSizeChange: h(x)
|
|
2637
2699
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "onCurrentChange", "onSizeChange"]),
|
|
2638
|
-
v(
|
|
2639
|
-
modelValue:
|
|
2640
|
-
"onUpdate:modelValue": y[6] || (y[6] = (
|
|
2641
|
-
task:
|
|
2700
|
+
v(la, {
|
|
2701
|
+
modelValue: B.value.visible,
|
|
2702
|
+
"onUpdate:modelValue": y[6] || (y[6] = (Q) => B.value.visible = Q),
|
|
2703
|
+
task: B.value.task
|
|
2642
2704
|
}, {
|
|
2643
2705
|
default: d(() => [
|
|
2644
|
-
|
|
2706
|
+
B.value.task ? P(I.$slots, "detailsDialog", {
|
|
2645
2707
|
key: 0,
|
|
2646
|
-
task:
|
|
2708
|
+
task: B.value.task
|
|
2647
2709
|
}, void 0, !0) : $("", !0)
|
|
2648
2710
|
]),
|
|
2649
2711
|
_: 3
|
|
@@ -2651,111 +2713,182 @@ const ga = async (e) => {
|
|
|
2651
2713
|
], 64);
|
|
2652
2714
|
};
|
|
2653
2715
|
}
|
|
2654
|
-
}),
|
|
2655
|
-
function
|
|
2716
|
+
}), Ko = /* @__PURE__ */ H(Ea, [["__scopeId", "data-v-19b20db4"]]);
|
|
2717
|
+
function Yo(e) {
|
|
2656
2718
|
return `${e}@48w_48h_1s.avif`;
|
|
2657
2719
|
}
|
|
2658
|
-
const
|
|
2720
|
+
const Xo = (e) => {
|
|
2721
|
+
window.open(`https://space.bilibili.com/${e}`);
|
|
2722
|
+
}, Ba = { class: "key-value-tag" }, Sa = { class: "label" }, $a = { class: "value" }, za = /* @__PURE__ */ S({
|
|
2659
2723
|
__name: "KeyValueTag",
|
|
2660
2724
|
props: {
|
|
2661
2725
|
label: {},
|
|
2662
2726
|
value: {}
|
|
2663
2727
|
},
|
|
2664
2728
|
setup(e) {
|
|
2665
|
-
return (l, s) => (r(),
|
|
2666
|
-
a("span",
|
|
2667
|
-
a("span",
|
|
2729
|
+
return (l, s) => (r(), f("div", Ba, [
|
|
2730
|
+
a("span", Sa, m(e.label), 1),
|
|
2731
|
+
a("span", $a, m(e.value), 1)
|
|
2668
2732
|
]));
|
|
2669
2733
|
}
|
|
2670
|
-
}),
|
|
2734
|
+
}), ei = /* @__PURE__ */ H(za, [["__scopeId", "data-v-be2d6a5f"]]), Da = { class: "el-input-group__prepend prefix" }, ti = /* @__PURE__ */ S({
|
|
2671
2735
|
__name: "QueryFormItem",
|
|
2672
2736
|
props: {
|
|
2673
2737
|
prefix: {},
|
|
2674
2738
|
small: { type: Boolean }
|
|
2675
2739
|
},
|
|
2676
2740
|
setup(e) {
|
|
2677
|
-
return (l, s) => (r(),
|
|
2741
|
+
return (l, s) => (r(), f("div", {
|
|
2678
2742
|
class: W(["el-input el-input-group el-input-group--append el-input-group--prepend app-query-form-item", e.small ? "el-input--small" : ""])
|
|
2679
2743
|
}, [
|
|
2680
|
-
a("span",
|
|
2681
|
-
|
|
2744
|
+
a("span", Da, m(e.prefix), 1),
|
|
2745
|
+
P(l.$slots, "default")
|
|
2682
2746
|
], 2));
|
|
2683
2747
|
}
|
|
2684
|
-
})
|
|
2748
|
+
}), Ia = { class: "spacer" }, Pa = { class: "text-content" }, Va = /* @__PURE__ */ S({
|
|
2749
|
+
__name: "OverflowText",
|
|
2750
|
+
props: {
|
|
2751
|
+
content: {}
|
|
2752
|
+
},
|
|
2753
|
+
setup(e) {
|
|
2754
|
+
const l = e, s = E(null), t = E(null), o = E(!1), n = E(0);
|
|
2755
|
+
let i = null;
|
|
2756
|
+
const c = () => {
|
|
2757
|
+
if (!s.value || !t.value) return;
|
|
2758
|
+
const u = s.value.clientWidth, p = t.value.getBoundingClientRect().width;
|
|
2759
|
+
if (p > u) {
|
|
2760
|
+
o.value = !0;
|
|
2761
|
+
const g = p + 30;
|
|
2762
|
+
n.value = g / 50;
|
|
2763
|
+
} else
|
|
2764
|
+
o.value = !1;
|
|
2765
|
+
};
|
|
2766
|
+
return J(
|
|
2767
|
+
() => l.content,
|
|
2768
|
+
async () => {
|
|
2769
|
+
await ue(), c();
|
|
2770
|
+
}
|
|
2771
|
+
), ee(() => {
|
|
2772
|
+
c(), s.value && (i = new ResizeObserver(() => {
|
|
2773
|
+
c();
|
|
2774
|
+
}), i.observe(s.value));
|
|
2775
|
+
}), Ze(() => {
|
|
2776
|
+
i && i.disconnect();
|
|
2777
|
+
}), (u, p) => {
|
|
2778
|
+
const g = Me;
|
|
2779
|
+
return r(), b(g, {
|
|
2780
|
+
content: e.content,
|
|
2781
|
+
disabled: !o.value,
|
|
2782
|
+
placement: "top"
|
|
2783
|
+
}, {
|
|
2784
|
+
default: d(() => [
|
|
2785
|
+
a("div", {
|
|
2786
|
+
class: "auto-scroll-container",
|
|
2787
|
+
ref_key: "containerRef",
|
|
2788
|
+
ref: s
|
|
2789
|
+
}, [
|
|
2790
|
+
a("div", {
|
|
2791
|
+
class: W(["scroll-wrapper", { "is-scrolling": o.value }]),
|
|
2792
|
+
style: fe({ "--duration": n.value + "s" })
|
|
2793
|
+
}, [
|
|
2794
|
+
a("span", {
|
|
2795
|
+
class: "text-content",
|
|
2796
|
+
ref_key: "textRef",
|
|
2797
|
+
ref: t
|
|
2798
|
+
}, m(e.content), 513),
|
|
2799
|
+
G(a("span", Ia, null, 512), [
|
|
2800
|
+
[ce, o.value]
|
|
2801
|
+
]),
|
|
2802
|
+
o.value ? (r(), f(L, { key: 0 }, [
|
|
2803
|
+
a("span", Pa, m(e.content), 1),
|
|
2804
|
+
p[0] || (p[0] = a("span", { class: "spacer" }, null, -1))
|
|
2805
|
+
], 64)) : $("", !0)
|
|
2806
|
+
], 6)
|
|
2807
|
+
], 512)
|
|
2808
|
+
]),
|
|
2809
|
+
_: 1
|
|
2810
|
+
}, 8, ["content", "disabled"]);
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2813
|
+
}), si = /* @__PURE__ */ H(Va, [["__scopeId", "data-v-dcb2ace1"]]);
|
|
2685
2814
|
export {
|
|
2686
2815
|
N as AppIcon,
|
|
2687
2816
|
ae as AppTooltip,
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2817
|
+
Il as BiliUserCard,
|
|
2818
|
+
Zo as BiliUserInfo,
|
|
2819
|
+
Lo as CountdownDialog,
|
|
2820
|
+
nn as DeleteConfirmDialog,
|
|
2821
|
+
la as DownloadDetailsDialog,
|
|
2822
|
+
ga as DownloadItem,
|
|
2823
|
+
Ko as DownloadManagePage,
|
|
2824
|
+
kt as DownloadProgress,
|
|
2825
|
+
bt as DownloadProgressDetails,
|
|
2697
2826
|
An as DownloadResourceTag,
|
|
2698
2827
|
At as DownloadResult,
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2828
|
+
yt as DownloadStatus,
|
|
2829
|
+
Jn as DownloadVideoCard,
|
|
2830
|
+
Sn as DownloadVideoPartCard,
|
|
2831
|
+
jo as ExternalLink,
|
|
2832
|
+
qo as IconButton,
|
|
2833
|
+
ut as IconLabel,
|
|
2834
|
+
ei as KeyValueTag,
|
|
2835
|
+
Ss as LoadingDialog,
|
|
2836
|
+
No as LogPrint,
|
|
2837
|
+
si as OverflowText,
|
|
2838
|
+
Xs as PageRangeDialog,
|
|
2839
|
+
Jo as PageTable,
|
|
2840
|
+
_t as PluginMenuItem,
|
|
2841
|
+
Ll as PluginMenus,
|
|
2842
|
+
Go as PluginPageContent,
|
|
2843
|
+
Wo as PluginPageHeader,
|
|
2844
|
+
dl as ProcessDialog,
|
|
2845
|
+
ti as QueryFormItem,
|
|
2846
|
+
Ns as SelectDialog,
|
|
2847
|
+
Ho as SettingGroup,
|
|
2848
|
+
Ro as SettingItem,
|
|
2849
|
+
bn as VideoStatsInfo,
|
|
2720
2850
|
Qe as baseUpdateThemeColor,
|
|
2721
|
-
|
|
2851
|
+
Oe as blackColor,
|
|
2722
2852
|
$e as formatBytes,
|
|
2723
|
-
|
|
2853
|
+
an as formatSpeed,
|
|
2724
2854
|
ze as formatStatCount,
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2855
|
+
Yo as getUserAvatarThumbnail,
|
|
2856
|
+
ya as handleCancel,
|
|
2857
|
+
ka as handleDelete,
|
|
2858
|
+
Do as handleError,
|
|
2859
|
+
_a as handleOpenFolder,
|
|
2860
|
+
Xo as handleOpenSpace,
|
|
2861
|
+
ha as handlePause,
|
|
2862
|
+
wa as handleResume,
|
|
2863
|
+
Eo as initAppTheme,
|
|
2864
|
+
zo as initBilitoolkitUi,
|
|
2865
|
+
Ae as initTransparentColors,
|
|
2866
|
+
Te as isDarkTheme,
|
|
2867
|
+
je as loadingDialog,
|
|
2868
|
+
$n as parseVideoZoneLabel,
|
|
2869
|
+
Oo as processDialog,
|
|
2870
|
+
ks as showConfirm,
|
|
2871
|
+
Po as showConfirmSequence,
|
|
2872
|
+
fa as showDeleteConfirmDialog,
|
|
2742
2873
|
ie as showError,
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2874
|
+
Uo as showPageRangeDialog,
|
|
2875
|
+
Fo as showSelectDialog,
|
|
2876
|
+
se as showToast,
|
|
2877
|
+
Io as showWarning,
|
|
2878
|
+
Bo as switchDefaultTheme,
|
|
2879
|
+
So as switchThemeMode,
|
|
2749
2880
|
T as toolkitApi,
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2881
|
+
we as updateAppTheme,
|
|
2882
|
+
$o as updatePrimaryColor,
|
|
2883
|
+
ke as useAppThemeStore,
|
|
2884
|
+
Vo as useAutoRefreshData,
|
|
2885
|
+
Hs as useCountdown,
|
|
2886
|
+
bs as useElementHeight,
|
|
2887
|
+
Qo as useElementScrollbar,
|
|
2888
|
+
Re as useLoadingData,
|
|
2889
|
+
To as useLoadingTask,
|
|
2890
|
+
ct as usePageTable,
|
|
2891
|
+
Mo as useSelectData,
|
|
2892
|
+
He as useSelectedUserStore,
|
|
2893
|
+
Ue as whiteColor
|
|
2761
2894
|
};
|