@huyooo/ui 0.5.8 → 0.5.9
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/{AuthkitAuthModal-DOB2R0lE.js → AuthkitAuthModal-DEVS8XfG.js} +4 -4
- package/dist/{AuthkitAuthorize-BLKbcsyH.js → AuthkitAuthorize-cnC-Hl0X.js} +2 -2
- package/dist/Contact-ppttdnNW.js +204 -0
- package/dist/{FeedbackItem-TRyk9rcU.js → FeedbackItem-44CGbXN_.js} +3 -3
- package/dist/{FeedbackModal-BJx5Bzas.js → FeedbackModal-DdTqdVlw.js} +2 -2
- package/dist/{MessageHandle-DP9rvOy4.js → MessageHandle-Cagv57D0.js} +2 -2
- package/dist/{PaySubscriptions-DyHMXC_2.js → PaySubscriptions-Bva3INxJ.js} +1 -1
- package/dist/{ReferrerReferees-CxmerF3X.js → ReferrerReferees-D3qUZ62t.js} +2 -2
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CZ8Z-NG6.js → Upload.vue_vue_type_script_setup_true_lang-9HB-tLZd.js} +2 -2
- package/dist/{UserAccountMenu-BEFQWt3O.js → UserAccountMenu-50CxuyL3.js} +1 -1
- package/dist/{UserPanel-DgSdGhj5.js → UserPanel-DHXkFUTF.js} +7 -7
- package/dist/WidthContainer-Ds90or_F.js +409 -0
- package/dist/authkit.js +4 -4
- package/dist/common/globalConfig.d.ts +12 -0
- package/dist/common.js +1 -1
- package/dist/composables/useSEO.d.ts +41 -0
- package/dist/composables.d.ts +2 -1
- package/dist/composables.js +23 -20
- package/dist/feedback.js +2 -2
- package/dist/globalConfig-C1YOJcxa.js +22 -0
- package/dist/index.js +919 -471
- package/dist/main.d.ts +1 -0
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.d.ts +0 -1
- package/dist/privateCom.js +4 -6
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-qWOtNCda.js → useAuthkitAppsAuthPageInfo-Dfj4byB5.js} +1 -1
- package/dist/{useAuthkitUsersProfile-a-kA3R2Y.js → useAuthkitUsersProfile-Bi_zM2qG.js} +1 -1
- package/dist/useDownloads-DnMYa52H.js +73 -0
- package/dist/{useMessageNotifications-B5pXqPNh.js → useMessageNotifications-DSRanuRe.js} +1 -1
- package/dist/useSEO-BAkykYVP.js +399 -0
- package/dist/{useUploadCos-yeMY5Xn0.js → useUploadCos-D5k1YLb7.js} +1 -1
- package/dist/user.js +2 -2
- package/package.json +1 -1
- package/dist/Contact-BLWzIAS4.js +0 -418
- package/dist/WidthContainer-3fyX6xI4.js +0 -381
- package/dist/components/PrivateCom/useSEO.d.ts +0 -71
- package/dist/globalConfig-DKn-cF9c.js +0 -17
- package/dist/useDownloads-CHe228Vf.js +0 -87
- package/dist/useRoutePermission-BKg7oQTj.js +0 -120
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as M, onMounted as A, onUnmounted as U, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as S, watch as B, createVNode as $, unref as b, createBlock as D, renderSlot as P, computed as x } from "vue";
|
|
2
|
-
import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
import { Spin as E } from "@arco-design/web-vue";
|
|
6
|
-
import { c as K } from "./UserPanel-DgSdGhj5.js";
|
|
7
|
-
import { u as R } from "./useAuthkitAppsAuthPageInfo-qWOtNCda.js";
|
|
8
|
-
import { u as V } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
|
|
9
|
-
import { a as W } from "./useAuthkitUsersProfile-a-kA3R2Y.js";
|
|
10
|
-
import { u as G, f as N, w as L, a as O } from "./useRoutePermission-BKg7oQTj.js";
|
|
11
|
-
import { useRouter as F, useRoute as j } from "vue-router";
|
|
12
|
-
const J = {
|
|
13
|
-
class: "ContentHead"
|
|
14
|
-
}, Q = {
|
|
15
|
-
class: "title"
|
|
16
|
-
}, X = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "description"
|
|
19
|
-
}, Y = /* @__PURE__ */ f({
|
|
20
|
-
__name: "ContentHead",
|
|
21
|
-
props: {
|
|
22
|
-
title: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: !0,
|
|
25
|
-
default: () => ""
|
|
26
|
-
},
|
|
27
|
-
description: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: !0,
|
|
30
|
-
default: () => ""
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
setup(o) {
|
|
34
|
-
const e = o;
|
|
35
|
-
return (s, r) => (t(), n("div", J, [c("h1", Q, k(e.title), 1), e.description ? (t(), n("p", X, k(e.description), 1)) : p("", !0)]));
|
|
36
|
-
}
|
|
37
|
-
}), Be = /* @__PURE__ */ l(Y, [["__scopeId", "data-v-209a7bef"]]), Z = {
|
|
38
|
-
class: "HeaderMenus"
|
|
39
|
-
}, ee = {
|
|
40
|
-
key: 0,
|
|
41
|
-
class: "desktop-menus"
|
|
42
|
-
}, te = ["onClick"], ne = {
|
|
43
|
-
key: 3,
|
|
44
|
-
class: "mobile-menu"
|
|
45
|
-
}, oe = {
|
|
46
|
-
class: "mobile-menu-content"
|
|
47
|
-
}, se = ["onClick"], ae = /* @__PURE__ */ f({
|
|
48
|
-
__name: "HeaderMenus",
|
|
49
|
-
props: {
|
|
50
|
-
menus: {
|
|
51
|
-
type: Array,
|
|
52
|
-
required: !0
|
|
53
|
-
},
|
|
54
|
-
activateKey: {
|
|
55
|
-
type: String,
|
|
56
|
-
required: !0
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
emits: ["change"],
|
|
60
|
-
setup(o, {
|
|
61
|
-
emit: e
|
|
62
|
-
}) {
|
|
63
|
-
const s = o, r = e, a = M(!1), u = M(!1);
|
|
64
|
-
function h() {
|
|
65
|
-
u.value = window.innerWidth <= 1024;
|
|
66
|
-
}
|
|
67
|
-
function g() {
|
|
68
|
-
a.value = !a.value;
|
|
69
|
-
}
|
|
70
|
-
function m() {
|
|
71
|
-
a.value = !1;
|
|
72
|
-
}
|
|
73
|
-
function v(i) {
|
|
74
|
-
r("change", i), m();
|
|
75
|
-
}
|
|
76
|
-
function _(i) {
|
|
77
|
-
return s.activateKey === i.path;
|
|
78
|
-
}
|
|
79
|
-
function w(i) {
|
|
80
|
-
r("change", i);
|
|
81
|
-
}
|
|
82
|
-
function y() {
|
|
83
|
-
h(), u.value || m();
|
|
84
|
-
}
|
|
85
|
-
return A(() => {
|
|
86
|
-
h(), window.addEventListener("resize", y);
|
|
87
|
-
}), U(() => {
|
|
88
|
-
window.removeEventListener("resize", y);
|
|
89
|
-
}), (i, z) => (t(), n("div", Z, [u.value ? p("", !0) : (t(), n("div", ee, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
|
|
90
|
-
key: I,
|
|
91
|
-
class: C(["headerLink", {
|
|
92
|
-
activate: _(d)
|
|
93
|
-
}]),
|
|
94
|
-
onClick: (T) => w(d)
|
|
95
|
-
}, k(d.name), 11, te))), 128))])), u.value ? (t(), n("button", {
|
|
96
|
-
key: 1,
|
|
97
|
-
class: C(["mobile-menu-toggle", {
|
|
98
|
-
active: a.value
|
|
99
|
-
}]),
|
|
100
|
-
"aria-label": "切换菜单",
|
|
101
|
-
onClick: g
|
|
102
|
-
}, [...z[0] || (z[0] = [c("span", {
|
|
103
|
-
class: "hamburger-line"
|
|
104
|
-
}, null, -1), c("span", {
|
|
105
|
-
class: "hamburger-line"
|
|
106
|
-
}, null, -1), c("span", {
|
|
107
|
-
class: "hamburger-line"
|
|
108
|
-
}, null, -1)])], 2)) : p("", !0), a.value ? (t(), n("div", {
|
|
109
|
-
key: 2,
|
|
110
|
-
class: "mobile-menu-overlay",
|
|
111
|
-
onClick: m
|
|
112
|
-
})) : p("", !0), a.value ? (t(), n("div", ne, [c("div", oe, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
|
|
113
|
-
key: I,
|
|
114
|
-
class: C(["mobile-menu-item", {
|
|
115
|
-
activate: _(d)
|
|
116
|
-
}]),
|
|
117
|
-
onClick: (T) => v(d)
|
|
118
|
-
}, k(d.name), 11, se))), 128))])])) : p("", !0)]));
|
|
119
|
-
}
|
|
120
|
-
}), re = /* @__PURE__ */ l(ae, [["__scopeId", "data-v-67bf8ea1"]]), ie = ["src"], ce = /* @__PURE__ */ f({
|
|
121
|
-
__name: "Logo",
|
|
122
|
-
props: {
|
|
123
|
-
name: {
|
|
124
|
-
type: String,
|
|
125
|
-
required: !1,
|
|
126
|
-
default: () => "#2d2d2d"
|
|
127
|
-
},
|
|
128
|
-
icon: {
|
|
129
|
-
type: String,
|
|
130
|
-
required: !1,
|
|
131
|
-
default: () => ""
|
|
132
|
-
},
|
|
133
|
-
color: {
|
|
134
|
-
type: String,
|
|
135
|
-
required: !1,
|
|
136
|
-
default: () => "#2d2d2d"
|
|
137
|
-
},
|
|
138
|
-
fontSize: {
|
|
139
|
-
type: String,
|
|
140
|
-
required: !1,
|
|
141
|
-
default: () => "16px"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
emits: ["to"],
|
|
145
|
-
setup(o, {
|
|
146
|
-
emit: e
|
|
147
|
-
}) {
|
|
148
|
-
const s = o, r = e;
|
|
149
|
-
function a() {
|
|
150
|
-
r("to");
|
|
151
|
-
}
|
|
152
|
-
return (u, h) => (t(), n("div", {
|
|
153
|
-
class: "Logo",
|
|
154
|
-
onClick: a
|
|
155
|
-
}, [o.icon ? (t(), n("img", {
|
|
156
|
-
key: 0,
|
|
157
|
-
class: "icon",
|
|
158
|
-
src: o.icon,
|
|
159
|
-
alt: "logo",
|
|
160
|
-
loading: "lazy",
|
|
161
|
-
decoding: "async"
|
|
162
|
-
}, null, 8, ie)) : p("", !0), c("div", {
|
|
163
|
-
class: "text",
|
|
164
|
-
style: S({
|
|
165
|
-
color: s.color,
|
|
166
|
-
fontSize: s.fontSize
|
|
167
|
-
})
|
|
168
|
-
}, k(o.name), 5)]));
|
|
169
|
-
}
|
|
170
|
-
}), ue = /* @__PURE__ */ l(ce, [["__scopeId", "data-v-694a3ecc"]]), le = {
|
|
171
|
-
class: "HeaderCom"
|
|
172
|
-
}, de = {
|
|
173
|
-
class: "left"
|
|
174
|
-
}, pe = {
|
|
175
|
-
class: "right"
|
|
176
|
-
}, fe = /* @__PURE__ */ f({
|
|
177
|
-
__name: "Header",
|
|
178
|
-
props: {
|
|
179
|
-
menuType: {
|
|
180
|
-
default: "header"
|
|
181
|
-
},
|
|
182
|
-
showUserPanel: {
|
|
183
|
-
type: Boolean,
|
|
184
|
-
default: !0
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
setup(o) {
|
|
188
|
-
const e = o, {
|
|
189
|
-
show: s
|
|
190
|
-
} = V(), {
|
|
191
|
-
isLoggedIn: r
|
|
192
|
-
} = W(), {
|
|
193
|
-
appsData: a
|
|
194
|
-
} = R(), {
|
|
195
|
-
menus: u,
|
|
196
|
-
hasPermission: h
|
|
197
|
-
} = G(e.menuType), g = M(""), m = F(), v = j();
|
|
198
|
-
function _() {
|
|
199
|
-
L(() => {
|
|
200
|
-
m.push({
|
|
201
|
-
path: "/"
|
|
202
|
-
}), window.scrollTo({
|
|
203
|
-
top: 0,
|
|
204
|
-
behavior: "smooth"
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
function w(y) {
|
|
209
|
-
const i = y.path;
|
|
210
|
-
if (!h(i)) {
|
|
211
|
-
r.value || (s.value = !0);
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
L(() => {
|
|
215
|
-
m.push(i), g.value = i, window.scrollTo({
|
|
216
|
-
top: 0,
|
|
217
|
-
behavior: "smooth"
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
return B(() => v.path, () => {
|
|
222
|
-
g.value = N(v.matched, e.menuType, v.path);
|
|
223
|
-
}, {
|
|
224
|
-
immediate: !0
|
|
225
|
-
}), (y, i) => (t(), n("div", le, [c("div", de, [$(ue, {
|
|
226
|
-
icon: b(a).applicationLogoUrl,
|
|
227
|
-
name: b(a).name,
|
|
228
|
-
onTo: _
|
|
229
|
-
}, null, 8, ["icon", "name"])]), c("div", pe, [$(re, {
|
|
230
|
-
menus: b(u),
|
|
231
|
-
activateKey: g.value,
|
|
232
|
-
onChange: w
|
|
233
|
-
}, null, 8, ["menus", "activateKey"]), e.showUserPanel ? (t(), D(K, {
|
|
234
|
-
key: 0,
|
|
235
|
-
onToHomePage: _,
|
|
236
|
-
onSignOut: _
|
|
237
|
-
})) : p("", !0)])]));
|
|
238
|
-
}
|
|
239
|
-
}), me = /* @__PURE__ */ l(fe, [["__scopeId", "data-v-2225e367"]]), _e = {
|
|
240
|
-
class: "body"
|
|
241
|
-
}, he = {
|
|
242
|
-
key: 0,
|
|
243
|
-
class: "loading"
|
|
244
|
-
}, ge = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", ve = /* @__PURE__ */ f({
|
|
245
|
-
__name: "DefaultLayout",
|
|
246
|
-
props: {
|
|
247
|
-
menuType: {
|
|
248
|
-
default: "header"
|
|
249
|
-
},
|
|
250
|
-
showUserPanel: {
|
|
251
|
-
type: Boolean,
|
|
252
|
-
default: !0
|
|
253
|
-
},
|
|
254
|
-
backgroundImage: {
|
|
255
|
-
default: ""
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
setup(o) {
|
|
259
|
-
const e = o, {
|
|
260
|
-
isChecking: s
|
|
261
|
-
} = O();
|
|
262
|
-
return (r, a) => (t(), n("div", {
|
|
263
|
-
class: "layout",
|
|
264
|
-
style: S({
|
|
265
|
-
backgroundImage: e.backgroundImage || ge,
|
|
266
|
-
backgroundAttachment: "fixed"
|
|
267
|
-
})
|
|
268
|
-
}, [$(me, {
|
|
269
|
-
"menu-type": e.menuType,
|
|
270
|
-
"show-user-panel": e.showUserPanel
|
|
271
|
-
}, null, 8, ["menu-type", "show-user-panel"]), c("div", _e, [b(s) ? (t(), n("div", he, [$(b(E), {
|
|
272
|
-
size: 40
|
|
273
|
-
})])) : P(r.$slots, "default", {
|
|
274
|
-
key: 1
|
|
275
|
-
}, void 0, !0)])], 4));
|
|
276
|
-
}
|
|
277
|
-
}), De = /* @__PURE__ */ l(ve, [["__scopeId", "data-v-0289e975"]]), ye = /* @__PURE__ */ f({
|
|
278
|
-
__name: "Gradientbackground",
|
|
279
|
-
props: {
|
|
280
|
-
width: {
|
|
281
|
-
type: String,
|
|
282
|
-
default: "100%"
|
|
283
|
-
},
|
|
284
|
-
height: {
|
|
285
|
-
type: String,
|
|
286
|
-
default: "100%"
|
|
287
|
-
},
|
|
288
|
-
zIndex: {
|
|
289
|
-
type: String,
|
|
290
|
-
default: "-1"
|
|
291
|
-
},
|
|
292
|
-
top: {
|
|
293
|
-
type: String,
|
|
294
|
-
default: "10%"
|
|
295
|
-
},
|
|
296
|
-
left: {
|
|
297
|
-
type: String,
|
|
298
|
-
default: "0%"
|
|
299
|
-
},
|
|
300
|
-
right: {
|
|
301
|
-
type: String,
|
|
302
|
-
default: "auto"
|
|
303
|
-
},
|
|
304
|
-
blur: {
|
|
305
|
-
type: String,
|
|
306
|
-
default: "0px"
|
|
307
|
-
},
|
|
308
|
-
background: {
|
|
309
|
-
type: String,
|
|
310
|
-
required: !1,
|
|
311
|
-
default: () => "linear-gradient(180deg, rgb(0 225 10 / 10%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)"
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
setup(o) {
|
|
315
|
-
const e = o, s = x(() => ({
|
|
316
|
-
pointerEvents: "none",
|
|
317
|
-
position: "absolute",
|
|
318
|
-
zIndex: e.zIndex,
|
|
319
|
-
width: e.width,
|
|
320
|
-
height: e.height,
|
|
321
|
-
filter: `blur(${e.blur})`
|
|
322
|
-
})), r = x(() => ({
|
|
323
|
-
width: "100%",
|
|
324
|
-
height: "100%",
|
|
325
|
-
background: e.background
|
|
326
|
-
// background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
|
|
327
|
-
// background: `linear-gradient(180deg, rgb(0 225 10 / 63%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)`,
|
|
328
|
-
// background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
|
|
329
|
-
}));
|
|
330
|
-
return (a, u) => (t(), n("div", {
|
|
331
|
-
class: "ellipsis",
|
|
332
|
-
style: S(s.value)
|
|
333
|
-
}, [c("div", {
|
|
334
|
-
class: "ellipsis-item",
|
|
335
|
-
style: S(r.value)
|
|
336
|
-
}, null, 4)], 4));
|
|
337
|
-
}
|
|
338
|
-
}), Ee = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-b6461ac4"]]), be = {
|
|
339
|
-
class: "SvgIcon"
|
|
340
|
-
}, ke = ["href", "fill"], Se = /* @__PURE__ */ f({
|
|
341
|
-
__name: "SvgIcon",
|
|
342
|
-
props: {
|
|
343
|
-
prefix: {
|
|
344
|
-
type: String,
|
|
345
|
-
required: !1,
|
|
346
|
-
default: "icon"
|
|
347
|
-
},
|
|
348
|
-
name: {
|
|
349
|
-
type: String,
|
|
350
|
-
required: !0
|
|
351
|
-
},
|
|
352
|
-
color: {
|
|
353
|
-
type: String,
|
|
354
|
-
required: !1,
|
|
355
|
-
default: "#333"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
setup(o) {
|
|
359
|
-
const e = o, s = x(() => `#${e.prefix ?? "icon"}-${e.name}`);
|
|
360
|
-
return (r, a) => (t(), n("svg", be, [c("use", {
|
|
361
|
-
href: s.value,
|
|
362
|
-
fill: e.color
|
|
363
|
-
}, null, 8, ke)]));
|
|
364
|
-
}
|
|
365
|
-
}), Ke = /* @__PURE__ */ l(Se, [["__scopeId", "data-v-0a9de94e"]]), $e = {}, we = {
|
|
366
|
-
class: "WidthContainer"
|
|
367
|
-
};
|
|
368
|
-
function Ie(o, e) {
|
|
369
|
-
return t(), n("div", we, [P(o.$slots, "default", {}, void 0, !0)]);
|
|
370
|
-
}
|
|
371
|
-
const Re = /* @__PURE__ */ l($e, [["render", Ie], ["__scopeId", "data-v-d06aac1f"]]);
|
|
372
|
-
export {
|
|
373
|
-
Be as C,
|
|
374
|
-
De as D,
|
|
375
|
-
Ee as G,
|
|
376
|
-
me as H,
|
|
377
|
-
ue as L,
|
|
378
|
-
Ke as S,
|
|
379
|
-
Re as W,
|
|
380
|
-
re as a
|
|
381
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
interface SEOConfig {
|
|
2
|
-
title?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
keywords?: string;
|
|
5
|
-
image?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
type?: 'website' | 'article' | 'product';
|
|
8
|
-
publishedTime?: string;
|
|
9
|
-
modifiedTime?: string;
|
|
10
|
-
author?: string;
|
|
11
|
-
section?: string;
|
|
12
|
-
tags?: string[];
|
|
13
|
-
}
|
|
14
|
-
export declare function useSEO(config: SEOConfig): void;
|
|
15
|
-
export declare const pageSEO: {
|
|
16
|
-
home: {
|
|
17
|
-
title: string;
|
|
18
|
-
description: string;
|
|
19
|
-
keywords: string;
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
22
|
-
features: {
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
keywords: string;
|
|
26
|
-
url: string;
|
|
27
|
-
};
|
|
28
|
-
download: {
|
|
29
|
-
title: string;
|
|
30
|
-
description: string;
|
|
31
|
-
keywords: string;
|
|
32
|
-
url: string;
|
|
33
|
-
};
|
|
34
|
-
docs: {
|
|
35
|
-
title: string;
|
|
36
|
-
description: string;
|
|
37
|
-
keywords: string;
|
|
38
|
-
url: string;
|
|
39
|
-
};
|
|
40
|
-
pricing: {
|
|
41
|
-
title: string;
|
|
42
|
-
description: string;
|
|
43
|
-
keywords: string;
|
|
44
|
-
url: string;
|
|
45
|
-
};
|
|
46
|
-
about: {
|
|
47
|
-
title: string;
|
|
48
|
-
description: string;
|
|
49
|
-
keywords: string;
|
|
50
|
-
url: string;
|
|
51
|
-
};
|
|
52
|
-
contact: {
|
|
53
|
-
title: string;
|
|
54
|
-
description: string;
|
|
55
|
-
keywords: string;
|
|
56
|
-
url: string;
|
|
57
|
-
};
|
|
58
|
-
introduce: {
|
|
59
|
-
title: string;
|
|
60
|
-
description: string;
|
|
61
|
-
keywords: string;
|
|
62
|
-
url: string;
|
|
63
|
-
};
|
|
64
|
-
error: {
|
|
65
|
-
title: string;
|
|
66
|
-
description: string;
|
|
67
|
-
keywords: string;
|
|
68
|
-
url: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
let c = {
|
|
2
|
-
appId: "",
|
|
3
|
-
prefixUrl: "",
|
|
4
|
-
authPrefixUrl: "",
|
|
5
|
-
avatarBucketId: "68350c206888f565dc7d09e9",
|
|
6
|
-
feedbackBucketId: "6826e4db6888f565dc775dce",
|
|
7
|
-
bucket: "ones-1358549778",
|
|
8
|
-
region: "ap-beijing",
|
|
9
|
-
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
10
|
-
};
|
|
11
|
-
function a(e) {
|
|
12
|
-
c.appId = e.appId, c.prefixUrl = e.prefixUrl, c.authPrefixUrl = e.authPrefixUrl, e.avatarBucketId !== void 0 && (c.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (c.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (c.bucket = e.bucket), e.region !== void 0 && (c.region = e.region), e.web3formsAccessKey !== void 0 && (c.web3formsAccessKey = e.web3formsAccessKey);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
c as g,
|
|
16
|
-
a as s
|
|
17
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { Message as h } from "@arco-design/web-vue";
|
|
4
|
-
import { ref as n } from "vue";
|
|
5
|
-
function D(a) {
|
|
6
|
-
const s = n(!1), t = n(), l = n(!1), i = n(""), f = n("");
|
|
7
|
-
function e(o) {
|
|
8
|
-
h.success(o), l.value = !1, s.value = !1, a("confirm");
|
|
9
|
-
}
|
|
10
|
-
function c() {
|
|
11
|
-
l.value = !1, console.log("handleClose"), a("cancel");
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
loading: s,
|
|
15
|
-
formRef: t,
|
|
16
|
-
submitSuccess: e,
|
|
17
|
-
modelType: i,
|
|
18
|
-
changeType: f,
|
|
19
|
-
show: l,
|
|
20
|
-
handleCancel: c
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
const d = n({
|
|
24
|
-
key: "",
|
|
25
|
-
name: ""
|
|
26
|
-
});
|
|
27
|
-
function y() {
|
|
28
|
-
function a(s, t) {
|
|
29
|
-
d.value.key = s, d.value.name = t;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
activeDoc: d,
|
|
33
|
-
setActiveDoc: a
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
let u = null, v = "", r = null;
|
|
37
|
-
function b() {
|
|
38
|
-
const a = n([]), s = n(!1), t = n(""), l = n("");
|
|
39
|
-
async function i({
|
|
40
|
-
versionApi: f
|
|
41
|
-
}) {
|
|
42
|
-
if (u) {
|
|
43
|
-
a.value = u, l.value = v;
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (r) {
|
|
47
|
-
await r, a.value = u || [], l.value = v;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
s.value = !0, t.value = "", r = fetch(f).then((e) => {
|
|
51
|
-
if (!e.ok)
|
|
52
|
-
throw new Error(`HTTP error! status: ${e.status}`);
|
|
53
|
-
return e.json();
|
|
54
|
-
}).then((e) => {
|
|
55
|
-
const c = e.downloads.map((o) => ({
|
|
56
|
-
id: o.id,
|
|
57
|
-
name: o.name,
|
|
58
|
-
description: o.description,
|
|
59
|
-
version: o.version,
|
|
60
|
-
updateDate: o.updateDate,
|
|
61
|
-
icon: "",
|
|
62
|
-
// 将在组件中动态设置
|
|
63
|
-
downloadUrl: o.downloadUrl,
|
|
64
|
-
platform: o.platform,
|
|
65
|
-
requirements: o.requirements,
|
|
66
|
-
badge: o.badge
|
|
67
|
-
}));
|
|
68
|
-
u = c, v = e.version, a.value = c, l.value = e.version;
|
|
69
|
-
}).catch((e) => {
|
|
70
|
-
t.value = e.message || "获取版本信息失败", console.error("Failed to fetch downloads:", e);
|
|
71
|
-
}).finally(() => {
|
|
72
|
-
s.value = !1, r = null;
|
|
73
|
-
}), await r;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
downloads: a,
|
|
77
|
-
loading: s,
|
|
78
|
-
error: t,
|
|
79
|
-
version: l,
|
|
80
|
-
fetchDownloads: i
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
export {
|
|
84
|
-
y as a,
|
|
85
|
-
b,
|
|
86
|
-
D as u
|
|
87
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { computed as f, ref as R, watch as b } from "vue";
|
|
2
|
-
import { useRouter as h, useRoute as y } from "vue-router";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
import "@arco-design/web-vue";
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
import "./useUploadCos-yeMY5Xn0.js";
|
|
10
|
-
import "@huyooo/api";
|
|
11
|
-
import "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
|
|
12
|
-
import { a as v } from "./useAuthkitUsersProfile-a-kA3R2Y.js";
|
|
13
|
-
import "@iconify/vue";
|
|
14
|
-
/* empty css */
|
|
15
|
-
import { u as d } from "./useAuthkitAppsAuthPageInfo-qWOtNCda.js";
|
|
16
|
-
/* empty css */
|
|
17
|
-
/* empty css */
|
|
18
|
-
/* empty css */
|
|
19
|
-
/* empty css */
|
|
20
|
-
function z(n, r = "default") {
|
|
21
|
-
const o = document;
|
|
22
|
-
if (o && typeof o.startViewTransition == "function") {
|
|
23
|
-
const i = document.body;
|
|
24
|
-
i.classList.add(`vt-${r}`), o.startViewTransition(() => {
|
|
25
|
-
try {
|
|
26
|
-
n();
|
|
27
|
-
} catch {
|
|
28
|
-
}
|
|
29
|
-
}).finished.finally(() => {
|
|
30
|
-
i.classList.remove(`vt-${r}`);
|
|
31
|
-
});
|
|
32
|
-
} else
|
|
33
|
-
n();
|
|
34
|
-
}
|
|
35
|
-
function B(n, r, o) {
|
|
36
|
-
const i = n.find((a) => {
|
|
37
|
-
var c;
|
|
38
|
-
return ((c = a.meta) == null ? void 0 : c.menuType) === r;
|
|
39
|
-
});
|
|
40
|
-
return (i == null ? void 0 : i.path) || o;
|
|
41
|
-
}
|
|
42
|
-
function E(n) {
|
|
43
|
-
const r = h(), {
|
|
44
|
-
appsData: o
|
|
45
|
-
} = d(), {
|
|
46
|
-
isLoggedIn: i,
|
|
47
|
-
userProfile: a
|
|
48
|
-
} = v(), c = f(() => {
|
|
49
|
-
var t;
|
|
50
|
-
return !i.value || !a.value ? [] : ((t = a.value.permissions) == null ? void 0 : t.map((e) => e.permissionKey)) || [];
|
|
51
|
-
});
|
|
52
|
-
function u(t) {
|
|
53
|
-
return (o.value.publicRoutes || []).some((s) => s.permissionKey === t);
|
|
54
|
-
}
|
|
55
|
-
function m(t) {
|
|
56
|
-
return i.value ? c.value.includes(t) : !1;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
menus: f(() => r.getRoutes().filter((e) => {
|
|
60
|
-
const s = e.meta;
|
|
61
|
-
return n ? s.menuType === n : !!s.menuType;
|
|
62
|
-
}).filter((e) => {
|
|
63
|
-
const s = e.path;
|
|
64
|
-
return u(s) ? !0 : m(s);
|
|
65
|
-
}).map((e) => {
|
|
66
|
-
const s = e.meta;
|
|
67
|
-
return {
|
|
68
|
-
name: s.menuName || e.path,
|
|
69
|
-
path: e.path,
|
|
70
|
-
key: e.path,
|
|
71
|
-
icon: s.menuIcon || s.icon || "Header/Help"
|
|
72
|
-
};
|
|
73
|
-
})),
|
|
74
|
-
isRoutePublic: u,
|
|
75
|
-
hasPermission: (t) => u(t) ? !0 : m(t),
|
|
76
|
-
isLoggedIn: i
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function F() {
|
|
80
|
-
const n = h(), r = y(), {
|
|
81
|
-
appsAuthPageInfoApi: o,
|
|
82
|
-
appsData: i
|
|
83
|
-
} = d(), {
|
|
84
|
-
isLoggedIn: a,
|
|
85
|
-
userProfile: c
|
|
86
|
-
} = v(), u = R(!1);
|
|
87
|
-
function m(e) {
|
|
88
|
-
return (i.value.publicRoutes || []).some((p) => p.permissionKey === e);
|
|
89
|
-
}
|
|
90
|
-
function l(e) {
|
|
91
|
-
var p;
|
|
92
|
-
return !a.value || !c.value ? !1 : (((p = c.value.permissions) == null ? void 0 : p.map((P) => P.permissionKey)) || []).includes(e);
|
|
93
|
-
}
|
|
94
|
-
function t(e) {
|
|
95
|
-
if (u.value = !0, m(e)) {
|
|
96
|
-
u.value = !1;
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (!a.value) {
|
|
100
|
-
n.replace("/"), u.value = !1;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
l(e) || n.replace("/"), u.value = !1;
|
|
104
|
-
}
|
|
105
|
-
return o(() => {
|
|
106
|
-
t(r.path), b(() => r.path, (e) => {
|
|
107
|
-
t(e);
|
|
108
|
-
});
|
|
109
|
-
}), {
|
|
110
|
-
isChecking: u,
|
|
111
|
-
isRoutePublic: m,
|
|
112
|
-
hasPermission: l
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
export {
|
|
116
|
-
F as a,
|
|
117
|
-
B as f,
|
|
118
|
-
E as u,
|
|
119
|
-
z as w
|
|
120
|
-
};
|