@huyooo/ui 0.5.26 → 0.5.28

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 (36) hide show
  1. package/dist/{AuthkitAuthModal-_jUbPMfY.js → AuthkitAuthModal-P9GI9wIQ.js} +8 -9
  2. package/dist/{AuthkitAuthorize-wqXxP_K2.js → AuthkitAuthorize-Bv2MspFC.js} +2 -2
  3. package/dist/{Contact-BYK4A8LY.js → Contact-DTGCcXv9.js} +2 -2
  4. package/dist/{FeedbackItem-CFst7U0_.js → FeedbackItem-DLJhHHDM.js} +3 -3
  5. package/dist/{FeedbackModal-Cgc59WUD.js → FeedbackModal-OsCK3NqC.js} +4 -5
  6. package/dist/LandingPageSectionTabs-B-MarOHk.js +67530 -0
  7. package/dist/{MessageHandle-BnkgjTdM.js → MessageHandle-CdOMmp4n.js} +16 -17
  8. package/dist/{PaySubscriptions-x4b3a-nG.js → PaySubscriptions-DVhnjdi3.js} +7 -8
  9. package/dist/{ReferrerReferees-CyOeIbwr.js → ReferrerReferees-Bfu2z-0W.js} +17 -18
  10. package/dist/{Upload.vue_vue_type_script_setup_true_lang-D7mv66o9.js → Upload.vue_vue_type_script_setup_true_lang-CoOnOaNP.js} +2 -2
  11. package/dist/{UserAccountMenu-DgfGUlvA.js → UserAccountMenu-AhID9xxq.js} +7 -7
  12. package/dist/{WidthContainer-CERr6Dzf.js → WidthContainer-BACUO8zY.js} +6 -6
  13. package/dist/{auth-DtA2gxxa.js → auth-B864DrVx.js} +49 -42
  14. package/dist/authkit.js +5 -5
  15. package/dist/common.js +1 -1
  16. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
  17. package/dist/components/LandingPage/LandingPageShowcase.vue.d.ts +20 -17
  18. package/dist/composables.js +6 -6
  19. package/dist/feedback.js +2 -2
  20. package/dist/index.js +176 -177
  21. package/dist/landingPage.js +10 -10
  22. package/dist/message.js +2 -2
  23. package/dist/pay.js +1 -1
  24. package/dist/privateCom.js +1 -1
  25. package/dist/referrer.js +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/upload.js +2 -2
  28. package/dist/{useAuthkitAppsAuthPageInfo-C1IsAlcM.js → useAuthkitAppsAuthPageInfo-Ct-ElH04.js} +16 -17
  29. package/dist/{useAuthkitUsersProfile-DNYZ87Bt.js → useAuthkitUsersProfile-B1y2nleU.js} +30 -31
  30. package/dist/{useMessageNotifications-CHgy0HWC.js → useMessageNotifications-BUJtc-Us.js} +25 -26
  31. package/dist/{useSEO-BGk6cyAs.js → useSEO-CFQMgnVq.js} +2 -2
  32. package/dist/{useUploadCos-BMEbLTPK.js → useUploadCos-Ca4Mo5FD.js} +3 -4
  33. package/dist/user.js +1 -1
  34. package/dist/utils/request.d.ts +2 -1
  35. package/package.json +2 -2
  36. package/dist/LandingPageSectionTabs-BdtJ_ajh.js +0 -47484
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-D7mv66o9.js";
2
- import { u as s } from "./useUploadCos-BMEbLTPK.js";
1
+ import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CoOnOaNP.js";
2
+ import { u as s } from "./useUploadCos-Ca4Mo5FD.js";
3
3
  export {
4
4
  p as Upload,
5
5
  s as useUploadCos
@@ -1,20 +1,19 @@
1
1
  import { ref as l } from "vue";
2
- import { g as u } from "./auth-DtA2gxxa.js";
3
- import { api as p } from "@huyooo/api";
4
- function g(t) {
5
- return p({
6
- url: `${u.authPrefixUrl}/restfulApi/apps/findOne`,
2
+ import { c as u, g as p } from "./auth-B864DrVx.js";
3
+ function f(t) {
4
+ return u({
5
+ url: `${p.authPrefixUrl}/restfulApi/apps/findOne`,
7
6
  method: "post",
8
7
  data: t
9
8
  });
10
9
  }
11
10
  function r() {
12
- return p({
13
- url: `${u.authPrefixUrl}/restfulApi/apps/authPageInfo`,
11
+ return u({
12
+ url: `${p.authPrefixUrl}/restfulApi/apps/authPageInfo`,
14
13
  method: "post"
15
14
  });
16
15
  }
17
- const o = l({
16
+ const a = l({
18
17
  id: "",
19
18
  appKey: "",
20
19
  name: "",
@@ -86,25 +85,25 @@ const o = l({
86
85
  backgroundImageUrl: "",
87
86
  backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
88
87
  }
89
- }), a = l(!1), n = l(!1);
90
- function h() {
88
+ }), o = l(!1), n = l(!1);
89
+ function g() {
91
90
  function t(i) {
92
- a.value = !0, n.value = !1, r().then(({
91
+ o.value = !0, n.value = !1, r().then(({
93
92
  data: e
94
93
  }) => {
95
- a.value = !1, n.value = !0, o.value.id = e.id, o.value.appKey = e.appKey, o.value.name = e.name, o.value.description = e.description, o.value.homePageUrl = e.homePageUrl, o.value.applicationLogo = e.applicationLogo, o.value.applicationLogoUrl = e.applicationLogoUrl, o.value.publicRoutes = e.publicRoutes || [], o.value.oauth = e.oauth, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = e.aboutUs, o.value.brand = e.brand, i && i();
94
+ o.value = !1, n.value = !0, a.value.id = e.id, a.value.appKey = e.appKey, a.value.name = e.name, a.value.description = e.description, a.value.homePageUrl = e.homePageUrl, a.value.applicationLogo = e.applicationLogo, a.value.applicationLogoUrl = e.applicationLogoUrl, a.value.publicRoutes = e.publicRoutes || [], a.value.oauth = e.oauth, a.value.authorizationCallback = e.authorizationCallback, a.value.aboutUs = e.aboutUs, a.value.brand = e.brand, i && i();
96
95
  }).catch((e) => {
97
- a.value = !1, n.value = !1, console.error("获取应用认证页面信息失败:", e);
96
+ o.value = !1, n.value = !1, console.error("获取应用认证页面信息失败:", e);
98
97
  });
99
98
  }
100
99
  return {
101
- appsData: o,
100
+ appsData: a,
102
101
  appsAuthPageInfoApi: t,
103
- appsAuthPageInfoLoading: a,
102
+ appsAuthPageInfoLoading: o,
104
103
  appsAuthPageInfoSuccess: n
105
104
  };
106
105
  }
107
106
  export {
108
- g as a,
109
- h as u
107
+ f as a,
108
+ g as u
110
109
  };
@@ -1,7 +1,6 @@
1
1
  import { ref as l, readonly as b, computed as T } from "vue";
2
- import { c as y, d as A, e as x, g as i } from "./auth-DtA2gxxa.js";
3
- import { api as d } from "@huyooo/api";
4
- const u = l("signIn"), v = [], m = [], w = [], t = l(null);
2
+ import { d as y, e as A, f as x, g as i, c as d } from "./auth-B864DrVx.js";
3
+ const u = l("signIn"), v = [], w = [], m = [], t = l(null);
5
4
  function C() {
6
5
  try {
7
6
  const e = localStorage.getItem("jwtToken");
@@ -42,10 +41,10 @@ function V(e) {
42
41
  v.push(e);
43
42
  }
44
43
  function $(e) {
45
- m.push(e);
44
+ w.push(e);
46
45
  }
47
46
  function F(e) {
48
- w.push(e);
47
+ m.push(e);
49
48
  }
50
49
  function L() {
51
50
  const e = l(!1), o = l(!1), c = l(!1);
@@ -54,14 +53,14 @@ function L() {
54
53
  email: a.email,
55
54
  password: a.password
56
55
  }).then(({
57
- data: r
56
+ data: n
58
57
  }) => {
59
- e.value = !1, p(r.jwtToken), v.forEach((S) => S(r));
60
- }).catch((r) => {
61
- e.value = !1, console.error("登录失败:", r);
58
+ e.value = !1, p(n.jwtToken), v.forEach((S) => S(n));
59
+ }).catch((n) => {
60
+ e.value = !1, console.error("登录失败:", n);
62
61
  });
63
62
  }
64
- function n(a) {
63
+ function r(a) {
65
64
  o.value = !0, A({
66
65
  email: a.email,
67
66
  userToken: a.userToken,
@@ -69,9 +68,9 @@ function L() {
69
68
  password: a.password,
70
69
  referrerId: a.referrerId
71
70
  }).then(() => {
72
- o.value = !1, u.value = "signIn", m.forEach((r) => r());
73
- }).catch((r) => {
74
- o.value = !1, console.error("注册失败:", r);
71
+ o.value = !1, u.value = "signIn", w.forEach((n) => n());
72
+ }).catch((n) => {
73
+ o.value = !1, console.error("注册失败:", n);
75
74
  });
76
75
  }
77
76
  function k(a) {
@@ -81,9 +80,9 @@ function L() {
81
80
  emailVerifyId: a.emailVerifyId,
82
81
  password: a.password
83
82
  }).then(() => {
84
- c.value = !1, u.value = "signIn", w.forEach((r) => r());
85
- }).catch((r) => {
86
- c.value = !1, console.error("重置密码失败:", r);
83
+ c.value = !1, u.value = "signIn", m.forEach((n) => n());
84
+ }).catch((n) => {
85
+ c.value = !1, console.error("重置密码失败:", n);
87
86
  });
88
87
  }
89
88
  function I() {
@@ -97,7 +96,7 @@ function L() {
97
96
  }
98
97
  return {
99
98
  signInSubmit: h,
100
- signUpSubmit: n,
99
+ signUpSubmit: r,
101
100
  resetPasswordSubmit: k,
102
101
  currentView: u,
103
102
  authSignInLoading: e,
@@ -124,28 +123,28 @@ function R(e) {
124
123
  data: e
125
124
  });
126
125
  }
127
- function H(e) {
126
+ function G(e) {
128
127
  return d({
129
128
  url: `${i.authPrefixUrl}/restfulApi/users/update/baseInfo`,
130
129
  method: "post",
131
130
  data: e
132
131
  });
133
132
  }
134
- function J(e) {
133
+ function H(e) {
135
134
  return d({
136
135
  url: `${i.authPrefixUrl}/restfulApi/users/update/email`,
137
136
  method: "post",
138
137
  data: e
139
138
  });
140
139
  }
141
- function K(e) {
140
+ function J(e) {
142
141
  return d({
143
142
  url: `${i.authPrefixUrl}/restfulApi/users/update/password`,
144
143
  method: "post",
145
144
  data: e
146
145
  });
147
146
  }
148
- function M() {
147
+ function K() {
149
148
  return d({
150
149
  url: `${i.authPrefixUrl}/restfulApi/users//unbind/email`,
151
150
  method: "post"
@@ -165,17 +164,17 @@ async function B() {
165
164
  g.value = !0, f.value = !1;
166
165
  try {
167
166
  const {
168
- data: n
167
+ data: r
169
168
  } = await R();
170
- g.value = !1, n ? (s.value = n, f.value = !0) : (console.warn("获取用户资料返回空数据"), s.value = null, f.value = !1);
171
- } catch (n) {
172
- g.value = !1, f.value = !1, console.error("获取用户资料失败:", n), ((h = n == null ? void 0 : n.response) == null ? void 0 : h.status) === 401 && (console.warn("认证已过期,清除认证状态"), o()), s.value = null;
169
+ g.value = !1, r ? (s.value = r, f.value = !0) : (console.warn("获取用户资料返回空数据"), s.value = null, f.value = !1);
170
+ } catch (r) {
171
+ g.value = !1, f.value = !1, console.error("获取用户资料失败:", r), ((h = r == null ? void 0 : r.response) == null ? void 0 : h.status) === 401 && (console.warn("认证已过期,清除认证状态"), o()), s.value = null;
173
172
  }
174
173
  }
175
174
  function N() {
176
175
  s.value = null;
177
176
  }
178
- function O() {
177
+ function M() {
179
178
  return {
180
179
  userProfile: s,
181
180
  loading: g,
@@ -188,11 +187,11 @@ function O() {
188
187
  };
189
188
  }
190
189
  export {
191
- O as a,
190
+ M as a,
192
191
  R as b,
193
- H as c,
194
- K as d,
195
- J as e,
196
- M as f,
192
+ G as c,
193
+ J as d,
194
+ H as e,
195
+ K as f,
197
196
  L as u
198
197
  };
@@ -1,44 +1,43 @@
1
1
  import { ref as a, computed as x } from "vue";
2
- import { g as c } from "./auth-DtA2gxxa.js";
3
- import { api as g } from "@huyooo/api";
2
+ import { c as f, g } from "./auth-B864DrVx.js";
4
3
  function z(t) {
5
- return g({
6
- url: `${c.prefixUrl}/restfulApi/messageCenter/messageNotifications/find`,
4
+ return f({
5
+ url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/find`,
7
6
  method: "post",
8
7
  data: t
9
8
  });
10
9
  }
11
10
  function R(t) {
12
- return g({
13
- url: `${c.prefixUrl}/restfulApi/messageCenter/messageNotifications/read`,
11
+ return f({
12
+ url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/read`,
14
13
  method: "post",
15
14
  data: t
16
15
  });
17
16
  }
18
17
  function S(t) {
19
- return g({
20
- url: `${c.prefixUrl}/restfulApi/messageCenter/messageNotifications/readAll`,
18
+ return f({
19
+ url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/readAll`,
21
20
  method: "post",
22
21
  data: t
23
22
  });
24
23
  }
25
- function k(t = "system") {
26
- const u = a(!0), d = a(""), i = a(!1), m = a(!1), r = a([]), s = a({
24
+ function $(t = "system") {
25
+ const u = a(!0), d = a(""), i = a(!1), v = a(!1), r = a([]), s = a({
27
26
  total: 0,
28
27
  current: 1,
29
28
  pageSize: 10
30
- }), n = a(!1), o = a(!1), f = a("unread"), A = [{
29
+ }), n = a(!1), l = a(!1), c = a("unread"), A = [{
31
30
  label: "未读消息",
32
31
  key: "unread"
33
32
  }, {
34
33
  label: "已读消息",
35
34
  key: "read"
36
- }], v = x(() => f.value === "read");
35
+ }], m = x(() => c.value === "read");
37
36
  function N() {
38
37
  u.value = !0;
39
38
  }
40
39
  function b(e) {
41
- f.value = e, s.value.current = 1, l();
40
+ c.value = e, s.value.current = 1, o();
42
41
  }
43
42
  function p(e) {
44
43
  n.value = !0, R({
@@ -50,29 +49,29 @@ function k(t = "system") {
50
49
  });
51
50
  }
52
51
  function h(e) {
53
- o.value = !0, S({
52
+ l.value = !0, S({
54
53
  type: e
55
54
  }).then(() => {
56
- o.value = !1, l();
55
+ l.value = !1, o();
57
56
  }).catch(() => {
58
- o.value = !1;
57
+ l.value = !1;
59
58
  });
60
59
  }
61
60
  function C() {
62
61
  r.value.length !== 0 && h(t);
63
62
  }
64
- function l() {
63
+ function o() {
65
64
  i.value = !0, z({
66
65
  current: s.value.current,
67
66
  pageSize: s.value.pageSize,
68
67
  where: {
69
- read: v.value,
68
+ read: m.value,
70
69
  type: t
71
70
  }
72
71
  }).then(({
73
72
  data: e
74
73
  }) => {
75
- i.value = !1, r.value = e.items, s.value.total = e.count, m.value = e.items.length < s.value.pageSize;
74
+ i.value = !1, r.value = e.items, s.value.total = e.count, v.value = e.items.length < s.value.pageSize;
76
75
  }).catch(() => {
77
76
  i.value = !1;
78
77
  });
@@ -80,27 +79,27 @@ function k(t = "system") {
80
79
  function L(e) {
81
80
  d.value = e.id, u.value = !1, p(e.id);
82
81
  }
83
- return l(), {
82
+ return o(), {
84
83
  isList: u,
85
84
  id: d,
86
85
  loading: i,
87
- finished: m,
86
+ finished: v,
88
87
  messageList: r,
89
88
  pagination: s,
90
89
  readLoading: n,
91
- readAllLoading: o,
92
- activeTab: f,
90
+ readAllLoading: l,
91
+ activeTab: c,
93
92
  tabs: A,
94
- read: v,
93
+ read: m,
95
94
  toList: N,
96
95
  onTabChange: b,
97
96
  messageNotificationsReadApi: p,
98
97
  messageNotificationsReadAllApi: h,
99
98
  readAll: C,
100
- getData: l,
99
+ getData: o,
101
100
  openDetails: L
102
101
  };
103
102
  }
104
103
  export {
105
- k as u
104
+ $ as u
106
105
  };
@@ -1,7 +1,7 @@
1
1
  import { ref as M, computed as h, watch as V, toValue as z, isRef as N, hasInjectionContext as G, inject as W, watchEffect as B, getCurrentInstance as F, onBeforeUnmount as J, onDeactivated as Q, onActivated as Z } from "vue";
2
2
  import { useRouter as _, useRoute as x } from "vue-router";
3
- import { u as R } from "./useAuthkitAppsAuthPageInfo-C1IsAlcM.js";
4
- import { a as U } from "./useAuthkitUsersProfile-DNYZ87Bt.js";
3
+ import { u as R } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
4
+ import { a as U } from "./useAuthkitUsersProfile-B1y2nleU.js";
5
5
  const $ = M({
6
6
  key: "",
7
7
  name: ""
@@ -1,6 +1,5 @@
1
1
  import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
2
- import { g as it } from "./auth-DtA2gxxa.js";
3
- import { api as bt } from "@huyooo/api";
2
+ import { c as bt, g as it } from "./auth-B864DrVx.js";
4
3
  var Nt = { exports: {} };
5
4
  (function(_, fe) {
6
5
  (function(Y, A) {
@@ -7422,7 +7421,7 @@ function nn(_, fe) {
7422
7421
  function on(_) {
7423
7422
  return _.type && _.type !== "application/octet-stream" && _.type !== "" ? _.type : nn(_.name);
7424
7423
  }
7425
- function an() {
7424
+ function un() {
7426
7425
  const {
7427
7426
  appId: _
7428
7427
  } = it;
@@ -7531,5 +7530,5 @@ function an() {
7531
7530
  export {
7532
7531
  Et as a,
7533
7532
  Ft as r,
7534
- an as u
7533
+ un as u
7535
7534
  };
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as r, U as e, a as n, b as o, c as t, S as U } from "./UserAccountMenu-DgfGUlvA.js";
1
+ import { d as r, U as e, a as n, b as o, c as t, S as U } from "./UserAccountMenu-AhID9xxq.js";
2
2
  export {
3
3
  r as UserAccountMenu,
4
4
  e as UserAvatar,
@@ -1,2 +1,3 @@
1
- import { api } from '@huyooo/api';
1
+ import { AxiosInstance } from 'axios';
2
+ declare const api: AxiosInstance;
2
3
  export default api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -80,11 +80,11 @@
80
80
  },
81
81
  "peerDependencies": {
82
82
  "@arco-design/web-vue": ">=2.56.3",
83
- "@huyooo/api": "*",
84
83
  "@huyooo/vue-tiptap": ">=0.3.25",
85
84
  "@iconify/vue": ">=4.1.2",
86
85
  "@vueuse/core": ">=11.3.0",
87
86
  "ant-design-x-vue": ">=1.2.6",
87
+ "axios": ">=1.0.0",
88
88
  "vue": ">=3.4.37",
89
89
  "vue-router": ">=4.0.0"
90
90
  },