@huyooo/ui 1.0.7 → 2.0.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-DCQH9IpU.js +2678 -0
- package/dist/{Contact-BWuVR9ho.js → Contact-C7ROEqe-.js} +9 -9
- package/dist/{CustomTable-BzGfaAVH.js → CustomTable-GgvDEidl.js} +1 -1
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +1531 -0
- package/dist/{LegalDocViewer-DM8FYBpf.js → LegalDocViewer-D_QUh0uf.js} +747 -748
- package/dist/MessageHandle-DKoySsCG.js +1233 -0
- package/dist/{MessageList-Ce-_LNTk.js → MessageList-HSiKkUoD.js} +4 -4
- package/dist/PaySubscriptions-NcATVJGm.js +1331 -0
- package/dist/{PricingPlans-CV97ck9p.js → PricingPlans-CZn6eJby.js} +99 -105
- package/dist/{ReferrerReferees-DgygiIiE.js → ReferrerReferees-BoOQIssE.js} +47 -46
- package/dist/Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js +83 -0
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-0Td42Nb3.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js} +64 -65
- package/dist/WidthContainer-BJLdZfzF.js +717 -0
- package/dist/api/billingSubscriptionApi.d.ts +4 -1
- package/dist/apiClients-CR-hEwog.js +245 -0
- package/dist/authkit.js +10 -10
- package/dist/common/globalConfig.d.ts +36 -18
- package/dist/common.js +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +0 -5
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +11 -0
- package/dist/components/Upload/Upload.vue.d.ts +7 -6
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -0
- package/dist/composables/Billing/usePaymentReturn.d.ts +1 -0
- package/dist/composables/uploadFeedbackAttachment.d.ts +8 -1
- package/dist/composables/useMessageList.d.ts +2 -1
- package/dist/composables.d.ts +2 -2
- package/dist/composables.js +46 -46
- package/dist/feedback.js +2 -2
- package/dist/{fetchAuthPageAboutUs-dzTSwRsB.js → fetchAuthPageAboutUs-BnKWq_TL.js} +4 -4
- package/dist/{index-BkLvw1PU.js → index-BhVwozr0.js} +1 -1
- package/dist/legalDocs/resolveAppId.d.ts +1 -1
- package/dist/main.d.ts +4 -3
- package/dist/main.js +464 -469
- package/dist/message.js +53 -52
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{useUploadCos-C8BqFPkx.js → runtime-DMCyhVcI.js} +2305 -2185
- package/dist/runtime.d.ts +22 -0
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +0 -10
- package/dist/upload/browserCosTransport.d.ts +22 -0
- package/dist/upload/browserUploadService.d.ts +21 -0
- package/dist/upload.d.ts +2 -1
- package/dist/upload.js +5 -4
- package/dist/{useAuthkitAppsAuthPageInfo-CNudJd04.js → useAuthkitAppsAuthPageInfo-Byu0yvrx.js} +18 -21
- package/dist/useAuthkitAuth-M2vTpEcb.js +272 -0
- package/dist/{useAuthkitCreateAndUpdate-BsINsI-E.js → useAuthkitCreateAndUpdate-D2_Bdazi.js} +1 -1
- package/dist/useAuthkitUsersProfile-DdUAENic.js +39 -0
- package/dist/useBillingStatusOptions-Jq6Wqfxb.js +61 -0
- package/dist/{useEnsureAuthenticated-DNkCCy_Y.js → useEnsureAuthenticated-Hel8hWLJ.js} +2 -2
- package/dist/{useLegalDocs-DQP_Yq6B.js → useLegalDocs-BOjqYRyQ.js} +25 -25
- package/dist/useMessageNotifications-AznFeFMD.js +80 -0
- package/dist/{useRoutePermission-CEiya9AM.js → useRoutePermission-BmUXTwQc.js} +2 -2
- package/dist/{useSEO-CDWxbk8B.js → useSEO-Chz4Zxuu.js} +89 -86
- package/dist/useSubscriptionCheckout-3ivcOcgC.js +353 -0
- package/dist/user.js +1 -1
- package/dist/utils/apiClients.d.ts +20 -12
- package/dist/utils/apiMiddlewares.d.ts +9 -23
- package/package.json +1 -1
- package/dist/AuthkitAppSetting-BN8-xgNq.js +0 -2674
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DrL_XBqf.js +0 -1481
- package/dist/MessageHandle-mEkCsv9e.js +0 -1173
- package/dist/PaySubscriptions-CXkEjqr2.js +0 -1326
- package/dist/Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js +0 -76
- package/dist/WidthContainer-CFMQRsCy.js +0 -721
- package/dist/apiClients-BcXOLuYu.js +0 -272
- package/dist/composables/Upload/useUploadCos.d.ts +0 -12
- package/dist/useAuthkitAuth-3m0yW6uP.js +0 -267
- package/dist/useAuthkitUsersProfile-DJlMsftY.js +0 -40
- package/dist/useBillingStatusOptions-CfHQOFNw.js +0 -71
- package/dist/useMessageNotifications-CAphguOm.js +0 -75
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +0 -368
- package/dist/utils/billingFetch.d.ts +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ref as a, computed as y } from "vue";
|
|
2
|
+
import { g as f } from "./apiClients-CR-hEwog.js";
|
|
3
|
+
function z() {
|
|
4
|
+
const n = a(!0), d = a(""), i = a(!1), g = a(!1), o = a([]), t = a({
|
|
5
|
+
total: 0,
|
|
6
|
+
current: 1,
|
|
7
|
+
pageSize: 10
|
|
8
|
+
}), r = a(!1), l = a(!1), u = a("unread"), A = [{
|
|
9
|
+
label: "未读消息",
|
|
10
|
+
key: "unread"
|
|
11
|
+
}, {
|
|
12
|
+
label: "已读消息",
|
|
13
|
+
key: "read"
|
|
14
|
+
}], v = y(() => u.value === "read");
|
|
15
|
+
function N() {
|
|
16
|
+
n.value = !0;
|
|
17
|
+
}
|
|
18
|
+
function b(e) {
|
|
19
|
+
u.value = e, t.value.current = 1, s();
|
|
20
|
+
}
|
|
21
|
+
async function p(e) {
|
|
22
|
+
r.value = !0;
|
|
23
|
+
const {
|
|
24
|
+
error: c
|
|
25
|
+
} = await f().ones.messageCenter.messageNotifications.read.post({
|
|
26
|
+
messageId: e
|
|
27
|
+
});
|
|
28
|
+
r.value = !1;
|
|
29
|
+
}
|
|
30
|
+
async function m() {
|
|
31
|
+
l.value = !0;
|
|
32
|
+
const {
|
|
33
|
+
error: e
|
|
34
|
+
} = await f().ones.messageCenter.messageNotifications.readAll.post({});
|
|
35
|
+
l.value = !1, e || s();
|
|
36
|
+
}
|
|
37
|
+
function h() {
|
|
38
|
+
o.value.length !== 0 && m();
|
|
39
|
+
}
|
|
40
|
+
async function s() {
|
|
41
|
+
i.value = !0;
|
|
42
|
+
const {
|
|
43
|
+
data: e,
|
|
44
|
+
error: c
|
|
45
|
+
} = await f().ones.messageCenter.messageNotifications.own.post({
|
|
46
|
+
current: t.value.current,
|
|
47
|
+
pageSize: t.value.pageSize,
|
|
48
|
+
where: {
|
|
49
|
+
read: v.value
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
i.value = !1, !c && e && (o.value = e.items, t.value.total = e.count, g.value = e.items.length < t.value.pageSize);
|
|
53
|
+
}
|
|
54
|
+
function w(e) {
|
|
55
|
+
d.value = e.id, n.value = !1, p(e.id);
|
|
56
|
+
}
|
|
57
|
+
return s(), {
|
|
58
|
+
isList: n,
|
|
59
|
+
id: d,
|
|
60
|
+
loading: i,
|
|
61
|
+
finished: g,
|
|
62
|
+
messageList: o,
|
|
63
|
+
pagination: t,
|
|
64
|
+
readLoading: r,
|
|
65
|
+
readAllLoading: l,
|
|
66
|
+
activeTab: u,
|
|
67
|
+
tabs: A,
|
|
68
|
+
read: v,
|
|
69
|
+
toList: N,
|
|
70
|
+
onTabChange: b,
|
|
71
|
+
messageNotificationsReadApi: p,
|
|
72
|
+
messageNotificationsReadAllApi: m,
|
|
73
|
+
readAll: h,
|
|
74
|
+
getData: s,
|
|
75
|
+
openDetails: w
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
z as u
|
|
80
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as I, computed as w, watch as S } from "vue";
|
|
2
2
|
import { useRouter as M, useRoute as T } from "vue-router";
|
|
3
|
-
import { u as k } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as L } from "./useAuthkitUsersProfile-
|
|
3
|
+
import { u as k } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
|
|
4
|
+
import { u as L } from "./useAuthkitUsersProfile-DdUAENic.js";
|
|
5
5
|
const y = I({
|
|
6
6
|
key: "",
|
|
7
7
|
name: ""
|
|
@@ -1,133 +1,136 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import
|
|
2
|
+
import "./apiClients-CR-hEwog.js";
|
|
3
3
|
import { Message as y } from "@arco-design/web-vue";
|
|
4
|
-
import { ref as
|
|
5
|
-
import {
|
|
4
|
+
import { ref as a, getCurrentInstance as I, computed as i } from "vue";
|
|
5
|
+
import { u as L } from "./runtime-DMCyhVcI.js";
|
|
6
|
+
import { useHead as v, useSeoMeta as p } from "@unhead/vue";
|
|
6
7
|
import { useRoute as P } from "vue-router";
|
|
7
8
|
function M(s) {
|
|
8
|
-
const n =
|
|
9
|
-
function
|
|
10
|
-
y.success(
|
|
9
|
+
const n = a(!1), t = a(), e = a(!1), r = a(""), m = a("");
|
|
10
|
+
function d(o) {
|
|
11
|
+
y.success(o), e.value = !1, n.value = !1, s("confirm");
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function c() {
|
|
13
14
|
e.value = !1, s("cancel");
|
|
14
15
|
}
|
|
15
16
|
return {
|
|
16
17
|
loading: n,
|
|
17
18
|
formRef: t,
|
|
18
|
-
submitSuccess:
|
|
19
|
+
submitSuccess: d,
|
|
19
20
|
modelType: r,
|
|
20
|
-
changeType:
|
|
21
|
+
changeType: m,
|
|
21
22
|
show: e,
|
|
22
|
-
handleCancel:
|
|
23
|
+
handleCancel: c
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function N(s) {
|
|
26
|
-
const n =
|
|
27
|
+
const n = a(s), t = a(!1), e = a(!1), r = a({
|
|
27
28
|
total: 0,
|
|
28
29
|
current: 1,
|
|
29
30
|
pageSize: 10,
|
|
30
31
|
showTotal: !0,
|
|
31
32
|
showPageSize: !0
|
|
32
|
-
}),
|
|
33
|
-
function
|
|
34
|
-
|
|
33
|
+
}), m = a([]), d = a(), c = a(Symbol("key")), o = a(), l = a(Symbol("key")), f = a(), g = a(Symbol("key"));
|
|
34
|
+
function w(u) {
|
|
35
|
+
d.value.setData(u, !0, "edit");
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function b(u) {
|
|
37
38
|
f.value.setData(u, !0, "view");
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
40
|
+
function h() {
|
|
41
|
+
d.value.setData(null, !0, "create");
|
|
41
42
|
}
|
|
42
|
-
const
|
|
43
|
-
r.value.current = u, r.value.pageSize =
|
|
43
|
+
const S = (u, U) => {
|
|
44
|
+
r.value.current = u, r.value.pageSize = U;
|
|
44
45
|
};
|
|
45
|
-
function
|
|
46
|
-
|
|
46
|
+
function D() {
|
|
47
|
+
c.value = Symbol("key");
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
49
|
+
function T() {
|
|
50
|
+
l.value = Symbol("key");
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
52
|
+
function k(u) {
|
|
53
|
+
o.value.setData(u, !0);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
55
|
+
function C() {
|
|
56
|
+
g.value = Symbol("key");
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
+
function O(u) {
|
|
58
59
|
f.value.setData(u, !0);
|
|
59
60
|
}
|
|
60
61
|
function R(u) {
|
|
61
62
|
y.success(u), e.value = !1;
|
|
62
63
|
}
|
|
63
64
|
return {
|
|
64
|
-
CreateAndUpdateRef:
|
|
65
|
-
CreateAndUpdateKey:
|
|
66
|
-
OperationLogRef:
|
|
67
|
-
OperationLogKey:
|
|
65
|
+
CreateAndUpdateRef: d,
|
|
66
|
+
CreateAndUpdateKey: c,
|
|
67
|
+
OperationLogRef: o,
|
|
68
|
+
OperationLogKey: l,
|
|
68
69
|
DetailsRef: f,
|
|
69
|
-
DetailsKey:
|
|
70
|
+
DetailsKey: g,
|
|
70
71
|
pagination: r,
|
|
71
72
|
title: n,
|
|
72
|
-
edit:
|
|
73
|
-
create:
|
|
74
|
-
view:
|
|
75
|
-
dataSource:
|
|
76
|
-
setPage:
|
|
77
|
-
cancel:
|
|
78
|
-
OperationLogCancel:
|
|
79
|
-
openOperationLog:
|
|
80
|
-
DetailsCancel:
|
|
81
|
-
openDetails:
|
|
73
|
+
edit: w,
|
|
74
|
+
create: h,
|
|
75
|
+
view: b,
|
|
76
|
+
dataSource: m,
|
|
77
|
+
setPage: S,
|
|
78
|
+
cancel: D,
|
|
79
|
+
OperationLogCancel: T,
|
|
80
|
+
openOperationLog: k,
|
|
81
|
+
DetailsCancel: C,
|
|
82
|
+
openDetails: O,
|
|
82
83
|
loading: t,
|
|
83
84
|
submitRemove: R,
|
|
84
85
|
removeLoading: e
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
88
|
function j() {
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
const {
|
|
90
|
+
config: s
|
|
91
|
+
} = L(), n = a([]), t = a(!1), e = a(""), r = a("");
|
|
92
|
+
async function m() {
|
|
93
|
+
t.value = !0, e.value = "";
|
|
91
94
|
try {
|
|
92
|
-
const c = await (await fetch(`${
|
|
95
|
+
const c = await (await fetch(`${s.onesPrefixUrl}/releases/latest`, {
|
|
93
96
|
method: "POST",
|
|
94
97
|
headers: {
|
|
95
98
|
"Content-Type": "application/json",
|
|
96
|
-
"app-id":
|
|
99
|
+
"app-id": s.appId
|
|
97
100
|
},
|
|
98
101
|
body: JSON.stringify({})
|
|
99
102
|
})).json();
|
|
100
|
-
|
|
103
|
+
r.value = c.version, n.value = c.downloads.map((o) => {
|
|
101
104
|
const l = {
|
|
102
|
-
id:
|
|
103
|
-
name:
|
|
104
|
-
description:
|
|
105
|
-
version:
|
|
106
|
-
updateDate:
|
|
105
|
+
id: o.id,
|
|
106
|
+
name: o.name,
|
|
107
|
+
description: o.description,
|
|
108
|
+
version: o.version,
|
|
109
|
+
updateDate: o.updateDate,
|
|
107
110
|
icon: "",
|
|
108
|
-
downloadUrl:
|
|
109
|
-
platform:
|
|
110
|
-
requirements:
|
|
111
|
+
downloadUrl: o.downloadUrl,
|
|
112
|
+
platform: o.platform,
|
|
113
|
+
requirements: o.requirements
|
|
111
114
|
};
|
|
112
|
-
return
|
|
115
|
+
return o.arch && (l.arch = o.arch), o.badge && (l.badge = o.badge), l;
|
|
113
116
|
});
|
|
114
117
|
} catch {
|
|
115
|
-
|
|
118
|
+
e.value = "获取版本信息失败,请刷新重试";
|
|
116
119
|
} finally {
|
|
117
|
-
|
|
120
|
+
t.value = !1;
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
return {
|
|
121
|
-
downloads:
|
|
122
|
-
loading:
|
|
123
|
-
error:
|
|
124
|
-
version:
|
|
125
|
-
fetchDownloads:
|
|
124
|
+
downloads: n,
|
|
125
|
+
loading: t,
|
|
126
|
+
error: e,
|
|
127
|
+
version: r,
|
|
128
|
+
fetchDownloads: m
|
|
126
129
|
};
|
|
127
130
|
}
|
|
128
131
|
function q() {
|
|
129
132
|
function s(t) {
|
|
130
|
-
|
|
133
|
+
p({
|
|
131
134
|
ogSiteName: t.siteName,
|
|
132
135
|
ogLocale: t.locale
|
|
133
136
|
});
|
|
@@ -136,30 +139,30 @@ function q() {
|
|
|
136
139
|
const {
|
|
137
140
|
title: e,
|
|
138
141
|
description: r,
|
|
139
|
-
keywords:
|
|
140
|
-
image:
|
|
141
|
-
url:
|
|
142
|
-
type:
|
|
143
|
-
} = t,
|
|
144
|
-
|
|
142
|
+
keywords: m,
|
|
143
|
+
image: d,
|
|
144
|
+
url: c,
|
|
145
|
+
type: o = "website"
|
|
146
|
+
} = t, l = r && r.length > 155 ? `${r.substring(0, 152)}...` : r;
|
|
147
|
+
v({
|
|
145
148
|
title: e,
|
|
146
|
-
link:
|
|
149
|
+
link: c ? [{
|
|
147
150
|
rel: "canonical",
|
|
148
|
-
href:
|
|
151
|
+
href: c
|
|
149
152
|
}] : []
|
|
150
|
-
}),
|
|
151
|
-
description:
|
|
152
|
-
keywords:
|
|
153
|
+
}), p({
|
|
154
|
+
description: l || r,
|
|
155
|
+
keywords: m,
|
|
153
156
|
ogTitle: e,
|
|
154
|
-
ogDescription:
|
|
155
|
-
ogType:
|
|
157
|
+
ogDescription: l || r,
|
|
158
|
+
ogType: o === "product" ? void 0 : o,
|
|
156
159
|
// product 类型不被支持,跳过
|
|
157
|
-
ogUrl:
|
|
158
|
-
ogImage:
|
|
160
|
+
ogUrl: c,
|
|
161
|
+
ogImage: d,
|
|
159
162
|
twitterCard: "summary_large_image",
|
|
160
163
|
twitterTitle: e,
|
|
161
|
-
twitterDescription:
|
|
162
|
-
twitterImage:
|
|
164
|
+
twitterDescription: l || r,
|
|
165
|
+
twitterImage: d
|
|
163
166
|
});
|
|
164
167
|
}
|
|
165
168
|
return {
|
|
@@ -168,13 +171,13 @@ function q() {
|
|
|
168
171
|
};
|
|
169
172
|
}
|
|
170
173
|
function x() {
|
|
171
|
-
if (!
|
|
174
|
+
if (!I())
|
|
172
175
|
return;
|
|
173
176
|
const s = P();
|
|
174
177
|
if (!(s != null && s.meta))
|
|
175
178
|
return;
|
|
176
179
|
const n = () => s.meta;
|
|
177
|
-
|
|
180
|
+
v({
|
|
178
181
|
title: i(() => n().title || ""),
|
|
179
182
|
link: i(() => {
|
|
180
183
|
const t = n();
|
|
@@ -183,7 +186,7 @@ function x() {
|
|
|
183
186
|
href: t.url
|
|
184
187
|
}] : [];
|
|
185
188
|
})
|
|
186
|
-
}),
|
|
189
|
+
}), p({
|
|
187
190
|
description: i(() => {
|
|
188
191
|
const e = n().description;
|
|
189
192
|
if (e)
|