@huyooo/ui 0.5.53 → 0.5.54
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/UserAccountMenu-Dkqy4wJf.js +634 -0
- package/dist/{WidthContainer-QqmCPCPj.js → WidthContainer-CWpKoYZn.js} +1 -1
- package/dist/common.js +1 -1
- package/dist/components/User/UserPanel.vue.d.ts +12 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/UserAccountMenu-DF_R2-7D.js +0 -612
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { defineComponent as C, createElementBlock as g, openBlock as s, normalizeStyle as ie, normalizeClass as se, createElementVNode as p, computed as P, createBlock as d, createCommentVNode as m, createVNode as c, unref as o, withCtx as l, createTextVNode as y, toDisplayString as S, mergeModels as D, useModel as re, renderSlot as ae, ref as f, Fragment as De } from "vue";
|
|
6
|
+
import { Tag as Ve, Button as le, Avatar as ue, Dropdown as Re, Divider as ce, Doption as h } from "@arco-design/web-vue";
|
|
7
|
+
import { S as ze } from "./PaySubscriptions-DlV3SHOV.js";
|
|
8
|
+
import { R as Ne } from "./ReferrerReferees-CGyMFl-K.js";
|
|
9
|
+
import { a as N, u as Le } from "./useAuthkitUsersProfile-KZgGxBAW.js";
|
|
10
|
+
import { u as je, g as oe } from "./auth-CDARHcht.js";
|
|
11
|
+
import { c as He, A as Fe } from "./AuthkitAuthModal-BvKac_TP.js";
|
|
12
|
+
import { d as qe } from "./FeedbackModal-Dc9Pd_rr.js";
|
|
13
|
+
import { M as Ee } from "./MessageHandle-CVjGWgUL.js";
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
/* empty css */
|
|
18
|
+
import { I as U } from "./index-Cr5RQSnA.js";
|
|
19
|
+
import { _ as de, g as pe, i as fe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
20
|
+
import { Icon as Ke } from "@iconify/vue";
|
|
21
|
+
const Te = C({
|
|
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 t = pe("icon"), r = P(() => [t, `${t}-export`, {
|
|
51
|
+
[`${t}-spin`]: e.spin
|
|
52
|
+
}]), u = P(() => {
|
|
53
|
+
const i = {};
|
|
54
|
+
return e.size && (i.fontSize = fe(e.size) ? `${e.size}px` : e.size), e.rotate && (i.transform = `rotate(${e.rotate}deg)`), i;
|
|
55
|
+
});
|
|
56
|
+
return {
|
|
57
|
+
cls: r,
|
|
58
|
+
innerStyle: u,
|
|
59
|
+
onClick: (i) => {
|
|
60
|
+
n("click", i);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}), We = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
65
|
+
function Xe(e, n, t, r, u, v) {
|
|
66
|
+
return s(), g("svg", {
|
|
67
|
+
viewBox: "0 0 48 48",
|
|
68
|
+
fill: "none",
|
|
69
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
+
stroke: "currentColor",
|
|
71
|
+
class: se(e.cls),
|
|
72
|
+
style: ie(e.innerStyle),
|
|
73
|
+
"stroke-width": e.strokeWidth,
|
|
74
|
+
"stroke-linecap": e.strokeLinecap,
|
|
75
|
+
"stroke-linejoin": e.strokeLinejoin,
|
|
76
|
+
onClick: n[0] || (n[0] = (...i) => e.onClick && e.onClick(...i))
|
|
77
|
+
}, n[1] || (n[1] = [p("path", {
|
|
78
|
+
d: "M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"
|
|
79
|
+
}, null, -1)]), 14, We);
|
|
80
|
+
}
|
|
81
|
+
var R = /* @__PURE__ */ de(Te, [["render", Xe]]);
|
|
82
|
+
const Ye = Object.assign(R, {
|
|
83
|
+
install: (e, n) => {
|
|
84
|
+
var t;
|
|
85
|
+
const r = (t = n == null ? void 0 : n.iconPrefix) != null ? t : "";
|
|
86
|
+
e.component(r + R.name, R);
|
|
87
|
+
}
|
|
88
|
+
}), Ge = C({
|
|
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 t = pe("icon"), r = P(() => [t, `${t}-launch`, {
|
|
118
|
+
[`${t}-spin`]: e.spin
|
|
119
|
+
}]), u = P(() => {
|
|
120
|
+
const i = {};
|
|
121
|
+
return e.size && (i.fontSize = fe(e.size) ? `${e.size}px` : e.size), e.rotate && (i.transform = `rotate(${e.rotate}deg)`), i;
|
|
122
|
+
});
|
|
123
|
+
return {
|
|
124
|
+
cls: r,
|
|
125
|
+
innerStyle: u,
|
|
126
|
+
onClick: (i) => {
|
|
127
|
+
n("click", i);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}), Je = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
132
|
+
function Qe(e, n, t, r, u, v) {
|
|
133
|
+
return s(), g("svg", {
|
|
134
|
+
viewBox: "0 0 48 48",
|
|
135
|
+
fill: "none",
|
|
136
|
+
stroke: "currentColor",
|
|
137
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
138
|
+
class: se(e.cls),
|
|
139
|
+
style: ie(e.innerStyle),
|
|
140
|
+
"stroke-width": e.strokeWidth,
|
|
141
|
+
"stroke-linecap": e.strokeLinecap,
|
|
142
|
+
"stroke-linejoin": e.strokeLinejoin,
|
|
143
|
+
onClick: n[0] || (n[0] = (...i) => e.onClick && e.onClick(...i))
|
|
144
|
+
}, n[1] || (n[1] = [p("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, Je);
|
|
147
|
+
}
|
|
148
|
+
var z = /* @__PURE__ */ de(Ge, [["render", Qe]]);
|
|
149
|
+
const Ze = Object.assign(z, {
|
|
150
|
+
install: (e, n) => {
|
|
151
|
+
var t;
|
|
152
|
+
const r = (t = n == null ? void 0 : n.iconPrefix) != null ? t : "";
|
|
153
|
+
e.component(r + z.name, z);
|
|
154
|
+
}
|
|
155
|
+
}), et = {
|
|
156
|
+
class: "pricing"
|
|
157
|
+
}, tt = {
|
|
158
|
+
class: "base"
|
|
159
|
+
}, nt = {
|
|
160
|
+
class: "pricingInfo"
|
|
161
|
+
}, ot = /* @__PURE__ */ C({
|
|
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 t = e, r = n;
|
|
182
|
+
function u() {
|
|
183
|
+
r("upgradeHandle");
|
|
184
|
+
}
|
|
185
|
+
return (v, i) => (s(), g("div", et, [p("div", tt, [p("div", nt, [i[0] || (i[0] = p("span", null, "我的订阅:", -1)), c(o(Ve), {
|
|
186
|
+
color: "arcoblue",
|
|
187
|
+
style: {
|
|
188
|
+
"border-radius": "6px"
|
|
189
|
+
}
|
|
190
|
+
}, {
|
|
191
|
+
default: l(() => [y(S(t.currentVersionName), 1)]),
|
|
192
|
+
_: 1
|
|
193
|
+
})]), t.canUpgrade ? (s(), d(o(le), {
|
|
194
|
+
key: 0,
|
|
195
|
+
type: "primary",
|
|
196
|
+
size: "mini",
|
|
197
|
+
class: "updatePricing",
|
|
198
|
+
onClick: u
|
|
199
|
+
}, {
|
|
200
|
+
default: l(() => [...i[1] || (i[1] = [y(" 升级 ", -1)])]),
|
|
201
|
+
_: 1
|
|
202
|
+
})) : m("", !0)]), p("span", null, "有效期至: " + S(t.expireDate), 1)]));
|
|
203
|
+
}
|
|
204
|
+
}), it = /* @__PURE__ */ I(ot, [["__scopeId", "data-v-1e32fa72"]]), st = {
|
|
205
|
+
class: "userInfo"
|
|
206
|
+
}, rt = {
|
|
207
|
+
key: 0,
|
|
208
|
+
class: "userName"
|
|
209
|
+
}, at = /* @__PURE__ */ C({
|
|
210
|
+
__name: "UserAvatar",
|
|
211
|
+
props: {
|
|
212
|
+
nickname: {
|
|
213
|
+
type: String,
|
|
214
|
+
default: ""
|
|
215
|
+
},
|
|
216
|
+
avatar: {
|
|
217
|
+
type: String,
|
|
218
|
+
default: ""
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
setup(e) {
|
|
222
|
+
const n = e;
|
|
223
|
+
return (t, r) => (s(), g("div", st, [n.nickname ? (s(), g("span", rt, S(n.nickname), 1)) : m("", !0), c(o(ue), {
|
|
224
|
+
"image-url": n.avatar,
|
|
225
|
+
size: 32,
|
|
226
|
+
"object-fit": "cover"
|
|
227
|
+
}, null, 8, ["image-url"])]));
|
|
228
|
+
}
|
|
229
|
+
}), lt = /* @__PURE__ */ I(at, [["__scopeId", "data-v-36643afe"]]), ut = {
|
|
230
|
+
class: "userInfo"
|
|
231
|
+
}, ct = {
|
|
232
|
+
class: "extra"
|
|
233
|
+
}, dt = {
|
|
234
|
+
class: "userName"
|
|
235
|
+
}, pt = {
|
|
236
|
+
class: "email"
|
|
237
|
+
}, ft = {
|
|
238
|
+
key: 0,
|
|
239
|
+
class: "referrerId"
|
|
240
|
+
}, mt = /* @__PURE__ */ C({
|
|
241
|
+
__name: "UserBasicInformation",
|
|
242
|
+
props: {
|
|
243
|
+
nickname: {
|
|
244
|
+
type: String,
|
|
245
|
+
default: ""
|
|
246
|
+
},
|
|
247
|
+
email: {
|
|
248
|
+
type: String,
|
|
249
|
+
default: ""
|
|
250
|
+
},
|
|
251
|
+
avatarUrl: {
|
|
252
|
+
type: String,
|
|
253
|
+
default: ""
|
|
254
|
+
},
|
|
255
|
+
referrerId: {
|
|
256
|
+
type: String,
|
|
257
|
+
default: ""
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
setup(e) {
|
|
261
|
+
const n = e;
|
|
262
|
+
return (t, r) => (s(), g("div", ut, [c(o(ue), {
|
|
263
|
+
"image-url": n.avatarUrl,
|
|
264
|
+
size: 42,
|
|
265
|
+
"object-fit": "cover"
|
|
266
|
+
}, null, 8, ["image-url"]), p("div", ct, [p("span", dt, S(n.nickname), 1), p("span", pt, S(n.email), 1), n.referrerId ? (s(), g("span", ft, " 邀请码:" + S(n.referrerId), 1)) : m("", !0)])]));
|
|
267
|
+
}
|
|
268
|
+
}), vt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-367449da"]]), kt = {
|
|
269
|
+
class: "dropdownContent"
|
|
270
|
+
}, yt = {
|
|
271
|
+
class: "header"
|
|
272
|
+
}, gt = /* @__PURE__ */ C({
|
|
273
|
+
__name: "UserButton",
|
|
274
|
+
props: /* @__PURE__ */ D({
|
|
275
|
+
position: {
|
|
276
|
+
default: "bl"
|
|
277
|
+
},
|
|
278
|
+
dropdownOffsetX: {
|
|
279
|
+
default: "0"
|
|
280
|
+
},
|
|
281
|
+
dropdownOffsetY: {
|
|
282
|
+
default: "0"
|
|
283
|
+
}
|
|
284
|
+
}, {
|
|
285
|
+
modelValue: {
|
|
286
|
+
type: Boolean,
|
|
287
|
+
default: !1
|
|
288
|
+
},
|
|
289
|
+
modelModifiers: {}
|
|
290
|
+
}),
|
|
291
|
+
emits: /* @__PURE__ */ D(["enterSystem", "toSignIn"], ["update:modelValue"]),
|
|
292
|
+
setup(e, {
|
|
293
|
+
emit: n
|
|
294
|
+
}) {
|
|
295
|
+
const t = e, r = n, {
|
|
296
|
+
userProfile: u,
|
|
297
|
+
isLoggedIn: v
|
|
298
|
+
} = N();
|
|
299
|
+
function i() {
|
|
300
|
+
r("toSignIn");
|
|
301
|
+
}
|
|
302
|
+
const b = re(e, "modelValue");
|
|
303
|
+
return ($, k) => o(v) ? (s(), d(o(Re), {
|
|
304
|
+
key: 1,
|
|
305
|
+
popupVisible: b.value,
|
|
306
|
+
"onUpdate:popupVisible": k[0] || (k[0] = (_) => b.value = _),
|
|
307
|
+
class: "DropdownUserInfo",
|
|
308
|
+
position: t.position,
|
|
309
|
+
"popup-style": {
|
|
310
|
+
"--dropdown-translate-x": t.dropdownOffsetX ?? "0",
|
|
311
|
+
"--dropdown-translate-y": t.dropdownOffsetY ?? "0"
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
content: l(() => {
|
|
315
|
+
var _, B, A, O;
|
|
316
|
+
return [p("div", kt, [p("div", yt, [c(vt, {
|
|
317
|
+
"avatar-url": (_ = o(u)) == null ? void 0 : _.avatarUrl,
|
|
318
|
+
nickname: (B = o(u)) == null ? void 0 : B.nickname,
|
|
319
|
+
email: (A = o(u)) == null ? void 0 : A.email,
|
|
320
|
+
"referrer-id": (O = o(u)) == null ? void 0 : O.referrerId
|
|
321
|
+
}, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), c(it, {
|
|
322
|
+
currentVersionName: "免费版本",
|
|
323
|
+
"expire-date": "2025-01-01",
|
|
324
|
+
"can-upgrade": !0
|
|
325
|
+
})]), c(o(ce), {
|
|
326
|
+
style: {
|
|
327
|
+
margin: "10px 0px"
|
|
328
|
+
}
|
|
329
|
+
}), ae($.$slots, "DoptionList", {}, void 0, !0)])];
|
|
330
|
+
}),
|
|
331
|
+
default: l(() => {
|
|
332
|
+
var _;
|
|
333
|
+
return [c(lt, {
|
|
334
|
+
avatar: (_ = o(u)) == null ? void 0 : _.avatarUrl
|
|
335
|
+
}, null, 8, ["avatar"])];
|
|
336
|
+
}),
|
|
337
|
+
_: 3
|
|
338
|
+
}, 8, ["popupVisible", "position", "popup-style"])) : (s(), d(o(le), {
|
|
339
|
+
key: 0,
|
|
340
|
+
type: "primary",
|
|
341
|
+
class: "handle",
|
|
342
|
+
onClick: i
|
|
343
|
+
}, {
|
|
344
|
+
default: l(() => [...k[1] || (k[1] = [y(" 登陆 ", -1)])]),
|
|
345
|
+
_: 1
|
|
346
|
+
}));
|
|
347
|
+
}
|
|
348
|
+
}), _t = /* @__PURE__ */ I(gt, [["__scopeId", "data-v-ba98c4bf"]]), bt = {
|
|
349
|
+
class: "UserPanel"
|
|
350
|
+
}, St = /* @__PURE__ */ C({
|
|
351
|
+
__name: "UserPanel",
|
|
352
|
+
props: /* @__PURE__ */ D({
|
|
353
|
+
position: {
|
|
354
|
+
default: "br"
|
|
355
|
+
},
|
|
356
|
+
dropdownOffsetX: {
|
|
357
|
+
default: "0"
|
|
358
|
+
},
|
|
359
|
+
dropdownOffsetY: {
|
|
360
|
+
default: "0"
|
|
361
|
+
},
|
|
362
|
+
visibleOptions: {
|
|
363
|
+
default: () => ({
|
|
364
|
+
messages: !0,
|
|
365
|
+
setting: !0,
|
|
366
|
+
subscription: !0,
|
|
367
|
+
feedBack: !0,
|
|
368
|
+
invitations: !0,
|
|
369
|
+
homePage: !0,
|
|
370
|
+
signOut: !0
|
|
371
|
+
})
|
|
372
|
+
}
|
|
373
|
+
}, {
|
|
374
|
+
modelValue: {
|
|
375
|
+
type: Boolean,
|
|
376
|
+
default: !1
|
|
377
|
+
},
|
|
378
|
+
modelModifiers: {}
|
|
379
|
+
}),
|
|
380
|
+
emits: /* @__PURE__ */ D(["toHomePage", "signOut", "signIn"], ["update:modelValue"]),
|
|
381
|
+
setup(e, {
|
|
382
|
+
emit: n
|
|
383
|
+
}) {
|
|
384
|
+
const t = e, r = f(), u = f(), v = f(Symbol("key")), i = n, {
|
|
385
|
+
fetchUserProfile: b,
|
|
386
|
+
clearUserProfile: $,
|
|
387
|
+
isLoggedIn: k
|
|
388
|
+
} = N(), {
|
|
389
|
+
addSignInCallback: _,
|
|
390
|
+
initializeAuth: B,
|
|
391
|
+
clearAuth: A
|
|
392
|
+
} = Le();
|
|
393
|
+
B() && b();
|
|
394
|
+
const O = f(), L = f(Symbol("key")), j = f(), H = f(), me = f(Symbol("key")), ve = f(), ke = f(Symbol("key"));
|
|
395
|
+
function ye(q) {
|
|
396
|
+
const a = `https://ones.huyooo.com/AboutUsDetails?type=privacyPolicy&appId=${oe.appId}`;
|
|
397
|
+
window.open(a, "_blank");
|
|
398
|
+
}
|
|
399
|
+
function ge(q) {
|
|
400
|
+
const a = `https://ones.huyooo.com/AboutUsDetails?type=userServiceAgreement&appId=${oe.appId}`;
|
|
401
|
+
window.open(a, "_blank");
|
|
402
|
+
}
|
|
403
|
+
const {
|
|
404
|
+
show: _e
|
|
405
|
+
} = je(), F = re(e, "modelValue");
|
|
406
|
+
function be() {
|
|
407
|
+
L.value = Symbol("key");
|
|
408
|
+
}
|
|
409
|
+
const V = f(), M = f(Symbol("key"));
|
|
410
|
+
function Se() {
|
|
411
|
+
M.value = Symbol("key");
|
|
412
|
+
}
|
|
413
|
+
function Ce() {
|
|
414
|
+
M.value = Symbol("key");
|
|
415
|
+
}
|
|
416
|
+
function w() {
|
|
417
|
+
_e.value = !0, i("signIn");
|
|
418
|
+
}
|
|
419
|
+
_(() => {
|
|
420
|
+
b();
|
|
421
|
+
});
|
|
422
|
+
function he() {
|
|
423
|
+
v.value = Symbol("key");
|
|
424
|
+
}
|
|
425
|
+
function $e() {
|
|
426
|
+
u.value.show = !1;
|
|
427
|
+
}
|
|
428
|
+
function we() {
|
|
429
|
+
M.value = Symbol("key");
|
|
430
|
+
}
|
|
431
|
+
function Ie() {
|
|
432
|
+
V.value.setData(null, !0);
|
|
433
|
+
}
|
|
434
|
+
function Oe() {
|
|
435
|
+
if (!k.value) {
|
|
436
|
+
w();
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
V.value.setData(null, !0);
|
|
440
|
+
}
|
|
441
|
+
function Ue() {
|
|
442
|
+
if (!k.value) {
|
|
443
|
+
w();
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
446
|
+
j.value.openNotification();
|
|
447
|
+
}
|
|
448
|
+
function Be() {
|
|
449
|
+
if (!k.value) {
|
|
450
|
+
w();
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
H.value.setData(null, !0);
|
|
454
|
+
}
|
|
455
|
+
function Ae() {
|
|
456
|
+
if (!k.value) {
|
|
457
|
+
w();
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
r.value.setData(!0);
|
|
461
|
+
}
|
|
462
|
+
function Me() {
|
|
463
|
+
if (!k.value) {
|
|
464
|
+
w();
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
O.value.setData(!0);
|
|
468
|
+
}
|
|
469
|
+
function xe() {
|
|
470
|
+
i("toHomePage");
|
|
471
|
+
}
|
|
472
|
+
async function Pe() {
|
|
473
|
+
$(), A(), i("signOut");
|
|
474
|
+
}
|
|
475
|
+
return (q, a) => (s(), g("div", bt, [c(_t, {
|
|
476
|
+
modelValue: F.value,
|
|
477
|
+
"onUpdate:modelValue": a[0] || (a[0] = (x) => F.value = x),
|
|
478
|
+
position: t.position,
|
|
479
|
+
"dropdown-offset-x": t.dropdownOffsetX,
|
|
480
|
+
"dropdown-offset-y": t.dropdownOffsetY,
|
|
481
|
+
onToSignIn: w
|
|
482
|
+
}, {
|
|
483
|
+
DoptionList: l(() => {
|
|
484
|
+
var x, E, K, T, W, X, Y, G, J, Q, Z, ee, te, ne;
|
|
485
|
+
return [(x = t.visibleOptions) != null && x.messages ? (s(), d(o(h), {
|
|
486
|
+
key: 0,
|
|
487
|
+
value: "messages",
|
|
488
|
+
class: "Doption",
|
|
489
|
+
onClick: Ue
|
|
490
|
+
}, {
|
|
491
|
+
icon: l(() => [...a[1] || (a[1] = [y("消息中心", -1)])]),
|
|
492
|
+
default: l(() => [c(o(U))]),
|
|
493
|
+
_: 1
|
|
494
|
+
})) : m("", !0), (E = t.visibleOptions) != null && E.setting ? (s(), d(o(h), {
|
|
495
|
+
key: 1,
|
|
496
|
+
value: "setting",
|
|
497
|
+
class: "Doption",
|
|
498
|
+
onClick: Oe
|
|
499
|
+
}, {
|
|
500
|
+
icon: l(() => [...a[2] || (a[2] = [y("系统设置 ", -1)])]),
|
|
501
|
+
default: l(() => [c(o(U))]),
|
|
502
|
+
_: 1
|
|
503
|
+
})) : m("", !0), (K = t.visibleOptions) != null && K.subscription ? (s(), d(o(h), {
|
|
504
|
+
key: 2,
|
|
505
|
+
value: "subscription",
|
|
506
|
+
class: "Doption",
|
|
507
|
+
onClick: Be
|
|
508
|
+
}, {
|
|
509
|
+
icon: l(() => [...a[3] || (a[3] = [y("订阅信息 ", -1)])]),
|
|
510
|
+
default: l(() => [c(o(U))]),
|
|
511
|
+
_: 1
|
|
512
|
+
})) : m("", !0), (T = t.visibleOptions) != null && T.feedBack ? (s(), d(o(h), {
|
|
513
|
+
key: 3,
|
|
514
|
+
value: "feedBack",
|
|
515
|
+
class: "Doption",
|
|
516
|
+
onClick: Ae
|
|
517
|
+
}, {
|
|
518
|
+
icon: l(() => [...a[4] || (a[4] = [y("系统反馈 ", -1)])]),
|
|
519
|
+
default: l(() => [c(o(U))]),
|
|
520
|
+
_: 1
|
|
521
|
+
})) : m("", !0), (W = t.visibleOptions) != null && W.invitations ? (s(), d(o(h), {
|
|
522
|
+
key: 4,
|
|
523
|
+
value: "invitations",
|
|
524
|
+
class: "Doption",
|
|
525
|
+
onClick: Me
|
|
526
|
+
}, {
|
|
527
|
+
icon: l(() => [...a[5] || (a[5] = [y("邀请 ", -1)])]),
|
|
528
|
+
default: l(() => [c(o(U))]),
|
|
529
|
+
_: 1
|
|
530
|
+
})) : m("", !0), ((X = t.visibleOptions) != null && X.messages || (Y = t.visibleOptions) != null && Y.setting || (G = t.visibleOptions) != null && G.subscription || (J = t.visibleOptions) != null && J.feedBack || (Q = t.visibleOptions) != null && Q.invitations) && ((Z = t.visibleOptions) != null && Z.homePage || (ee = t.visibleOptions) != null && ee.signOut) ? (s(), d(o(ce), {
|
|
531
|
+
key: 5,
|
|
532
|
+
style: {
|
|
533
|
+
margin: "10px 0px"
|
|
534
|
+
}
|
|
535
|
+
})) : m("", !0), (te = t.visibleOptions) != null && te.homePage ? (s(), d(o(h), {
|
|
536
|
+
key: 6,
|
|
537
|
+
value: "homePage",
|
|
538
|
+
class: "Doption",
|
|
539
|
+
onClick: xe
|
|
540
|
+
}, {
|
|
541
|
+
icon: l(() => [...a[6] || (a[6] = [y("主页 ", -1)])]),
|
|
542
|
+
default: l(() => [c(o(Ze))]),
|
|
543
|
+
_: 1
|
|
544
|
+
})) : m("", !0), (ne = t.visibleOptions) != null && ne.signOut ? (s(), d(o(h), {
|
|
545
|
+
key: 7,
|
|
546
|
+
value: "signOut",
|
|
547
|
+
class: "Doption",
|
|
548
|
+
onClick: Pe
|
|
549
|
+
}, {
|
|
550
|
+
icon: l(() => [...a[7] || (a[7] = [y("退出登陆 ", -1)])]),
|
|
551
|
+
default: l(() => [c(o(Ye))]),
|
|
552
|
+
_: 1
|
|
553
|
+
})) : m("", !0)];
|
|
554
|
+
}),
|
|
555
|
+
_: 1
|
|
556
|
+
}, 8, ["modelValue", "position", "dropdown-offset-x", "dropdown-offset-y"]), (s(), d(He, {
|
|
557
|
+
ref_key: "AuthModalRef",
|
|
558
|
+
ref: ve,
|
|
559
|
+
key: ke.value,
|
|
560
|
+
size: "large",
|
|
561
|
+
onToPrivacyPolicy: ye,
|
|
562
|
+
onToUserServiceAgreement: ge
|
|
563
|
+
})), o(k) ? (s(), g(De, {
|
|
564
|
+
key: 0
|
|
565
|
+
}, [(s(), d(Fe, {
|
|
566
|
+
ref_key: "AppSettingRef",
|
|
567
|
+
ref: V,
|
|
568
|
+
key: M.value,
|
|
569
|
+
onConfirm: Ie,
|
|
570
|
+
onCancel: we
|
|
571
|
+
})), (s(), d(Ne, {
|
|
572
|
+
ref_key: "RefereesRef",
|
|
573
|
+
ref: O,
|
|
574
|
+
key: L.value,
|
|
575
|
+
onCancel: be
|
|
576
|
+
})), (s(), d(ze, {
|
|
577
|
+
ref_key: "SubscriptionsRef",
|
|
578
|
+
ref: H,
|
|
579
|
+
key: me.value,
|
|
580
|
+
title: "订阅详情",
|
|
581
|
+
onConfirm: Se,
|
|
582
|
+
onCancel: Ce
|
|
583
|
+
})), c(Ee, {
|
|
584
|
+
ref_key: "MessageHandleRef",
|
|
585
|
+
ref: j
|
|
586
|
+
}, null, 512), (s(), d(qe, {
|
|
587
|
+
ref_key: "FeedBackModalRef",
|
|
588
|
+
ref: r,
|
|
589
|
+
key: v.value,
|
|
590
|
+
onConfirm: $e,
|
|
591
|
+
onCancel: he
|
|
592
|
+
}))], 64)) : m("", !0)]));
|
|
593
|
+
}
|
|
594
|
+
}), Xt = /* @__PURE__ */ I(St, [["__scopeId", "data-v-656b2ccb"]]), Ct = {
|
|
595
|
+
class: "UserAccountMenu"
|
|
596
|
+
}, ht = {
|
|
597
|
+
class: "avatar"
|
|
598
|
+
}, $t = {
|
|
599
|
+
class: "meta"
|
|
600
|
+
}, wt = {
|
|
601
|
+
class: "name"
|
|
602
|
+
}, It = {
|
|
603
|
+
class: "email"
|
|
604
|
+
}, Ot = /* @__PURE__ */ C({
|
|
605
|
+
__name: "UserAccountMenu",
|
|
606
|
+
emits: ["arrowClick"],
|
|
607
|
+
setup(e, {
|
|
608
|
+
emit: n
|
|
609
|
+
}) {
|
|
610
|
+
const {
|
|
611
|
+
userProfile: t
|
|
612
|
+
} = N(), r = n;
|
|
613
|
+
function u() {
|
|
614
|
+
r("arrowClick");
|
|
615
|
+
}
|
|
616
|
+
return (v, i) => {
|
|
617
|
+
var b, $;
|
|
618
|
+
return s(), g("div", Ct, [p("div", ht, [ae(v.$slots, "avatar", {}, void 0, !0)]), p("div", $t, [p("div", wt, S(((b = o(t)) == null ? void 0 : b.nickname) || ""), 1), p("div", It, S((($ = o(t)) == null ? void 0 : $.email) || ""), 1)]), p("div", {
|
|
619
|
+
class: "arrow",
|
|
620
|
+
onClick: u
|
|
621
|
+
}, [c(o(Ke), {
|
|
622
|
+
icon: "lucide:chevrons-up-down"
|
|
623
|
+
})])]);
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
}), Yt = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-b801e222"]]);
|
|
627
|
+
export {
|
|
628
|
+
it as S,
|
|
629
|
+
lt as U,
|
|
630
|
+
vt as a,
|
|
631
|
+
_t as b,
|
|
632
|
+
Xt as c,
|
|
633
|
+
Yt as d
|
|
634
|
+
};
|
|
@@ -10,7 +10,7 @@ import "./useUploadCos-DKh-eczm.js";
|
|
|
10
10
|
import { useRouter as j, useRoute as J } from "vue-router";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { d as re, c as Q } from "./UserAccountMenu-
|
|
13
|
+
import { d as re, c as Q } from "./UserAccountMenu-Dkqy4wJf.js";
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
/* empty css */
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-CWpKoYZn.js";
|
|
2
2
|
import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
|
|
3
3
|
import { C as x, E as H } from "./CustomTable-B8i1SbFB.js";
|
|
4
4
|
import { M, a as g } from "./Menu-ejsosUdV.js";
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
interface VisibleOptions {
|
|
2
|
+
messages?: boolean;
|
|
3
|
+
setting?: boolean;
|
|
4
|
+
subscription?: boolean;
|
|
5
|
+
feedBack?: boolean;
|
|
6
|
+
invitations?: boolean;
|
|
7
|
+
homePage?: boolean;
|
|
8
|
+
signOut?: boolean;
|
|
9
|
+
}
|
|
1
10
|
type __VLS_Props = {
|
|
2
11
|
position?: "tl" | "tr" | "bl" | "br" | "top" | "bottom" | "left" | "right" | "lt" | "lb" | "rt" | "rb";
|
|
3
12
|
dropdownOffsetX?: string;
|
|
4
13
|
dropdownOffsetY?: string;
|
|
14
|
+
/** 控制各个下拉选项的显示隐藏 */
|
|
15
|
+
visibleOptions?: VisibleOptions;
|
|
5
16
|
};
|
|
6
17
|
type __VLS_PublicProps = {
|
|
7
18
|
modelValue?: boolean;
|
|
@@ -20,6 +31,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
20
31
|
position: "tl" | "tr" | "bl" | "br" | "top" | "bottom" | "left" | "right" | "lt" | "lb" | "rt" | "rb";
|
|
21
32
|
dropdownOffsetX: string;
|
|
22
33
|
dropdownOffsetY: string;
|
|
34
|
+
visibleOptions: VisibleOptions;
|
|
23
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
36
|
AuthModalRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
25
37
|
size: {
|
package/dist/index.js
CHANGED
|
@@ -18,14 +18,14 @@ import { C as W4 } from "./Clipboard-CXQgZeZq.js";
|
|
|
18
18
|
import { F as z4, a as j4, c as q4, b as K4, d as J4 } from "./FeedbackItem-kqVGcZQy.js";
|
|
19
19
|
import { L as X4, a as Y4, b as e6, c as t6, B as o6, C as s6, d as a6, e as i6, x as n6, y as r6, f as c6, g as l6, z as C6, h as d6, i as p6, j as f6, k as h6, l as u6, m as _6, n as g6, D as m6, o as L6, p as y6, q as w6, r as F6, s as M6, T as v6, t as k6, A as x6, u as H6, v as Z6, w as V6 } from "./LandingPageSectionTabs-DYNXKElT.js";
|
|
20
20
|
import { L as U6, a as S6, b as b6, c as A6, D as G6, d as D6, e as P6, f as T6, g as O6, h as B6, i as I6, j as $6, k as N6, l as W6, m as R6, n as z6 } from "./LandingPageSectionHeader-BU7Qtxaj.js";
|
|
21
|
-
import { A as q6, a as K6, C as J6, D as Q6, G as X6, H as Y6, b as e7, L as t7, S as o7, W as s7 } from "./WidthContainer-
|
|
21
|
+
import { A as q6, a as K6, C as J6, D as Q6, G as X6, H as Y6, b as e7, L as t7, S as o7, W as s7 } from "./WidthContainer-CWpKoYZn.js";
|
|
22
22
|
import { C as i7, a as n7 } from "./CollapseItem-Cw1vcdLu.js";
|
|
23
23
|
import { C as c7, E as l7 } from "./CustomTable-B8i1SbFB.js";
|
|
24
24
|
import { M as d7, a as p7 } from "./Menu-ejsosUdV.js";
|
|
25
25
|
import { S as h7 } from "./PaySubscriptions-DlV3SHOV.js";
|
|
26
26
|
import { R as _7 } from "./ReferrerReferees-CGyMFl-K.js";
|
|
27
27
|
import { _ as m7 } from "./Upload.vue_vue_type_script_setup_true_lang-bvoyktaa.js";
|
|
28
|
-
import { d as y7, U as w7, a as F7, b as M7, c as v7, S as k7 } from "./UserAccountMenu-
|
|
28
|
+
import { d as y7, U as w7, a as F7, b as M7, c as v7, S as k7 } from "./UserAccountMenu-Dkqy4wJf.js";
|
|
29
29
|
import { defineComponent as V, computed as U, createElementBlock as L, openBlock as g, normalizeStyle as g2, normalizeClass as o2, createElementVNode as d, createCommentVNode as x, toDisplayString as v, createVNode as Z, unref as H, createTextVNode as s2, withModifiers as a2, renderSlot as m2, withCtx as W, Fragment as T, renderList as O, createBlock as G, onMounted as i2, ref as $, watch as L2, onUnmounted as y2, withDirectives as w2, createStaticVNode as F2, vShow as M2 } from "vue";
|
|
30
30
|
import { Icon as S } from "@iconify/vue";
|
|
31
31
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|