@huyooo/ui 0.5.15 → 0.5.18
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-z2tnXCf6.js → AuthkitAuthModal-CPyOF0SH.js} +17 -16
- package/dist/{AuthkitAuthorize-RSe0DQNQ.js → AuthkitAuthorize-DuQ4CKWT.js} +4 -5
- package/dist/{FeedbackItem-44CGbXN_.js → FeedbackItem-DGAsK3HZ.js} +1 -1
- package/dist/{FeedbackModal-DdTqdVlw.js → FeedbackModal-5C17AhkV.js} +4 -3
- package/dist/{Menu-BKBnsDJ8.js → Menu-Cxo8Rpu3.js} +5 -6
- package/dist/{MessageHandle-Cagv57D0.js → MessageHandle-thVNUp0p.js} +1 -1
- package/dist/UserAccountMenu-Bosjhh3l.js +613 -0
- package/dist/WidthContainer-DhHq52TL.js +528 -0
- package/dist/authkit.js +3 -3
- package/dist/common.d.ts +2 -0
- package/dist/common.js +17 -15
- package/dist/components/AppLayout.vue.d.ts +9 -0
- package/dist/components/AppSidebar.vue.d.ts +9 -0
- package/dist/components/HeaderMenus.vue.d.ts +1 -1
- package/dist/composables/Authkit/useAuthMenu.d.ts +9 -6
- package/dist/composables.js +2 -2
- package/dist/feedback.js +2 -2
- package/dist/index.js +48 -47
- package/dist/message.js +1 -1
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useSEO-BLlxOmk2.js +617 -0
- package/dist/user.js +6 -7
- package/package.json +1 -1
- package/dist/UserAccountMenu-DHozw36C.js +0 -40
- package/dist/UserPanel-hGYAeWcj.js +0 -579
- package/dist/WidthContainer-6YR2TCen.js +0 -397
- package/dist/useSEO-BkqUiuvw.js +0 -589
- /package/dist/{PaySubscriptions-Bva3INxJ.js → PaySubscriptions-CnPLduJz.js} +0 -0
- /package/dist/{ReferrerReferees-g-CcDpVO.js → ReferrerReferees-B3Ek3gAn.js} +0 -0
- /package/dist/{AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js → useAuthkitAuthModal-BpOmabWi.js} +0 -0
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as M, onMounted as A, onUnmounted as E, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as S, watch as U, createVNode as $, unref as b, createBlock as B, 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 O } from "@arco-design/web-vue";
|
|
6
|
-
import { c as D } from "./UserPanel-hGYAeWcj.js";
|
|
7
|
-
import { u as K } from "./useAuthkitAppsAuthPageInfo-BifS1KOG.js";
|
|
8
|
-
import { u as R } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
|
|
9
|
-
import { a as G } from "./useAuthkitUsersProfile-zbKT0W_h.js";
|
|
10
|
-
import { a as V, f as W, w as L, c as N, b as F, d as j } from "./useSEO-BkqUiuvw.js";
|
|
11
|
-
import { useRouter as J, useRoute as Q } from "vue-router";
|
|
12
|
-
import { a as X } from "./globalConfig-C1YOJcxa.js";
|
|
13
|
-
import "@huyooo/api";
|
|
14
|
-
import "./useUploadCos-D5k1YLb7.js";
|
|
15
|
-
/* empty css */
|
|
16
|
-
/* empty css */
|
|
17
|
-
/* empty css */
|
|
18
|
-
import "@iconify/vue";
|
|
19
|
-
/* empty css */
|
|
20
|
-
/* empty css */
|
|
21
|
-
/* empty css */
|
|
22
|
-
/* empty css */
|
|
23
|
-
/* empty css */
|
|
24
|
-
const Y = {
|
|
25
|
-
class: "ContentHead"
|
|
26
|
-
}, Z = {
|
|
27
|
-
class: "title"
|
|
28
|
-
}, ee = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "description"
|
|
31
|
-
}, te = /* @__PURE__ */ m({
|
|
32
|
-
__name: "ContentHead",
|
|
33
|
-
props: {
|
|
34
|
-
title: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: !0,
|
|
37
|
-
default: () => ""
|
|
38
|
-
},
|
|
39
|
-
description: {
|
|
40
|
-
type: String,
|
|
41
|
-
required: !0,
|
|
42
|
-
default: () => ""
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
setup(o) {
|
|
46
|
-
const e = o;
|
|
47
|
-
return (s, r) => (t(), n("div", Y, [c("h1", Z, k(e.title), 1), e.description ? (t(), n("p", ee, k(e.description), 1)) : p("", !0)]));
|
|
48
|
-
}
|
|
49
|
-
}), Ye = /* @__PURE__ */ l(te, [["__scopeId", "data-v-209a7bef"]]), ne = {
|
|
50
|
-
class: "HeaderMenus"
|
|
51
|
-
}, oe = {
|
|
52
|
-
key: 0,
|
|
53
|
-
class: "desktop-menus"
|
|
54
|
-
}, se = ["onClick"], ae = {
|
|
55
|
-
key: 3,
|
|
56
|
-
class: "mobile-menu"
|
|
57
|
-
}, re = {
|
|
58
|
-
class: "mobile-menu-content"
|
|
59
|
-
}, ie = ["onClick"], ce = /* @__PURE__ */ m({
|
|
60
|
-
__name: "HeaderMenus",
|
|
61
|
-
props: {
|
|
62
|
-
menus: {
|
|
63
|
-
type: Array,
|
|
64
|
-
required: !0
|
|
65
|
-
},
|
|
66
|
-
activateKey: {
|
|
67
|
-
type: String,
|
|
68
|
-
required: !0
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
emits: ["change"],
|
|
72
|
-
setup(o, {
|
|
73
|
-
emit: e
|
|
74
|
-
}) {
|
|
75
|
-
const s = o, r = e, a = M(!1), u = M(!1);
|
|
76
|
-
function h() {
|
|
77
|
-
u.value = window.innerWidth <= 1024;
|
|
78
|
-
}
|
|
79
|
-
function g() {
|
|
80
|
-
a.value = !a.value;
|
|
81
|
-
}
|
|
82
|
-
function f() {
|
|
83
|
-
a.value = !1;
|
|
84
|
-
}
|
|
85
|
-
function v(i) {
|
|
86
|
-
r("change", i), f();
|
|
87
|
-
}
|
|
88
|
-
function _(i) {
|
|
89
|
-
return s.activateKey === i.path;
|
|
90
|
-
}
|
|
91
|
-
function w(i) {
|
|
92
|
-
r("change", i);
|
|
93
|
-
}
|
|
94
|
-
function y() {
|
|
95
|
-
h(), u.value || f();
|
|
96
|
-
}
|
|
97
|
-
return A(() => {
|
|
98
|
-
h(), window.addEventListener("resize", y);
|
|
99
|
-
}), E(() => {
|
|
100
|
-
window.removeEventListener("resize", y);
|
|
101
|
-
}), (i, z) => (t(), n("div", ne, [u.value ? p("", !0) : (t(), n("div", oe, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
|
|
102
|
-
key: I,
|
|
103
|
-
class: C(["headerLink", {
|
|
104
|
-
activate: _(d)
|
|
105
|
-
}]),
|
|
106
|
-
onClick: (T) => w(d)
|
|
107
|
-
}, k(d.name), 11, se))), 128))])), u.value ? (t(), n("button", {
|
|
108
|
-
key: 1,
|
|
109
|
-
class: C(["mobile-menu-toggle", {
|
|
110
|
-
active: a.value
|
|
111
|
-
}]),
|
|
112
|
-
"aria-label": "切换菜单",
|
|
113
|
-
onClick: g
|
|
114
|
-
}, [...z[0] || (z[0] = [c("span", {
|
|
115
|
-
class: "hamburger-line"
|
|
116
|
-
}, null, -1), c("span", {
|
|
117
|
-
class: "hamburger-line"
|
|
118
|
-
}, null, -1), c("span", {
|
|
119
|
-
class: "hamburger-line"
|
|
120
|
-
}, null, -1)])], 2)) : p("", !0), a.value ? (t(), n("div", {
|
|
121
|
-
key: 2,
|
|
122
|
-
class: "mobile-menu-overlay",
|
|
123
|
-
onClick: f
|
|
124
|
-
})) : p("", !0), a.value ? (t(), n("div", ae, [c("div", re, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
|
|
125
|
-
key: I,
|
|
126
|
-
class: C(["mobile-menu-item", {
|
|
127
|
-
activate: _(d)
|
|
128
|
-
}]),
|
|
129
|
-
onClick: (T) => v(d)
|
|
130
|
-
}, k(d.name), 11, ie))), 128))])])) : p("", !0)]));
|
|
131
|
-
}
|
|
132
|
-
}), ue = /* @__PURE__ */ l(ce, [["__scopeId", "data-v-67bf8ea1"]]), le = ["src"], de = /* @__PURE__ */ m({
|
|
133
|
-
__name: "Logo",
|
|
134
|
-
props: {
|
|
135
|
-
name: {
|
|
136
|
-
type: String,
|
|
137
|
-
required: !1,
|
|
138
|
-
default: () => "#2d2d2d"
|
|
139
|
-
},
|
|
140
|
-
icon: {
|
|
141
|
-
type: String,
|
|
142
|
-
required: !1,
|
|
143
|
-
default: () => ""
|
|
144
|
-
},
|
|
145
|
-
color: {
|
|
146
|
-
type: String,
|
|
147
|
-
required: !1,
|
|
148
|
-
default: () => "#2d2d2d"
|
|
149
|
-
},
|
|
150
|
-
fontSize: {
|
|
151
|
-
type: String,
|
|
152
|
-
required: !1,
|
|
153
|
-
default: () => "16px"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
emits: ["to"],
|
|
157
|
-
setup(o, {
|
|
158
|
-
emit: e
|
|
159
|
-
}) {
|
|
160
|
-
const s = o, r = e;
|
|
161
|
-
function a() {
|
|
162
|
-
r("to");
|
|
163
|
-
}
|
|
164
|
-
return (u, h) => (t(), n("div", {
|
|
165
|
-
class: "Logo",
|
|
166
|
-
onClick: a
|
|
167
|
-
}, [o.icon ? (t(), n("img", {
|
|
168
|
-
key: 0,
|
|
169
|
-
class: "icon",
|
|
170
|
-
src: o.icon,
|
|
171
|
-
alt: "logo",
|
|
172
|
-
loading: "lazy",
|
|
173
|
-
decoding: "async"
|
|
174
|
-
}, null, 8, le)) : p("", !0), c("div", {
|
|
175
|
-
class: "text",
|
|
176
|
-
style: S({
|
|
177
|
-
color: s.color,
|
|
178
|
-
fontSize: s.fontSize
|
|
179
|
-
})
|
|
180
|
-
}, k(o.name), 5)]));
|
|
181
|
-
}
|
|
182
|
-
}), pe = /* @__PURE__ */ l(de, [["__scopeId", "data-v-694a3ecc"]]), me = {
|
|
183
|
-
class: "HeaderCom"
|
|
184
|
-
}, fe = {
|
|
185
|
-
class: "left"
|
|
186
|
-
}, _e = {
|
|
187
|
-
class: "right"
|
|
188
|
-
}, he = /* @__PURE__ */ m({
|
|
189
|
-
__name: "Header",
|
|
190
|
-
props: {
|
|
191
|
-
menuType: {
|
|
192
|
-
default: "header"
|
|
193
|
-
},
|
|
194
|
-
showUserPanel: {
|
|
195
|
-
type: Boolean,
|
|
196
|
-
default: !0
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
setup(o) {
|
|
200
|
-
const e = o, {
|
|
201
|
-
show: s
|
|
202
|
-
} = R(), {
|
|
203
|
-
isLoggedIn: r
|
|
204
|
-
} = G(), {
|
|
205
|
-
appsData: a
|
|
206
|
-
} = K(), {
|
|
207
|
-
menus: u,
|
|
208
|
-
hasPermission: h
|
|
209
|
-
} = V(e.menuType), g = M(""), f = J(), v = Q();
|
|
210
|
-
function _() {
|
|
211
|
-
L(() => {
|
|
212
|
-
f.push({
|
|
213
|
-
path: "/"
|
|
214
|
-
}), window.scrollTo({
|
|
215
|
-
top: 0,
|
|
216
|
-
behavior: "smooth"
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
function w(y) {
|
|
221
|
-
const i = y.path;
|
|
222
|
-
if (!h(i)) {
|
|
223
|
-
r.value || (s.value = !0);
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
L(() => {
|
|
227
|
-
f.push(i), g.value = i, window.scrollTo({
|
|
228
|
-
top: 0,
|
|
229
|
-
behavior: "smooth"
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
return U(() => v.path, () => {
|
|
234
|
-
g.value = W(v.matched, e.menuType, v.path);
|
|
235
|
-
}, {
|
|
236
|
-
immediate: !0
|
|
237
|
-
}), (y, i) => (t(), n("div", me, [c("div", fe, [$(pe, {
|
|
238
|
-
icon: b(a).applicationLogoUrl,
|
|
239
|
-
name: b(a).name,
|
|
240
|
-
onTo: _
|
|
241
|
-
}, null, 8, ["icon", "name"])]), c("div", _e, [$(ue, {
|
|
242
|
-
menus: b(u),
|
|
243
|
-
activateKey: g.value,
|
|
244
|
-
onChange: w
|
|
245
|
-
}, null, 8, ["menus", "activateKey"]), e.showUserPanel ? (t(), B(D, {
|
|
246
|
-
key: 0,
|
|
247
|
-
onToHomePage: _,
|
|
248
|
-
onSignOut: _
|
|
249
|
-
})) : p("", !0)])]));
|
|
250
|
-
}
|
|
251
|
-
}), ge = /* @__PURE__ */ l(he, [["__scopeId", "data-v-48ee6be5"]]), ve = {
|
|
252
|
-
class: "body"
|
|
253
|
-
}, ye = {
|
|
254
|
-
key: 0,
|
|
255
|
-
class: "loading"
|
|
256
|
-
}, be = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", ke = /* @__PURE__ */ m({
|
|
257
|
-
__name: "DefaultLayout",
|
|
258
|
-
props: {
|
|
259
|
-
menuType: {
|
|
260
|
-
default: "header"
|
|
261
|
-
},
|
|
262
|
-
showUserPanel: {
|
|
263
|
-
type: Boolean,
|
|
264
|
-
default: !0
|
|
265
|
-
},
|
|
266
|
-
backgroundImage: {
|
|
267
|
-
default: ""
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
setup(o) {
|
|
271
|
-
const e = o, {
|
|
272
|
-
setGlobalSEO: s
|
|
273
|
-
} = N();
|
|
274
|
-
s(X);
|
|
275
|
-
const {
|
|
276
|
-
isChecking: r
|
|
277
|
-
} = F();
|
|
278
|
-
return j(), (a, u) => (t(), n("div", {
|
|
279
|
-
class: "layout",
|
|
280
|
-
style: S({
|
|
281
|
-
backgroundImage: e.backgroundImage || be,
|
|
282
|
-
backgroundAttachment: "fixed"
|
|
283
|
-
})
|
|
284
|
-
}, [$(ge, {
|
|
285
|
-
"menu-type": e.menuType,
|
|
286
|
-
"show-user-panel": e.showUserPanel
|
|
287
|
-
}, null, 8, ["menu-type", "show-user-panel"]), c("div", ve, [b(r) ? (t(), n("div", ye, [$(b(O), {
|
|
288
|
-
size: 40
|
|
289
|
-
})])) : P(a.$slots, "default", {
|
|
290
|
-
key: 1
|
|
291
|
-
}, void 0, !0)])], 4));
|
|
292
|
-
}
|
|
293
|
-
}), Ze = /* @__PURE__ */ l(ke, [["__scopeId", "data-v-690c2133"]]), Se = /* @__PURE__ */ m({
|
|
294
|
-
__name: "Gradientbackground",
|
|
295
|
-
props: {
|
|
296
|
-
width: {
|
|
297
|
-
type: String,
|
|
298
|
-
default: "100%"
|
|
299
|
-
},
|
|
300
|
-
height: {
|
|
301
|
-
type: String,
|
|
302
|
-
default: "100%"
|
|
303
|
-
},
|
|
304
|
-
zIndex: {
|
|
305
|
-
type: String,
|
|
306
|
-
default: "-1"
|
|
307
|
-
},
|
|
308
|
-
top: {
|
|
309
|
-
type: String,
|
|
310
|
-
default: "10%"
|
|
311
|
-
},
|
|
312
|
-
left: {
|
|
313
|
-
type: String,
|
|
314
|
-
default: "0%"
|
|
315
|
-
},
|
|
316
|
-
right: {
|
|
317
|
-
type: String,
|
|
318
|
-
default: "auto"
|
|
319
|
-
},
|
|
320
|
-
blur: {
|
|
321
|
-
type: String,
|
|
322
|
-
default: "0px"
|
|
323
|
-
},
|
|
324
|
-
background: {
|
|
325
|
-
type: String,
|
|
326
|
-
required: !1,
|
|
327
|
-
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%)"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
setup(o) {
|
|
331
|
-
const e = o, s = x(() => ({
|
|
332
|
-
pointerEvents: "none",
|
|
333
|
-
position: "absolute",
|
|
334
|
-
zIndex: e.zIndex,
|
|
335
|
-
width: e.width,
|
|
336
|
-
height: e.height,
|
|
337
|
-
filter: `blur(${e.blur})`
|
|
338
|
-
})), r = x(() => ({
|
|
339
|
-
width: "100%",
|
|
340
|
-
height: "100%",
|
|
341
|
-
background: e.background
|
|
342
|
-
// background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
|
|
343
|
-
// 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%)`,
|
|
344
|
-
// background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
|
|
345
|
-
}));
|
|
346
|
-
return (a, u) => (t(), n("div", {
|
|
347
|
-
class: "ellipsis",
|
|
348
|
-
style: S(s.value)
|
|
349
|
-
}, [c("div", {
|
|
350
|
-
class: "ellipsis-item",
|
|
351
|
-
style: S(r.value)
|
|
352
|
-
}, null, 4)], 4));
|
|
353
|
-
}
|
|
354
|
-
}), et = /* @__PURE__ */ l(Se, [["__scopeId", "data-v-b6461ac4"]]), $e = {
|
|
355
|
-
class: "SvgIcon"
|
|
356
|
-
}, we = ["href", "fill"], Ie = /* @__PURE__ */ m({
|
|
357
|
-
__name: "SvgIcon",
|
|
358
|
-
props: {
|
|
359
|
-
prefix: {
|
|
360
|
-
type: String,
|
|
361
|
-
required: !1,
|
|
362
|
-
default: "icon"
|
|
363
|
-
},
|
|
364
|
-
name: {
|
|
365
|
-
type: String,
|
|
366
|
-
required: !0
|
|
367
|
-
},
|
|
368
|
-
color: {
|
|
369
|
-
type: String,
|
|
370
|
-
required: !1,
|
|
371
|
-
default: "#333"
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
setup(o) {
|
|
375
|
-
const e = o, s = x(() => `#${e.prefix ?? "icon"}-${e.name}`);
|
|
376
|
-
return (r, a) => (t(), n("svg", $e, [c("use", {
|
|
377
|
-
href: s.value,
|
|
378
|
-
fill: e.color
|
|
379
|
-
}, null, 8, we)]));
|
|
380
|
-
}
|
|
381
|
-
}), tt = /* @__PURE__ */ l(Ie, [["__scopeId", "data-v-0a9de94e"]]), Ce = {}, Me = {
|
|
382
|
-
class: "WidthContainer"
|
|
383
|
-
};
|
|
384
|
-
function xe(o, e) {
|
|
385
|
-
return t(), n("div", Me, [P(o.$slots, "default", {}, void 0, !0)]);
|
|
386
|
-
}
|
|
387
|
-
const nt = /* @__PURE__ */ l(Ce, [["render", xe], ["__scopeId", "data-v-d06aac1f"]]);
|
|
388
|
-
export {
|
|
389
|
-
Ye as C,
|
|
390
|
-
Ze as D,
|
|
391
|
-
et as G,
|
|
392
|
-
ge as H,
|
|
393
|
-
pe as L,
|
|
394
|
-
tt as S,
|
|
395
|
-
nt as W,
|
|
396
|
-
ue as a
|
|
397
|
-
};
|