@huyooo/ui 0.11.0 → 0.11.1
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-BCrLMpLg.js +1322 -0
- package/dist/AuthkitSignInPhone-DmCQ2fWs.js +1721 -0
- package/dist/{Clipboard-CK_nROjb.js → Clipboard---tG2Zxz.js} +1 -1
- package/dist/{Contact-CpHU1bJ7.js → Contact-BEUbBGiB.js} +2 -2
- package/dist/{CustomTable-1W5byjgJ.js → CustomTable-CVZ4mFzi.js} +2 -3
- package/dist/FeedbackItem-CN041vTm.js +495 -0
- package/dist/FeedbackModal-aI28o-w5.js +1053 -0
- package/dist/MessageHandle-BV1nKlxs.js +1147 -0
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js +142 -0
- package/dist/{PaySubscriptions-C4Een__-.js → PaySubscriptions-B3gI1Eme.js} +5 -6
- package/dist/{ReferrerReferees-DIassvGO.js → ReferrerReferees-DJzPo7X5.js} +7 -7
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DA8VZBrl.js → Upload.vue_vue_type_script_setup_true_lang-D_-oMTOo.js} +1 -1
- package/dist/UserAccountMenu-CJ9KKVYa.js +371 -0
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-ClAXNSgl.js +81 -0
- package/dist/{WidthContainer-TXsvW1ut.js → WidthContainer-BG10rumn.js} +248 -252
- package/dist/{apiClients-ANEApCyY.js → apiClients-9b4zNZ2S.js} +2 -2
- package/dist/authkit.js +41 -40
- package/dist/common.js +2 -2
- package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -1
- package/dist/components/{User → UserMenu}/UserAccountMenu.vue.d.ts +1 -5
- package/dist/components/{User/UserPanel.vue.d.ts → UserMenu/UserMenu.vue.d.ts} +5 -12
- package/dist/components/UserMenu/UserMenuDivider.vue.d.ts +2 -0
- package/dist/components/UserMenu/UserMenuHeader.vue.d.ts +13 -0
- package/dist/components/{User/UserPanelItem.vue.d.ts → UserMenu/UserMenuItem.vue.d.ts} +6 -10
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +137 -0
- package/dist/components/UserMenu/items/UserMenuFeedbackItem.vue.d.ts +2 -0
- package/dist/components/UserMenu/items/UserMenuInvitationsItem.vue.d.ts +2 -0
- package/dist/components/UserMenu/items/UserMenuMessageItem.vue.d.ts +2 -0
- package/dist/components/UserMenu/items/UserMenuSettingItem.vue.d.ts +2 -0
- package/dist/components/UserMenu/items/UserMenuSubscriptionItem.vue.d.ts +2 -0
- package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +9 -0
- package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +13 -0
- package/dist/components/UserMenu/parts/UserSubscriptionBaseInformation.vue.d.ts +15 -0
- package/dist/composables/UserMenu/useUserMenu.d.ts +20 -0
- package/dist/composables.d.ts +1 -0
- package/dist/composables.js +19 -17
- package/dist/feedback.js +16 -15
- package/dist/main.js +193 -180
- package/dist/message.js +10 -9
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-Da2yJTT-.js → useAuthkitAppsAuthPageInfo-494yLvsu.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-BLs5vQOu.js → useAuthkitCreateAndUpdate-DyRtFxZS.js} +1 -1
- package/dist/{useAuthkitUsersProfile-Cx8NXjlt.js → useAuthkitUsersProfile-lGlQP54m.js} +1 -1
- package/dist/{useDownloads-DT5W2af6.js → useDownloads-DaeIY0E9.js} +1 -1
- package/dist/{useLegalLinks-BIF45kUt.js → useLegalLinks-CPbWqlu6.js} +2 -2
- package/dist/{useMessageNotifications-CavBmgO7.js → useMessageNotifications-Dg5q-C_o.js} +1 -1
- package/dist/{useSEO-MPXQf0dn.js → useSEO-CXX9dcBx.js} +2 -2
- package/dist/{useTableHandle--NSbZ-57.js → useTableHandle-Cjq4gcC0.js} +1 -1
- package/dist/{cos-js-sdk-v5-BJ5AlBRu.js → useUploadCos-DiJmmbRf.js} +2469 -2232
- package/dist/useUserMenu-B3HKZKJ4.js +43 -0
- package/dist/user.d.ts +15 -7
- package/dist/user.js +17 -9
- package/package.json +1 -1
- package/dist/AuthkitSignInPhone-BWPCpUie.js +0 -3034
- package/dist/FeedbackModal-qAJLL3V3.js +0 -1535
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-D109kT8_.js +0 -1282
- package/dist/UserAccountMenu-BIRTtjLb.js +0 -266
- package/dist/UserSubscriptionBaseInformation-BUs3qiHd.js +0 -60
- package/dist/components/User/UserAvatar.vue.d.ts +0 -23
- package/dist/components/User/UserBasicInformation.vue.d.ts +0 -41
- package/dist/components/User/UserSubscriptionBaseInformation.vue.d.ts +0 -32
- package/dist/useUploadCos-D6y0INvP.js +0 -242
- /package/dist/components/{User/UserButton.vue.d.ts → UserMenu/parts/UserSignInButton.vue.d.ts} +0 -0
package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-F6neJUg3.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { defineComponent as f, ref as p, openBlock as t, createElementBlock as i, normalizeClass as K, createBlock as d, unref as S, createCommentVNode as v, createElementVNode as _, toDisplayString as A, Fragment as h, renderList as N } from "vue";
|
|
2
|
+
import { Icon as D } from "@iconify/vue";
|
|
3
|
+
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import { o as $ } from "./apiClients-9b4zNZ2S.js";
|
|
5
|
+
import { D as x } from "./MessageHandle-BV1nKlxs.js";
|
|
6
|
+
const b = /* @__PURE__ */ f({
|
|
7
|
+
__name: "MessageMenuItem",
|
|
8
|
+
props: {
|
|
9
|
+
hidden: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: !0
|
|
12
|
+
},
|
|
13
|
+
path: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
icon: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
name: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: !0
|
|
24
|
+
},
|
|
25
|
+
active: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
required: !0
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(l) {
|
|
31
|
+
const n = l, a = p(!1);
|
|
32
|
+
function s() {
|
|
33
|
+
a.value = !0;
|
|
34
|
+
}
|
|
35
|
+
function r() {
|
|
36
|
+
a.value = !1;
|
|
37
|
+
}
|
|
38
|
+
return (u, o) => n.hidden ? v("", !0) : (t(), i("div", {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: K(["List", {
|
|
41
|
+
Active: n.active,
|
|
42
|
+
Hover: a.value && !n.active
|
|
43
|
+
}]),
|
|
44
|
+
onMouseover: s,
|
|
45
|
+
onMouseout: r
|
|
46
|
+
}, [n.icon ? (t(), d(S(D), {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "icon",
|
|
49
|
+
icon: n.icon
|
|
50
|
+
}, null, 8, ["icon"])) : v("", !0), _("span", null, A(n.name), 1)], 34));
|
|
51
|
+
}
|
|
52
|
+
}), B = /* @__PURE__ */ I(b, [["__scopeId", "data-v-e1a181b9"]]), E = {
|
|
53
|
+
class: "Menu"
|
|
54
|
+
}, F = {
|
|
55
|
+
class: "TitleContent"
|
|
56
|
+
}, H = {
|
|
57
|
+
class: "Title"
|
|
58
|
+
}, L = {
|
|
59
|
+
class: "MenuItem2"
|
|
60
|
+
}, O = /* @__PURE__ */ f({
|
|
61
|
+
__name: "MessageMenu",
|
|
62
|
+
props: {
|
|
63
|
+
menus: {
|
|
64
|
+
type: Array,
|
|
65
|
+
required: !0
|
|
66
|
+
},
|
|
67
|
+
selectedKeys: {
|
|
68
|
+
type: Array,
|
|
69
|
+
required: !0
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
emits: ["update:selectedKeys", "change"],
|
|
73
|
+
setup(l, {
|
|
74
|
+
emit: n
|
|
75
|
+
}) {
|
|
76
|
+
const a = l, s = n;
|
|
77
|
+
function r(u, o) {
|
|
78
|
+
s("change", u, o);
|
|
79
|
+
}
|
|
80
|
+
return (u, o) => (t(), i("div", E, [(t(!0), i(h, null, N(a.menus, (e, m) => {
|
|
81
|
+
var y, g, k;
|
|
82
|
+
return t(), i("div", {
|
|
83
|
+
key: m
|
|
84
|
+
}, [e.children && e.children.length !== 0 ? (t(), i(h, {
|
|
85
|
+
key: 0
|
|
86
|
+
}, [_("span", F, [(y = e == null ? void 0 : e.meta) != null && y.icon ? (t(), d(S(D), {
|
|
87
|
+
key: 0,
|
|
88
|
+
class: "icon",
|
|
89
|
+
icon: e.meta.icon
|
|
90
|
+
}, null, 8, ["icon"])) : v("", !0), _("span", H, A(e.name), 1)]), _("span", L, [(t(!0), i(h, null, N(e.children, (c, M) => {
|
|
91
|
+
var C, q;
|
|
92
|
+
return t(), d(B, {
|
|
93
|
+
key: M,
|
|
94
|
+
hidden: ((C = c.meta) == null ? void 0 : C.hidden) || !1,
|
|
95
|
+
path: c.path,
|
|
96
|
+
icon: (q = c.meta) == null ? void 0 : q.icon,
|
|
97
|
+
name: c.name,
|
|
98
|
+
active: a.selectedKeys.includes(c.path),
|
|
99
|
+
onClick: (T) => r(c, M)
|
|
100
|
+
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
101
|
+
}), 128))])], 64)) : (t(), d(B, {
|
|
102
|
+
key: 1,
|
|
103
|
+
hidden: ((g = e.meta) == null ? void 0 : g.hidden) || !1,
|
|
104
|
+
path: e.path,
|
|
105
|
+
icon: (k = e.meta) == null ? void 0 : k.icon,
|
|
106
|
+
name: e.name,
|
|
107
|
+
active: a.selectedKeys.includes(e.path),
|
|
108
|
+
onClick: (c) => r(e, m)
|
|
109
|
+
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
110
|
+
}), 128))]));
|
|
111
|
+
}
|
|
112
|
+
}), J = /* @__PURE__ */ I(O, [["__scopeId", "data-v-bc22aac1"]]), P = /* @__PURE__ */ f({
|
|
113
|
+
__name: "MessageNoticeNotificationsDetails",
|
|
114
|
+
props: {
|
|
115
|
+
id: {
|
|
116
|
+
type: String,
|
|
117
|
+
required: !0
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
setup(l) {
|
|
121
|
+
const n = p(!1), a = p(null), s = p(""), r = l;
|
|
122
|
+
async function u() {
|
|
123
|
+
n.value = !0;
|
|
124
|
+
const {
|
|
125
|
+
data: o
|
|
126
|
+
} = await $.messageCenter.noticeNotifications.findOne.post({
|
|
127
|
+
id: r.id
|
|
128
|
+
});
|
|
129
|
+
n.value = !1, o && (a.value = o.content, s.value = o.title);
|
|
130
|
+
}
|
|
131
|
+
return u(), (o, e) => (t(), d(x, {
|
|
132
|
+
content: a.value,
|
|
133
|
+
title: s.value,
|
|
134
|
+
loading: n.value
|
|
135
|
+
}, null, 8, ["content", "title", "loading"]));
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
J as M,
|
|
140
|
+
P as _,
|
|
141
|
+
B as a
|
|
142
|
+
};
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
8
|
import { defineComponent as tt, ref as d, openBlock as l, createBlock as P, unref as u, isRef as et, withCtx as s, createElementVNode as n, createElementBlock as c, toDisplayString as o, createVNode as r, createTextVNode as p, createCommentVNode as L, Fragment as at, renderList as nt } from "vue";
|
|
10
9
|
import { Modal as it, Tag as C, Button as I, Popconfirm as st, Tabs as ot, TabPane as w, Spin as lt, Empty as ut, Progress as rt } from "@arco-design/web-vue";
|
|
11
|
-
import { f as g } from "./apiClients-
|
|
12
|
-
import { u as ct } from "./useAuthkitCreateAndUpdate-
|
|
13
|
-
import { C as q } from "./CustomTable-
|
|
10
|
+
import { f as g } from "./apiClients-9b4zNZ2S.js";
|
|
11
|
+
import { u as ct } from "./useAuthkitCreateAndUpdate-DyRtFxZS.js";
|
|
12
|
+
import { C as q } from "./CustomTable-CVZ4mFzi.js";
|
|
14
13
|
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
14
|
const pt = {
|
|
16
15
|
class: "content"
|
|
@@ -403,7 +402,7 @@ const pt = {
|
|
|
403
402
|
_: 1
|
|
404
403
|
}, 8, ["visible"]));
|
|
405
404
|
}
|
|
406
|
-
}),
|
|
405
|
+
}), Jt = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-cf38d6a7"]]);
|
|
407
406
|
export {
|
|
408
|
-
|
|
407
|
+
Jt as P
|
|
409
408
|
};
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { defineComponent as R, ref as d, openBlock as p, createBlock as v, unref as t, withCtx as g, createElementVNode as n, toDisplayString as _, createCommentVNode as z, createVNode as w, createTextVNode as A } from "vue";
|
|
5
5
|
import { Modal as V } from "@arco-design/web-vue";
|
|
6
|
-
import { e as y } from "./apiClients-
|
|
7
|
-
import { u as T } from "./useTableHandle
|
|
8
|
-
import { C as B } from "./CustomTable-
|
|
9
|
-
import { C as D } from "./Clipboard
|
|
10
|
-
import { a as U } from "./useAuthkitUsersProfile-
|
|
6
|
+
import { e as y } from "./apiClients-9b4zNZ2S.js";
|
|
7
|
+
import { u as T } from "./useTableHandle-Cjq4gcC0.js";
|
|
8
|
+
import { C as B } from "./CustomTable-CVZ4mFzi.js";
|
|
9
|
+
import { C as D } from "./Clipboard---tG2Zxz.js";
|
|
10
|
+
import { a as U } from "./useAuthkitUsersProfile-lGlQP54m.js";
|
|
11
11
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const H = {
|
|
13
13
|
class: "invite-code-section"
|
|
@@ -60,7 +60,7 @@ const H = {
|
|
|
60
60
|
r.value = !1, b("cancel");
|
|
61
61
|
}
|
|
62
62
|
function N(e) {
|
|
63
|
-
r.value = e, u();
|
|
63
|
+
r.value = e, e && u();
|
|
64
64
|
}
|
|
65
65
|
return C({
|
|
66
66
|
setData: N
|
|
@@ -100,7 +100,7 @@ const H = {
|
|
|
100
100
|
_: 1
|
|
101
101
|
}, 8, ["visible", "ok-loading"]));
|
|
102
102
|
}
|
|
103
|
-
}), $ = /* @__PURE__ */ E(j, [["__scopeId", "data-v-
|
|
103
|
+
}), $ = /* @__PURE__ */ E(j, [["__scopeId", "data-v-d32f6e5c"]]);
|
|
104
104
|
export {
|
|
105
105
|
$ as R
|
|
106
106
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { defineComponent as g, openBlock as F, createBlock as h, unref as q, mergeProps as y, createSlots as I, withCtx as p, renderSlot as u } from "vue";
|
|
8
8
|
import { Upload as S } from "@arco-design/web-vue";
|
|
9
|
-
import { u as _ } from "./useUploadCos-
|
|
9
|
+
import { u as _ } from "./useUploadCos-DiJmmbRf.js";
|
|
10
10
|
const N = /* @__PURE__ */ g({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { defineComponent as _, openBlock as r, createElementBlock as m, toDisplayString as v, createCommentVNode as k, createVNode as d, unref as n, createBlock as g, withCtx as h, createTextVNode as M, createElementVNode as c, Fragment as x, computed as C, renderSlot as b, normalizeClass as N, ref as I, watch as $ } from "vue";
|
|
5
|
+
import { Avatar as w, Button as R, Tag as O, Dropdown as V } from "@arco-design/web-vue";
|
|
6
|
+
import { a as B } from "./useAuthkitUsersProfile-lGlQP54m.js";
|
|
7
|
+
import { u as y } from "./useUserMenu-B3HKZKJ4.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { u as H } from "./apiClients-9b4zNZ2S.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { Icon as D } from "@iconify/vue";
|
|
14
|
+
import { A as P } from "./AuthkitAppSetting-BCrLMpLg.js";
|
|
15
|
+
import { d as T } from "./FeedbackModal-aI28o-w5.js";
|
|
16
|
+
import { M as z } from "./MessageHandle-BV1nKlxs.js";
|
|
17
|
+
import { P as j } from "./PaySubscriptions-B3gI1Eme.js";
|
|
18
|
+
import { R as E } from "./ReferrerReferees-DJzPo7X5.js";
|
|
19
|
+
const F = {
|
|
20
|
+
class: "UserAvatar"
|
|
21
|
+
}, X = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "UserAvatar__nickname"
|
|
24
|
+
}, Y = /* @__PURE__ */ _({
|
|
25
|
+
__name: "UserAvatar",
|
|
26
|
+
props: {
|
|
27
|
+
nickname: {
|
|
28
|
+
default: ""
|
|
29
|
+
},
|
|
30
|
+
avatar: {
|
|
31
|
+
default: ""
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(e) {
|
|
35
|
+
return (t, o) => (r(), m("div", F, [e.nickname ? (r(), m("span", X, v(e.nickname), 1)) : k("", !0), d(n(w), {
|
|
36
|
+
"image-url": e.avatar,
|
|
37
|
+
size: 32,
|
|
38
|
+
"object-fit": "cover"
|
|
39
|
+
}, null, 8, ["image-url"])]));
|
|
40
|
+
}
|
|
41
|
+
}), L = /* @__PURE__ */ U(Y, [["__scopeId", "data-v-cda7eee7"]]), q = /* @__PURE__ */ _({
|
|
42
|
+
__name: "UserSignInButton",
|
|
43
|
+
setup(e) {
|
|
44
|
+
const {
|
|
45
|
+
open: t
|
|
46
|
+
} = H();
|
|
47
|
+
return (o, u) => (r(), g(n(R), {
|
|
48
|
+
type: "primary",
|
|
49
|
+
class: "UserSignInButton",
|
|
50
|
+
onClick: u[0] || (u[0] = (a) => n(t)())
|
|
51
|
+
}, {
|
|
52
|
+
default: h(() => [...u[1] || (u[1] = [M("登陆", -1)])]),
|
|
53
|
+
_: 1
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
}), G = /* @__PURE__ */ U(q, [["__scopeId", "data-v-449a105c"]]), J = {}, K = {
|
|
57
|
+
class: "UserMenuDivider",
|
|
58
|
+
role: "separator"
|
|
59
|
+
};
|
|
60
|
+
function Q(e, t) {
|
|
61
|
+
return r(), m("div", K);
|
|
62
|
+
}
|
|
63
|
+
const W = /* @__PURE__ */ U(J, [["render", Q], ["__scopeId", "data-v-c7d18d97"]]), Z = {
|
|
64
|
+
class: "UserBasicInformation"
|
|
65
|
+
}, ee = {
|
|
66
|
+
class: "UserBasicInformation__extra"
|
|
67
|
+
}, te = {
|
|
68
|
+
class: "UserBasicInformation__nickname"
|
|
69
|
+
}, se = {
|
|
70
|
+
class: "UserBasicInformation__email"
|
|
71
|
+
}, ne = {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "UserBasicInformation__referrer"
|
|
74
|
+
}, re = /* @__PURE__ */ _({
|
|
75
|
+
__name: "UserBasicInformation",
|
|
76
|
+
props: {
|
|
77
|
+
nickname: {
|
|
78
|
+
default: ""
|
|
79
|
+
},
|
|
80
|
+
email: {
|
|
81
|
+
default: ""
|
|
82
|
+
},
|
|
83
|
+
avatarUrl: {
|
|
84
|
+
default: ""
|
|
85
|
+
},
|
|
86
|
+
referrerId: {
|
|
87
|
+
default: ""
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
setup(e) {
|
|
91
|
+
return (t, o) => (r(), m("div", Z, [d(n(w), {
|
|
92
|
+
"image-url": e.avatarUrl,
|
|
93
|
+
size: 42,
|
|
94
|
+
"object-fit": "cover"
|
|
95
|
+
}, null, 8, ["image-url"]), c("div", ee, [c("span", te, v(e.nickname), 1), c("span", se, v(e.email), 1), e.referrerId ? (r(), m("span", ne, " 邀请码:" + v(e.referrerId), 1)) : k("", !0)])]));
|
|
96
|
+
}
|
|
97
|
+
}), ae = /* @__PURE__ */ U(re, [["__scopeId", "data-v-526286ae"]]), oe = {
|
|
98
|
+
class: "UserSubscriptionBaseInformation"
|
|
99
|
+
}, ie = {
|
|
100
|
+
class: "UserSubscriptionBaseInformation__row"
|
|
101
|
+
}, ce = {
|
|
102
|
+
class: "UserSubscriptionBaseInformation__info"
|
|
103
|
+
}, ue = /* @__PURE__ */ _({
|
|
104
|
+
__name: "UserSubscriptionBaseInformation",
|
|
105
|
+
props: {
|
|
106
|
+
currentVersionName: {
|
|
107
|
+
default: ""
|
|
108
|
+
},
|
|
109
|
+
expireDate: {
|
|
110
|
+
default: ""
|
|
111
|
+
},
|
|
112
|
+
canUpgrade: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: !1
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
emits: ["upgradeHandle"],
|
|
118
|
+
setup(e, {
|
|
119
|
+
emit: t
|
|
120
|
+
}) {
|
|
121
|
+
const o = t;
|
|
122
|
+
return (u, a) => (r(), m("div", oe, [c("div", ie, [c("div", ce, [a[1] || (a[1] = c("span", null, "我的订阅:", -1)), d(n(O), {
|
|
123
|
+
color: "arcoblue",
|
|
124
|
+
style: {
|
|
125
|
+
"border-radius": "6px"
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
default: h(() => [M(v(e.currentVersionName), 1)]),
|
|
129
|
+
_: 1
|
|
130
|
+
})]), e.canUpgrade ? (r(), g(n(R), {
|
|
131
|
+
key: 0,
|
|
132
|
+
type: "primary",
|
|
133
|
+
size: "mini",
|
|
134
|
+
class: "UserSubscriptionBaseInformation__upgrade",
|
|
135
|
+
onClick: a[0] || (a[0] = (l) => o("upgradeHandle"))
|
|
136
|
+
}, {
|
|
137
|
+
default: h(() => [...a[2] || (a[2] = [M(" 升级 ", -1)])]),
|
|
138
|
+
_: 1
|
|
139
|
+
})) : k("", !0)]), c("span", null, "有效期至: " + v(e.expireDate), 1)]));
|
|
140
|
+
}
|
|
141
|
+
}), le = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-4deb2b89"]]), de = /* @__PURE__ */ _({
|
|
142
|
+
__name: "UserMenuHeader",
|
|
143
|
+
props: {
|
|
144
|
+
showSubscription: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: !0
|
|
147
|
+
},
|
|
148
|
+
currentVersionName: {
|
|
149
|
+
default: "免费版本"
|
|
150
|
+
},
|
|
151
|
+
expireDate: {
|
|
152
|
+
default: "2025-01-01"
|
|
153
|
+
},
|
|
154
|
+
canUpgrade: {
|
|
155
|
+
type: Boolean,
|
|
156
|
+
default: !0
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
setup(e) {
|
|
160
|
+
const {
|
|
161
|
+
userProfile: t
|
|
162
|
+
} = B(), {
|
|
163
|
+
openSubscriptions: o
|
|
164
|
+
} = y();
|
|
165
|
+
return (u, a) => {
|
|
166
|
+
var l, s, f, p;
|
|
167
|
+
return r(), m(x, null, [d(ae, {
|
|
168
|
+
"avatar-url": (l = n(t)) == null ? void 0 : l.avatarUrl,
|
|
169
|
+
nickname: (s = n(t)) == null ? void 0 : s.nickname,
|
|
170
|
+
email: (f = n(t)) == null ? void 0 : f.email,
|
|
171
|
+
"referrer-id": (p = n(t)) == null ? void 0 : p.referrerId
|
|
172
|
+
}, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), e.showSubscription ? (r(), g(le, {
|
|
173
|
+
key: 0,
|
|
174
|
+
"current-version-name": e.currentVersionName,
|
|
175
|
+
"expire-date": e.expireDate,
|
|
176
|
+
"can-upgrade": e.canUpgrade,
|
|
177
|
+
onUpgradeHandle: n(o)
|
|
178
|
+
}, null, 8, ["current-version-name", "expire-date", "can-upgrade", "onUpgradeHandle"])) : k("", !0)], 64);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
}), fe = {
|
|
182
|
+
class: "UserMenu__content"
|
|
183
|
+
}, me = {
|
|
184
|
+
class: "UserMenu__header"
|
|
185
|
+
}, pe = /* @__PURE__ */ _({
|
|
186
|
+
__name: "UserMenu",
|
|
187
|
+
props: {
|
|
188
|
+
position: {
|
|
189
|
+
default: "br"
|
|
190
|
+
},
|
|
191
|
+
dropdownOffsetX: {
|
|
192
|
+
default: "0"
|
|
193
|
+
},
|
|
194
|
+
dropdownOffsetY: {
|
|
195
|
+
default: "0"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
setup(e) {
|
|
199
|
+
const {
|
|
200
|
+
userProfile: t,
|
|
201
|
+
isLoggedIn: o
|
|
202
|
+
} = B(), {
|
|
203
|
+
isOpen: u,
|
|
204
|
+
setOpen: a
|
|
205
|
+
} = y(), l = C({
|
|
206
|
+
get: () => u.value,
|
|
207
|
+
set: (s) => a(s)
|
|
208
|
+
});
|
|
209
|
+
return (s, f) => n(o) ? (r(), g(n(V), {
|
|
210
|
+
key: 1,
|
|
211
|
+
"popup-visible": l.value,
|
|
212
|
+
"onUpdate:popupVisible": f[0] || (f[0] = (p) => l.value = p),
|
|
213
|
+
class: "UserMenu",
|
|
214
|
+
position: e.position,
|
|
215
|
+
"popup-max-height": !1,
|
|
216
|
+
"popup-style": {
|
|
217
|
+
"--user-menu-translate-x": e.dropdownOffsetX ?? "0",
|
|
218
|
+
"--user-menu-translate-y": e.dropdownOffsetY ?? "0"
|
|
219
|
+
}
|
|
220
|
+
}, {
|
|
221
|
+
content: h(() => [c("div", fe, [c("div", me, [b(s.$slots, "header", {
|
|
222
|
+
user: n(t)
|
|
223
|
+
}, () => [d(de)], !0)]), s.$slots.items ? (r(), g(W, {
|
|
224
|
+
key: 0
|
|
225
|
+
})) : k("", !0), b(s.$slots, "items", {}, void 0, !0)])]),
|
|
226
|
+
default: h(() => [b(s.$slots, "trigger", {
|
|
227
|
+
user: n(t)
|
|
228
|
+
}, () => {
|
|
229
|
+
var p;
|
|
230
|
+
return [d(L, {
|
|
231
|
+
avatar: (p = n(t)) == null ? void 0 : p.avatarUrl
|
|
232
|
+
}, null, 8, ["avatar"])];
|
|
233
|
+
}, !0)]),
|
|
234
|
+
_: 3
|
|
235
|
+
}, 8, ["popup-visible", "position", "popup-style"])) : (r(), g(G, {
|
|
236
|
+
key: 0
|
|
237
|
+
}));
|
|
238
|
+
}
|
|
239
|
+
}), Xe = /* @__PURE__ */ U(pe, [["__scopeId", "data-v-bbd2c44f"]]), _e = ["disabled"], ve = {
|
|
240
|
+
class: "UserMenuItem__label"
|
|
241
|
+
}, Ue = {
|
|
242
|
+
key: 0,
|
|
243
|
+
class: "UserMenuItem__icon"
|
|
244
|
+
}, ge = /* @__PURE__ */ _({
|
|
245
|
+
__name: "UserMenuItem",
|
|
246
|
+
props: {
|
|
247
|
+
icon: {
|
|
248
|
+
default: void 0
|
|
249
|
+
},
|
|
250
|
+
danger: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
default: !1
|
|
253
|
+
},
|
|
254
|
+
disabled: {
|
|
255
|
+
type: Boolean,
|
|
256
|
+
default: !1
|
|
257
|
+
},
|
|
258
|
+
closeOnClick: {
|
|
259
|
+
type: Boolean,
|
|
260
|
+
default: !0
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
emits: ["click"],
|
|
264
|
+
setup(e, {
|
|
265
|
+
emit: t
|
|
266
|
+
}) {
|
|
267
|
+
const o = e, u = t, {
|
|
268
|
+
close: a
|
|
269
|
+
} = y();
|
|
270
|
+
function l(s) {
|
|
271
|
+
s.stopPropagation(), !o.disabled && (o.closeOnClick && a(), u("click", s));
|
|
272
|
+
}
|
|
273
|
+
return (s, f) => (r(), m("button", {
|
|
274
|
+
type: "button",
|
|
275
|
+
class: N(["UserMenuItem", {
|
|
276
|
+
"is-danger": e.danger,
|
|
277
|
+
"is-disabled": e.disabled
|
|
278
|
+
}]),
|
|
279
|
+
disabled: e.disabled,
|
|
280
|
+
onClick: l
|
|
281
|
+
}, [c("span", ve, [b(s.$slots, "default", {}, void 0, !0)]), s.$slots.icon || e.icon ? (r(), m("span", Ue, [b(s.$slots, "icon", {}, () => [e.icon ? (r(), g(n(D), {
|
|
282
|
+
key: 0,
|
|
283
|
+
icon: e.icon,
|
|
284
|
+
width: 16,
|
|
285
|
+
height: 16
|
|
286
|
+
}, null, 8, ["icon"])) : k("", !0)], !0)])) : k("", !0)], 10, _e));
|
|
287
|
+
}
|
|
288
|
+
}), Ye = /* @__PURE__ */ U(ge, [["__scopeId", "data-v-d357ac04"]]), Le = /* @__PURE__ */ _({
|
|
289
|
+
__name: "UserMenuModals",
|
|
290
|
+
setup(e) {
|
|
291
|
+
const {
|
|
292
|
+
settingTrigger: t,
|
|
293
|
+
subscriptionsTrigger: o,
|
|
294
|
+
messagesTrigger: u,
|
|
295
|
+
feedbackTrigger: a,
|
|
296
|
+
invitationsTrigger: l
|
|
297
|
+
} = y(), s = I(null), f = I(null), p = I(null), S = I(null), A = I(null);
|
|
298
|
+
return $(t, () => {
|
|
299
|
+
var i;
|
|
300
|
+
(i = s.value) == null || i.setData(null, !0);
|
|
301
|
+
}), $(o, () => {
|
|
302
|
+
var i;
|
|
303
|
+
(i = f.value) == null || i.setData(null, !0);
|
|
304
|
+
}), $(u, () => {
|
|
305
|
+
var i;
|
|
306
|
+
(i = p.value) == null || i.openNotification();
|
|
307
|
+
}), $(a, () => {
|
|
308
|
+
var i;
|
|
309
|
+
(i = S.value) == null || i.setData(!0);
|
|
310
|
+
}), $(l, () => {
|
|
311
|
+
var i;
|
|
312
|
+
(i = A.value) == null || i.setData(!0);
|
|
313
|
+
}), (i, Me) => (r(), m(x, null, [d(P, {
|
|
314
|
+
ref_key: "appSettingRef",
|
|
315
|
+
ref: s
|
|
316
|
+
}, null, 512), d(j, {
|
|
317
|
+
ref_key: "paySubsRef",
|
|
318
|
+
ref: f
|
|
319
|
+
}, null, 512), d(z, {
|
|
320
|
+
ref_key: "messageHandleRef",
|
|
321
|
+
ref: p
|
|
322
|
+
}, null, 512), d(T, {
|
|
323
|
+
ref_key: "feedbackModalRef",
|
|
324
|
+
ref: S
|
|
325
|
+
}, null, 512), d(E, {
|
|
326
|
+
ref_key: "refereesRef",
|
|
327
|
+
ref: A
|
|
328
|
+
}, null, 512)], 64));
|
|
329
|
+
}
|
|
330
|
+
}), ke = {
|
|
331
|
+
class: "UserAccountMenu"
|
|
332
|
+
}, be = {
|
|
333
|
+
class: "UserAccountMenu__avatar"
|
|
334
|
+
}, Ie = {
|
|
335
|
+
class: "UserAccountMenu__meta"
|
|
336
|
+
}, $e = {
|
|
337
|
+
class: "UserAccountMenu__name"
|
|
338
|
+
}, he = {
|
|
339
|
+
class: "UserAccountMenu__email"
|
|
340
|
+
}, ye = /* @__PURE__ */ _({
|
|
341
|
+
__name: "UserAccountMenu",
|
|
342
|
+
setup(e) {
|
|
343
|
+
const {
|
|
344
|
+
userProfile: t
|
|
345
|
+
} = B(), {
|
|
346
|
+
toggle: o
|
|
347
|
+
} = y();
|
|
348
|
+
return (u, a) => {
|
|
349
|
+
var l, s;
|
|
350
|
+
return r(), m("div", ke, [c("div", be, [b(u.$slots, "avatar", {}, void 0, !0)]), c("div", Ie, [c("div", $e, v(((l = n(t)) == null ? void 0 : l.nickname) || ""), 1), c("div", he, v(((s = n(t)) == null ? void 0 : s.email) || ""), 1)]), c("div", {
|
|
351
|
+
class: "UserAccountMenu__arrow",
|
|
352
|
+
onClick: a[0] || (a[0] = //@ts-ignore
|
|
353
|
+
(...f) => n(o) && n(o)(...f))
|
|
354
|
+
}, [d(n(D), {
|
|
355
|
+
icon: "lucide:chevrons-up-down"
|
|
356
|
+
})])]);
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
}), qe = /* @__PURE__ */ U(ye, [["__scopeId", "data-v-cc0eb033"]]);
|
|
360
|
+
export {
|
|
361
|
+
qe as U,
|
|
362
|
+
de as _,
|
|
363
|
+
L as a,
|
|
364
|
+
ae as b,
|
|
365
|
+
Xe as c,
|
|
366
|
+
W as d,
|
|
367
|
+
Ye as e,
|
|
368
|
+
Le as f,
|
|
369
|
+
G as g,
|
|
370
|
+
le as h
|
|
371
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as o, createBlock as r, unref as s, withCtx as i, createTextVNode as c } from "vue";
|
|
2
|
+
import { e as u } from "./UserAccountMenu-CJ9KKVYa.js";
|
|
3
|
+
import { u as _ } from "./useUserMenu-B3HKZKJ4.js";
|
|
4
|
+
const f = /* @__PURE__ */ t({
|
|
5
|
+
__name: "UserMenuMessageItem",
|
|
6
|
+
setup(p) {
|
|
7
|
+
const {
|
|
8
|
+
openMessages: n
|
|
9
|
+
} = _();
|
|
10
|
+
return (a, e) => (o(), r(u, {
|
|
11
|
+
icon: "lucide:chevron-right",
|
|
12
|
+
onClick: s(n)
|
|
13
|
+
}, {
|
|
14
|
+
default: i(() => [...e[0] || (e[0] = [c("消息中心", -1)])]),
|
|
15
|
+
_: 1
|
|
16
|
+
}, 8, ["onClick"]));
|
|
17
|
+
}
|
|
18
|
+
}), k = /* @__PURE__ */ t({
|
|
19
|
+
__name: "UserMenuSettingItem",
|
|
20
|
+
setup(p) {
|
|
21
|
+
const {
|
|
22
|
+
openSetting: n
|
|
23
|
+
} = _();
|
|
24
|
+
return (a, e) => (o(), r(u, {
|
|
25
|
+
icon: "lucide:chevron-right",
|
|
26
|
+
onClick: s(n)
|
|
27
|
+
}, {
|
|
28
|
+
default: i(() => [...e[0] || (e[0] = [c("系统设置", -1)])]),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["onClick"]));
|
|
31
|
+
}
|
|
32
|
+
}), C = /* @__PURE__ */ t({
|
|
33
|
+
__name: "UserMenuSubscriptionItem",
|
|
34
|
+
setup(p) {
|
|
35
|
+
const {
|
|
36
|
+
openSubscriptions: n
|
|
37
|
+
} = _();
|
|
38
|
+
return (a, e) => (o(), r(u, {
|
|
39
|
+
icon: "lucide:chevron-right",
|
|
40
|
+
onClick: s(n)
|
|
41
|
+
}, {
|
|
42
|
+
default: i(() => [...e[0] || (e[0] = [c("订阅信息", -1)])]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 8, ["onClick"]));
|
|
45
|
+
}
|
|
46
|
+
}), g = /* @__PURE__ */ t({
|
|
47
|
+
__name: "UserMenuFeedbackItem",
|
|
48
|
+
setup(p) {
|
|
49
|
+
const {
|
|
50
|
+
openFeedback: n
|
|
51
|
+
} = _();
|
|
52
|
+
return (a, e) => (o(), r(u, {
|
|
53
|
+
icon: "lucide:chevron-right",
|
|
54
|
+
onClick: s(n)
|
|
55
|
+
}, {
|
|
56
|
+
default: i(() => [...e[0] || (e[0] = [c("系统反馈", -1)])]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["onClick"]));
|
|
59
|
+
}
|
|
60
|
+
}), M = /* @__PURE__ */ t({
|
|
61
|
+
__name: "UserMenuInvitationsItem",
|
|
62
|
+
setup(p) {
|
|
63
|
+
const {
|
|
64
|
+
openInvitations: n
|
|
65
|
+
} = _();
|
|
66
|
+
return (a, e) => (o(), r(u, {
|
|
67
|
+
icon: "lucide:chevron-right",
|
|
68
|
+
onClick: s(n)
|
|
69
|
+
}, {
|
|
70
|
+
default: i(() => [...e[0] || (e[0] = [c("邀请", -1)])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["onClick"]));
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
g as _,
|
|
77
|
+
M as a,
|
|
78
|
+
f as b,
|
|
79
|
+
k as c,
|
|
80
|
+
C as d
|
|
81
|
+
};
|