@huyooo/ui 0.4.72 → 0.4.74

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 (37) hide show
  1. package/dist/{AuthkitAppSetting-CX3_9Jcg.js → AuthkitAuthModal-A8HqP1Bw.js} +1441 -1439
  2. package/dist/{AuthkitAuthorize-CA0jmnjq.js → AuthkitAuthorize-BlEC4PlY.js} +1 -1
  3. package/dist/{FeedbackItem-C5WqFEqH.js → FeedbackItem-B_EUApFA.js} +1 -1
  4. package/dist/{FeedbackModal-BDPw2tu7.js → FeedbackModal-D1htK7xY.js} +34 -33
  5. package/dist/{MessageHandle-BelPivb3.js → MessageHandle-DkNum5-u.js} +3 -2
  6. package/dist/UserAccountMenu-C7LQIjwT.js +610 -0
  7. package/dist/authkit.js +3 -3
  8. package/dist/common.d.ts +0 -14
  9. package/dist/common.js +13 -37
  10. package/dist/components/Authkit/Auth/AuthkitAuthContainer.vue.d.ts +1 -1
  11. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
  12. package/dist/components/Authkit/Auth/AuthkitOAuthItem.vue.d.ts +1 -1
  13. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +4 -4
  14. package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
  15. package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
  16. package/dist/components/Gradientbackground.vue.d.ts +1 -1
  17. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +2 -2
  18. package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
  19. package/dist/components/User/UserPanel.vue.d.ts +6 -6
  20. package/dist/composables.d.ts +2 -2
  21. package/dist/composables.js +21 -35
  22. package/dist/feedback.js +2 -2
  23. package/dist/index.js +154 -159
  24. package/dist/main.d.ts +1 -4
  25. package/dist/message.js +1 -1
  26. package/dist/pay.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/{useAuthkitAuthModal-hxivJw_U.js → useAuthkitAppsAuthPageInfo-COeq29Tn.js} +13 -13
  30. package/dist/user.js +6 -7
  31. package/dist/viewTransitions-C-ZLwiJ0.js +55 -0
  32. package/package.json +1 -1
  33. package/dist/UserAccountMenu-BD8F9vEK.js +0 -40
  34. package/dist/UserPanel-CaaTu1mu.js +0 -576
  35. package/dist/useActiveDoc-BWHkOJhJ.js +0 -39
  36. /package/dist/{PaySubscriptions-BRWvLeed.js → PaySubscriptions-l6VlqvBy.js} +0 -0
  37. /package/dist/{ReferrerReferees-BVj9o5kG.js → ReferrerReferees-BclAtmgX.js} +0 -0
@@ -1,576 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- /* empty css */
4
- /* empty css */
5
- import { defineComponent as S, createElementBlock as y, openBlock as l, normalizeStyle as F, normalizeClass as q, createElementVNode as f, computed as U, createBlock as g, createCommentVNode as D, createVNode as i, unref as o, withCtx as s, createTextVNode as m, toDisplayString as C, mergeModels as V, useModel as E, renderSlot as _e, ref as d, Fragment as Se } from "vue";
6
- import { Tag as be, Button as K, Avatar as T, Dropdown as Ce, Divider as W, Doption as _ } from "@arco-design/web-vue";
7
- import { S as Ie } from "./PaySubscriptions-BRWvLeed.js";
8
- import { R as $e } from "./ReferrerReferees-BVj9o5kG.js";
9
- import { a as X, u as we } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
10
- import { u as he } from "./useAuthkitAuthModal-hxivJw_U.js";
11
- import { a as xe, b as Be } from "./AuthkitAppSetting-CX3_9Jcg.js";
12
- import { d as Me } from "./FeedbackModal-BDPw2tu7.js";
13
- import { M as Ue } from "./MessageHandle-BelPivb3.js";
14
- /* empty css */
15
- /* empty css */
16
- import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- /* empty css */
18
- import { I as w } from "./index-Cr5RQSnA.js";
19
- import { _ as Y, g as G, i as J } from "./plugin-vue_export-helper-LjDO2Zua.js";
20
- const Ve = S({
21
- name: "IconExport",
22
- props: {
23
- size: {
24
- type: [Number, String]
25
- },
26
- strokeWidth: {
27
- type: Number,
28
- default: 4
29
- },
30
- strokeLinecap: {
31
- type: String,
32
- default: "butt",
33
- validator: (e) => ["butt", "round", "square"].includes(e)
34
- },
35
- strokeLinejoin: {
36
- type: String,
37
- default: "miter",
38
- validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
39
- },
40
- rotate: Number,
41
- spin: Boolean
42
- },
43
- emits: {
44
- click: (e) => !0
45
- },
46
- setup(e, {
47
- emit: t
48
- }) {
49
- const n = G("icon"), a = U(() => [n, `${n}-export`, {
50
- [`${n}-spin`]: e.spin
51
- }]), c = U(() => {
52
- const r = {};
53
- return e.size && (r.fontSize = J(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
54
- });
55
- return {
56
- cls: a,
57
- innerStyle: c,
58
- onClick: (r) => {
59
- t("click", r);
60
- }
61
- };
62
- }
63
- }), De = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
64
- function Pe(e, t, n, a, c, k) {
65
- return l(), y("svg", {
66
- viewBox: "0 0 48 48",
67
- fill: "none",
68
- xmlns: "http://www.w3.org/2000/svg",
69
- stroke: "currentColor",
70
- class: q(e.cls),
71
- style: F(e.innerStyle),
72
- "stroke-width": e.strokeWidth,
73
- "stroke-linecap": e.strokeLinecap,
74
- "stroke-linejoin": e.strokeLinejoin,
75
- onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r))
76
- }, t[1] || (t[1] = [f("path", {
77
- d: "M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"
78
- }, null, -1)]), 14, De);
79
- }
80
- var R = /* @__PURE__ */ Y(Ve, [["render", Pe]]);
81
- const Ae = Object.assign(R, {
82
- install: (e, t) => {
83
- var n;
84
- const a = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
85
- e.component(a + R.name, R);
86
- }
87
- }), Re = S({
88
- name: "IconLaunch",
89
- props: {
90
- size: {
91
- type: [Number, String]
92
- },
93
- strokeWidth: {
94
- type: Number,
95
- default: 4
96
- },
97
- strokeLinecap: {
98
- type: String,
99
- default: "butt",
100
- validator: (e) => ["butt", "round", "square"].includes(e)
101
- },
102
- strokeLinejoin: {
103
- type: String,
104
- default: "miter",
105
- validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
106
- },
107
- rotate: Number,
108
- spin: Boolean
109
- },
110
- emits: {
111
- click: (e) => !0
112
- },
113
- setup(e, {
114
- emit: t
115
- }) {
116
- const n = G("icon"), a = U(() => [n, `${n}-launch`, {
117
- [`${n}-spin`]: e.spin
118
- }]), c = U(() => {
119
- const r = {};
120
- return e.size && (r.fontSize = J(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
121
- });
122
- return {
123
- cls: a,
124
- innerStyle: c,
125
- onClick: (r) => {
126
- t("click", r);
127
- }
128
- };
129
- }
130
- }), ze = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
131
- function Ne(e, t, n, a, c, k) {
132
- return l(), y("svg", {
133
- viewBox: "0 0 48 48",
134
- fill: "none",
135
- stroke: "currentColor",
136
- xmlns: "http://www.w3.org/2000/svg",
137
- class: q(e.cls),
138
- style: F(e.innerStyle),
139
- "stroke-width": e.strokeWidth,
140
- "stroke-linecap": e.strokeLinecap,
141
- "stroke-linejoin": e.strokeLinejoin,
142
- onClick: t[0] || (t[0] = (...r) => e.onClick && e.onClick(...r))
143
- }, t[1] || (t[1] = [f("path", {
144
- d: "M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"
145
- }, null, -1)]), 14, ze);
146
- }
147
- var z = /* @__PURE__ */ Y(Re, [["render", Ne]]);
148
- const Le = Object.assign(z, {
149
- install: (e, t) => {
150
- var n;
151
- const a = (n = t == null ? void 0 : t.iconPrefix) != null ? n : "";
152
- e.component(a + z.name, z);
153
- }
154
- }), Oe = {
155
- class: "pricing"
156
- }, je = {
157
- class: "base"
158
- }, He = {
159
- class: "pricingInfo"
160
- }, Fe = /* @__PURE__ */ S({
161
- __name: "UserSubscriptionBaseInformation",
162
- props: {
163
- currentVersionName: {
164
- type: String,
165
- required: !0
166
- },
167
- expireDate: {
168
- type: String,
169
- required: !0
170
- },
171
- canUpgrade: {
172
- type: Boolean,
173
- required: !0
174
- }
175
- },
176
- emits: ["upgradeHandle"],
177
- setup(e, {
178
- emit: t
179
- }) {
180
- const n = e, a = t;
181
- function c() {
182
- a("upgradeHandle");
183
- }
184
- return (k, r) => (l(), y("div", Oe, [f("div", je, [f("div", He, [r[0] || (r[0] = f("span", null, "我的订阅:", -1)), i(o(be), {
185
- color: "arcoblue",
186
- style: {
187
- "border-radius": "6px"
188
- }
189
- }, {
190
- default: s(() => [m(C(n.currentVersionName), 1)]),
191
- _: 1
192
- })]), n.canUpgrade ? (l(), g(o(K), {
193
- key: 0,
194
- type: "primary",
195
- size: "mini",
196
- class: "updatePricing",
197
- onClick: c
198
- }, {
199
- default: s(() => r[1] || (r[1] = [m(" 升级 ")])),
200
- _: 1,
201
- __: [1]
202
- })) : D("", !0)]), f("span", null, "有效期至: " + C(n.expireDate), 1)]));
203
- }
204
- }), qe = /* @__PURE__ */ h(Fe, [["__scopeId", "data-v-1e32fa72"]]), Ee = {
205
- class: "userInfo"
206
- }, Ke = {
207
- key: 0,
208
- class: "userName"
209
- }, Te = /* @__PURE__ */ S({
210
- __name: "UserAvatar",
211
- props: {
212
- nickname: {
213
- type: String,
214
- default: ""
215
- },
216
- avatar: {
217
- type: String,
218
- default: ""
219
- }
220
- },
221
- setup(e) {
222
- const t = e;
223
- return (n, a) => (l(), y("div", Ee, [t.nickname ? (l(), y("span", Ke, C(t.nickname), 1)) : D("", !0), i(o(T), {
224
- "image-url": t.avatar,
225
- size: 32,
226
- "object-fit": "cover"
227
- }, null, 8, ["image-url"])]));
228
- }
229
- }), We = /* @__PURE__ */ h(Te, [["__scopeId", "data-v-36643afe"]]), Xe = {
230
- class: "userInfo"
231
- }, Ye = {
232
- class: "extra"
233
- }, Ge = {
234
- class: "userName"
235
- }, Je = {
236
- class: "email"
237
- }, Qe = {
238
- key: 0,
239
- class: "referrerId"
240
- }, Ze = /* @__PURE__ */ S({
241
- __name: "UserBasicInformation",
242
- props: {
243
- nickname: {
244
- type: String,
245
- default: ""
246
- },
247
- email: {
248
- type: String,
249
- default: ""
250
- },
251
- avatarUrl: {
252
- type: String,
253
- default: ""
254
- },
255
- referrerId: {
256
- type: String,
257
- default: ""
258
- }
259
- },
260
- setup(e) {
261
- const t = e;
262
- return (n, a) => (l(), y("div", Xe, [i(o(T), {
263
- "image-url": t.avatarUrl,
264
- size: 42,
265
- "object-fit": "cover"
266
- }, null, 8, ["image-url"]), f("div", Ye, [f("span", Ge, C(t.nickname), 1), f("span", Je, C(t.email), 1), t.referrerId ? (l(), y("span", Qe, " 邀请码:" + C(t.referrerId), 1)) : D("", !0)])]));
267
- }
268
- }), et = /* @__PURE__ */ h(Ze, [["__scopeId", "data-v-367449da"]]), tt = {
269
- class: "dropdownContent"
270
- }, nt = {
271
- class: "header"
272
- }, ot = /* @__PURE__ */ S({
273
- __name: "UserButton",
274
- props: /* @__PURE__ */ V({
275
- position: {
276
- default: "bl"
277
- },
278
- dropdownOffsetX: {
279
- default: "0"
280
- },
281
- dropdownOffsetY: {
282
- default: "0"
283
- }
284
- }, {
285
- modelValue: {
286
- type: Boolean,
287
- default: !1
288
- },
289
- modelModifiers: {}
290
- }),
291
- emits: /* @__PURE__ */ V(["enterSystem", "toSignIn"], ["update:modelValue"]),
292
- setup(e, {
293
- emit: t
294
- }) {
295
- const n = e, a = t, {
296
- userProfile: c,
297
- isLoggedIn: k
298
- } = X();
299
- function r() {
300
- a("toSignIn");
301
- }
302
- const I = E(e, "modelValue");
303
- return (P, p) => o(k) ? (l(), g(o(Ce), {
304
- key: 1,
305
- popupVisible: I.value,
306
- "onUpdate:popupVisible": p[0] || (p[0] = (v) => I.value = v),
307
- class: "DropdownUserInfo",
308
- position: n.position,
309
- "popup-style": {
310
- "--dropdown-translate-x": n.dropdownOffsetX ?? "0",
311
- "--dropdown-translate-y": n.dropdownOffsetY ?? "0"
312
- }
313
- }, {
314
- content: s(() => {
315
- var v, x, B, $;
316
- return [f("div", tt, [f("div", nt, [i(et, {
317
- "avatar-url": (v = o(c)) == null ? void 0 : v.avatarUrl,
318
- nickname: (x = o(c)) == null ? void 0 : x.nickname,
319
- email: (B = o(c)) == null ? void 0 : B.email,
320
- "referrer-id": ($ = o(c)) == null ? void 0 : $.referrerId
321
- }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), i(qe, {
322
- currentVersionName: "免费版本",
323
- "expire-date": "2025-01-01",
324
- "can-upgrade": !0
325
- })]), i(o(W), {
326
- style: {
327
- margin: "10px 0px"
328
- }
329
- }), _e(P.$slots, "DoptionList", {}, void 0, !0)])];
330
- }),
331
- default: s(() => {
332
- var v;
333
- return [i(We, {
334
- avatar: (v = o(c)) == null ? void 0 : v.avatarUrl
335
- }, null, 8, ["avatar"])];
336
- }),
337
- _: 3
338
- }, 8, ["popupVisible", "position", "popup-style"])) : (l(), g(o(K), {
339
- key: 0,
340
- type: "primary",
341
- class: "handle",
342
- onClick: r
343
- }, {
344
- default: s(() => p[1] || (p[1] = [m(" 登陆 ")])),
345
- _: 1,
346
- __: [1]
347
- }));
348
- }
349
- }), rt = /* @__PURE__ */ h(ot, [["__scopeId", "data-v-ba98c4bf"]]), it = {
350
- class: "UserPanel"
351
- }, st = /* @__PURE__ */ S({
352
- __name: "UserPanel",
353
- props: /* @__PURE__ */ V({
354
- position: {
355
- default: "bl"
356
- },
357
- dropdownOffsetX: {
358
- default: "0"
359
- },
360
- dropdownOffsetY: {
361
- default: "0"
362
- }
363
- }, {
364
- modelValue: {
365
- type: Boolean,
366
- default: !1
367
- },
368
- modelModifiers: {}
369
- }),
370
- emits: /* @__PURE__ */ V(["toHomePage", "signOut", "signIn"], ["update:modelValue"]),
371
- setup(e, {
372
- emit: t
373
- }) {
374
- const n = e, a = d(), c = d(), k = d(Symbol("key")), r = t, {
375
- fetchUserProfile: I,
376
- clearUserProfile: P,
377
- isLoggedIn: p
378
- } = X(), {
379
- addSignInCallback: v,
380
- initializeAuth: x,
381
- clearAuth: B
382
- } = we();
383
- x() && I();
384
- const $ = d(), N = d(Symbol("key")), L = d(), O = d(), Q = d(Symbol("key")), Z = d(), ee = d(Symbol("key"));
385
- function te(H) {
386
- }
387
- function ne(H) {
388
- }
389
- const {
390
- show: oe
391
- } = he(), j = E(e, "modelValue");
392
- function re() {
393
- N.value = Symbol("key");
394
- }
395
- const A = d(), M = d(Symbol("key"));
396
- function ie() {
397
- M.value = Symbol("key");
398
- }
399
- function se() {
400
- M.value = Symbol("key");
401
- }
402
- function b() {
403
- oe.value = !0, r("signIn");
404
- }
405
- v(() => {
406
- I();
407
- });
408
- function ae() {
409
- k.value = Symbol("key");
410
- }
411
- function le() {
412
- c.value.show = !1;
413
- }
414
- function ue() {
415
- M.value = Symbol("key");
416
- }
417
- function ce() {
418
- A.value.setData(null, !0);
419
- }
420
- function de() {
421
- if (!p.value) {
422
- b();
423
- return;
424
- }
425
- A.value.setData(null, !0);
426
- }
427
- function pe() {
428
- if (!p.value) {
429
- b();
430
- return;
431
- }
432
- L.value.openNotification();
433
- }
434
- function fe() {
435
- if (!p.value) {
436
- b();
437
- return;
438
- }
439
- O.value.setData(null, !0);
440
- }
441
- function me() {
442
- if (!p.value) {
443
- b();
444
- return;
445
- }
446
- a.value.setData(!0);
447
- }
448
- function ke() {
449
- if (!p.value) {
450
- b();
451
- return;
452
- }
453
- $.value.setData(!0);
454
- }
455
- function ve() {
456
- r("toHomePage");
457
- }
458
- async function ye() {
459
- P(), B(), r("signOut");
460
- }
461
- return (H, u) => (l(), y("div", it, [i(rt, {
462
- modelValue: j.value,
463
- "onUpdate:modelValue": u[0] || (u[0] = (ge) => j.value = ge),
464
- position: n.position,
465
- "dropdown-offset-x": n.dropdownOffsetX,
466
- "dropdown-offset-y": n.dropdownOffsetY,
467
- onToSignIn: b
468
- }, {
469
- DoptionList: s(() => [i(o(_), {
470
- value: "messages",
471
- class: "Doption",
472
- onClick: pe
473
- }, {
474
- icon: s(() => u[1] || (u[1] = [m("消息中心")])),
475
- default: s(() => [i(o(w))]),
476
- _: 1
477
- }), i(o(_), {
478
- value: "setting",
479
- class: "Doption",
480
- onClick: de
481
- }, {
482
- icon: s(() => u[2] || (u[2] = [m("系统设置 ")])),
483
- default: s(() => [i(o(w))]),
484
- _: 1
485
- }), i(o(_), {
486
- value: "subscription",
487
- class: "Doption",
488
- onClick: fe
489
- }, {
490
- icon: s(() => u[3] || (u[3] = [m("订阅信息 ")])),
491
- default: s(() => [i(o(w))]),
492
- _: 1
493
- }), i(o(_), {
494
- value: "feedBack",
495
- class: "Doption",
496
- onClick: me
497
- }, {
498
- icon: s(() => u[4] || (u[4] = [m("系统反馈 ")])),
499
- default: s(() => [i(o(w))]),
500
- _: 1
501
- }), i(o(_), {
502
- value: "invitations",
503
- class: "Doption",
504
- onClick: ke
505
- }, {
506
- icon: s(() => u[5] || (u[5] = [m("邀请 ")])),
507
- default: s(() => [i(o(w))]),
508
- _: 1
509
- }), i(o(W), {
510
- style: {
511
- margin: "10px 0px"
512
- }
513
- }), i(o(_), {
514
- value: "homePage",
515
- class: "Doption",
516
- onClick: ve
517
- }, {
518
- icon: s(() => u[6] || (u[6] = [m("主页 ")])),
519
- default: s(() => [i(o(Le))]),
520
- _: 1
521
- }), i(o(_), {
522
- value: "signOut",
523
- class: "Doption",
524
- onClick: ye
525
- }, {
526
- icon: s(() => u[7] || (u[7] = [m("退出登陆 ")])),
527
- default: s(() => [i(o(Ae))]),
528
- _: 1
529
- })]),
530
- _: 1
531
- }, 8, ["modelValue", "position", "dropdown-offset-x", "dropdown-offset-y"]), (l(), g(xe, {
532
- ref_key: "AuthModalRef",
533
- ref: Z,
534
- key: ee.value,
535
- size: "large",
536
- onToPrivacyPolicy: te,
537
- onToUserServiceAgreement: ne
538
- })), o(p) ? (l(), y(Se, {
539
- key: 0
540
- }, [(l(), g(Be, {
541
- ref_key: "AppSettingRef",
542
- ref: A,
543
- key: M.value,
544
- onConfirm: ce,
545
- onCancel: ue
546
- })), (l(), g($e, {
547
- ref_key: "RefereesRef",
548
- ref: $,
549
- key: N.value,
550
- onCancel: re
551
- })), (l(), g(Ie, {
552
- ref_key: "SubscriptionsRef",
553
- ref: O,
554
- key: Q.value,
555
- title: "订阅详情",
556
- onConfirm: ie,
557
- onCancel: se
558
- })), i(Ue, {
559
- ref_key: "MessageHandleRef",
560
- ref: L
561
- }, null, 512), (l(), g(Me, {
562
- ref_key: "FeedBackModalRef",
563
- ref: a,
564
- key: k.value,
565
- onConfirm: le,
566
- onCancel: ae
567
- }))], 64)) : D("", !0)]));
568
- }
569
- }), ht = /* @__PURE__ */ h(st, [["__scopeId", "data-v-4c4c85af"]]);
570
- export {
571
- qe as S,
572
- ht as U,
573
- rt as a,
574
- We as b,
575
- et as c
576
- };
@@ -1,39 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- import { Message as i } from "@arco-design/web-vue";
4
- import { ref as e } from "vue";
5
- function g(o) {
6
- const n = e(!1), c = e(), s = e(!1), t = e(""), l = e("");
7
- function u(r) {
8
- i.success(r), s.value = !1, n.value = !1, o("confirm");
9
- }
10
- function f() {
11
- s.value = !1, console.log("handleClose"), o("cancel");
12
- }
13
- return {
14
- loading: n,
15
- formRef: c,
16
- submitSuccess: u,
17
- modelType: t,
18
- changeType: l,
19
- show: s,
20
- handleCancel: f
21
- };
22
- }
23
- const a = e({
24
- key: "",
25
- name: ""
26
- });
27
- function h() {
28
- function o(n, c) {
29
- a.value.key = n, a.value.name = c;
30
- }
31
- return {
32
- activeDoc: a,
33
- setActiveDoc: o
34
- };
35
- }
36
- export {
37
- h as a,
38
- g as u
39
- };