@huyooo/ui 4.0.2 → 4.0.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 (64) hide show
  1. package/dist/{AuthkitAppSetting-Cg8j3nES.js → AuthkitAppSetting-B7xyx5Kb.js} +20 -17
  2. package/dist/{CustomTable-C15Dgbks.js → CustomTable-FlfUde4Q.js} +14 -14
  3. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-Ddy1jcdL.js → FeedbackModal.vue_vue_type_script_setup_true_lang-BBmobezM.js} +9 -8
  4. package/dist/LandingPageLinkGroup-DBhikoiz.js +749 -0
  5. package/dist/{LandingPageSectionTabs-BJQeq3V5.js → LandingPageSectionTabs-BwStYRXA.js} +362 -366
  6. package/dist/{LegalDocViewer-BuzKCAfO.js → LegalDocViewer-BPbrJ2tj.js} +24 -21
  7. package/dist/{PaySubscriptions-ZSvRTG2i.js → PaySubscriptions-CPH1wESx.js} +22 -21
  8. package/dist/{PricingPlans-DTGJ-_us.js → PricingPlans-Cb2qrkmu.js} +3 -3
  9. package/dist/{ReferrerReferees-gkKtDau-.js → ReferrerReferees-B2OR30NV.js} +3 -3
  10. package/dist/Report-C5RbZNpM.js +317 -0
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-C6B5_Hjo.js → Upload.vue_vue_type_script_setup_true_lang-BygtAblQ.js} +1 -1
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BH6l-SKs.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DxvHvsQm.js} +6 -6
  13. package/dist/{WidthContainer-DXwIiG2x.js → WidthContainer-DtKLf5Ub.js} +10 -10
  14. package/dist/authkit.js +8 -8
  15. package/dist/common/globalConfig.d.ts +5 -5
  16. package/dist/common.js +2 -2
  17. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +14 -1
  18. package/dist/components/LandingPage/LandingPageContactForm.vue.d.ts +3 -8
  19. package/dist/components/LandingPage/LandingPageFooterContact.vue.d.ts +23 -15
  20. package/dist/components/LandingPage/LandingPageLink.vue.d.ts +7 -2
  21. package/dist/components/LandingPage/LandingPageReportForm.vue.d.ts +4 -0
  22. package/dist/components/PrivateCom/Report.vue.d.ts +2 -0
  23. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +14 -0
  24. package/dist/composables/Authkit/useLegalDocs.d.ts +1 -1
  25. package/dist/composables.d.ts +2 -0
  26. package/dist/composables.js +60 -54
  27. package/dist/feedback.js +2 -2
  28. package/dist/{fetchAuthPageAboutUs-C-jQ44QK.js → fetchAuthPageAboutUs-DD-MwyiG.js} +2 -2
  29. package/dist/{index-BIxwv9Xs.js → index-ClOjruo3.js} +1 -1
  30. package/dist/{index-5OR_BVTz.js → index-CncbUu-V.js} +1 -1
  31. package/dist/landingPage.d.ts +1 -0
  32. package/dist/landingPage.js +17 -16
  33. package/dist/legalDocs/buildBuiltinUrl.d.ts +1 -1
  34. package/dist/main.js +306 -298
  35. package/dist/pay.js +3 -3
  36. package/dist/privateCom.d.ts +1 -0
  37. package/dist/privateCom.js +3 -2
  38. package/dist/publicReport-ZlMy0xQf.js +32 -0
  39. package/dist/referrer.js +1 -1
  40. package/dist/{runtime-B-tHI8-q.js → runtime-CfbHkmk9.js} +25 -26
  41. package/dist/style.css +1 -1
  42. package/dist/types/api/auth.generated.d.ts +250 -43
  43. package/dist/types/api/ones.generated.d.ts +44 -0
  44. package/dist/types/app.d.ts +9 -0
  45. package/dist/upload.js +2 -2
  46. package/dist/{useAccessPosture-DBNTLWQn.js → useAccessPosture-NSPnmu0I.js} +33 -33
  47. package/dist/{useAuthkitAppsAuthPageInfo-CsivtUQH.js → useAuthkitAppsAuthPageInfo-Cg40bxCJ.js} +25 -23
  48. package/dist/{useAuthkitAuth-CV60Hc3o.js → useAuthkitAuth-C5oUnl8U.js} +1 -1
  49. package/dist/{useAuthkitUsersProfile-CQOLEAxC.js → useAuthkitUsersProfile-BWNVk2UM.js} +1 -1
  50. package/dist/{useEnsureAuthenticated-BYGI2uYZ.js → useEnsureAuthenticated-CQWINiHB.js} +1 -1
  51. package/dist/useLegalDocs-ky2EzBke.js +114 -0
  52. package/dist/{usePageSEO-BHYaXnDU.js → usePageSEO-CWLQAmET.js} +1 -1
  53. package/dist/{useRoutePermission-BkWHsFxN.js → useRoutePermission-K-Eu4pRD.js} +3 -3
  54. package/dist/{useSubscriptionCheckout-QSNro05_.js → useSubscriptionCheckout-BcN8cRMV.js} +1 -1
  55. package/dist/user.js +1 -1
  56. package/dist/utils/company.d.ts +2 -0
  57. package/dist/utils/publicFeedbackSubmit.d.ts +13 -0
  58. package/dist/utils/publicReport.d.ts +26 -0
  59. package/dist/utils/reportForm.d.ts +8 -0
  60. package/dist/utils/requiredFooterLinks.d.ts +11 -0
  61. package/package.json +1 -1
  62. package/dist/Contact-D9NRguTE.js +0 -222
  63. package/dist/LandingPageLinkGroup-B8ERKG5f.js +0 -527
  64. package/dist/useLegalDocs-BrYWCDh3.js +0 -107
package/dist/pay.js CHANGED
@@ -1,6 +1,6 @@
1
- import { P as e, u as t, a as n, v as r } from "./PaySubscriptions-ZSvRTG2i.js";
2
- import { P as i, a as o, b as P, c as p, p as m, r as c } from "./PricingPlans-DTGJ-_us.js";
3
- import { u as g, a as y } from "./useSubscriptionCheckout-QSNro05_.js";
1
+ import { P as e, u as t, a as n, v as r } from "./PaySubscriptions-CPH1wESx.js";
2
+ import { P as i, a as o, b as P, c as p, p as m, r as c } from "./PricingPlans-Cb2qrkmu.js";
3
+ import { u as g, a as y } from "./useSubscriptionCheckout-BcN8cRMV.js";
4
4
  import { useBillingSubscriptionSummary as R } from "./useBillingSubscriptionSummary-DakAVL-3.js";
5
5
  import { c as b, u as x, a as v, b as O } from "./useBillingStatusOptions-BHVLZhEB.js";
6
6
  export {
@@ -1,3 +1,4 @@
1
1
  export { default as Footer } from './components/PrivateCom/Footer.vue';
2
2
  export { default as Introduce } from './components/PrivateCom/Introduce.vue';
3
3
  export { default as Contact } from './components/PrivateCom/Contact.vue';
4
+ export { default as Report } from './components/PrivateCom/Report.vue';
@@ -1,6 +1,7 @@
1
- import { C as a, F as r, I as e } from "./Contact-D9NRguTE.js";
1
+ import { C as a, F as r, I as e, R as s } from "./Report-C5RbZNpM.js";
2
2
  export {
3
3
  a as Contact,
4
4
  r as Footer,
5
- e as Introduce
5
+ e as Introduce,
6
+ s as Report
6
7
  };
@@ -0,0 +1,32 @@
1
+ const s = [{
2
+ label: "关于我们",
3
+ href: "/Introduce"
4
+ }, {
5
+ label: "联系我们",
6
+ href: "/Contact"
7
+ }, {
8
+ label: "博客",
9
+ href: "/Blog"
10
+ }], n = "support@huyooo.com", e = "https://www.12377.cn/", R = "12377", o = "中国互联网违法和不良信息举报中心", a = "/Report";
11
+ function r(t = a) {
12
+ return [{
13
+ label: "违法不良信息举报",
14
+ href: t
15
+ }, {
16
+ label: o,
17
+ href: e
18
+ }];
19
+ }
20
+ function c(t) {
21
+ return /^(https?:|mailto:)/i.test(t);
22
+ }
23
+ export {
24
+ o as C,
25
+ a as R,
26
+ n as S,
27
+ e as a,
28
+ s as b,
29
+ r as c,
30
+ R as d,
31
+ c as i
32
+ };
package/dist/referrer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as f } from "./ReferrerReferees-gkKtDau-.js";
1
+ import { R as f } from "./ReferrerReferees-B2OR30NV.js";
2
2
  export {
3
3
  f as ReferrerReferees
4
4
  };
@@ -11,15 +11,14 @@ function zt(D) {
11
11
  function Vt(D) {
12
12
  _t.value = D, zt(Ht(D));
13
13
  }
14
- const it = {
14
+ const ct = {
15
15
  avatarBucketId: "68350c206888f565dc7d09e9",
16
16
  feedbackBucketId: "6826e4db6888f565dc775dce",
17
17
  bucket: "ones-1358549778",
18
- region: "ap-beijing",
19
- web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
18
+ region: "ap-beijing"
20
19
  };
21
20
  function Dt(D) {
22
- var Ee, _;
21
+ var Ee, _, J;
23
22
  if (!((Ee = D.clientKey) != null && Ee.trim()))
24
23
  throw new Error("createHuyoooUI: clientKey 必填(web / desktop / ios / android / mini_program)");
25
24
  if (!((_ = D.platform) != null && _.trim()))
@@ -38,12 +37,12 @@ function Dt(D) {
38
37
  pricingUrl: D.pricingUrl || "/Pricing",
39
38
  openPricing: D.openPricing,
40
39
  accessDeniedUrl: D.accessDeniedUrl || "/",
41
- avatarBucketId: D.avatarBucketId ?? it.avatarBucketId,
42
- feedbackBucketId: D.feedbackBucketId ?? it.feedbackBucketId,
43
- bucket: D.bucket ?? it.bucket,
44
- region: D.region ?? it.region,
45
- web3formsAccessKey: D.web3formsAccessKey ?? it.web3formsAccessKey,
40
+ avatarBucketId: D.avatarBucketId ?? ct.avatarBucketId,
41
+ feedbackBucketId: D.feedbackBucketId ?? ct.feedbackBucketId,
42
+ bucket: D.bucket ?? ct.bucket,
43
+ region: D.region ?? ct.region,
46
44
  legalDocsMode: D.legalDocsMode ?? "builtin",
45
+ legalDocsBaseUrl: ((J = D.legalDocsBaseUrl) == null ? void 0 : J.replace(/\/$/, "")) || void 0,
47
46
  getAccessToken: D.getAccessToken
48
47
  });
49
48
  }
@@ -5423,7 +5422,7 @@ var wt = { exports: {} };
5423
5422
  Region: e.Region,
5424
5423
  UseAccelerate: e.UseAccelerate,
5425
5424
  Url: p
5426
- }), H = st.call(this, {
5425
+ }), H = it.call(this, {
5427
5426
  Action: (e.Method || "").toUpperCase() === "PUT" ? "name/cos:PutObject" : "name/cos:GetObject",
5428
5427
  Bucket: e.Bucket || "",
5429
5428
  Region: e.Region || "",
@@ -5511,7 +5510,7 @@ var wt = { exports: {} };
5511
5510
  }), h = p.replace(/^https?:\/\/([^/]+)(\/.*)?$/, "$1");
5512
5511
  return h;
5513
5512
  };
5514
- function st(e, c) {
5513
+ function it(e, c) {
5515
5514
  var n = s.clone(e.Headers), u = "";
5516
5515
  s.each(n, function(be, ye) {
5517
5516
  (be === "" || ["content-type", "cache-control", "expires"].indexOf(ye.toLowerCase()) > -1) && delete n[ye], ye.toLowerCase() === "host" && (u = be);
@@ -5710,7 +5709,7 @@ var wt = { exports: {} };
5710
5709
  cate: "PROCESS",
5711
5710
  tag: "base",
5712
5711
  msg: "开始计算签名, opt=".concat(JSON.stringify(Se))
5713
- }), st.call(n, {
5712
+ }), it.call(n, {
5714
5713
  Bucket: e.Bucket || "",
5715
5714
  Region: e.Region || "",
5716
5715
  Method: e.method,
@@ -5845,7 +5844,7 @@ var wt = { exports: {} };
5845
5844
  body: me && me.body
5846
5845
  };
5847
5846
  n.emit("after-receive", qe);
5848
- var xt = qe.error, ut = qe.body, Xe = {
5847
+ var xt = qe.error, st = qe.body, Xe = {
5849
5848
  statusCode: qe.statusCode,
5850
5849
  statusMessage: qe.statusMessage,
5851
5850
  headers: qe.headers
@@ -5876,14 +5875,14 @@ var wt = { exports: {} };
5876
5875
  }
5877
5876
  };
5878
5877
  if (xt) return et(s.error(xt));
5879
- var at = Xe.statusCode, At = Math.floor(at / 100) === 2;
5878
+ var ut = Xe.statusCode, At = Math.floor(ut / 100) === 2;
5880
5879
  if (ue) {
5881
5880
  if (At)
5882
5881
  return et(null, {
5883
- body: ut
5882
+ body: st
5884
5883
  });
5885
- if (ut instanceof Blob) {
5886
- s.readAsBinaryString(ut, function(Pt) {
5884
+ if (st instanceof Blob) {
5885
+ s.readAsBinaryString(st, function(Pt) {
5887
5886
  var tt = s.parseResBody(Pt), je = tt.Error || tt;
5888
5887
  return et(s.error(new Error(je.Message || "response body error"), {
5889
5888
  code: je.Code,
@@ -5893,13 +5892,13 @@ var wt = { exports: {} };
5893
5892
  return;
5894
5893
  }
5895
5894
  }
5896
- var mt = s.parseResBody(ut), ct = mt.Error || mt;
5897
- At ? et(null, mt) : ct ? et(s.error(new Error(ct.Message), {
5898
- code: ct.Code,
5899
- error: ct
5900
- })) : at ? et(s.error(new Error(Xe.statusMessage), {
5901
- code: "" + at
5902
- })) : at && et(s.error(new Error("statusCode error")));
5895
+ var mt = s.parseResBody(st), at = mt.Error || mt;
5896
+ At ? et(null, mt) : at ? et(s.error(new Error(at.Message), {
5897
+ code: at.Code,
5898
+ error: at
5899
+ })) : ut ? et(s.error(new Error(Xe.statusMessage), {
5900
+ code: "" + ut
5901
+ })) : ut && et(s.error(new Error("statusCode error")));
5903
5902
  }
5904
5903
  }), Pe = function(qe) {
5905
5904
  qe.TaskId === u && (ye && ye.abort && ye.abort(), n.off("inner-kill-task", Pe));
@@ -6908,9 +6907,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6908
6907
  if (!O) throw new Error("missing param SecretKey");
6909
6908
  var Ue = Math.round(Ze(R.SystemClockOffset) / 1e3) - 1, we = Ue, ze = R.Expires || R.expires;
6910
6909
  ze === void 0 ? we += 900 : we += ze * 1 || 0;
6911
- var Ye = "sha1", De = P, Re = G || Ue + ";" + we, $e = G || Ue + ";" + we, Ve = x(ge, !0).join(";").toLowerCase(), nt = x(ie, !0).join(";").toLowerCase(), st = k.HmacSHA1($e, O).toString(), Ct = [Q, Be, Ne.obj2str(ie, !0), Ne.obj2str(ge, !0), ""].join(`
6910
+ var Ye = "sha1", De = P, Re = G || Ue + ";" + we, $e = G || Ue + ";" + we, Ve = x(ge, !0).join(";").toLowerCase(), nt = x(ie, !0).join(";").toLowerCase(), it = k.HmacSHA1($e, O).toString(), Ct = [Q, Be, Ne.obj2str(ie, !0), Ne.obj2str(ge, !0), ""].join(`
6912
6911
  `), kt = ["sha1", Re, k.SHA1(Ct).toString(), ""].join(`
6913
- `), Y = k.HmacSHA1(kt, st).toString(), St = ["q-sign-algorithm=" + Ye, "q-ak=" + De, "q-sign-time=" + Re, "q-key-time=" + $e, "q-header-list=" + Ve, "q-url-param-list=" + nt, "q-signature=" + Y].join("&");
6912
+ `), Y = k.HmacSHA1(kt, it).toString(), St = ["q-sign-algorithm=" + Ye, "q-ak=" + De, "q-sign-time=" + Re, "q-key-time=" + $e, "q-header-list=" + Ve, "q-url-param-list=" + nt, "q-signature=" + Y].join("&");
6914
6913
  return St;
6915
6914
  }, a = function(R, P, O) {
6916
6915
  var G = P / 8, Q = R.slice(O, O + G);