@huyooo/ui 0.5.3 → 0.5.5

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 (48) hide show
  1. package/dist/{AuthkitAuthModal-cEi5Hm14.js → AuthkitAuthModal-BjqMoIed.js} +141 -162
  2. package/dist/AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js +10 -0
  3. package/dist/{AuthkitAuthorize-DksJZktr.js → AuthkitAuthorize-DWb0xKRa.js} +12 -15
  4. package/dist/{Clipboard-CGm0G1dN.js → Clipboard-Bful1lNJ.js} +1 -1
  5. package/dist/CustomTable-B8i1SbFB.js +202 -0
  6. package/dist/{FeedbackItem-Day3rfSw.js → FeedbackItem-bPlL6uEE.js} +15 -14
  7. package/dist/{FeedbackModal-CsRXm-MY.js → FeedbackModal-DJx3R3rM.js} +22 -25
  8. package/dist/Introduce-e3nEDSRY.js +390 -0
  9. package/dist/LandingPageSectionHeader-Dlc5rL21.js +463 -0
  10. package/dist/LandingPageSectionTabs-CrFrtbqu.js +1369 -0
  11. package/dist/{MessageHandle-DqH_478k.js → MessageHandle-BJH_S-61.js} +37 -45
  12. package/dist/{PaySubscriptions-Dp8y1fdJ.js → PaySubscriptions-BGl9BQru.js} +17 -16
  13. package/dist/{ReferrerReferees-xIXZglpy.js → ReferrerReferees-oi-zzWCo.js} +20 -19
  14. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CxGZSDoo.js → Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js} +11 -10
  15. package/dist/{UserAccountMenu-DD3zoOBd.js → UserAccountMenu-BD8F9vEK.js} +1 -1
  16. package/dist/{UserPanel-C1NGdsFk.js → UserPanel-C6XusLxb.js} +23 -24
  17. package/dist/{WidthContainer-C30YFs9X.js → WidthContainer-uWfPyPEH.js} +19 -18
  18. package/dist/authkit.js +12 -11
  19. package/dist/common.js +2 -2
  20. package/dist/components/PrivateCom/BodyAndFooterLayout.vue.d.ts +17 -0
  21. package/dist/components/PrivateCom/Footer.vue.d.ts +2 -0
  22. package/dist/components/PrivateCom/Introduce.vue.d.ts +2 -0
  23. package/dist/components/PrivateCom/useSEO.d.ts +71 -0
  24. package/dist/composables.js +26 -25
  25. package/dist/feedback.js +3 -3
  26. package/dist/index-Bb-d5pBq.js +1167 -0
  27. package/dist/index.js +367 -359
  28. package/dist/landingPage.js +46 -45
  29. package/dist/main.d.ts +1 -0
  30. package/dist/message.js +2 -2
  31. package/dist/pay.js +1 -1
  32. package/dist/privateCom.d.ts +4 -0
  33. package/dist/privateCom.js +8 -0
  34. package/dist/referrer.js +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/upload.js +2 -2
  37. package/dist/{AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js → useAuthkitAppsAuthPageInfo-Dr5K7ULW.js} +16 -23
  38. package/dist/{useAuthkitUsersProfile-D2UZf7n0.js → useAuthkitUsersProfile-DNOB_Kuk.js} +1 -1
  39. package/dist/{useMessageNotifications-BahKMcby.js → useMessageNotifications-DOH1MS61.js} +1 -1
  40. package/dist/{useRoutePermission-Uxu5S3m1.js → useRoutePermission-DuZZniIv.js} +18 -17
  41. package/dist/{useUploadCos-DNKp_9xt.js → useUploadCos-B5P_PDcy.js} +2 -2
  42. package/dist/user.js +2 -2
  43. package/package.json +6 -1
  44. package/dist/CustomTable-kfI18phy.js +0 -1359
  45. package/dist/LandingPageSectionTabs-DPTZIwiJ.js +0 -1838
  46. package/dist/utils/landingPage.d.ts +0 -1
  47. /package/dist/{index-DaMA6jEr.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
  48. /package/dist/{index-DZIhLe1R.js → globalConfig-DZIhLe1R.js} +0 -0
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CxGZSDoo.js";
2
- import { u as s } from "./useUploadCos-DNKp_9xt.js";
1
+ import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
2
+ import { u as s } from "./useUploadCos-B5P_PDcy.js";
3
3
  export {
4
4
  p as Upload,
5
5
  s as useUploadCos
@@ -1,26 +1,20 @@
1
- import { ref as n } from "vue";
2
- import { api as i } from "@huyooo/api";
3
- import { g as r } from "./index-DZIhLe1R.js";
4
- const l = n(!1);
5
- function f() {
6
- return {
7
- show: l
8
- };
9
- }
10
- function g(a) {
11
- return i({
12
- url: `${r.authPrefixUrl}/restfulApi/apps/findOne`,
1
+ import { ref as r } from "vue";
2
+ import { api as t } from "@huyooo/api";
3
+ import { g as i } from "./globalConfig-DZIhLe1R.js";
4
+ function s(a) {
5
+ return t({
6
+ url: `${i.authPrefixUrl}/restfulApi/apps/findOne`,
13
7
  method: "post",
14
8
  data: a
15
9
  });
16
10
  }
17
- function u() {
18
- return i({
19
- url: `${r.authPrefixUrl}/restfulApi/apps/authPageInfo`,
11
+ function l() {
12
+ return t({
13
+ url: `${i.authPrefixUrl}/restfulApi/apps/authPageInfo`,
20
14
  method: "post"
21
15
  });
22
16
  }
23
- const o = n({
17
+ const o = r({
24
18
  id: "",
25
19
  appKey: "",
26
20
  name: "",
@@ -93,12 +87,12 @@ const o = n({
93
87
  backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
94
88
  }
95
89
  });
96
- function h() {
97
- function a(t) {
98
- u().then(({
90
+ function f() {
91
+ function a(n) {
92
+ l().then(({
99
93
  data: e
100
94
  }) => {
101
- 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, t && t();
95
+ 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, n && n();
102
96
  }).catch((e) => {
103
97
  console.error("获取应用认证页面信息失败:", e);
104
98
  });
@@ -109,7 +103,6 @@ function h() {
109
103
  };
110
104
  }
111
105
  export {
112
- f as a,
113
- g as b,
114
- h as u
106
+ s as a,
107
+ f as u
115
108
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as u, readonly as S, computed as A } from "vue";
2
2
  import { api as a } from "@huyooo/api";
3
- import { g as n } from "./index-DZIhLe1R.js";
3
+ import { g as n } from "./globalConfig-DZIhLe1R.js";
4
4
  function b(e) {
5
5
  return a({
6
6
  url: `${n.authPrefixUrl}/restfulApi/auth/signIn`,
@@ -1,6 +1,6 @@
1
1
  import { ref as a, computed as x } from "vue";
2
2
  import { api as c } from "@huyooo/api";
3
- import { g } from "./index-DZIhLe1R.js";
3
+ import { g } from "./globalConfig-DZIhLe1R.js";
4
4
  function z(t) {
5
5
  return c({
6
6
  url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/find`,
@@ -1,22 +1,23 @@
1
1
  import { computed as f, ref as R, watch as b } from "vue";
2
2
  import { useRouter as h, useRoute as y } from "vue-router";
3
3
  /* empty css */
4
- import "./index-DZIhLe1R.js";
4
+ /* empty css */
5
5
  /* empty css */
6
6
  import "@arco-design/web-vue";
7
7
  /* empty css */
8
8
  /* empty css */
9
- import "./useUploadCos-DNKp_9xt.js";
9
+ import "./useUploadCos-B5P_PDcy.js";
10
10
  import "@huyooo/api";
11
- import { u as v } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js";
12
- import { a as d } from "./useAuthkitUsersProfile-D2UZf7n0.js";
11
+ import "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
12
+ import { a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
13
13
  import "@iconify/vue";
14
14
  /* empty css */
15
+ import { u as d } from "./useAuthkitAppsAuthPageInfo-Dr5K7ULW.js";
15
16
  /* empty css */
16
17
  /* empty css */
17
18
  /* empty css */
18
- import "./index-DaMA6jEr.js";
19
- function q(n, r = "default") {
19
+ /* empty css */
20
+ function z(n, r = "default") {
20
21
  const o = document;
21
22
  if (o && typeof o.startViewTransition == "function") {
22
23
  const i = document.body;
@@ -31,20 +32,20 @@ function q(n, r = "default") {
31
32
  } else
32
33
  n();
33
34
  }
34
- function z(n, r, o) {
35
+ function B(n, r, o) {
35
36
  const i = n.find((a) => {
36
37
  var c;
37
38
  return ((c = a.meta) == null ? void 0 : c.menuType) === r;
38
39
  });
39
40
  return (i == null ? void 0 : i.path) || o;
40
41
  }
41
- function B(n) {
42
+ function E(n) {
42
43
  const r = h(), {
43
44
  appsData: o
44
- } = v(), {
45
+ } = d(), {
45
46
  isLoggedIn: i,
46
47
  userProfile: a
47
- } = d(), c = f(() => {
48
+ } = v(), c = f(() => {
48
49
  var t;
49
50
  return !i.value || !a.value ? [] : ((t = a.value.permissions) == null ? void 0 : t.map((e) => e.permissionKey)) || [];
50
51
  });
@@ -75,14 +76,14 @@ function B(n) {
75
76
  isLoggedIn: i
76
77
  };
77
78
  }
78
- function E() {
79
+ function F() {
79
80
  const n = h(), r = y(), {
80
81
  appsAuthPageInfoApi: o,
81
82
  appsData: i
82
- } = v(), {
83
+ } = d(), {
83
84
  isLoggedIn: a,
84
85
  userProfile: c
85
- } = d(), u = R(!1);
86
+ } = v(), u = R(!1);
86
87
  function m(e) {
87
88
  return (i.value.publicRoutes || []).some((p) => p.permissionKey === e);
88
89
  }
@@ -112,8 +113,8 @@ function E() {
112
113
  };
113
114
  }
114
115
  export {
115
- E as a,
116
- z as f,
117
- B as u,
118
- q as w
116
+ F as a,
117
+ B as f,
118
+ E as u,
119
+ z as w
119
120
  };
@@ -1,6 +1,6 @@
1
- import { c as _t, g as Ht } from "./index-DaMA6jEr.js";
1
+ import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
2
2
  import { api as bt } from "@huyooo/api";
3
- import { g as it } from "./index-DZIhLe1R.js";
3
+ import { g as it } from "./globalConfig-DZIhLe1R.js";
4
4
  var Nt = { exports: {} };
5
5
  (function(_, fe) {
6
6
  (function(Y, A) {
package/dist/user.js CHANGED
@@ -1,5 +1,5 @@
1
- import { U as r, a as e, b as o, c as n, S as t } from "./UserPanel-C1NGdsFk.js";
2
- import { U as c } from "./UserAccountMenu-DD3zoOBd.js";
1
+ import { U as r, a as e, b as o, c as n, S as t } from "./UserPanel-C6XusLxb.js";
2
+ import { U as c } from "./UserAccountMenu-BD8F9vEK.js";
3
3
  export {
4
4
  c as UserAccountMenu,
5
5
  r as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -58,6 +58,10 @@
58
58
  "import": "./dist/user.js",
59
59
  "types": "./dist/user.d.ts"
60
60
  },
61
+ "./privateCom": {
62
+ "import": "./dist/privateCom.js",
63
+ "types": "./dist/privateCom.d.ts"
64
+ },
61
65
  "./style.css": "./dist/style.css",
62
66
  "./dist/*": "./dist/*"
63
67
  },
@@ -85,6 +89,7 @@
85
89
  "vue-router": ">=4.0.0"
86
90
  },
87
91
  "dependencies": {
92
+ "@unhead/vue": "^2.0.19",
88
93
  "cos-js-sdk-v5": "^1.10.1",
89
94
  "json-bigint": "^1.0.0",
90
95
  "uuid": "^11.1.0",