@huyooo/ui 0.4.34 → 0.4.36
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-DqhUivnU.js → AuthkitAppSetting-D6PAh-ZI.js} +216 -215
- package/dist/{AuthkitAuthorize-f_yAVn7e.js → AuthkitAuthorize-DKG7JGSV.js} +4 -4
- package/dist/{FeedbackItem-DJiIQBMe.js → FeedbackItem-BO8dYYKo.js} +3 -7
- package/dist/FeedbackModal-B_W_RWec.js +1061 -0
- package/dist/{LandingPageToc-BkL7mxo7.js → LandingPageToc-BrUxyH80.js} +257 -269
- package/dist/MessageHandle-Dt6rb0rg.js +830 -0
- package/dist/{PaySubscriptions-foEcT6VN.js → PaySubscriptions-B42IdT-5.js} +59 -58
- package/dist/ReferrerReferees-CvuUodDZ.js +116 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-C2OaTrku.js → Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js} +4 -4
- package/dist/{UserPanel-CA3roDgH.js → UserPanel-BIKWssEY.js} +169 -174
- package/dist/api/Authkit/apps.d.ts +1 -1
- package/dist/api/Buckets/Files.d.ts +7 -7
- package/dist/api/Buckets.d.ts +2 -2
- package/dist/api/Message/ChangelogNotifications.d.ts +2 -2
- package/dist/api/Message/EventNotifications.d.ts +2 -2
- package/dist/api/Message/MessageNotifications.d.ts +5 -5
- package/dist/api/Message/NoticeNotifications.d.ts +2 -2
- package/dist/api/Messages.d.ts +2 -2
- package/dist/api/Referrer.d.ts +1 -1
- package/dist/api/index.d.ts +8 -8
- package/dist/authkit.js +4 -4
- package/dist/common/globalConfig.d.ts +15 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +21 -19
- package/dist/components/Feedback/FeedbackContainer.vue.d.ts +0 -8
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackForm.vue.d.ts +2 -20
- package/dist/components/LandingPage/LandingPageFooterLayout.vue.d.ts +3 -3
- package/dist/components/Message/MessageAppMessage.vue.d.ts +1 -24
- package/dist/components/Message/MessageChangelogNotifications.vue.d.ts +1 -11
- package/dist/components/Message/MessageChangelogNotificationsDetails.vue.d.ts +0 -8
- package/dist/components/Message/MessageEventNotifications.vue.d.ts +1 -11
- package/dist/components/Message/MessageEventNotificationsDetails.vue.d.ts +0 -8
- package/dist/components/Message/MessageHandle.vue.d.ts +28 -88
- package/dist/components/Message/MessageNoticeNotifications.vue.d.ts +1 -11
- package/dist/components/Message/MessageNoticeNotificationsDetails.vue.d.ts +0 -8
- package/dist/components/Message/MessageNotifications.vue.d.ts +1 -11
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +2 -12
- package/dist/components/User/UserPanel.vue.d.ts +30 -100
- package/dist/composables/useMessageNotifications.d.ts +1 -1
- package/dist/composables.d.ts +1 -1
- package/dist/composables.js +16 -15
- package/dist/feedback.js +2 -2
- package/dist/globalConfig-dtNQA0ZH.js +15 -0
- package/dist/index.js +28 -26
- package/dist/landingPage.js +1 -1
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAuthModal-OkUKCIWR.js → useAuthkitAuthModal-C153ZpNb.js} +14 -13
- package/dist/useAuthkitUsersProfile-CT2MN1S5.js +228 -0
- package/dist/useMessageNotifications-DkKSVkdt.js +106 -0
- package/dist/{useUploadCos-uerXQY3P.js → useUploadCos-C3ts0Gpa.js} +1481 -1499
- package/dist/user.d.ts +0 -1
- package/dist/user.js +4 -6
- package/package.json +1 -1
- package/dist/FeedbackModal-D7gtWqMr.js +0 -1077
- package/dist/MessageHandle-DN_JsQb2.js +0 -885
- package/dist/ReferrerReferees-DxNJ2ETq.js +0 -121
- package/dist/composables/useGlobalConfig.d.ts +0 -20
- package/dist/useAuthkitUsersProfile-Diituvy1.js +0 -227
- package/dist/useMessageNotifications-lmP0vJDM.js +0 -105
|
@@ -3,34 +3,35 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { Modal as V, Popconfirm as
|
|
6
|
+
import { defineComponent as D, ref as U, createBlock as B, openBlock as L, unref as a, isRef as M, withCtx as o, createElementVNode as d, createVNode as r, createTextVNode as u, toDisplayString as n } from "vue";
|
|
7
|
+
import { Modal as V, Popconfirm as $, Button as E, Tag as g } from "@arco-design/web-vue";
|
|
8
8
|
import { api as _ } from "@huyooo/api";
|
|
9
|
+
import { g as x } from "./globalConfig-dtNQA0ZH.js";
|
|
9
10
|
import { u as H } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { C as
|
|
12
|
-
import { _ as
|
|
13
|
-
function
|
|
11
|
+
import { u as j } from "./useTableHandle-DKUIdSSh.js";
|
|
12
|
+
import { C as q, f as y } from "./CustomTable-JflAYS8i.js";
|
|
13
|
+
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
function G(m) {
|
|
14
15
|
return _({
|
|
15
|
-
url:
|
|
16
|
+
url: `${x.prefixUrl}/restfulApi/orders/cancel`,
|
|
16
17
|
method: "post",
|
|
17
|
-
data:
|
|
18
|
+
data: m
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function J(m) {
|
|
21
22
|
return _({
|
|
22
|
-
url:
|
|
23
|
+
url: `${x.prefixUrl}/restfulApi/orders/myOrders`,
|
|
23
24
|
method: "post",
|
|
24
|
-
data:
|
|
25
|
+
data: m
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
|
-
const
|
|
28
|
+
const K = [{
|
|
28
29
|
key: "alipay",
|
|
29
30
|
label: "支付宝"
|
|
30
31
|
}, {
|
|
31
32
|
key: "weixinpay",
|
|
32
33
|
label: "微信支付"
|
|
33
|
-
}],
|
|
34
|
+
}], Q = [{
|
|
34
35
|
key: "notPay",
|
|
35
36
|
label: "未支付"
|
|
36
37
|
}, {
|
|
@@ -51,58 +52,58 @@ const J = [{
|
|
|
51
52
|
}, {
|
|
52
53
|
key: "cancel",
|
|
53
54
|
label: "用户已取消"
|
|
54
|
-
}],
|
|
55
|
+
}], X = {
|
|
55
56
|
class: "content"
|
|
56
|
-
}, X = {
|
|
57
|
-
class: "truncate min-w-24"
|
|
58
57
|
}, Y = {
|
|
59
58
|
class: "truncate min-w-24"
|
|
60
59
|
}, Z = {
|
|
61
60
|
class: "truncate min-w-24"
|
|
62
61
|
}, tt = {
|
|
63
62
|
class: "truncate min-w-24"
|
|
64
|
-
}, et =
|
|
63
|
+
}, et = {
|
|
64
|
+
class: "truncate min-w-24"
|
|
65
|
+
}, at = /* @__PURE__ */ D({
|
|
65
66
|
__name: "PaySubscriptions",
|
|
66
67
|
emits: ["confirm", "cancel"],
|
|
67
|
-
setup(
|
|
68
|
-
expose:
|
|
69
|
-
emit:
|
|
68
|
+
setup(m, {
|
|
69
|
+
expose: C,
|
|
70
|
+
emit: N
|
|
70
71
|
}) {
|
|
71
72
|
const {
|
|
72
73
|
pagination: s,
|
|
73
74
|
dataSource: b,
|
|
74
75
|
setPage: v,
|
|
75
|
-
cancel:
|
|
76
|
-
loading:
|
|
76
|
+
cancel: k,
|
|
77
|
+
loading: c,
|
|
77
78
|
removeLoading: h,
|
|
78
|
-
submitRemove:
|
|
79
|
-
} =
|
|
79
|
+
submitRemove: I
|
|
80
|
+
} = j("订阅信息"), P = N, S = U([]);
|
|
80
81
|
function p() {
|
|
81
|
-
|
|
82
|
+
c.value = !0, J({
|
|
82
83
|
current: s.value.current,
|
|
83
84
|
pageSize: s.value.pageSize,
|
|
84
85
|
where: {}
|
|
85
86
|
}).then(({
|
|
86
87
|
data: e
|
|
87
88
|
}) => {
|
|
88
|
-
console.log(e, "datadatadata"),
|
|
89
|
+
console.log(e, "datadatadata"), c.value = !1, b.value = e.items, s.value.total = e.count;
|
|
89
90
|
}).catch(() => {
|
|
90
|
-
|
|
91
|
+
c.value = !1;
|
|
91
92
|
});
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
-
h.value = !0,
|
|
94
|
+
function W(e) {
|
|
95
|
+
h.value = !0, G({
|
|
95
96
|
id: e
|
|
96
97
|
}).then(() => {
|
|
97
|
-
|
|
98
|
+
I("取消订单成功"), p();
|
|
98
99
|
}).catch(() => {
|
|
99
100
|
h.value = !1;
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
103
|
+
function w(e) {
|
|
104
|
+
W(e.id);
|
|
104
105
|
}
|
|
105
|
-
const
|
|
106
|
+
const A = [{
|
|
106
107
|
dataIndex: "title",
|
|
107
108
|
slotName: "title",
|
|
108
109
|
title: "订单名称",
|
|
@@ -171,19 +172,19 @@ const J = [{
|
|
|
171
172
|
title: "操作",
|
|
172
173
|
fixed: "right",
|
|
173
174
|
minWidth: 100
|
|
174
|
-
}],
|
|
175
|
+
}], O = (e) => {
|
|
175
176
|
console.log(e, "pagesize"), v(e, s.value.pageSize), p();
|
|
176
|
-
},
|
|
177
|
+
}, z = (e) => {
|
|
177
178
|
console.log(e, "pagesize"), v(s.value.current, e), p();
|
|
178
179
|
}, {
|
|
179
|
-
changeType:
|
|
180
|
+
changeType: R,
|
|
180
181
|
show: f
|
|
181
|
-
} = H(
|
|
182
|
-
function
|
|
183
|
-
console.log(e), f.value = i,
|
|
182
|
+
} = H(P);
|
|
183
|
+
function T(e, i) {
|
|
184
|
+
console.log(e), f.value = i, R.value = "编辑", p();
|
|
184
185
|
}
|
|
185
|
-
return
|
|
186
|
-
setData:
|
|
186
|
+
return C({
|
|
187
|
+
setData: T
|
|
187
188
|
}), (e, i) => (L(), B(a(V), {
|
|
188
189
|
visible: a(f),
|
|
189
190
|
"onUpdate:visible": i[0] || (i[0] = (t) => M(f) ? f.value = t : null),
|
|
@@ -192,16 +193,16 @@ const J = [{
|
|
|
192
193
|
"mask-closable": !1,
|
|
193
194
|
footer: !1,
|
|
194
195
|
width: "80%",
|
|
195
|
-
onCancel: a(
|
|
196
|
+
onCancel: a(k)
|
|
196
197
|
}, {
|
|
197
198
|
title: o(() => i[1] || (i[1] = [u(" 订阅信息 ")])),
|
|
198
|
-
default: o(() => [d("div",
|
|
199
|
-
columns:
|
|
199
|
+
default: o(() => [d("div", X, [r(q, {
|
|
200
|
+
columns: A,
|
|
200
201
|
data: a(b),
|
|
201
|
-
loading: a(
|
|
202
|
+
loading: a(c),
|
|
202
203
|
pagination: a(s),
|
|
203
|
-
onPageChange:
|
|
204
|
-
onPageSizeChange:
|
|
204
|
+
onPageChange: O,
|
|
205
|
+
onPageSizeChange: z
|
|
205
206
|
}, {
|
|
206
207
|
status: o(({
|
|
207
208
|
record: t
|
|
@@ -210,7 +211,7 @@ const J = [{
|
|
|
210
211
|
}, {
|
|
211
212
|
default: o(() => {
|
|
212
213
|
var l;
|
|
213
|
-
return [u(n((l = a(y)(a(
|
|
214
|
+
return [u(n((l = a(y)(a(Q), t.status)) == null ? void 0 : l.label), 1)];
|
|
214
215
|
}),
|
|
215
216
|
_: 2
|
|
216
217
|
}, 1024)]),
|
|
@@ -224,7 +225,7 @@ const J = [{
|
|
|
224
225
|
}, {
|
|
225
226
|
default: o(() => {
|
|
226
227
|
var l;
|
|
227
|
-
return [u(n((l = a(y)(a(
|
|
228
|
+
return [u(n((l = a(y)(a(K), t.type)) == null ? void 0 : l.label), 1)];
|
|
228
229
|
}),
|
|
229
230
|
_: 2
|
|
230
231
|
}, 1024)]),
|
|
@@ -235,27 +236,27 @@ const J = [{
|
|
|
235
236
|
}, {
|
|
236
237
|
default: o(() => {
|
|
237
238
|
var l;
|
|
238
|
-
return [u(n(((l = a(y)(
|
|
239
|
+
return [u(n(((l = a(y)(S.value, t.costData.roleId)) == null ? void 0 : l.label) || "-"), 1)];
|
|
239
240
|
}),
|
|
240
241
|
_: 2
|
|
241
242
|
}, 1024)]),
|
|
242
243
|
tradeNo: o(({
|
|
243
244
|
record: t
|
|
244
|
-
}) => [d("div",
|
|
245
|
+
}) => [d("div", Y, n(t.tradeNo || "-"), 1)]),
|
|
245
246
|
gmtCreate: o(({
|
|
246
247
|
record: t
|
|
247
|
-
}) => [d("div",
|
|
248
|
+
}) => [d("div", Z, n(t.gmtCreate || "-"), 1)]),
|
|
248
249
|
gmtPayment: o(({
|
|
249
250
|
record: t
|
|
250
|
-
}) => [d("div",
|
|
251
|
+
}) => [d("div", tt, n(t.gmtPayment || "-"), 1)]),
|
|
251
252
|
gmtRefund: o(({
|
|
252
253
|
record: t
|
|
253
|
-
}) => [d("div",
|
|
254
|
+
}) => [d("div", et, n(t.gmtRefund || "-"), 1)]),
|
|
254
255
|
actions: o(({
|
|
255
256
|
record: t
|
|
256
|
-
}) => [r(a(
|
|
257
|
+
}) => [r(a($), {
|
|
257
258
|
content: "你确定要取消订单吗?",
|
|
258
|
-
onOk: (l) =>
|
|
259
|
+
onOk: (l) => w(t)
|
|
259
260
|
}, {
|
|
260
261
|
default: o(() => [r(a(E), {
|
|
261
262
|
type: "text",
|
|
@@ -272,7 +273,7 @@ const J = [{
|
|
|
272
273
|
_: 1
|
|
273
274
|
}, 8, ["visible", "onCancel"]));
|
|
274
275
|
}
|
|
275
|
-
}),
|
|
276
|
+
}), yt = /* @__PURE__ */ F(at, [["__scopeId", "data-v-8d63590c"]]);
|
|
276
277
|
export {
|
|
277
|
-
|
|
278
|
+
yt as S
|
|
278
279
|
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { defineComponent as z, ref as d, createBlock as v, openBlock as g, unref as a, withCtx as _, createElementVNode as n, createVNode as A, createCommentVNode as V, toDisplayString as C, createTextVNode as w } from "vue";
|
|
5
|
+
import { Modal as T } from "@arco-design/web-vue";
|
|
6
|
+
import { api as U } from "@huyooo/api";
|
|
7
|
+
import { g as y } from "./globalConfig-dtNQA0ZH.js";
|
|
8
|
+
import { u as B } from "./useTableHandle-DKUIdSSh.js";
|
|
9
|
+
import { C as D } from "./CustomTable-JflAYS8i.js";
|
|
10
|
+
import { C as E } from "./Clipboard-Bful1lNJ.js";
|
|
11
|
+
import { a as H } from "./useAuthkitUsersProfile-CT2MN1S5.js";
|
|
12
|
+
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
function $(f) {
|
|
14
|
+
return U({
|
|
15
|
+
url: `${y.prefixUrl}/restfulApi/referrer/referees`,
|
|
16
|
+
method: "post",
|
|
17
|
+
data: f
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
const j = {
|
|
21
|
+
class: "invite-code-section"
|
|
22
|
+
}, q = {
|
|
23
|
+
class: "invite-code-value"
|
|
24
|
+
}, F = /* @__PURE__ */ z({
|
|
25
|
+
__name: "ReferrerReferees",
|
|
26
|
+
emits: ["cancel"],
|
|
27
|
+
setup(f, {
|
|
28
|
+
expose: h,
|
|
29
|
+
emit: b
|
|
30
|
+
}) {
|
|
31
|
+
const x = b, {
|
|
32
|
+
pagination: t,
|
|
33
|
+
dataSource: c,
|
|
34
|
+
setPage: m
|
|
35
|
+
} = B("被邀请人"), {
|
|
36
|
+
userProfile: s
|
|
37
|
+
} = H(), k = [{
|
|
38
|
+
dataIndex: "email",
|
|
39
|
+
slotName: "email",
|
|
40
|
+
title: "被邀请人邮箱",
|
|
41
|
+
ellipsis: !0,
|
|
42
|
+
tooltip: !0
|
|
43
|
+
}, {
|
|
44
|
+
dataIndex: "createAt",
|
|
45
|
+
slotName: "createAt",
|
|
46
|
+
title: "创建日期",
|
|
47
|
+
ellipsis: !0,
|
|
48
|
+
tooltip: !0
|
|
49
|
+
}], o = d(!1);
|
|
50
|
+
function u() {
|
|
51
|
+
o.value = !0, $({
|
|
52
|
+
current: t.value.current,
|
|
53
|
+
pageSize: t.value.pageSize
|
|
54
|
+
}).then(({
|
|
55
|
+
data: e
|
|
56
|
+
}) => {
|
|
57
|
+
o.value = !1, c.value = e.items, t.value.total = e.count;
|
|
58
|
+
}).catch(() => {
|
|
59
|
+
o.value = !1;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function I(e) {
|
|
63
|
+
m(e, t.value.pageSize), u();
|
|
64
|
+
}
|
|
65
|
+
function S(e) {
|
|
66
|
+
m(t.value.current, e), u();
|
|
67
|
+
}
|
|
68
|
+
const r = d(!1);
|
|
69
|
+
function N() {
|
|
70
|
+
r.value = !1, x("cancel");
|
|
71
|
+
}
|
|
72
|
+
function P(e) {
|
|
73
|
+
r.value = e, u();
|
|
74
|
+
}
|
|
75
|
+
return h({
|
|
76
|
+
setData: P
|
|
77
|
+
}), (e, i) => (g(), v(a(T), {
|
|
78
|
+
visible: r.value,
|
|
79
|
+
"onUpdate:visible": i[0] || (i[0] = (l) => r.value = l),
|
|
80
|
+
title: "被邀请人详情",
|
|
81
|
+
width: "60%",
|
|
82
|
+
"ok-loading": o.value,
|
|
83
|
+
footer: !1,
|
|
84
|
+
"mask-closable": !1,
|
|
85
|
+
"unmount-on-close": "",
|
|
86
|
+
onCancel: N
|
|
87
|
+
}, {
|
|
88
|
+
default: _(() => {
|
|
89
|
+
var l, p;
|
|
90
|
+
return [n("div", j, [i[1] || (i[1] = n("div", {
|
|
91
|
+
class: "invite-code-label"
|
|
92
|
+
}, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((l = a(s)) == null ? void 0 : l.referrerId) || "-"), 1), (p = a(s)) != null && p.referrerId ? (g(), v(E, {
|
|
93
|
+
key: 0,
|
|
94
|
+
value: a(s).referrerId,
|
|
95
|
+
message: "邀请码复制成功"
|
|
96
|
+
}, null, 8, ["value"])) : V("", !0)])]), A(D, {
|
|
97
|
+
columns: k,
|
|
98
|
+
data: a(c),
|
|
99
|
+
loading: o.value,
|
|
100
|
+
pagination: a(t),
|
|
101
|
+
onPageChange: I,
|
|
102
|
+
onPageSizeChange: S
|
|
103
|
+
}, {
|
|
104
|
+
email: _(({
|
|
105
|
+
record: R
|
|
106
|
+
}) => [w(C(R.refereeInfo.email || "-"), 1)]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["data", "loading", "pagination"])];
|
|
109
|
+
}),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["visible", "ok-loading"]));
|
|
112
|
+
}
|
|
113
|
+
}), ae = /* @__PURE__ */ M(F, [["__scopeId", "data-v-122fc8d6"]]);
|
|
114
|
+
export {
|
|
115
|
+
ae as R
|
|
116
|
+
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { defineComponent as g, createBlock as h, openBlock as k, unref as _, mergeProps as $, createSlots as q, withCtx as i, renderSlot as p } from "vue";
|
|
7
7
|
import { Upload as y } from "@arco-design/web-vue";
|
|
8
|
-
import {
|
|
8
|
+
import { u as C } from "./useUploadCos-C3ts0Gpa.js";
|
|
9
9
|
const I = /* @__PURE__ */ g({
|
|
10
10
|
__name: "Upload",
|
|
11
11
|
props: {
|
|
@@ -17,9 +17,9 @@ const I = /* @__PURE__ */ g({
|
|
|
17
17
|
},
|
|
18
18
|
emits: ["progress", "fileFinish", "fail"],
|
|
19
19
|
setup(l, {
|
|
20
|
-
emit:
|
|
20
|
+
emit: u
|
|
21
21
|
}) {
|
|
22
|
-
const r =
|
|
22
|
+
const r = u, m = l, {
|
|
23
23
|
uploadFile: a
|
|
24
24
|
} = C();
|
|
25
25
|
function c(o) {
|
|
@@ -52,7 +52,7 @@ const I = /* @__PURE__ */ g({
|
|
|
52
52
|
}
|
|
53
53
|
return (o, s) => (k(), h(_(y), $({
|
|
54
54
|
"custom-request": c
|
|
55
|
-
},
|
|
55
|
+
}, m.options), q({
|
|
56
56
|
_: 2
|
|
57
57
|
}, [o.$slots["upload-button"] ? {
|
|
58
58
|
name: "upload-button",
|