@huyooo/ui 1.0.3 → 1.0.4

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 (182) hide show
  1. package/dist/AuthkitAppSetting-BN8-xgNq.js +2674 -0
  2. package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
  3. package/dist/CustomTable-BzGfaAVH.js +276 -0
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
  5. package/dist/LandingPageDescription-BczWZHKy.js +12 -0
  6. package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
  7. package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
  8. package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
  9. package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
  10. package/dist/Menu-uCexrsKP.js +199 -0
  11. package/dist/MessageHandle-mEkCsv9e.js +1173 -0
  12. package/dist/MessageList-Ce-_LNTk.js +244 -0
  13. package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
  14. package/dist/PricingPlans-DoWP5aX7.js +427 -0
  15. package/dist/ReferrerReferees-DgygiIiE.js +237 -0
  16. package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
  17. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
  18. package/dist/WidthContainer-PeWkCK0p.js +721 -0
  19. package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
  20. package/dist/authkit.d.ts +6 -2
  21. package/dist/authkit.js +53 -44
  22. package/dist/common/authProviderIcons.d.ts +12 -0
  23. package/dist/common/globalConfig.d.ts +5 -0
  24. package/dist/common/tableColumnWidths.d.ts +11 -0
  25. package/dist/common.js +3 -3
  26. package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
  27. package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
  28. package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
  29. package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
  30. package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
  31. package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
  32. package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
  33. package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
  34. package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
  35. package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
  36. package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
  37. package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
  38. package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
  39. package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
  40. package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
  41. package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
  42. package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
  43. package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
  44. package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
  45. package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
  46. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
  47. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
  48. package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
  49. package/dist/components/CustomTable.vue.d.ts +27 -1
  50. package/dist/components/Ellipsis.vue.d.ts +2 -6
  51. package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
  52. package/dist/components/Gradientbackground.vue.d.ts +2 -2
  53. package/dist/components/HeaderMenus.vue.d.ts +4 -1
  54. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  55. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
  56. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
  57. package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
  58. package/dist/components/Menu.vue.d.ts +2 -1
  59. package/dist/components/MenuItem.vue.d.ts +3 -1
  60. package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
  61. package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
  62. package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
  63. package/dist/components/Message/MessageList.vue.d.ts +4 -3
  64. package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
  65. package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
  66. package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
  67. package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
  68. package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
  69. package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
  70. package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
  71. package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
  72. package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
  73. package/dist/components/Message/messageBody/types.d.ts +7 -0
  74. package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
  75. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
  76. package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
  77. package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
  78. package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
  79. package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
  80. package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
  81. package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
  82. package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
  83. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
  84. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  85. package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
  86. package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
  87. package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
  88. package/dist/composables/Authkit/useOauth.d.ts +17 -4
  89. package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
  90. package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
  91. package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
  92. package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
  93. package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
  94. package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
  95. package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
  96. package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
  97. package/dist/composables/useInfiniteList.d.ts +19 -0
  98. package/dist/composables/useMessageNotifications.d.ts +3 -6
  99. package/dist/composables.d.ts +4 -2
  100. package/dist/composables.js +50 -45
  101. package/dist/feedback.d.ts +1 -0
  102. package/dist/feedback.js +12 -11
  103. package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
  104. package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
  105. package/dist/landingPage.js +21 -21
  106. package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
  107. package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
  108. package/dist/legalDocs/index.d.ts +7 -0
  109. package/dist/legalDocs/isConfigured.d.ts +7 -0
  110. package/dist/legalDocs/open.d.ts +3 -0
  111. package/dist/legalDocs/resolveAppId.d.ts +8 -0
  112. package/dist/legalDocs/resolveTarget.d.ts +4 -0
  113. package/dist/legalDocs/types.d.ts +12 -0
  114. package/dist/main.js +320 -308
  115. package/dist/message.d.ts +3 -0
  116. package/dist/message.js +301 -21
  117. package/dist/pay.d.ts +1 -1
  118. package/dist/pay.js +14 -17
  119. package/dist/privateCom.js +1 -1
  120. package/dist/referrer.js +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/types/api/auth.generated.d.ts +1385 -328
  123. package/dist/types/api/billing.generated.d.ts +907 -76
  124. package/dist/types/api/ones.generated.d.ts +131 -2
  125. package/dist/types/api.d.ts +1 -0
  126. package/dist/types/app.d.ts +10 -0
  127. package/dist/types/user.d.ts +1 -0
  128. package/dist/upload.js +2 -2
  129. package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
  130. package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
  131. package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
  132. package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
  133. package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
  134. package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
  135. package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
  136. package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
  137. package/dist/useRoutePermission-CEiya9AM.js +218 -0
  138. package/dist/useSEO-CDWxbk8B.js +221 -0
  139. package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
  140. package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
  141. package/dist/user.js +1 -1
  142. package/dist/userMenuModal-D-nDaYqM.js +66 -0
  143. package/dist/utils/apiMiddlewares.d.ts +5 -5
  144. package/dist/utils/apiResponse.d.ts +11 -0
  145. package/dist/utils/authProviderIcon.d.ts +3 -0
  146. package/dist/utils/authkit.d.ts +20 -7
  147. package/dist/utils/formatPoints.d.ts +8 -0
  148. package/dist/utils/messageNotificationContent.d.ts +4 -0
  149. package/dist/utils/messageTextLink.d.ts +9 -0
  150. package/dist/utils/passkeySupport.d.ts +8 -0
  151. package/dist/utils/pointsFlowTypes.d.ts +10 -0
  152. package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
  153. package/dist/utils/refundStatusDisplay.d.ts +1 -0
  154. package/dist/utils/subscriptionDisplay.d.ts +7 -0
  155. package/dist/utils/userDisplay.d.ts +41 -0
  156. package/package.json +11 -3
  157. package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
  158. package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
  159. package/dist/CustomTable-nsxN4Ja4.js +0 -276
  160. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
  161. package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
  162. package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
  163. package/dist/Menu-Cy2ZPeaz.js +0 -170
  164. package/dist/MessageHandle-BG12aX0i.js +0 -924
  165. package/dist/MessageList-CrCF8mU6.js +0 -233
  166. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
  167. package/dist/PaySubscriptions-lWnEioX5.js +0 -1241
  168. package/dist/PricingPlans-DFcjOMWS.js +0 -404
  169. package/dist/ReferrerReferees-Cn7KaO8z.js +0 -106
  170. package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js +0 -520
  171. package/dist/WidthContainer-CF3qOLWW.js +0 -688
  172. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
  173. package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
  174. package/dist/index-D3Kp6R4z.js +0 -4
  175. package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
  176. package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
  177. package/dist/useLegalLinks-Cwr45PBT.js +0 -60
  178. package/dist/useRoutePermission-CaWtjLRA.js +0 -212
  179. package/dist/useSEO-BSMQdBR9.js +0 -158
  180. package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
  181. package/dist/useTableHandle-BdujaiNX.js +0 -69
  182. /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
@@ -1,80 +0,0 @@
1
- import { defineComponent as d, openBlock as o, createElementBlock as p, renderSlot as c, createElementVNode as _, normalizeStyle as y, createBlock as l, withCtx as t, Fragment as g, renderList as k, createVNode as B, createTextVNode as i, toDisplayString as u } from "vue";
2
- import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { C as q, a as v } from "./CollapseItem-DUzZA6tx.js";
4
- import { D as L } from "./LandingPageSectionHeader-D_74W4My.js";
5
- const w = {
6
- class: "BlockLayout"
7
- }, x = /* @__PURE__ */ d({
8
- __name: "LandingPageBlockLayout",
9
- props: {
10
- columns: {
11
- type: Number,
12
- default: 1
13
- },
14
- flexDirection: {
15
- type: String,
16
- default: "column"
17
- }
18
- },
19
- setup(a) {
20
- const e = a;
21
- return (s, f) => (o(), p("section", w, [c(s.$slots, "BlockHeader", {}, void 0, !0), _("div", {
22
- class: "BlockBody",
23
- style: y({
24
- gridTemplateColumns: `repeat(${e.columns}, 1fr)`,
25
- flexDirection: e.flexDirection
26
- })
27
- }, [c(s.$slots, "BlockBody", {}, void 0, !0)], 4)]));
28
- }
29
- }), P = /* @__PURE__ */ m(x, [["__scopeId", "data-v-84ed1aaa"]]), C = /* @__PURE__ */ d({
30
- __name: "LandingPageFAQ",
31
- props: {
32
- activeKeys: {
33
- default: () => []
34
- },
35
- faqItems: {
36
- default: () => [{
37
- question: "你们有免费试用吗?",
38
- answer: "我们提供1个月的免费试用"
39
- }, {
40
- question: "我可以申请退款吗?",
41
- answer: "不支持退款,但您可以随时取消订阅。取消订阅后将于下一个结算日的次日生效,在此之前您可以使用服务。为了避免被收取下一计费期的费用,请在下一个计费日期前至少 24 小时取消。"
42
- }, {
43
- question: "付费会员的配额什么时候会重置?会在月初吗?",
44
- answer: "配额重置发生在您订阅后一个月,并非基于日历月。例如,如果您在4月15日订阅,您的配额将在5月15日重置。"
45
- }, {
46
- question: "从月付费订阅升级至年付费订阅,费用和有效期是如何计算的?",
47
- answer: "从月度付费升级至年度付费时,会基于您剩余的月度付费价值计算差额。服务期从升级日起至次年同日。"
48
- }, {
49
- question: "你们提供技术支持吗?",
50
- answer: "是的,在付费期间我们提供全天候的技术支持,可以通过电子邮箱和微信联系我们。"
51
- }, {
52
- question: "使用期间有什么限制吗?",
53
- answer: "在使用期间如果发现开发者违反法律法规或在恶意应用程序中使用等任何不当使用行为,包括但不限于共享或出售订阅,都是被禁止的,可能会导致您的账户被终止且不予退款。我们有权终止服务,详情请参阅《付费服务协议》"
54
- }]
55
- }
56
- },
57
- setup(a) {
58
- const e = a;
59
- return (s, f) => (o(), l(q, {
60
- "active-keys": e.activeKeys
61
- }, {
62
- default: t(() => [(o(!0), p(g, null, k(e.faqItems, (n, r) => (o(), l(v, {
63
- key: r,
64
- index: r
65
- }, {
66
- header: t(() => [i(u(n.question), 1)]),
67
- default: t(() => [B(L, null, {
68
- default: t(() => [i(u(n.answer), 1)]),
69
- _: 2
70
- }, 1024)]),
71
- _: 2
72
- }, 1032, ["index"]))), 128))]),
73
- _: 1
74
- }, 8, ["active-keys"]));
75
- }
76
- }), S = /* @__PURE__ */ m(C, [["__scopeId", "data-v-581e8f75"]]);
77
- export {
78
- P as L,
79
- S as a
80
- };
@@ -1,69 +0,0 @@
1
- import { openBlock as n, createElementBlock as c, renderSlot as a, defineComponent as o, createElementVNode as t, toDisplayString as s } from "vue";
2
- import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const d = {}, h = {
4
- class: "Description"
5
- };
6
- function r(i, e) {
7
- return n(), c("div", h, [a(i.$slots, "default", {}, void 0, !0)]);
8
- }
9
- const M = /* @__PURE__ */ l(d, [["render", r], ["__scopeId", "data-v-8b3dab7a"]]), C = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='14'%20fill='url(%23paint0_linear_1212_46228)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17%2011C13.6863%2011%2011%2013.6863%2011%2017V23C11%2026.3137%2013.6863%2029%2017%2029H23C26.3137%2029%2029%2026.3137%2029%2023V17C29%2013.6863%2026.3137%2011%2023%2011H17ZM20.0002%2015.9091C20.4521%2015.9091%2020.8184%2016.2754%2020.8184%2016.7273V19.1818H23.2718C23.7237%2019.1818%2024.09%2019.5481%2024.09%2020C24.09%2020.4519%2023.7237%2020.8182%2023.2718%2020.8182H20.8184V23.2727C20.8184%2023.7246%2020.4521%2024.0909%2020.0002%2024.0909C19.5484%2024.0909%2019.182%2023.7246%2019.182%2023.2727V20.8182H16.7264C16.2745%2020.8182%2015.9082%2020.4519%2015.9082%2020C15.9082%2019.5481%2016.2745%2019.1818%2016.7264%2019.1818H19.182V16.7273C19.182%2016.2754%2019.5484%2015.9091%2020.0002%2015.9091Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1212_46228'%20x1='20'%20y1='0'%20x2='20'%20y2='40'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235766F0'/%3e%3cstop%20offset='1'%20stop-color='%23591EFF'%20stop-opacity='0.81'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", _ = "data:image/svg+xml,%3csvg%20width='72'%20height='48'%20viewBox='0%200%2072%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_1212_46227'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='72'%20height='48'%3e%3crect%20width='72'%20height='48'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1212_46227)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3789%2010.0001C16.3789%209.10554%2017.1041%208.38037%2017.9986%208.38037C18.8932%208.38037%2019.6183%209.10554%2019.6183%2010.0001C19.6183%2011.0172%2019.6664%2011.9775%2019.7585%2012.8841C19.8489%2013.7741%2019.2007%2014.5688%2018.3107%2014.6592C17.4208%2014.7497%2016.626%2014.1015%2016.5356%2013.2115C16.4317%2012.1889%2016.3789%2011.1191%2016.3789%2010.0001ZM18.0425%2019.547C17.7074%2018.7176%2018.1082%2017.7736%2018.9377%2017.4385C19.7671%2017.1035%2020.7111%2017.5043%2021.0461%2018.3337C21.7781%2020.146%2022.7687%2021.655%2023.9669%2022.9209C24.5819%2023.5705%2024.5537%2024.5957%2023.9041%2025.2106C23.2544%2025.8256%2022.2293%2025.7975%2021.6143%2025.1478C20.1362%2023.5862%2018.9254%2021.7329%2018.0425%2019.547ZM26.9161%2029.0658C26.1211%2028.6558%2025.8089%2027.6789%2026.219%2026.8838C26.629%2026.0888%2027.6059%2025.7767%2028.4009%2026.1867C30.0125%2027.0178%2031.8088%2027.6689%2033.753%2028.1757C34.6186%2028.4013%2035.1374%2029.286%2034.9118%2030.1516C34.6861%2031.0172%2033.8015%2031.536%2032.9359%2031.3104C30.8126%2030.7569%2028.7832%2030.0287%2026.9161%2029.0658ZM39.1207%2032.4579C38.2329%2032.348%2037.6022%2031.5393%2037.7121%2030.6516C37.8219%2029.7638%2038.6306%2029.1331%2039.5183%2029.2429C41.4424%2029.4809%2043.4322%2029.6311%2045.4551%2029.7252C46.3487%2029.7668%2047.0394%2030.5249%2046.9978%2031.4185C46.9562%2032.312%2046.1981%2033.0027%2045.3045%2032.9611C43.2229%2032.8643%2041.1475%2032.7086%2039.1207%2032.4579ZM51.4468%2033.1103C50.5523%2033.1036%2049.8326%2032.373%2049.8393%2031.4785C49.846%2030.584%2050.5766%2029.8643%2051.4711%2029.871C51.8002%2029.8735%2052.129%2029.8753%2052.4574%2029.8767L49.0395%2026.4589C48.4537%2025.8731%2048.4537%2024.9233%2049.0395%2024.3376C49.6253%2023.7518%2050.5751%2023.7518%2051.1608%2024.3376L56.5556%2029.7323C57.5319%2030.7086%2057.5319%2032.2915%2056.5556%2033.2678L51.1608%2038.6626C50.5751%2039.2484%2049.6253%2039.2484%2049.0395%2038.6626C48.4537%2038.0768%2048.4537%2037.1271%2049.0395%2036.5413L52.4646%2033.1162C52.1261%2033.1148%2051.7868%2033.1129%2051.4468%2033.1103Z'%20fill='black'%20fill-opacity='0.9'/%3e%3c/g%3e%3c/svg%3e", g = {
10
- class: "section-header"
11
- }, p = {
12
- class: "title-section"
13
- }, f = {
14
- class: "icon-title"
15
- }, u = ["src", "width", "height"], m = {
16
- class: "title"
17
- }, v = {
18
- class: "subtitle-section"
19
- }, w = ["src", "width", "height"], x = {
20
- class: "subtitle"
21
- }, y = "图标", H = "装饰线条", k = /* @__PURE__ */ o({
22
- __name: "LandingPageSectionHeader",
23
- props: {
24
- title: {},
25
- subtitle: {},
26
- icon: {
27
- default: C
28
- },
29
- iconWidth: {
30
- default: 40
31
- },
32
- iconHeight: {
33
- default: 40
34
- },
35
- dashline: {
36
- default: _
37
- },
38
- dashlineWidth: {
39
- default: 72
40
- },
41
- dashlineHeight: {
42
- default: 48
43
- }
44
- },
45
- setup(i) {
46
- const e = i;
47
- return (S, b) => (n(), c("div", g, [t("div", p, [t("div", f, [t("img", {
48
- src: e.icon,
49
- alt: y,
50
- width: e.iconWidth,
51
- height: e.iconHeight,
52
- loading: "lazy",
53
- decoding: "async",
54
- class: "icon"
55
- }, null, 8, u), t("span", m, s(i.title), 1)]), t("div", v, [t("img", {
56
- src: e.dashline,
57
- alt: H,
58
- width: e.dashlineWidth,
59
- height: e.dashlineHeight,
60
- loading: "lazy",
61
- decoding: "async",
62
- class: "dashline"
63
- }, null, 8, w), t("span", x, s(i.subtitle), 1)])])]));
64
- }
65
- }), V = /* @__PURE__ */ l(k, [["__scopeId", "data-v-e1681a62"]]);
66
- export {
67
- M as D,
68
- V as L
69
- };
@@ -1,170 +0,0 @@
1
- import { defineComponent as $, openBlock as u, createElementBlock as i, normalizeClass as m, createBlock as f, unref as k, createCommentVNode as y, createElementVNode as d, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as z, withCtx as F, withDirectives as G, vShow as L } from "vue";
2
- import { Icon as C } from "@iconify/vue";
3
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const O = {
5
- class: "menu-item__name"
6
- }, T = /* @__PURE__ */ $({
7
- __name: "MenuItem",
8
- props: {
9
- hidden: {
10
- type: Boolean,
11
- default: !1
12
- },
13
- path: {
14
- default: ""
15
- },
16
- icon: {
17
- default: ""
18
- },
19
- name: {},
20
- active: {
21
- type: Boolean,
22
- default: !1
23
- }
24
- },
25
- emits: ["click"],
26
- setup(h, {
27
- emit: v
28
- }) {
29
- const t = h, p = v;
30
- return (s, l) => t.hidden ? y("", !0) : (u(), i("div", {
31
- key: 0,
32
- class: m(["menu-item", {
33
- "menu-item--active": t.active
34
- }]),
35
- onClick: l[0] || (l[0] = (w) => p("click"))
36
- }, [t.icon ? (u(), f(k(C), {
37
- key: 0,
38
- class: "menu-item__icon",
39
- icon: t.icon,
40
- width: 16
41
- }, null, 8, ["icon"])) : y("", !0), d("span", O, A(t.name), 1)], 2));
42
- }
43
- }), I = /* @__PURE__ */ b(T, [["__scopeId", "data-v-9f8ad9ae"]]), j = {
44
- class: "menu"
45
- }, q = ["onClick"], H = {
46
- class: "menu-group__header-content"
47
- }, J = {
48
- class: "menu-group__title"
49
- }, Q = {
50
- class: "menu-group__children"
51
- }, R = /* @__PURE__ */ $({
52
- __name: "Menu",
53
- props: {
54
- menus: {
55
- default: () => []
56
- },
57
- selectedKeys: {
58
- default: () => []
59
- },
60
- defaultExpandAll: {
61
- type: Boolean,
62
- default: !0
63
- },
64
- accordion: {
65
- type: Boolean,
66
- default: !1
67
- }
68
- },
69
- emits: ["update:selectedKeys", "change"],
70
- setup(h, {
71
- emit: v
72
- }) {
73
- const t = h, p = v, s = D([]);
74
- function l(n, a) {
75
- var e, c;
76
- return !!((e = n.children) != null && e.some((r) => a.includes(r.path)) || (c = n.children) != null && c.some((r) => a.some((_) => _.startsWith(r.path + "/"))) || n.path && a.some((r) => r.startsWith(n.path + "/")));
77
- }
78
- function w() {
79
- if (t.defaultExpandAll && !t.accordion)
80
- s.value = t.menus.filter((n) => n.children && n.children.length > 0).map((n, a) => n.path || a.toString());
81
- else {
82
- s.value = [];
83
- for (let n = 0; n < t.menus.length; n++) {
84
- const a = t.menus[n];
85
- if (l(a, t.selectedKeys) && (s.value.push(a.path || n.toString()), t.accordion))
86
- break;
87
- }
88
- }
89
- }
90
- function N(n) {
91
- const a = s.value.indexOf(n);
92
- a > -1 ? s.value.splice(a, 1) : t.accordion ? s.value = [n] : s.value.push(n);
93
- }
94
- function x(n) {
95
- p("change", n), p("update:selectedKeys", [n.path]);
96
- }
97
- function V(n) {
98
- return l(n, t.selectedKeys);
99
- }
100
- function W(n) {
101
- return t.selectedKeys.includes(n) ? !0 : t.selectedKeys.some((a) => a.startsWith(n + "/"));
102
- }
103
- return B(() => t.menus, w, {
104
- immediate: !0,
105
- deep: !0
106
- }), B(() => t.selectedKeys, (n) => {
107
- for (let a = 0; a < t.menus.length; a++) {
108
- const e = t.menus[a], c = e.path || a.toString();
109
- if (l(e, n)) {
110
- s.value.includes(c) || (t.accordion ? s.value = [c] : s.value.push(c));
111
- break;
112
- }
113
- }
114
- }, {
115
- deep: !0
116
- }), (n, a) => (u(), i("div", j, [(u(!0), i(g, null, M(t.menus, (e, c) => {
117
- var r, _, K;
118
- return u(), i("div", {
119
- key: e.path || c,
120
- class: "menu-group"
121
- }, [e.children && e.children.length > 0 ? (u(), i(g, {
122
- key: 0
123
- }, [d("div", {
124
- class: m(["menu-group__header", {
125
- "menu-group__header--active": V(e)
126
- }]),
127
- onClick: (o) => N(e.path || c.toString())
128
- }, [d("div", H, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), f(k(C), {
129
- key: 0,
130
- class: "menu-group__icon",
131
- icon: ((_ = e == null ? void 0 : e.meta) == null ? void 0 : _.icon) || (e == null ? void 0 : e.icon),
132
- width: 16
133
- }, null, 8, ["icon"])) : y("", !0), d("span", J, A(e.name), 1)]), E(k(C), {
134
- class: m(["menu-group__arrow", {
135
- "menu-group__arrow--expanded": s.value.includes(e.path || c.toString())
136
- }]),
137
- icon: "mingcute:down-line",
138
- width: 14
139
- }, null, 8, ["class"])], 10, q), E(z, {
140
- name: "collapse"
141
- }, {
142
- default: F(() => [G(d("div", Q, [(u(!0), i(g, null, M(e.children, (o) => {
143
- var S;
144
- return u(), f(I, {
145
- key: o.path,
146
- hidden: o == null ? void 0 : o.hidden,
147
- path: o.path,
148
- icon: ((S = o == null ? void 0 : o.meta) == null ? void 0 : S.icon) || (o == null ? void 0 : o.icon),
149
- name: o.name,
150
- active: W(o.path),
151
- onClick: (U) => x(o)
152
- }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
153
- }), 128))], 512), [[L, s.value.includes(e.path || c.toString())]])]),
154
- _: 2
155
- }, 1024)], 64)) : (u(), f(I, {
156
- key: 1,
157
- hidden: e == null ? void 0 : e.hidden,
158
- path: e.path,
159
- icon: ((K = e == null ? void 0 : e.meta) == null ? void 0 : K.icon) || (e == null ? void 0 : e.icon),
160
- name: e.name,
161
- active: t.selectedKeys.includes(e.path),
162
- onClick: (o) => x(e)
163
- }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
164
- }), 128))]));
165
- }
166
- }), P = /* @__PURE__ */ b(R, [["__scopeId", "data-v-e90b880a"]]);
167
- export {
168
- P as M,
169
- I as a
170
- };