@huyooo/ui 0.4.90 → 0.5.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.
Files changed (44) hide show
  1. package/dist/{AuthkitAuthModal-4u1nye5k.js → AuthkitAuthModal-cEi5Hm14.js} +13 -15
  2. package/dist/{useAuthkitAppsAuthPageInfo-Dy0Snk6O.js → AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js} +1 -1
  3. package/dist/{AuthkitAuthorize-ScwqrsOC.js → AuthkitAuthorize-DksJZktr.js} +9 -8
  4. package/dist/{Clipboard-Bful1lNJ.js → Clipboard-CGm0G1dN.js} +1 -1
  5. package/dist/{CustomTable-JflAYS8i.js → CustomTable-kfI18phy.js} +16 -17
  6. package/dist/{FeedbackItem-B_EUApFA.js → FeedbackItem-Day3rfSw.js} +14 -15
  7. package/dist/{FeedbackModal-D1htK7xY.js → FeedbackModal-CsRXm-MY.js} +8 -11
  8. package/dist/{Menu-Cxo8Rpu3.js → Menu-BKBnsDJ8.js} +6 -5
  9. package/dist/{MessageHandle-DkNum5-u.js → MessageHandle-DqH_478k.js} +18 -20
  10. package/dist/{PaySubscriptions-l6VlqvBy.js → PaySubscriptions-Dp8y1fdJ.js} +10 -11
  11. package/dist/{ReferrerReferees-BclAtmgX.js → ReferrerReferees-xIXZglpy.js} +19 -20
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js → Upload.vue_vue_type_script_setup_true_lang-CxGZSDoo.js} +10 -11
  13. package/dist/UserAccountMenu-DD3zoOBd.js +40 -0
  14. package/dist/UserPanel-C1NGdsFk.js +580 -0
  15. package/dist/WidthContainer-D9JWjdkk.js +376 -0
  16. package/dist/authkit.js +4 -4
  17. package/dist/common.d.ts +2 -0
  18. package/dist/common.js +14 -12
  19. package/dist/components/DefaultLayout.vue.d.ts +9 -0
  20. package/dist/components/Header.vue.d.ts +9 -0
  21. package/dist/composables/Authkit/useAuthMenu.d.ts +13 -0
  22. package/dist/composables/Authkit/useRoutePermission.d.ts +5 -0
  23. package/dist/composables.d.ts +2 -0
  24. package/dist/composables.js +19 -15
  25. package/dist/feedback.js +3 -3
  26. package/dist/index.js +180 -173
  27. package/dist/message.js +2 -2
  28. package/dist/pay.js +1 -1
  29. package/dist/referrer.js +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/styles.d.ts +0 -1
  32. package/dist/upload.js +2 -2
  33. package/dist/{useAuthkitUsersProfile-DNOB_Kuk.js → useAuthkitUsersProfile-D2UZf7n0.js} +1 -1
  34. package/dist/useDownloads-CHe228Vf.js +87 -0
  35. package/dist/{useMessageNotifications-DOH1MS61.js → useMessageNotifications-BahKMcby.js} +1 -1
  36. package/dist/useRoutePermission-Uxu5S3m1.js +119 -0
  37. package/dist/{useUploadCos-B5P_PDcy.js → useUploadCos-DNKp_9xt.js} +2 -2
  38. package/dist/user.js +7 -6
  39. package/package.json +3 -2
  40. package/dist/UserAccountMenu-DDyh3Rjo.js +0 -615
  41. package/dist/WidthContainer-CfR77puD.js +0 -263
  42. package/dist/useDownloads-BkDo_wOR.js +0 -103
  43. /package/dist/{globalConfig-DZIhLe1R.js → index-DZIhLe1R.js} +0 -0
  44. /package/dist/{_commonjsHelpers-DaMA6jEr.js → index-DaMA6jEr.js} +0 -0
@@ -1,263 +0,0 @@
1
- import { defineComponent as f, createElementBlock as t, openBlock as n, createElementVNode as a, createCommentVNode as d, toDisplayString as _, computed as y, normalizeStyle as b, ref as C, onMounted as L, onUnmounted as H, Fragment as x, renderList as I, normalizeClass as h, renderSlot as E } from "vue";
2
- import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const W = {
4
- class: "ContentHead"
5
- }, G = {
6
- class: "title"
7
- }, B = {
8
- key: 0,
9
- class: "description"
10
- }, K = /* @__PURE__ */ f({
11
- __name: "ContentHead",
12
- props: {
13
- title: {
14
- type: String,
15
- required: !0,
16
- default: () => ""
17
- },
18
- description: {
19
- type: String,
20
- required: !0,
21
- default: () => ""
22
- }
23
- },
24
- setup(s) {
25
- const e = s;
26
- return (i, r) => (n(), t("div", W, [a("h1", G, _(e.title), 1), e.description ? (n(), t("p", B, _(e.description), 1)) : d("", !0)]));
27
- }
28
- }), ne = /* @__PURE__ */ p(K, [["__scopeId", "data-v-209a7bef"]]), N = /* @__PURE__ */ f({
29
- __name: "Gradientbackground",
30
- props: {
31
- width: {
32
- type: String,
33
- default: "100%"
34
- },
35
- height: {
36
- type: String,
37
- default: "100%"
38
- },
39
- zIndex: {
40
- type: String,
41
- default: "-1"
42
- },
43
- top: {
44
- type: String,
45
- default: "10%"
46
- },
47
- left: {
48
- type: String,
49
- default: "0%"
50
- },
51
- right: {
52
- type: String,
53
- default: "auto"
54
- },
55
- blur: {
56
- type: String,
57
- default: "0px"
58
- },
59
- background: {
60
- type: String,
61
- required: !1,
62
- 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%)"
63
- }
64
- },
65
- setup(s) {
66
- const e = s, i = y(() => ({
67
- pointerEvents: "none",
68
- position: "absolute",
69
- zIndex: e.zIndex,
70
- width: e.width,
71
- height: e.height,
72
- filter: `blur(${e.blur})`
73
- })), r = y(() => ({
74
- width: "100%",
75
- height: "100%",
76
- background: e.background
77
- // background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
78
- // 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%)`,
79
- // background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
80
- }));
81
- return (o, c) => (n(), t("div", {
82
- class: "ellipsis",
83
- style: b(i.value)
84
- }, [a("div", {
85
- class: "ellipsis-item",
86
- style: b(r.value)
87
- }, null, 4)], 4));
88
- }
89
- }), se = /* @__PURE__ */ p(N, [["__scopeId", "data-v-b6461ac4"]]), V = {
90
- class: "HeaderMenus"
91
- }, A = {
92
- key: 0,
93
- class: "desktop-menus"
94
- }, D = ["onClick"], F = {
95
- key: 3,
96
- class: "mobile-menu"
97
- }, O = {
98
- class: "mobile-menu-content"
99
- }, R = ["onClick"], U = /* @__PURE__ */ f({
100
- __name: "HeaderMenus",
101
- props: {
102
- menus: {
103
- type: Array,
104
- required: !0
105
- },
106
- activateKey: {
107
- type: String,
108
- required: !0
109
- }
110
- },
111
- emits: ["change"],
112
- setup(s, {
113
- emit: e
114
- }) {
115
- const i = s, r = e, o = C(!1), c = C(!1);
116
- function g() {
117
- c.value = window.innerWidth <= 1024;
118
- }
119
- function M() {
120
- o.value = !o.value;
121
- }
122
- function m() {
123
- o.value = !1;
124
- }
125
- function q(u) {
126
- r("change", u), m();
127
- }
128
- function S(u) {
129
- return i.activateKey === u.path;
130
- }
131
- function z(u) {
132
- r("change", u);
133
- }
134
- function k() {
135
- g(), c.value || m();
136
- }
137
- return L(() => {
138
- g(), window.addEventListener("resize", k);
139
- }), H(() => {
140
- window.removeEventListener("resize", k);
141
- }), (u, $) => (n(), t("div", V, [c.value ? d("", !0) : (n(), t("div", A, [(n(!0), t(x, null, I(i.menus, (l, v) => (n(), t("div", {
142
- key: v,
143
- class: h(["headerLink", {
144
- activate: S(l)
145
- }]),
146
- onClick: (w) => z(l)
147
- }, _(l.name), 11, D))), 128))])), c.value ? (n(), t("button", {
148
- key: 1,
149
- class: h(["mobile-menu-toggle", {
150
- active: o.value
151
- }]),
152
- "aria-label": "切换菜单",
153
- onClick: M
154
- }, $[0] || ($[0] = [a("span", {
155
- class: "hamburger-line"
156
- }, null, -1), a("span", {
157
- class: "hamburger-line"
158
- }, null, -1), a("span", {
159
- class: "hamburger-line"
160
- }, null, -1)]), 2)) : d("", !0), o.value ? (n(), t("div", {
161
- key: 2,
162
- class: "mobile-menu-overlay",
163
- onClick: m
164
- })) : d("", !0), o.value ? (n(), t("div", F, [a("div", O, [(n(!0), t(x, null, I(i.menus, (l, v) => (n(), t("div", {
165
- key: v,
166
- class: h(["mobile-menu-item", {
167
- activate: S(l)
168
- }]),
169
- onClick: (w) => q(l)
170
- }, _(l.name), 11, R))), 128))])])) : d("", !0)]));
171
- }
172
- }), ie = /* @__PURE__ */ p(U, [["__scopeId", "data-v-67bf8ea1"]]), j = ["src"], J = /* @__PURE__ */ f({
173
- __name: "Logo",
174
- props: {
175
- name: {
176
- type: String,
177
- required: !1,
178
- default: () => "#2d2d2d"
179
- },
180
- icon: {
181
- type: String,
182
- required: !1,
183
- default: () => ""
184
- },
185
- color: {
186
- type: String,
187
- required: !1,
188
- default: () => "#2d2d2d"
189
- },
190
- fontSize: {
191
- type: String,
192
- required: !1,
193
- default: () => "16px"
194
- }
195
- },
196
- emits: ["to"],
197
- setup(s, {
198
- emit: e
199
- }) {
200
- const i = s, r = e;
201
- function o() {
202
- r("to");
203
- }
204
- return (c, g) => (n(), t("div", {
205
- class: "Logo",
206
- onClick: o
207
- }, [s.icon ? (n(), t("img", {
208
- key: 0,
209
- class: "icon",
210
- src: s.icon,
211
- alt: "logo",
212
- loading: "lazy",
213
- decoding: "async"
214
- }, null, 8, j)) : d("", !0), a("div", {
215
- class: "text",
216
- style: b({
217
- color: i.color,
218
- fontSize: i.fontSize
219
- })
220
- }, _(s.name), 5)]));
221
- }
222
- }), oe = /* @__PURE__ */ p(J, [["__scopeId", "data-v-694a3ecc"]]), P = {
223
- class: "SvgIcon"
224
- }, Q = ["href", "fill"], T = /* @__PURE__ */ f({
225
- __name: "SvgIcon",
226
- props: {
227
- prefix: {
228
- type: String,
229
- required: !1,
230
- default: "icon"
231
- },
232
- name: {
233
- type: String,
234
- required: !0
235
- },
236
- color: {
237
- type: String,
238
- required: !1,
239
- default: "#333"
240
- }
241
- },
242
- setup(s) {
243
- const e = s, i = y(() => `#${e.prefix ?? "icon"}-${e.name}`);
244
- return (r, o) => (n(), t("svg", P, [a("use", {
245
- href: i.value,
246
- fill: e.color
247
- }, null, 8, Q)]));
248
- }
249
- }), re = /* @__PURE__ */ p(T, [["__scopeId", "data-v-0a9de94e"]]), X = {}, Y = {
250
- class: "WidthContainer"
251
- };
252
- function Z(s, e) {
253
- return n(), t("div", Y, [E(s.$slots, "default", {}, void 0, !0)]);
254
- }
255
- const ae = /* @__PURE__ */ p(X, [["render", Z], ["__scopeId", "data-v-d06aac1f"]]);
256
- export {
257
- ne as C,
258
- se as G,
259
- ie as H,
260
- oe as L,
261
- re as S,
262
- ae as W
263
- };
@@ -1,103 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- import { Message as w } from "@arco-design/web-vue";
4
- import { ref as l } from "vue";
5
- function g(e) {
6
- const o = l(!1), t = l(), a = l(!1), r = l(""), d = l("");
7
- function n(s) {
8
- w.success(s), a.value = !1, o.value = !1, e("confirm");
9
- }
10
- function i() {
11
- a.value = !1, console.log("handleClose"), e("cancel");
12
- }
13
- return {
14
- loading: o,
15
- formRef: t,
16
- submitSuccess: n,
17
- modelType: r,
18
- changeType: d,
19
- show: a,
20
- handleCancel: i
21
- };
22
- }
23
- const f = l({
24
- key: "",
25
- name: ""
26
- });
27
- function D() {
28
- function e(o, t) {
29
- f.value.key = o, f.value.name = t;
30
- }
31
- return {
32
- activeDoc: f,
33
- setActiveDoc: e
34
- };
35
- }
36
- function b(e, o = "default") {
37
- const t = document;
38
- if (t && typeof t.startViewTransition == "function") {
39
- const a = document.body;
40
- a.classList.add(`vt-${o}`), t.startViewTransition(() => {
41
- try {
42
- e();
43
- } catch {
44
- }
45
- }).finished.finally(() => {
46
- a.classList.remove(`vt-${o}`);
47
- });
48
- } else
49
- e();
50
- }
51
- let u = null, v = "", c = null;
52
- function T() {
53
- const e = l([]), o = l(!1), t = l(""), a = l("");
54
- async function r({
55
- versionApi: d
56
- }) {
57
- if (u) {
58
- e.value = u, a.value = v;
59
- return;
60
- }
61
- if (c) {
62
- await c, e.value = u || [], a.value = v;
63
- return;
64
- }
65
- o.value = !0, t.value = "", c = fetch(d).then((n) => {
66
- if (!n.ok)
67
- throw new Error(`HTTP error! status: ${n.status}`);
68
- return n.json();
69
- }).then((n) => {
70
- const i = n.downloads.map((s) => ({
71
- id: s.id,
72
- name: s.name,
73
- description: s.description,
74
- version: s.version,
75
- updateDate: s.updateDate,
76
- icon: "",
77
- // 将在组件中动态设置
78
- downloadUrl: s.downloadUrl,
79
- platform: s.platform,
80
- requirements: s.requirements,
81
- badge: s.badge
82
- }));
83
- u = i, v = n.version, e.value = i, a.value = n.version;
84
- }).catch((n) => {
85
- t.value = n.message || "获取版本信息失败", console.error("Failed to fetch downloads:", n);
86
- }).finally(() => {
87
- o.value = !1, c = null;
88
- }), await c;
89
- }
90
- return {
91
- downloads: e,
92
- loading: o,
93
- error: t,
94
- version: a,
95
- fetchDownloads: r
96
- };
97
- }
98
- export {
99
- D as a,
100
- T as b,
101
- g as u,
102
- b as w
103
- };