@huyooo/ui 0.4.28 → 0.4.29
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/{AuthkitAppSetting-BFCdC1j2.js → AuthkitAppSetting-CipV7oA1.js} +634 -646
- package/dist/{AuthkitAuthorize-p0mbjzzG.js → AuthkitAuthorize-f_yAVn7e.js} +1 -1
- package/dist/{FeedbackItem-CFVbxhcl.js → FeedbackItem-ooh4blcU.js} +97 -127
- package/dist/{FeedbackModal-DHWHALct.js → FeedbackModal-CYHs8PS1.js} +257 -277
- package/dist/Upload.vue_vue_type_script_setup_true_lang-DGZiaQGY.js +70 -0
- package/dist/UserPanel-D3rp3ILE.js +544 -0
- package/dist/api/Buckets/Files.d.ts +7 -7
- package/dist/authkit.d.ts +0 -1
- package/dist/authkit.js +13 -14
- package/dist/common.d.ts +1 -1
- package/dist/common.js +19 -20
- package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +0 -48
- package/dist/components/Upload/Upload.vue.d.ts +0 -40
- package/dist/composables/Upload/useUploadCos.d.ts +1 -8
- package/dist/composables/{useUserPanelProps.d.ts → useGlobalConfig.d.ts} +2 -11
- package/dist/composables.d.ts +1 -2
- package/dist/composables.js +15 -17
- package/dist/feedback.js +2 -2
- package/dist/index.js +117 -119
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitProps-CW3Jem_o.js → useAuthkitAuthModal-OkUKCIWR.js} +18 -65
- package/dist/{useUploadCos-B8D9lYIk.js → useUploadCos-ByBVD4yB.js} +2529 -2373
- package/dist/user.d.ts +1 -1
- package/dist/user.js +5 -5
- package/dist/utils/mimeTypeHelper.d.ts +13 -0
- package/package.json +7 -6
- package/README.md +0 -5
- package/dist/Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js +0 -96
- package/dist/UserPanel-B9y5Hs2k.js +0 -545
- package/dist/composables/Authkit/useAuthkitProps.d.ts +0 -12
- package/dist/useUserPanelProps-C5W72fZJ.js +0 -54
- package/dist/utils/configHelper.d.ts +0 -17
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { defineComponent as _, createElementBlock as k, openBlock as l, normalizeStyle as V, normalizeClass as O, createElementVNode as d, computed as D, createBlock as y, createCommentVNode as M, createVNode as i, unref as t, withCtx as s, createTextVNode as f, toDisplayString as C, renderSlot as Se, ref as p, Fragment as be } from "vue";
|
|
6
|
-
import { Tag as Ce, Button as q, Avatar as E, Dropdown as Ie, Divider as K, Doption as g } from "@arco-design/web-vue";
|
|
7
|
-
import { S as he } from "./PaySubscriptions-u3gwyezu.js";
|
|
8
|
-
import { R as $e } from "./ReferrerReferees-D2NqWvol.js";
|
|
9
|
-
import { a as T, u as xe } from "./useAuthkitUsersProfile-Diituvy1.js";
|
|
10
|
-
import { a as Ue, u as Pe } from "./useAuthkitProps-CW3Jem_o.js";
|
|
11
|
-
import { u as Be } from "./useUserPanelProps-C5W72fZJ.js";
|
|
12
|
-
import { a as Ae, b as De } from "./AuthkitAppSetting-BFCdC1j2.js";
|
|
13
|
-
import { d as Me } from "./FeedbackModal-DHWHALct.js";
|
|
14
|
-
import { M as we } from "./MessageHandle-DN_JsQb2.js";
|
|
15
|
-
/* empty css */
|
|
16
|
-
/* empty css */
|
|
17
|
-
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
/* empty css */
|
|
19
|
-
import { I as P } from "./index-Cr5RQSnA.js";
|
|
20
|
-
import { _ as W, g as G, i as J } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
21
|
-
const Re = _({
|
|
22
|
-
name: "IconExport",
|
|
23
|
-
props: {
|
|
24
|
-
size: {
|
|
25
|
-
type: [Number, String]
|
|
26
|
-
},
|
|
27
|
-
strokeWidth: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 4
|
|
30
|
-
},
|
|
31
|
-
strokeLinecap: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "butt",
|
|
34
|
-
validator: (e) => ["butt", "round", "square"].includes(e)
|
|
35
|
-
},
|
|
36
|
-
strokeLinejoin: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "miter",
|
|
39
|
-
validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
|
|
40
|
-
},
|
|
41
|
-
rotate: Number,
|
|
42
|
-
spin: Boolean
|
|
43
|
-
},
|
|
44
|
-
emits: {
|
|
45
|
-
click: (e) => !0
|
|
46
|
-
},
|
|
47
|
-
setup(e, {
|
|
48
|
-
emit: n
|
|
49
|
-
}) {
|
|
50
|
-
const r = G("icon"), a = D(() => [r, `${r}-export`, {
|
|
51
|
-
[`${r}-spin`]: e.spin
|
|
52
|
-
}]), c = D(() => {
|
|
53
|
-
const o = {};
|
|
54
|
-
return e.size && (o.fontSize = J(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
cls: a,
|
|
58
|
-
innerStyle: c,
|
|
59
|
-
onClick: (o) => {
|
|
60
|
-
n("click", o);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}), ze = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
65
|
-
function Ne(e, n, r, a, c, m) {
|
|
66
|
-
return l(), k("svg", {
|
|
67
|
-
viewBox: "0 0 48 48",
|
|
68
|
-
fill: "none",
|
|
69
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
-
stroke: "currentColor",
|
|
71
|
-
class: O(e.cls),
|
|
72
|
-
style: V(e.innerStyle),
|
|
73
|
-
"stroke-width": e.strokeWidth,
|
|
74
|
-
"stroke-linecap": e.strokeLinecap,
|
|
75
|
-
"stroke-linejoin": e.strokeLinejoin,
|
|
76
|
-
onClick: n[0] || (n[0] = (...o) => e.onClick && e.onClick(...o))
|
|
77
|
-
}, n[1] || (n[1] = [d("path", {
|
|
78
|
-
d: "M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"
|
|
79
|
-
}, null, -1)]), 14, ze);
|
|
80
|
-
}
|
|
81
|
-
var R = /* @__PURE__ */ W(Re, [["render", Ne]]);
|
|
82
|
-
const Le = Object.assign(R, {
|
|
83
|
-
install: (e, n) => {
|
|
84
|
-
var r;
|
|
85
|
-
const a = (r = n == null ? void 0 : n.iconPrefix) != null ? r : "";
|
|
86
|
-
e.component(a + R.name, R);
|
|
87
|
-
}
|
|
88
|
-
}), je = _({
|
|
89
|
-
name: "IconLaunch",
|
|
90
|
-
props: {
|
|
91
|
-
size: {
|
|
92
|
-
type: [Number, String]
|
|
93
|
-
},
|
|
94
|
-
strokeWidth: {
|
|
95
|
-
type: Number,
|
|
96
|
-
default: 4
|
|
97
|
-
},
|
|
98
|
-
strokeLinecap: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: "butt",
|
|
101
|
-
validator: (e) => ["butt", "round", "square"].includes(e)
|
|
102
|
-
},
|
|
103
|
-
strokeLinejoin: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: "miter",
|
|
106
|
-
validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
|
|
107
|
-
},
|
|
108
|
-
rotate: Number,
|
|
109
|
-
spin: Boolean
|
|
110
|
-
},
|
|
111
|
-
emits: {
|
|
112
|
-
click: (e) => !0
|
|
113
|
-
},
|
|
114
|
-
setup(e, {
|
|
115
|
-
emit: n
|
|
116
|
-
}) {
|
|
117
|
-
const r = G("icon"), a = D(() => [r, `${r}-launch`, {
|
|
118
|
-
[`${r}-spin`]: e.spin
|
|
119
|
-
}]), c = D(() => {
|
|
120
|
-
const o = {};
|
|
121
|
-
return e.size && (o.fontSize = J(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
|
|
122
|
-
});
|
|
123
|
-
return {
|
|
124
|
-
cls: a,
|
|
125
|
-
innerStyle: c,
|
|
126
|
-
onClick: (o) => {
|
|
127
|
-
n("click", o);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}), He = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
132
|
-
function Fe(e, n, r, a, c, m) {
|
|
133
|
-
return l(), k("svg", {
|
|
134
|
-
viewBox: "0 0 48 48",
|
|
135
|
-
fill: "none",
|
|
136
|
-
stroke: "currentColor",
|
|
137
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
138
|
-
class: O(e.cls),
|
|
139
|
-
style: V(e.innerStyle),
|
|
140
|
-
"stroke-width": e.strokeWidth,
|
|
141
|
-
"stroke-linecap": e.strokeLinecap,
|
|
142
|
-
"stroke-linejoin": e.strokeLinejoin,
|
|
143
|
-
onClick: n[0] || (n[0] = (...o) => e.onClick && e.onClick(...o))
|
|
144
|
-
}, n[1] || (n[1] = [d("path", {
|
|
145
|
-
d: "M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"
|
|
146
|
-
}, null, -1)]), 14, He);
|
|
147
|
-
}
|
|
148
|
-
var z = /* @__PURE__ */ W(je, [["render", Fe]]);
|
|
149
|
-
const Ve = Object.assign(z, {
|
|
150
|
-
install: (e, n) => {
|
|
151
|
-
var r;
|
|
152
|
-
const a = (r = n == null ? void 0 : n.iconPrefix) != null ? r : "";
|
|
153
|
-
e.component(a + z.name, z);
|
|
154
|
-
}
|
|
155
|
-
}), Oe = {
|
|
156
|
-
class: "pricing"
|
|
157
|
-
}, qe = {
|
|
158
|
-
class: "base"
|
|
159
|
-
}, Ee = {
|
|
160
|
-
class: "pricingInfo"
|
|
161
|
-
}, Ke = /* @__PURE__ */ _({
|
|
162
|
-
__name: "UserSubscriptionBaseInformation",
|
|
163
|
-
props: {
|
|
164
|
-
currentVersionName: {
|
|
165
|
-
type: String,
|
|
166
|
-
required: !0
|
|
167
|
-
},
|
|
168
|
-
expireDate: {
|
|
169
|
-
type: String,
|
|
170
|
-
required: !0
|
|
171
|
-
},
|
|
172
|
-
canUpgrade: {
|
|
173
|
-
type: Boolean,
|
|
174
|
-
required: !0
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
emits: ["upgradeHandle"],
|
|
178
|
-
setup(e, {
|
|
179
|
-
emit: n
|
|
180
|
-
}) {
|
|
181
|
-
const r = e, a = n;
|
|
182
|
-
function c() {
|
|
183
|
-
a("upgradeHandle");
|
|
184
|
-
}
|
|
185
|
-
return (m, o) => (l(), k("div", Oe, [d("div", qe, [d("div", Ee, [o[0] || (o[0] = d("span", null, "我的订阅:", -1)), i(t(Ce), {
|
|
186
|
-
color: "arcoblue",
|
|
187
|
-
style: {
|
|
188
|
-
"border-radius": "6px"
|
|
189
|
-
}
|
|
190
|
-
}, {
|
|
191
|
-
default: s(() => [f(C(r.currentVersionName), 1)]),
|
|
192
|
-
_: 1
|
|
193
|
-
})]), r.canUpgrade ? (l(), y(t(q), {
|
|
194
|
-
key: 0,
|
|
195
|
-
type: "primary",
|
|
196
|
-
size: "mini",
|
|
197
|
-
class: "updatePricing",
|
|
198
|
-
onClick: c
|
|
199
|
-
}, {
|
|
200
|
-
default: s(() => o[1] || (o[1] = [f(" 升级 ")])),
|
|
201
|
-
_: 1,
|
|
202
|
-
__: [1]
|
|
203
|
-
})) : M("", !0)]), d("span", null, "有效期至: " + C(r.expireDate), 1)]));
|
|
204
|
-
}
|
|
205
|
-
}), Te = /* @__PURE__ */ B(Ke, [["__scopeId", "data-v-1e32fa72"]]), We = {
|
|
206
|
-
class: "userInfo"
|
|
207
|
-
}, Ge = {
|
|
208
|
-
key: 0,
|
|
209
|
-
class: "userName"
|
|
210
|
-
}, Je = /* @__PURE__ */ _({
|
|
211
|
-
__name: "UserAvatar",
|
|
212
|
-
props: {
|
|
213
|
-
nickname: {
|
|
214
|
-
type: String,
|
|
215
|
-
default: ""
|
|
216
|
-
},
|
|
217
|
-
avatar: {
|
|
218
|
-
type: String,
|
|
219
|
-
default: ""
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
setup(e) {
|
|
223
|
-
const n = e;
|
|
224
|
-
return (r, a) => (l(), k("div", We, [n.nickname ? (l(), k("span", Ge, C(n.nickname), 1)) : M("", !0), i(t(E), {
|
|
225
|
-
"image-url": n.avatar,
|
|
226
|
-
size: 32,
|
|
227
|
-
"object-fit": "cover"
|
|
228
|
-
}, null, 8, ["image-url"])]));
|
|
229
|
-
}
|
|
230
|
-
}), Qe = /* @__PURE__ */ B(Je, [["__scopeId", "data-v-a7a47cc4"]]), Xe = {
|
|
231
|
-
class: "userInfo"
|
|
232
|
-
}, Ye = {
|
|
233
|
-
class: "extra"
|
|
234
|
-
}, Ze = {
|
|
235
|
-
class: "userName"
|
|
236
|
-
}, et = {
|
|
237
|
-
class: "email"
|
|
238
|
-
}, tt = {
|
|
239
|
-
key: 0,
|
|
240
|
-
class: "referrerId"
|
|
241
|
-
}, nt = /* @__PURE__ */ _({
|
|
242
|
-
__name: "UserBasicInformation",
|
|
243
|
-
props: {
|
|
244
|
-
nickname: {
|
|
245
|
-
type: String,
|
|
246
|
-
default: ""
|
|
247
|
-
},
|
|
248
|
-
email: {
|
|
249
|
-
type: String,
|
|
250
|
-
default: ""
|
|
251
|
-
},
|
|
252
|
-
avatarUrl: {
|
|
253
|
-
type: String,
|
|
254
|
-
default: ""
|
|
255
|
-
},
|
|
256
|
-
referrerId: {
|
|
257
|
-
type: String,
|
|
258
|
-
default: ""
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
setup(e) {
|
|
262
|
-
const n = e;
|
|
263
|
-
return (r, a) => (l(), k("div", Xe, [i(t(E), {
|
|
264
|
-
"image-url": n.avatarUrl,
|
|
265
|
-
size: 42,
|
|
266
|
-
"object-fit": "cover"
|
|
267
|
-
}, null, 8, ["image-url"]), d("div", Ye, [d("span", Ze, C(n.nickname), 1), d("span", et, C(n.email), 1), n.referrerId ? (l(), k("span", tt, " 邀请码:" + C(n.referrerId), 1)) : M("", !0)])]));
|
|
268
|
-
}
|
|
269
|
-
}), ot = /* @__PURE__ */ B(nt, [["__scopeId", "data-v-367449da"]]), rt = {
|
|
270
|
-
class: "dropdownContent"
|
|
271
|
-
}, it = {
|
|
272
|
-
class: "header"
|
|
273
|
-
}, at = /* @__PURE__ */ _({
|
|
274
|
-
__name: "UserButton",
|
|
275
|
-
emits: ["enterSystem", "toSignIn"],
|
|
276
|
-
setup(e, {
|
|
277
|
-
emit: n
|
|
278
|
-
}) {
|
|
279
|
-
const r = n, {
|
|
280
|
-
userProfile: a,
|
|
281
|
-
isLoggedIn: c
|
|
282
|
-
} = T();
|
|
283
|
-
function m() {
|
|
284
|
-
r("toSignIn");
|
|
285
|
-
}
|
|
286
|
-
return (o, I) => t(c) ? (l(), y(t(Ie), {
|
|
287
|
-
key: 1,
|
|
288
|
-
class: "DropdownUserInfo",
|
|
289
|
-
position: "bl"
|
|
290
|
-
}, {
|
|
291
|
-
content: s(() => {
|
|
292
|
-
var v, h, $, x;
|
|
293
|
-
return [d("div", rt, [d("div", it, [i(ot, {
|
|
294
|
-
"avatar-url": (v = t(a)) == null ? void 0 : v.avatarUrl,
|
|
295
|
-
nickname: (h = t(a)) == null ? void 0 : h.nickname,
|
|
296
|
-
email: ($ = t(a)) == null ? void 0 : $.email,
|
|
297
|
-
"referrer-id": (x = t(a)) == null ? void 0 : x.referrerId
|
|
298
|
-
}, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), i(Te, {
|
|
299
|
-
currentVersionName: "免费版本",
|
|
300
|
-
"expire-date": "2025-01-01",
|
|
301
|
-
"can-upgrade": !0
|
|
302
|
-
})]), i(t(K), {
|
|
303
|
-
style: {
|
|
304
|
-
margin: "10px 0px"
|
|
305
|
-
}
|
|
306
|
-
}), Se(o.$slots, "DoptionList", {}, void 0, !0)])];
|
|
307
|
-
}),
|
|
308
|
-
default: s(() => {
|
|
309
|
-
var v;
|
|
310
|
-
return [i(Qe, {
|
|
311
|
-
avatar: (v = t(a)) == null ? void 0 : v.avatarUrl
|
|
312
|
-
}, null, 8, ["avatar"])];
|
|
313
|
-
}),
|
|
314
|
-
_: 3
|
|
315
|
-
})) : (l(), y(t(q), {
|
|
316
|
-
key: 0,
|
|
317
|
-
type: "primary",
|
|
318
|
-
class: "handle",
|
|
319
|
-
onClick: m
|
|
320
|
-
}, {
|
|
321
|
-
default: s(() => I[0] || (I[0] = [f(" 登陆 ")])),
|
|
322
|
-
_: 1,
|
|
323
|
-
__: [0]
|
|
324
|
-
}));
|
|
325
|
-
}
|
|
326
|
-
}), st = /* @__PURE__ */ B(at, [["__scopeId", "data-v-895035f0"]]), lt = {
|
|
327
|
-
class: "UserPanel"
|
|
328
|
-
}, ut = /* @__PURE__ */ _({
|
|
329
|
-
__name: "UserPanel",
|
|
330
|
-
emits: ["toHomePage", "signOut"],
|
|
331
|
-
setup(e, {
|
|
332
|
-
emit: n
|
|
333
|
-
}) {
|
|
334
|
-
const r = p(), a = p(), c = p(Symbol("key")), m = n, {
|
|
335
|
-
prefixUrl: o,
|
|
336
|
-
bucketId: I,
|
|
337
|
-
bucket: v,
|
|
338
|
-
region: h,
|
|
339
|
-
appId: $
|
|
340
|
-
} = Be(), {
|
|
341
|
-
fetchUserProfile: x,
|
|
342
|
-
clearUserProfile: Q,
|
|
343
|
-
isLoggedIn: S
|
|
344
|
-
} = T(), {
|
|
345
|
-
addSignInCallback: X,
|
|
346
|
-
initializeAuth: Y,
|
|
347
|
-
clearAuth: Z
|
|
348
|
-
} = xe();
|
|
349
|
-
Y() && x();
|
|
350
|
-
const N = p(), L = p(Symbol("key")), j = p(), H = p(), ee = p(Symbol("key")), te = p(), ne = p(Symbol("key"));
|
|
351
|
-
function oe(F) {
|
|
352
|
-
}
|
|
353
|
-
function re(F) {
|
|
354
|
-
}
|
|
355
|
-
const U = Ue(), {
|
|
356
|
-
show: ie
|
|
357
|
-
} = Pe();
|
|
358
|
-
U.appId.value = $.value, U.prefixUrl.value = o.value, U.bucketId.value = I.value, U.bucket.value = v.value, U.region.value = h.value;
|
|
359
|
-
function ae() {
|
|
360
|
-
L.value = Symbol("key");
|
|
361
|
-
}
|
|
362
|
-
const w = p(), A = p(Symbol("key"));
|
|
363
|
-
function se() {
|
|
364
|
-
A.value = Symbol("key");
|
|
365
|
-
}
|
|
366
|
-
function le() {
|
|
367
|
-
A.value = Symbol("key");
|
|
368
|
-
}
|
|
369
|
-
function b() {
|
|
370
|
-
ie.value = !0;
|
|
371
|
-
}
|
|
372
|
-
X(() => {
|
|
373
|
-
x();
|
|
374
|
-
});
|
|
375
|
-
function ue() {
|
|
376
|
-
c.value = Symbol("key");
|
|
377
|
-
}
|
|
378
|
-
function ce() {
|
|
379
|
-
a.value.show = !1;
|
|
380
|
-
}
|
|
381
|
-
function pe() {
|
|
382
|
-
A.value = Symbol("key");
|
|
383
|
-
}
|
|
384
|
-
function de() {
|
|
385
|
-
w.value.setData(null, !0);
|
|
386
|
-
}
|
|
387
|
-
function fe() {
|
|
388
|
-
if (!S.value) {
|
|
389
|
-
b();
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
w.value.setData(null, !0);
|
|
393
|
-
}
|
|
394
|
-
function me() {
|
|
395
|
-
if (!S.value) {
|
|
396
|
-
b();
|
|
397
|
-
return;
|
|
398
|
-
}
|
|
399
|
-
j.value.openNotification();
|
|
400
|
-
}
|
|
401
|
-
function ke() {
|
|
402
|
-
if (!S.value) {
|
|
403
|
-
b();
|
|
404
|
-
return;
|
|
405
|
-
}
|
|
406
|
-
H.value.setData(null, !0);
|
|
407
|
-
}
|
|
408
|
-
function ve() {
|
|
409
|
-
if (!S.value) {
|
|
410
|
-
b();
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
r.value.setData(!0);
|
|
414
|
-
}
|
|
415
|
-
function ye() {
|
|
416
|
-
if (!S.value) {
|
|
417
|
-
b();
|
|
418
|
-
return;
|
|
419
|
-
}
|
|
420
|
-
N.value.setData(!0);
|
|
421
|
-
}
|
|
422
|
-
function ge() {
|
|
423
|
-
m("toHomePage");
|
|
424
|
-
}
|
|
425
|
-
async function _e() {
|
|
426
|
-
Q(), Z(), m("signOut");
|
|
427
|
-
}
|
|
428
|
-
return (F, u) => (l(), k("div", lt, [i(st, {
|
|
429
|
-
onToSignIn: b
|
|
430
|
-
}, {
|
|
431
|
-
DoptionList: s(() => [i(t(g), {
|
|
432
|
-
value: "messages",
|
|
433
|
-
class: "Doption",
|
|
434
|
-
onClick: me
|
|
435
|
-
}, {
|
|
436
|
-
icon: s(() => u[0] || (u[0] = [f("消息中心")])),
|
|
437
|
-
default: s(() => [i(t(P))]),
|
|
438
|
-
_: 1
|
|
439
|
-
}), i(t(g), {
|
|
440
|
-
value: "setting",
|
|
441
|
-
class: "Doption",
|
|
442
|
-
onClick: fe
|
|
443
|
-
}, {
|
|
444
|
-
icon: s(() => u[1] || (u[1] = [f("系统设置 ")])),
|
|
445
|
-
default: s(() => [i(t(P))]),
|
|
446
|
-
_: 1
|
|
447
|
-
}), i(t(g), {
|
|
448
|
-
value: "subscription",
|
|
449
|
-
class: "Doption",
|
|
450
|
-
onClick: ke
|
|
451
|
-
}, {
|
|
452
|
-
icon: s(() => u[2] || (u[2] = [f("订阅信息 ")])),
|
|
453
|
-
default: s(() => [i(t(P))]),
|
|
454
|
-
_: 1
|
|
455
|
-
}), i(t(g), {
|
|
456
|
-
value: "feedBack",
|
|
457
|
-
class: "Doption",
|
|
458
|
-
onClick: ve
|
|
459
|
-
}, {
|
|
460
|
-
icon: s(() => u[3] || (u[3] = [f("系统反馈 ")])),
|
|
461
|
-
default: s(() => [i(t(P))]),
|
|
462
|
-
_: 1
|
|
463
|
-
}), i(t(g), {
|
|
464
|
-
value: "invitations",
|
|
465
|
-
class: "Doption",
|
|
466
|
-
onClick: ye
|
|
467
|
-
}, {
|
|
468
|
-
icon: s(() => u[4] || (u[4] = [f("邀请 ")])),
|
|
469
|
-
default: s(() => [i(t(P))]),
|
|
470
|
-
_: 1
|
|
471
|
-
}), i(t(K), {
|
|
472
|
-
style: {
|
|
473
|
-
margin: "10px 0px"
|
|
474
|
-
}
|
|
475
|
-
}), i(t(g), {
|
|
476
|
-
value: "homePage",
|
|
477
|
-
class: "Doption",
|
|
478
|
-
onClick: ge
|
|
479
|
-
}, {
|
|
480
|
-
icon: s(() => u[5] || (u[5] = [f("主页 ")])),
|
|
481
|
-
default: s(() => [i(t(Ve))]),
|
|
482
|
-
_: 1
|
|
483
|
-
}), i(t(g), {
|
|
484
|
-
value: "signOut",
|
|
485
|
-
class: "Doption",
|
|
486
|
-
onClick: _e
|
|
487
|
-
}, {
|
|
488
|
-
icon: s(() => u[6] || (u[6] = [f("退出登陆 ")])),
|
|
489
|
-
default: s(() => [i(t(Le))]),
|
|
490
|
-
_: 1
|
|
491
|
-
})]),
|
|
492
|
-
_: 1
|
|
493
|
-
}), (l(), y(Ae, {
|
|
494
|
-
ref_key: "AuthModalRef",
|
|
495
|
-
ref: te,
|
|
496
|
-
key: ne.value,
|
|
497
|
-
size: "large",
|
|
498
|
-
onToPrivacyPolicy: oe,
|
|
499
|
-
onToUserServiceAgreement: re
|
|
500
|
-
})), t(S) ? (l(), k(be, {
|
|
501
|
-
key: 0
|
|
502
|
-
}, [(l(), y(De, {
|
|
503
|
-
ref_key: "AppSettingRef",
|
|
504
|
-
ref: w,
|
|
505
|
-
key: A.value,
|
|
506
|
-
onConfirm: de,
|
|
507
|
-
onCancel: pe
|
|
508
|
-
})), (l(), y($e, {
|
|
509
|
-
ref_key: "RefereesRef",
|
|
510
|
-
ref: N,
|
|
511
|
-
key: L.value,
|
|
512
|
-
"prefix-url": t(o),
|
|
513
|
-
onCancel: ae
|
|
514
|
-
}, null, 8, ["prefix-url"])), (l(), y(he, {
|
|
515
|
-
ref_key: "SubscriptionsRef",
|
|
516
|
-
ref: H,
|
|
517
|
-
key: ee.value,
|
|
518
|
-
title: "订阅详情",
|
|
519
|
-
onConfirm: se,
|
|
520
|
-
onCancel: le
|
|
521
|
-
})), i(we, {
|
|
522
|
-
ref_key: "MessageHandleRef",
|
|
523
|
-
ref: j,
|
|
524
|
-
"prefix-url": t(o)
|
|
525
|
-
}, null, 8, ["prefix-url"]), (l(), y(Me, {
|
|
526
|
-
ref_key: "FeedBackModalRef",
|
|
527
|
-
ref: r,
|
|
528
|
-
key: c.value,
|
|
529
|
-
"app-id": t($),
|
|
530
|
-
"prefix-url": t(o),
|
|
531
|
-
"bucket-id": t(I),
|
|
532
|
-
bucket: t(v),
|
|
533
|
-
region: t(h),
|
|
534
|
-
onConfirm: ce,
|
|
535
|
-
onCancel: ue
|
|
536
|
-
}, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"]))], 64)) : M("", !0)]));
|
|
537
|
-
}
|
|
538
|
-
}), At = /* @__PURE__ */ B(ut, [["__scopeId", "data-v-7e1b912e"]]);
|
|
539
|
-
export {
|
|
540
|
-
Te as S,
|
|
541
|
-
At as U,
|
|
542
|
-
st as a,
|
|
543
|
-
Qe as b,
|
|
544
|
-
ot as c
|
|
545
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HuyoooUIConfig, ConfigValidation } from '../useUserPanelProps';
|
|
2
|
-
export declare function useAuthkitProps(): {
|
|
3
|
-
appId: import('vue').Ref<string, string>;
|
|
4
|
-
prefixUrl: import('vue').Ref<string, string>;
|
|
5
|
-
bucket: import('vue').Ref<string, string>;
|
|
6
|
-
bucketId: import('vue').Ref<string, string>;
|
|
7
|
-
region: import('vue').Ref<string, string>;
|
|
8
|
-
config: import('vue').ComputedRef<Partial<HuyoooUIConfig>>;
|
|
9
|
-
validation: import('vue').ComputedRef<ConfigValidation>;
|
|
10
|
-
setConfig: (newConfig: Partial<HuyoooUIConfig>) => void;
|
|
11
|
-
getRequiredConfig: () => HuyoooUIConfig;
|
|
12
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ref as o, computed as p } from "vue";
|
|
2
|
-
const i = o(""), a = o(""), l = o("/api"), t = o(""), c = o("ap-beijing");
|
|
3
|
-
function s() {
|
|
4
|
-
const r = [], u = [];
|
|
5
|
-
return i.value || (r.push("appId"), u.push("appId is required")), a.value || (r.push("bucketId"), u.push("bucketId is required")), t.value || (r.push("bucket"), u.push("bucket is required")), i.value && !/^[a-zA-Z0-9]{24}$/.test(i.value) && u.push("appId format is invalid (should be 24 character alphanumeric)"), a.value && !/^[a-zA-Z0-9]{24}$/.test(a.value) && u.push("bucketId format is invalid (should be 24 character alphanumeric)"), {
|
|
6
|
-
isValid: r.length === 0 && u.length === 0,
|
|
7
|
-
missingFields: r,
|
|
8
|
-
errors: u
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function b() {
|
|
12
|
-
const r = p(() => s()), u = p(() => ({
|
|
13
|
-
appId: i.value,
|
|
14
|
-
bucketId: a.value,
|
|
15
|
-
prefixUrl: l.value,
|
|
16
|
-
bucket: t.value,
|
|
17
|
-
region: c.value
|
|
18
|
-
}));
|
|
19
|
-
function d(e) {
|
|
20
|
-
e.appId !== void 0 && (i.value = e.appId), e.bucketId !== void 0 && (a.value = e.bucketId), e.prefixUrl !== void 0 && (l.value = e.prefixUrl), e.bucket !== void 0 && (t.value = e.bucket), e.region !== void 0 && (c.value = e.region);
|
|
21
|
-
}
|
|
22
|
-
function v() {
|
|
23
|
-
i.value = "", a.value = "", l.value = "/api", t.value = "", c.value = "ap-beijing";
|
|
24
|
-
}
|
|
25
|
-
function n() {
|
|
26
|
-
const e = s();
|
|
27
|
-
if (!e.isValid)
|
|
28
|
-
throw new Error(`Configuration incomplete: ${e.errors.join(", ")}`);
|
|
29
|
-
return {
|
|
30
|
-
appId: i.value,
|
|
31
|
-
bucketId: a.value,
|
|
32
|
-
prefixUrl: l.value,
|
|
33
|
-
bucket: t.value,
|
|
34
|
-
region: c.value
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
// 原有的 ref 访问方式(向后兼容)
|
|
39
|
-
appId: i,
|
|
40
|
-
bucketId: a,
|
|
41
|
-
prefixUrl: l,
|
|
42
|
-
bucket: t,
|
|
43
|
-
region: c,
|
|
44
|
-
// 新增的类型安全功能
|
|
45
|
-
config: u,
|
|
46
|
-
validation: r,
|
|
47
|
-
setConfig: d,
|
|
48
|
-
resetConfig: v,
|
|
49
|
-
getRequiredConfig: n
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
b as u
|
|
54
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { HuyoooUIConfig } from '../composables/useUserPanelProps';
|
|
2
|
-
/**
|
|
3
|
-
* 获取配置值,优先使用传入的props,其次使用全局配置
|
|
4
|
-
*/
|
|
5
|
-
export declare function getConfigValue<K extends keyof HuyoooUIConfig>(key: K, propValue?: HuyoooUIConfig[K]): HuyoooUIConfig[K];
|
|
6
|
-
/**
|
|
7
|
-
* 获取完整的配置对象,支持props覆盖
|
|
8
|
-
*/
|
|
9
|
-
export declare function getFullConfig(overrides?: Partial<HuyoooUIConfig>): Partial<HuyoooUIConfig>;
|
|
10
|
-
/**
|
|
11
|
-
* 验证配置完整性
|
|
12
|
-
*/
|
|
13
|
-
export declare function ensureConfigComplete(requiredFields?: (keyof HuyoooUIConfig)[]): void;
|
|
14
|
-
/**
|
|
15
|
-
* 开发模式下的配置检查
|
|
16
|
-
*/
|
|
17
|
-
export declare function devConfigCheck(): void;
|