@vuepress/theme-default 2.0.0-rc.128 → 2.0.0-rc.131

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 (123) hide show
  1. package/dist/client/components/VPAutoLink.vue +1 -3
  2. package/dist/client/components/VPNavbar.vue +1 -0
  3. package/dist/client/components/VPNavbarDropdown.vue +4 -5
  4. package/dist/client/components/VPSidebarItem.vue +3 -7
  5. package/dist/client/components/global/Badge.vue +3 -9
  6. package/dist/client/composables/index.d.ts +11 -11
  7. package/dist/client/composables/index.js +1 -1
  8. package/dist/client/composables/useDarkMode.d.ts +1 -1
  9. package/dist/client/composables/useDarkMode.js +1 -2
  10. package/dist/client/composables/useData.d.ts +1 -1
  11. package/dist/client/composables/useData.js +1 -2
  12. package/dist/client/composables/useEditLink.d.ts +1 -1
  13. package/dist/client/composables/useEditLink.js +1 -2
  14. package/dist/client/composables/useHeaders.js.map +1 -1
  15. package/dist/client/composables/useNavbarConfig.d.ts +1 -1
  16. package/dist/client/composables/useNavbarConfig.js +1 -2
  17. package/dist/client/composables/useNavbarRepo.d.ts +1 -1
  18. package/dist/client/composables/useNavbarRepo.js +1 -2
  19. package/dist/client/composables/useNavbarSelectLanguage.d.ts +1 -1
  20. package/dist/client/composables/useNavbarSelectLanguage.js +1 -2
  21. package/dist/client/composables/useNavigate.d.ts +1 -1
  22. package/dist/client/composables/useNavigate.js +1 -2
  23. package/dist/client/composables/useRelatedLinks.d.ts +1 -1
  24. package/dist/client/composables/useRelatedLinks.js +1 -2
  25. package/dist/client/composables/useScrollPromise.d.ts +1 -1
  26. package/dist/client/composables/useScrollPromise.js +1 -2
  27. package/dist/client/composables/useSidebarItems.d.ts +1 -1
  28. package/dist/client/composables/useSidebarItems.js +1 -2
  29. package/dist/client/composables/useUpdateDeviceStatus.d.ts +1 -1
  30. package/dist/client/composables/useUpdateDeviceStatus.js +1 -2
  31. package/dist/client/config.d.ts +1 -2
  32. package/dist/client/config.js.map +1 -1
  33. package/dist/client/index.d.ts +19 -21
  34. package/dist/client/index.js +1 -1
  35. package/dist/client/styles/index.scss +0 -1
  36. package/dist/client/utils/index.d.ts +5 -5
  37. package/dist/client/utils/index.js +1 -1
  38. package/dist/client/utils/isActiveSidebarItem.d.ts +1 -1
  39. package/dist/client/utils/isActiveSidebarItem.js +1 -2
  40. package/dist/client/utils/resolveAutoLink.d.ts +1 -1
  41. package/dist/client/utils/resolveAutoLink.js +1 -2
  42. package/dist/client/utils/resolveEditLink.d.ts +1 -1
  43. package/dist/client/utils/resolveEditLink.js +1 -2
  44. package/dist/client/utils/resolvePrefix.d.ts +1 -1
  45. package/dist/client/utils/resolvePrefix.js +1 -2
  46. package/dist/client/utils/resolveRepoType.d.ts +1 -1
  47. package/dist/client/utils/resolveRepoType.js +1 -2
  48. package/dist/composables-CAISgiXf.js +1 -0
  49. package/dist/index-BKZ67WMa.d.ts +1 -0
  50. package/dist/index-BVVgDSdq.d.ts +1 -0
  51. package/dist/{page-FWcDnzJp.d.ts → index-ur5YvkCJ.d.ts} +73 -34
  52. package/dist/isActiveSidebarItem-BQHhsM53.js +2 -0
  53. package/dist/isActiveSidebarItem-BQHhsM53.js.map +1 -0
  54. package/dist/{isActiveSidebarItem-aythFTeC.d.ts → isActiveSidebarItem-K6rOnBw4.d.ts} +2 -2
  55. package/dist/node/index.d.ts +16 -47
  56. package/dist/node/index.js +1 -1
  57. package/dist/node/index.js.map +1 -1
  58. package/dist/{resolveAutoLink-BR2Z05MD.d.ts → resolveAutoLink-DBXc0Cd3.d.ts} +6 -6
  59. package/dist/resolveAutoLink-XUJwl3Kb.js +2 -0
  60. package/dist/resolveAutoLink-XUJwl3Kb.js.map +1 -0
  61. package/dist/{resolveEditLink-DazcWeGf.d.ts → resolveEditLink-BRZu2eno.d.ts} +1 -1
  62. package/dist/resolveEditLink-lteF0-Mv.js +2 -0
  63. package/dist/resolveEditLink-lteF0-Mv.js.map +1 -0
  64. package/dist/{resolvePrefix-BN9K9RA5.d.ts → resolvePrefix-BXZhEIJn.d.ts} +1 -1
  65. package/dist/resolvePrefix-CQnTmTk4.js +2 -0
  66. package/dist/resolvePrefix-CQnTmTk4.js.map +1 -0
  67. package/dist/resolveRepoType-BfcHRhpi.js +2 -0
  68. package/dist/resolveRepoType-BfcHRhpi.js.map +1 -0
  69. package/dist/{resolveRepoType-Wcj35_rs.d.ts → resolveRepoType-DEy0Gvc4.d.ts} +1 -1
  70. package/dist/{typings-NbQSzbOn.d.ts → typings-CiGFIZqG.d.ts} +2 -3
  71. package/dist/useDarkMode-BfKvIN6K.js +2 -0
  72. package/dist/useDarkMode-BfKvIN6K.js.map +1 -0
  73. package/dist/{useDarkMode-DLor2cV7.d.ts → useDarkMode-uRSRwA8U.d.ts} +2 -4
  74. package/dist/{useData-JDen_Bxm.d.ts → useData-DwmcO8iz.d.ts} +2 -2
  75. package/dist/useData-nv4hwlgW.js +2 -0
  76. package/dist/useData-nv4hwlgW.js.map +1 -0
  77. package/dist/useEditLink-BmoW42FE.js +2 -0
  78. package/dist/useEditLink-BmoW42FE.js.map +1 -0
  79. package/dist/{useEditLink-DPCTvXmM.d.ts → useEditLink-COgJktiW.d.ts} +1 -1
  80. package/dist/useNavbarConfig-CxVplYul.js +2 -0
  81. package/dist/useNavbarConfig-CxVplYul.js.map +1 -0
  82. package/dist/{useNavbarConfig-C19TGFg7.d.ts → useNavbarConfig-fLxvBobP.d.ts} +2 -2
  83. package/dist/useNavbarRepo-BScd94be.js +2 -0
  84. package/dist/useNavbarRepo-BScd94be.js.map +1 -0
  85. package/dist/{useNavbarRepo-DxhSIAFq.d.ts → useNavbarRepo-DndxHxeK.d.ts} +2 -2
  86. package/dist/useNavbarSelectLanguage-FHyzHFEW.js +2 -0
  87. package/dist/useNavbarSelectLanguage-FHyzHFEW.js.map +1 -0
  88. package/dist/{useNavbarSelectLanguage-4GkrPvc2.d.ts → useNavbarSelectLanguage-a9ZpUKwM.d.ts} +2 -2
  89. package/dist/useNavigate-mlFey3ew.js +2 -0
  90. package/dist/useNavigate-mlFey3ew.js.map +1 -0
  91. package/dist/{useNavigate-lH4xyHOV.d.ts → useNavigate-zqYnxkd_.d.ts} +1 -1
  92. package/dist/useRelatedLinks-BwsPumn1.js +2 -0
  93. package/dist/useRelatedLinks-BwsPumn1.js.map +1 -0
  94. package/dist/{useRelatedLinks-ChTW2RRU.d.ts → useRelatedLinks-DxkE-gdP.d.ts} +2 -2
  95. package/dist/useScrollPromise-CB6ZLciv.js +2 -0
  96. package/dist/useScrollPromise-CB6ZLciv.js.map +1 -0
  97. package/dist/{useScrollPromise-BAl732Uv.d.ts → useScrollPromise-TwtWBE3d.d.ts} +2 -2
  98. package/dist/useSidebarItems-CL0nJ7E8.js +2 -0
  99. package/dist/useSidebarItems-CL0nJ7E8.js.map +1 -0
  100. package/dist/{useSidebarItems-CdpB96Ta.d.ts → useSidebarItems-aGO1YtUp.d.ts} +33 -37
  101. package/dist/{useUpdateDeviceStatus-SBnOZx8J.d.ts → useUpdateDeviceStatus-CsrJ_Qqv.d.ts} +4 -3
  102. package/dist/useUpdateDeviceStatus-DMKiVB3W.js +2 -0
  103. package/dist/useUpdateDeviceStatus-DMKiVB3W.js.map +1 -0
  104. package/dist/utils-CAISgiXf.js +1 -0
  105. package/package.json +23 -23
  106. package/dist/client/composables/useDarkMode.js.map +0 -1
  107. package/dist/client/composables/useData.js.map +0 -1
  108. package/dist/client/composables/useEditLink.js.map +0 -1
  109. package/dist/client/composables/useNavbarConfig.js.map +0 -1
  110. package/dist/client/composables/useNavbarRepo.js.map +0 -1
  111. package/dist/client/composables/useNavbarSelectLanguage.js.map +0 -1
  112. package/dist/client/composables/useNavigate.js.map +0 -1
  113. package/dist/client/composables/useRelatedLinks.js.map +0 -1
  114. package/dist/client/composables/useScrollPromise.js.map +0 -1
  115. package/dist/client/composables/useSidebarItems.js.map +0 -1
  116. package/dist/client/composables/useUpdateDeviceStatus.js.map +0 -1
  117. package/dist/client/utils/isActiveSidebarItem.js.map +0 -1
  118. package/dist/client/utils/resolveAutoLink.js.map +0 -1
  119. package/dist/client/utils/resolveEditLink.js.map +0 -1
  120. package/dist/client/utils/resolvePrefix.js.map +0 -1
  121. package/dist/client/utils/resolveRepoType.js.map +0 -1
  122. package/dist/nav-DikslSJ_.d.ts +0 -36
  123. package/dist/sidebar-CF1YPYLN.d.ts +0 -53
@@ -4,9 +4,7 @@ import type { AutoLinkConfig } from 'vuepress/client'
4
4
  import { AutoLink } from 'vuepress/client'
5
5
 
6
6
  const { config } = defineProps<{
7
- /**
8
- * The auto link config
9
- */
7
+ /** The auto link config */
10
8
  config: AutoLinkConfig
11
9
  }>()
12
10
 
@@ -43,6 +43,7 @@ const getCssValue = (el: HTMLElement | null, property: string): number => {
43
43
  property as keyof CSSStyleDeclaration
44
44
  ]
45
45
 
46
+ // oxlint-disable-next-line unicorn/prefer-number-coercion
46
47
  const num = Number.parseInt(val as string, 10)
47
48
 
48
49
  return Number.isNaN(num) ? 0 : num
@@ -11,7 +11,7 @@ import type { AutoLinkOptions, NavGroup } from '../../shared/index.js'
11
11
  import '@vuepress/helper/transition/fade-in-height-expand.css'
12
12
 
13
13
  const { config } = defineProps<{
14
- /** dropdown config */
14
+ /** Dropdown config */
15
15
  config: NavGroup<AutoLinkOptions | NavGroup<AutoLinkOptions>>
16
16
  }>()
17
17
 
@@ -25,12 +25,11 @@ const isLastItemOfArray = (arrayItem: unknown, array: unknown[]): boolean =>
25
25
  /**
26
26
  * Open the dropdown when user tab and click from keyboard.
27
27
  *
28
- * Use event.detail to detect tab and click from keyboard.
29
- * The Tab + Click is UIEvent > KeyboardEvent, so the detail is 0.
30
- *
31
- * @see https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail
28
+ * Use event.detail to detect tab and click from keyboard. The Tab + Click is
29
+ * UIEvent > KeyboardEvent, so the detail is 0.
32
30
  *
33
31
  * @param event - The UIEvent triggered by the click
32
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail
34
33
  */
35
34
  const handleDropdown = (event: UIEvent): void => {
36
35
  if (event.detail === 0) toggleOpen()
@@ -10,13 +10,9 @@ import VPDropdownTransition from '@theme/VPDropdownTransition.vue'
10
10
  import type { SidebarGroupItem, SidebarItem } from '../typings.js'
11
11
 
12
12
  const { item, depth = 0 } = defineProps<{
13
- /**
14
- * The sidebar item to be rendered
15
- */
13
+ /** The sidebar item to be rendered */
16
14
  item: SidebarItem
17
- /**
18
- * The depth of the current sidebar item
19
- */
15
+ /** The depth of the current sidebar item */
20
16
  depth?: number
21
17
  }>()
22
18
 
@@ -47,7 +43,7 @@ const onClick = (event: Event): void => {
47
43
 
48
44
  // reset open status after navigation
49
45
  const unregisterRouterHook = router.afterEach(() => {
50
- void nextTick(() => {
46
+ void nextTick().then(() => {
51
47
  isOpen.value = isOpenDefault.value
52
48
  })
53
49
  })
@@ -6,17 +6,11 @@ const {
6
6
  text = '',
7
7
  vertical = '',
8
8
  } = defineProps<{
9
- /**
10
- * The type of the badge
11
- */
9
+ /** The type of the badge */
12
10
  type?: string
13
- /**
14
- * The text of the badge
15
- */
11
+ /** The text of the badge */
16
12
  text?: string
17
- /**
18
- * The vertical align of the badge
19
- */
13
+ /** The vertical align of the badge */
20
14
  vertical?: string
21
15
  }>()
22
16
 
@@ -1,12 +1,12 @@
1
- import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DLor2cV7.js";
2
- import { n as useData, t as Data } from "../../useData-JDen_Bxm.js";
3
- import { t as useEditLink } from "../../useEditLink-DPCTvXmM.js";
4
- import { t as useNavigate } from "../../useNavigate-lH4xyHOV.js";
5
- import { t as useNavbarConfig } from "../../useNavbarConfig-C19TGFg7.js";
6
- import { t as useNavbarRepo } from "../../useNavbarRepo-DxhSIAFq.js";
7
- import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-4GkrPvc2.js";
8
- import { t as useRelatedLinks } from "../../useRelatedLinks-ChTW2RRU.js";
9
- import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-BAl732Uv.js";
10
- import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-CdpB96Ta.js";
11
- import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-SBnOZx8J.js";
1
+ import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-uRSRwA8U.js";
2
+ import { n as useData, t as Data } from "../../useData-DwmcO8iz.js";
3
+ import { t as useEditLink } from "../../useEditLink-COgJktiW.js";
4
+ import { t as useNavigate } from "../../useNavigate-zqYnxkd_.js";
5
+ import { t as useNavbarConfig } from "../../useNavbarConfig-fLxvBobP.js";
6
+ import { t as useNavbarRepo } from "../../useNavbarRepo-DndxHxeK.js";
7
+ import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-a9ZpUKwM.js";
8
+ import { t as useRelatedLinks } from "../../useRelatedLinks-DxkE-gdP.js";
9
+ import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-TwtWBE3d.js";
10
+ import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-aGO1YtUp.js";
11
+ import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-CsrJ_Qqv.js";
12
12
  export { DarkModeRef, Data, DeviceType, ScrollPromise, SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
@@ -1 +1 @@
1
- import{setupDarkMode as e,useDarkMode as t}from"./useDarkMode.js";import{useData as n}from"./useData.js";import{useEditLink as r}from"./useEditLink.js";import{useNavigate as i}from"./useNavigate.js";import{useNavbarConfig as a}from"./useNavbarConfig.js";import{useNavbarRepo as o}from"./useNavbarRepo.js";import{useNavbarSelectLanguage as s}from"./useNavbarSelectLanguage.js";import{useRelatedLinks as c}from"./useRelatedLinks.js";import{useScrollPromise as l}from"./useScrollPromise.js";import{resolveArraySidebarItems as u,resolveMultiSidebarItems as d,resolveSidebarHeadingItem as f,resolveSidebarItems as p,resolveSidebarPageHeader as m,resolveSidebarPageHeaders as h,setupSidebarItems as g,sidebarItemsSymbol as _,useSidebarItems as v}from"./useSidebarItems.js";import{DeviceType as y,useUpdateDeviceStatus as b}from"./useUpdateDeviceStatus.js";export{y as DeviceType,u as resolveArraySidebarItems,d as resolveMultiSidebarItems,f as resolveSidebarHeadingItem,p as resolveSidebarItems,m as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,e as setupDarkMode,g as setupSidebarItems,_ as sidebarItemsSymbol,t as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,v as useSidebarItems,b as useUpdateDeviceStatus};
1
+ import{n as e,t}from"../../useDarkMode-BfKvIN6K.js";import{t as n}from"../../useData-nv4hwlgW.js";import{t as r}from"../../useEditLink-BmoW42FE.js";import{t as i}from"../../useNavigate-mlFey3ew.js";import{t as a}from"../../useNavbarConfig-CxVplYul.js";import{t as o}from"../../useNavbarRepo-BScd94be.js";import{t as s}from"../../useNavbarSelectLanguage-FHyzHFEW.js";import{t as c}from"../../useRelatedLinks-BwsPumn1.js";import{t as l}from"../../useScrollPromise-CB6ZLciv.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../../useSidebarItems-CL0nJ7E8.js";import{n as y,t as b}from"../../useUpdateDeviceStatus-DMKiVB3W.js";import"../../composables-CAISgiXf.js";export{b as DeviceType,v as resolveArraySidebarItems,m as resolveMultiSidebarItems,g as resolveSidebarHeadingItem,f as resolveSidebarItems,u as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,t as setupDarkMode,_ as setupSidebarItems,d as sidebarItemsSymbol,e as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,p as useSidebarItems,y as useUpdateDeviceStatus};
@@ -1,2 +1,2 @@
1
- import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DLor2cV7.js";
1
+ import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-uRSRwA8U.js";
2
2
  export { DarkModeRef, setupDarkMode, useDarkMode };
@@ -1,2 +1 @@
1
- import{darkModeSymbol as e}from"@vuepress/helper/client";import{usePreferredDark as t,useStorage as n,watchImmediate as r}from"@vueuse/core";import{computed as i,inject as a,onMounted as o,onUnmounted as s,provide as c}from"vue";import{useData as l}from"@theme/useData";const u=e=>{let t=globalThis.document.documentElement;t.dataset.theme=e?`dark`:`light`},d=e=>{o(()=>{r(e,u)}),s(()=>{u(e.value)})},f=()=>{let t=a(e);if(!t)throw Error(`useDarkMode() is called without provider.`);return t},p=()=>{let{themeLocale:r}=l(),a=t(),o=n(`vuepress-color-scheme`,r.value.colorMode),s=i({get(){return r.value.colorModeSwitch?o.value===`auto`?a.value:o.value===`dark`:r.value.colorMode===`dark`},set(e){e===a.value?o.value=`auto`:o.value=e?`dark`:`light`}});c(e,s),d(s)};export{p as setupDarkMode,f as useDarkMode};
2
- //# sourceMappingURL=useDarkMode.js.map
1
+ import{n as e,t}from"../../useDarkMode-BfKvIN6K.js";export{t as setupDarkMode,e as useDarkMode};
@@ -1,2 +1,2 @@
1
- import { n as useData, t as Data } from "../../useData-JDen_Bxm.js";
1
+ import { n as useData, t as Data } from "../../useData-DwmcO8iz.js";
2
2
  export { Data, useData };
@@ -1,2 +1 @@
1
- import{useData as e}from"vuepress/client";import{useThemeData as t,useThemeLocaleData as n}from"@vuepress/plugin-theme-data/client";const r=()=>({...e(),theme:t(),themeLocale:n()});export{r as useData};
2
- //# sourceMappingURL=useData.js.map
1
+ import{t as e}from"../../useData-nv4hwlgW.js";export{e as useData};
@@ -1,2 +1,2 @@
1
- import { t as useEditLink } from "../../useEditLink-DPCTvXmM.js";
1
+ import { t as useEditLink } from "../../useEditLink-COgJktiW.js";
2
2
  export { useEditLink };
@@ -1,2 +1 @@
1
- import{computed as e}from"vue";import{useData as t}from"@theme/useData";import{resolveEditLink as n}from"@theme/resolveEditLink";const r=()=>{let{frontmatter:r,page:i,themeLocale:a}=t();return e(()=>{if(!(r.value.editLink??a.value.editLink??!0))return null;let{repo:e,docsRepo:t=e,docsBranch:o=`main`,docsDir:s=``,editLinkText:c}=a.value;if(!t)return null;let l=n({docsRepo:t,docsBranch:o,docsDir:s,filePathRelative:i.value.filePathRelative,editLinkPattern:r.value.editLinkPattern??a.value.editLinkPattern});return l?{text:c??`Edit this page`,link:l}:null})};export{r as useEditLink};
2
- //# sourceMappingURL=useEditLink.js.map
1
+ import{t as e}from"../../useEditLink-BmoW42FE.js";export{e as useEditLink};
@@ -1 +1 @@
1
- {"version":3,"file":"useHeaders.js","names":["useData"],"sources":["../../../src/client/composables/useHeaders.ts"],"sourcesContent":["import type { HeaderItem } from '@vuepress/helper/client'\nimport { getHeaders } from '@vuepress/helper/client'\nimport { injectLocal, provideLocal } from '@vueuse/core'\nimport type { InjectionKey, Ref } from 'vue'\nimport { computed, ref } from 'vue'\nimport { onContentUpdated } from 'vuepress/client'\n\nimport { useData } from '@theme/useData'\n\nexport type HeadersRef = Ref<HeaderItem[]>\n\nexport const headersSymbol: InjectionKey<HeadersRef> = Symbol('headers')\n\n/**\n * Inject headers\n *\n * 注入标题\n *\n * @returns Headers ref / 标题引用\n */\nexport const useHeaders = (): HeadersRef => {\n const headers = injectLocal(headersSymbol)\n\n if (!headers) throw new Error('useHeaders() is called without provider.')\n\n return headers\n}\n\nexport const setupHeaders = (): void => {\n const { frontmatter, themeLocale } = useData()\n\n const headersRef: HeadersRef = ref([])\n const levels = computed(\n () => frontmatter.value.sidebarDepth ?? themeLocale.value.sidebarDepth ?? 2,\n )\n\n const updateHeaders = (): void => {\n if (levels.value <= 0) {\n headersRef.value = []\n return\n }\n\n headersRef.value = getHeaders({\n levels: [2, levels.value + 1],\n ignore: ['.vp-badge'],\n })\n }\n\n provideLocal(headersSymbol, headersRef)\n\n onContentUpdated((reason) => {\n if (reason === 'beforeUnmount') headersRef.value = []\n else updateHeaders()\n })\n}\n"],"mappings":"sPAWA,MAAa,EAA0C,OAAO,UAAU,CAS3D,MAA+B,CAC1C,IAAM,EAAU,EAAY,EAAc,CAE1C,GAAI,CAAC,EAAS,MAAU,MAAM,2CAA2C,CAEzE,OAAO,GAGI,MAA2B,CACtC,GAAM,CAAE,cAAa,eAAgBA,GAAS,CAExC,EAAyB,EAAI,EAAE,CAAC,CAChC,EAAS,MACP,EAAY,MAAM,cAAgB,EAAY,MAAM,cAAgB,EAC3E,CAEK,MAA4B,CAChC,GAAI,EAAO,OAAS,EAAG,CACrB,EAAW,MAAQ,EAAE,CACrB,OAGF,EAAW,MAAQ,EAAW,CAC5B,OAAQ,CAAC,EAAG,EAAO,MAAQ,EAAE,CAC7B,OAAQ,CAAC,YAAY,CACtB,CAAC,EAGJ,EAAa,EAAe,EAAW,CAEvC,EAAkB,GAAW,CACvB,IAAW,gBAAiB,EAAW,MAAQ,EAAE,CAChD,GAAe,EACpB"}
1
+ {"version":3,"file":"useHeaders.js","names":["useData"],"sources":["../../../src/client/composables/useHeaders.ts"],"sourcesContent":["import type { HeaderItem } from '@vuepress/helper/client'\nimport { getHeaders } from '@vuepress/helper/client'\nimport { injectLocal, provideLocal } from '@vueuse/core'\nimport type { InjectionKey, Ref } from 'vue'\nimport { computed, ref } from 'vue'\nimport { onContentUpdated } from 'vuepress/client'\n\nimport { useData } from '@theme/useData'\n\nexport type HeadersRef = Ref<HeaderItem[]>\n\nexport const headersSymbol: InjectionKey<HeadersRef> = Symbol('headers')\n\n/**\n * Inject headers\n *\n * 注入标题\n *\n * @returns Headers ref / 标题引用\n */\nexport const useHeaders = (): HeadersRef => {\n const headers = injectLocal(headersSymbol)\n\n if (!headers) throw new Error('useHeaders() is called without provider.')\n\n return headers\n}\n\nexport const setupHeaders = (): void => {\n const { frontmatter, themeLocale } = useData()\n\n const headersRef: HeadersRef = ref([])\n const levels = computed(\n () => frontmatter.value.sidebarDepth ?? themeLocale.value.sidebarDepth ?? 2,\n )\n\n const updateHeaders = (): void => {\n if (levels.value <= 0) {\n headersRef.value = []\n return\n }\n\n headersRef.value = getHeaders({\n levels: [2, levels.value + 1],\n ignore: ['.vp-badge'],\n })\n }\n\n provideLocal(headersSymbol, headersRef)\n\n onContentUpdated((reason) => {\n if (reason === 'beforeUnmount') headersRef.value = []\n else updateHeaders()\n })\n}\n"],"mappings":"sPAWA,MAAa,EAA0C,OAAO,SAAS,EAS1D,MAA+B,CAC1C,IAAM,EAAU,EAAY,CAAa,EAEzC,GAAI,CAAC,EAAS,MAAU,MAAM,0CAA0C,EAExE,OAAO,CACT,EAEa,MAA2B,CACtC,GAAM,CAAE,cAAa,eAAgBA,EAAQ,EAEvC,EAAyB,EAAI,CAAC,CAAC,EAC/B,EAAS,MACP,EAAY,MAAM,cAAgB,EAAY,MAAM,cAAgB,CAC5E,EAEM,MAA4B,CAChC,GAAI,EAAO,OAAS,EAAG,CACrB,EAAW,MAAQ,CAAC,EACpB,MACF,CAEA,EAAW,MAAQ,EAAW,CAC5B,OAAQ,CAAC,EAAG,EAAO,MAAQ,CAAC,EAC5B,OAAQ,CAAC,WAAW,CACtB,CAAC,CACH,EAEA,EAAa,EAAe,CAAU,EAEtC,EAAkB,GAAW,CACvB,IAAW,gBAAiB,EAAW,MAAQ,CAAC,EAC/C,EAAc,CACrB,CAAC,CACH"}
@@ -1,2 +1,2 @@
1
- import { t as useNavbarConfig } from "../../useNavbarConfig-C19TGFg7.js";
1
+ import { t as useNavbarConfig } from "../../useNavbarConfig-fLxvBobP.js";
2
2
  export { useNavbarConfig };
@@ -1,2 +1 @@
1
- import{isString as e}from"vuepress/shared";import{isLinkRelative as t}from"@vuepress/helper/client";import{computed as n}from"vue";import{useData as r}from"@theme/useData";import{resolveAutoLink as i}from"@theme/resolveAutoLink";import{resolvePrefix as a}from"@theme/resolvePrefix";const o=(n,r=``)=>e(n)?i(a(r,n)):`children`in n?{...n,children:n.children.map(e=>o(e,a(r,n.prefix)))}:{...n,link:t(n.link)?i(a(r,n.link)).link:n.link},s=()=>{let{themeLocale:e}=r();return n(()=>(e.value.navbar||[]).map(e=>o(e)))};export{s as useNavbarConfig};
2
- //# sourceMappingURL=useNavbarConfig.js.map
1
+ import{t as e}from"../../useNavbarConfig-CxVplYul.js";export{e as useNavbarConfig};
@@ -1,2 +1,2 @@
1
- import { t as useNavbarRepo } from "../../useNavbarRepo-DxhSIAFq.js";
1
+ import { t as useNavbarRepo } from "../../useNavbarRepo-DndxHxeK.js";
2
2
  export { useNavbarRepo };
@@ -1,2 +1 @@
1
- import{isLinkHttp as e}from"vuepress/shared";import{computed as t}from"vue";import{useData as n}from"@theme/useData";import{resolveRepoType as r}from"@theme/resolveRepoType";const i=()=>{let{themeLocale:i}=n(),a=t(()=>i.value.repo),o=t(()=>a.value?r(a.value):null),s=t(()=>a.value&&!e(a.value)?`https://github.com/${a.value}`:a.value),c=t(()=>s.value?i.value.repoLabel?i.value.repoLabel:o.value==null?`Source`:o.value:null);return t(()=>!s.value||!c.value?[]:[{text:c.value,link:s.value}])};export{i as useNavbarRepo};
2
- //# sourceMappingURL=useNavbarRepo.js.map
1
+ import{t as e}from"../../useNavbarRepo-BScd94be.js";export{e as useNavbarRepo};
@@ -1,2 +1,2 @@
1
- import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-4GkrPvc2.js";
1
+ import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-a9ZpUKwM.js";
2
2
  export { useNavbarSelectLanguage };
@@ -1,2 +1 @@
1
- import{useRoutePaths as e}from"@vuepress/helper/client";import{useRoute as t}from"vuepress/client";import{useMounted as n}from"@vueuse/core";import{computed as r}from"vue";import{useData as i}from"@theme/useData";const a=()=>{let a=t(),o=e(),{routeLocale:s,site:c,siteLocale:l,theme:u,themeLocale:d}=i(),f=n();return r(()=>{let e=Object.keys(c.value.locales);if(e.length<2)return[];let t=a.path,n=a.fullPath;return[{text:`${d.value.selectLanguageText}`,ariaLabel:`${d.value.selectLanguageAriaLabel??d.value.selectLanguageText}`,children:e.map(e=>{let r=c.value.locales?.[e]??{},i=u.value.locales?.[e]??{},a=`${r.lang}`,d=i.selectLanguageName??a;if(a===l.value.lang)return{text:d,activeMatch:`.`,link:f.value?n:t};let p=t.replace(s.value,e);return{text:d,link:o.value.some(e=>e===p)?f.value?n.replace(t,p):p:i.home??e}})}]})};export{a as useNavbarSelectLanguage};
2
- //# sourceMappingURL=useNavbarSelectLanguage.js.map
1
+ import{t as e}from"../../useNavbarSelectLanguage-FHyzHFEW.js";export{e as useNavbarSelectLanguage};
@@ -1,2 +1,2 @@
1
- import { t as useNavigate } from "../../useNavigate-lH4xyHOV.js";
1
+ import { t as useNavigate } from "../../useNavigate-zqYnxkd_.js";
2
2
  export { useNavigate };
@@ -1,2 +1 @@
1
- import{isLinkAbsolute as e,isLinkWithProtocol as t}from"@vuepress/helper/client";import{useRoute as n,useRouter as r}from"vuepress/client";const i=()=>{let i=r(),a=n();return n=>{n&&(e(n)?a.fullPath!==n&&i.push(n):t(n)?window.open(n):i.push(encodeURI(n)))}};export{i as useNavigate};
2
- //# sourceMappingURL=useNavigate.js.map
1
+ import{t as e}from"../../useNavigate-mlFey3ew.js";export{e as useNavigate};
@@ -1,2 +1,2 @@
1
- import { t as useRelatedLinks } from "../../useRelatedLinks-ChTW2RRU.js";
1
+ import { t as useRelatedLinks } from "../../useRelatedLinks-DxkE-gdP.js";
2
2
  export { useRelatedLinks };
@@ -1,2 +1 @@
1
- import{isPlainObject as e,isString as t}from"vuepress/shared";import{resolveRoute as n,useRoutePath as r}from"vuepress/client";import{useSidebarItems as i}from"@theme/useSidebarItems";import{computed as a}from"vue";import{useData as o}from"@theme/useData";import{resolveAutoLink as s}from"@theme/resolveAutoLink";const c=(n,r)=>n===!1?!1:t(n)?s(n,r):e(n)?{...n,link:s(n.link,r).link}:null,l=(e,t,r)=>{let i=e.findIndex(e=>e.link===t);if(i!==-1){let t=e[i+r];return t?t.link?t:`prefix`in t&&!n(t.prefix).notFound?{...t,link:t.prefix}:null:null}for(let n of e)if(`children`in n){let e=l(n.children,t,r);if(e)return e}let a=e.findIndex(e=>`prefix`in e&&e.prefix===t);if(a!==-1){let t=e[a+r];return t?t.link?t:`prefix`in t&&!n(t.prefix).notFound?{...t,link:t.prefix}:null:null}return null},u=()=>{let{frontmatter:e,themeLocale:t}=o(),n=i(),s=r();return{prevLink:a(()=>{let r=c(e.value.prev,s.value);return r===!1?null:r??(t.value.prev===!1?null:l(n.value,s.value,-1))}),nextLink:a(()=>{let r=c(e.value.next,s.value);return r===!1?null:r??(t.value.next===!1?null:l(n.value,s.value,1))})}};export{u as useRelatedLinks};
2
- //# sourceMappingURL=useRelatedLinks.js.map
1
+ import{t as e}from"../../useRelatedLinks-BwsPumn1.js";export{e as useRelatedLinks};
@@ -1,2 +1,2 @@
1
- import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-BAl732Uv.js";
1
+ import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-TwtWBE3d.js";
2
2
  export { ScrollPromise, useScrollPromise };
@@ -1,2 +1 @@
1
- let e=null,t=null;const n={wait:()=>e,pending:()=>{e=new Promise(e=>{t=e})},resolve:()=>{t?.(),e=null,t=null}},r=()=>n;export{r as useScrollPromise};
2
- //# sourceMappingURL=useScrollPromise.js.map
1
+ import{t as e}from"../../useScrollPromise-CB6ZLciv.js";export{e as useScrollPromise};
@@ -1,2 +1,2 @@
1
- import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-CdpB96Ta.js";
1
+ import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-aGO1YtUp.js";
2
2
  export { SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupSidebarItems, sidebarItemsSymbol, useSidebarItems };
@@ -1,2 +1 @@
1
- import{isPlainObject as e,isString as t}from"vuepress/shared";import{isLinkRelative as n,keys as r,startsWith as i}from"@vuepress/helper/client";import{useRoutePath as a}from"vuepress/client";import{useHeaders as o}from"@theme/useHeaders";import{computed as s,inject as c,provide as l}from"vue";import{useData as u}from"@theme/useData";import{resolveAutoLink as d}from"@theme/resolveAutoLink";import{resolvePrefix as f}from"@theme/resolvePrefix";const p=e=>({text:e.title,link:e.link,children:m(e.children)}),m=e=>e?e.map(e=>p(e)):[],h=(e,t)=>[{text:e.title,children:m(t)}],g=(e,r,i,a=``)=>{let o=(e,a)=>{let s=t(e)?d(f(a,e)):t(e.link)?{...e,link:n(e.link)?d(f(a,e.link)).link:e.link}:e;if(`children`in s)return{...s,children:s.children.map(e=>o(e,f(a,s.prefix)))};if(s.link===i){let e=r[0]?.level===1?r[0].children:r;return{...s,children:m(e)}}return s};return e.map(e=>o(e,a))},_=(e,t,n,a)=>{let o=r(e).sort((e,t)=>t.length-e.length);for(let r of o)if(i(decodeURI(a),r)){let i=e[r];return i===!1?[]:i===`heading`?h(t,n):g(i,n,a,r)}return console.warn(`${decodeURI(a)} is missing sidebar config.`),[]},v=Symbol(`sidebarItems`),y=()=>{let e=c(v);if(!e)throw Error(`useSidebarItems() is called without provider.`);return e},b=(t,n,r,i,a)=>t===!1?[]:t===`heading`?h(n,a):Array.isArray(t)?g(t,a,r,i):e(t)?_(t,n,a,r):[],x=()=>{let{frontmatter:e,page:t,routeLocale:n,themeLocale:r}=u(),i=o(),c=a(),d=s(()=>!e.value.home&&(e.value.sidebar??r.value.sidebar??`heading`));l(v,s(()=>b(d.value,t.value,c.value,n.value,i.value)))};export{g as resolveArraySidebarItems,_ as resolveMultiSidebarItems,h as resolveSidebarHeadingItem,b as resolveSidebarItems,p as resolveSidebarPageHeader,m as resolveSidebarPageHeaders,x as setupSidebarItems,v as sidebarItemsSymbol,y as useSidebarItems};
2
- //# sourceMappingURL=useSidebarItems.js.map
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"../../useSidebarItems-CL0nJ7E8.js";export{c as resolveArraySidebarItems,i as resolveMultiSidebarItems,o as resolveSidebarHeadingItem,n as resolveSidebarItems,e as resolveSidebarPageHeader,a as resolveSidebarPageHeaders,s as setupSidebarItems,t as sidebarItemsSymbol,r as useSidebarItems};
@@ -1,2 +1,2 @@
1
- import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-SBnOZx8J.js";
1
+ import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-CsrJ_Qqv.js";
2
2
  export { DeviceType, useUpdateDeviceStatus };
@@ -1,2 +1 @@
1
- import{useEventListener as e}from"@vueuse/core";import{onMounted as t}from"vue";import n from"../styles/_variables.module.scss";let r=function(e){return e.Mobile=`mobile`,e}({});const i={[r.Mobile]:Number.parseInt(n.mobile.replace(`px`,``),10)},a=(n,r)=>{let a=i[n];if(!Number.isInteger(a)){if(__VUEPRESS_DEV__)throw Error(`device width must be a integer`);return}e(`orientationchange`,()=>{r(a)}),e(`resize`,()=>{r(a)}),t(()=>{r(a)})};export{r as DeviceType,a as useUpdateDeviceStatus};
2
- //# sourceMappingURL=useUpdateDeviceStatus.js.map
1
+ import{n as e,t}from"../../useUpdateDeviceStatus-DMKiVB3W.js";export{t as DeviceType,e as useUpdateDeviceStatus};
@@ -1,6 +1,5 @@
1
- import * as _$vuepress_client0 from "vuepress/client";
2
1
  //#region src/client/config.d.ts
3
- declare const _default: _$vuepress_client0.ClientConfig;
2
+ declare const _default: import("vuepress/client").ClientConfig;
4
3
  //#endregion
5
4
  export { _default as default };
6
5
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { hasGlobalComponent } from '@vuepress/helper/client'\nimport { defineClientConfig } from 'vuepress/client'\n\nimport { setupDarkMode } from '@theme/useDarkMode'\nimport { setupHeaders } from '@theme/useHeaders'\nimport { useScrollPromise } from '@theme/useScrollPromise'\nimport { setupSidebarItems } from '@theme/useSidebarItems'\n\nimport { Badge } from './components/global/index.js'\nimport Layout from './layouts/Layout.vue'\nimport NotFound from './layouts/NotFound.vue'\n\nimport '@vuepress/helper/colors.css'\nimport '@vuepress/helper/normalize.css'\nimport './styles/index.scss'\n\nexport default defineClientConfig({\n enhance({ app, router }) {\n if (!hasGlobalComponent('Badge')) app.component('Badge', Badge)\n\n // handle scrollBehavior with transition\n const scrollBehavior = router.options.scrollBehavior!\n\n // scrollBehavior is a bit hard to typed here\n // oxlint-disable-next-line typescript/explicit-function-return-type\n router.options.scrollBehavior = async (...args) => {\n await useScrollPromise().wait()\n return scrollBehavior(...args)\n }\n },\n\n setup() {\n setupDarkMode()\n setupHeaders()\n setupSidebarItems()\n },\n\n layouts: {\n Layout,\n NotFound,\n },\n})\n"],"mappings":"0iBAgBA,IAAA,EAAe,EAAmB,CAChC,QAAQ,CAAE,MAAK,UAAU,CAClB,EAAmB,QAAQ,EAAE,EAAI,UAAU,QAAS,EAAM,CAG/D,IAAM,EAAiB,EAAO,QAAQ,eAItC,EAAO,QAAQ,eAAiB,MAAO,GAAG,KACxC,MAAM,GAAkB,CAAC,MAAM,CACxB,EAAe,GAAG,EAAK,GAIlC,OAAQ,CACN,GAAe,CACf,GAAc,CACd,GAAmB,EAGrB,QAAS,CACP,SACA,WACD,CACF,CAAC"}
1
+ {"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { hasGlobalComponent } from '@vuepress/helper/client'\nimport { defineClientConfig } from 'vuepress/client'\n\nimport { setupDarkMode } from '@theme/useDarkMode'\nimport { setupHeaders } from '@theme/useHeaders'\nimport { useScrollPromise } from '@theme/useScrollPromise'\nimport { setupSidebarItems } from '@theme/useSidebarItems'\n\nimport { Badge } from './components/global/index.js'\nimport Layout from './layouts/Layout.vue'\nimport NotFound from './layouts/NotFound.vue'\n\nimport '@vuepress/helper/colors.css'\nimport '@vuepress/helper/normalize.css'\nimport './styles/index.scss'\n\nexport default defineClientConfig({\n enhance({ app, router }) {\n if (!hasGlobalComponent('Badge')) app.component('Badge', Badge)\n\n // handle scrollBehavior with transition\n const scrollBehavior = router.options.scrollBehavior!\n\n // scrollBehavior is a bit hard to typed here\n // oxlint-disable-next-line typescript/explicit-function-return-type\n router.options.scrollBehavior = async (...args) => {\n await useScrollPromise().wait()\n return scrollBehavior(...args)\n }\n },\n\n setup() {\n setupDarkMode()\n setupHeaders()\n setupSidebarItems()\n },\n\n layouts: {\n Layout,\n NotFound,\n },\n})\n"],"mappings":"0iBAgBA,IAAA,EAAe,EAAmB,CAChC,QAAQ,CAAE,MAAK,UAAU,CAClB,EAAmB,OAAO,GAAG,EAAI,UAAU,QAAS,CAAK,EAG9D,IAAM,EAAiB,EAAO,QAAQ,eAItC,EAAO,QAAQ,eAAiB,MAAO,GAAG,KACxC,MAAM,EAAiB,CAAC,CAAC,KAAK,EACvB,EAAe,GAAG,CAAI,EAEjC,EAEA,OAAQ,CACN,EAAc,EACd,EAAa,EACb,EAAkB,CACpB,EAEA,QAAS,CACP,SACA,UACF,CACF,CAAC"}
@@ -1,21 +1,19 @@
1
- import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-DLor2cV7.js";
2
- import { n as NavItemOptions, t as AutoLinkOptions } from "../nav-DikslSJ_.js";
3
- import { a as SidebarObjectOptions, c as NavbarGroupOptions, i as SidebarLinkOptions, l as NavbarLinkOptions, n as SidebarGroupOptions, o as SidebarOptions, r as SidebarItemOptions, s as NavGroup, t as SidebarArrayOptions, u as NavbarOptions } from "../sidebar-CF1YPYLN.js";
4
- import { a as DefaultThemeData, i as DefaultThemePageFrontmatter, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter } from "../page-FWcDnzJp.js";
5
- import { n as useData, t as Data } from "../useData-JDen_Bxm.js";
6
- import { t as useEditLink } from "../useEditLink-DPCTvXmM.js";
7
- import { t as useNavigate } from "../useNavigate-lH4xyHOV.js";
8
- import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-NbQSzbOn.js";
9
- import { t as useNavbarConfig } from "../useNavbarConfig-C19TGFg7.js";
10
- import { t as useNavbarRepo } from "../useNavbarRepo-DxhSIAFq.js";
11
- import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-4GkrPvc2.js";
12
- import { t as useRelatedLinks } from "../useRelatedLinks-ChTW2RRU.js";
13
- import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-BAl732Uv.js";
14
- import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../useSidebarItems-CdpB96Ta.js";
15
- import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-SBnOZx8J.js";
16
- import { t as isActiveSidebarItem } from "../isActiveSidebarItem-aythFTeC.js";
17
- import { t as resolveAutoLink } from "../resolveAutoLink-BR2Z05MD.js";
18
- import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-DazcWeGf.js";
19
- import { t as resolvePrefix } from "../resolvePrefix-BN9K9RA5.js";
20
- import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-Wcj35_rs.js";
21
- export { AutoLinkOptions, DarkModeRef, Data, DefaultThemeData, DefaultThemeHomePageFrontmatter, DefaultThemeLocaleData, DefaultThemeLocaleOptions, DefaultThemeNormalPageFrontmatter, DefaultThemePageData, DefaultThemePageFrontmatter, DeviceType, EDIT_LINK_PATTERNS, NavGroup, NavItemOptions, NavbarGroupOptions, NavbarItem, NavbarLinkOptions, NavbarOptions, RepoType, ScrollPromise, SidebarArrayOptions, SidebarGroupItem, SidebarGroupOptions, SidebarHeaderItem, SidebarItem, SidebarItemOptions, SidebarItemsRef, SidebarLinkItem, SidebarLinkOptions, SidebarObjectOptions, SidebarOptions, isActiveSidebarItem, resolveArraySidebarItems, resolveAutoLink, resolveEditLink, resolveMultiSidebarItems, resolvePrefix, resolveRepoType, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
1
+ import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-uRSRwA8U.js";
2
+ import { _ as NavbarOptions, a as DefaultThemeData, c as SidebarArrayOptions, d as SidebarLinkOptions, f as SidebarObjectOptions, g as NavbarLinkOptions, h as NavbarGroupOptions, i as DefaultThemePageFrontmatter, l as SidebarGroupOptions, m as NavGroup, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, p as SidebarOptions, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter, u as SidebarItemOptions, v as AutoLinkOptions, y as NavItemOptions } from "../index-ur5YvkCJ.js";
3
+ import { n as useData, t as Data } from "../useData-DwmcO8iz.js";
4
+ import { t as useEditLink } from "../useEditLink-COgJktiW.js";
5
+ import { t as useNavigate } from "../useNavigate-zqYnxkd_.js";
6
+ import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-CiGFIZqG.js";
7
+ import { t as useNavbarConfig } from "../useNavbarConfig-fLxvBobP.js";
8
+ import { t as useNavbarRepo } from "../useNavbarRepo-DndxHxeK.js";
9
+ import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-a9ZpUKwM.js";
10
+ import { t as useRelatedLinks } from "../useRelatedLinks-DxkE-gdP.js";
11
+ import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-TwtWBE3d.js";
12
+ import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../useSidebarItems-aGO1YtUp.js";
13
+ import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-CsrJ_Qqv.js";
14
+ import { t as isActiveSidebarItem } from "../isActiveSidebarItem-K6rOnBw4.js";
15
+ import { t as resolveAutoLink } from "../resolveAutoLink-DBXc0Cd3.js";
16
+ import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-BRZu2eno.js";
17
+ import { t as resolvePrefix } from "../resolvePrefix-BXZhEIJn.js";
18
+ import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-DEy0Gvc4.js";
19
+ export { type AutoLinkOptions, DarkModeRef, Data, type DefaultThemeData, type DefaultThemeHomePageFrontmatter, type DefaultThemeLocaleData, type DefaultThemeLocaleOptions, type DefaultThemeNormalPageFrontmatter, type DefaultThemePageData, type DefaultThemePageFrontmatter, DeviceType, EDIT_LINK_PATTERNS, type NavGroup, type NavItemOptions, type NavbarGroupOptions, type NavbarItem, type NavbarLinkOptions, type NavbarOptions, RepoType, ScrollPromise, type SidebarArrayOptions, type SidebarGroupItem, type SidebarGroupOptions, type SidebarHeaderItem, type SidebarItem, type SidebarItemOptions, SidebarItemsRef, type SidebarLinkItem, type SidebarLinkOptions, type SidebarObjectOptions, type SidebarOptions, isActiveSidebarItem, resolveArraySidebarItems, resolveAutoLink, resolveEditLink, resolveMultiSidebarItems, resolvePrefix, resolveRepoType, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
@@ -1 +1 @@
1
- import{setupDarkMode as e,useDarkMode as t}from"./composables/useDarkMode.js";import{useData as n}from"./composables/useData.js";import{useEditLink as r}from"./composables/useEditLink.js";import{useNavigate as i}from"./composables/useNavigate.js";import{useNavbarConfig as a}from"./composables/useNavbarConfig.js";import{useNavbarRepo as o}from"./composables/useNavbarRepo.js";import{useNavbarSelectLanguage as s}from"./composables/useNavbarSelectLanguage.js";import{useRelatedLinks as c}from"./composables/useRelatedLinks.js";import{useScrollPromise as l}from"./composables/useScrollPromise.js";import{resolveArraySidebarItems as u,resolveMultiSidebarItems as d,resolveSidebarHeadingItem as f,resolveSidebarItems as p,resolveSidebarPageHeader as m,resolveSidebarPageHeaders as h,setupSidebarItems as g,sidebarItemsSymbol as _,useSidebarItems as v}from"./composables/useSidebarItems.js";import{DeviceType as y,useUpdateDeviceStatus as b}from"./composables/useUpdateDeviceStatus.js";import"./composables/index.js";import{isActiveSidebarItem as x}from"./utils/isActiveSidebarItem.js";import{resolveAutoLink as S}from"./utils/resolveAutoLink.js";import{EDIT_LINK_PATTERNS as C,resolveEditLink as w}from"./utils/resolveEditLink.js";import{resolvePrefix as T}from"./utils/resolvePrefix.js";import{resolveRepoType as E}from"./utils/resolveRepoType.js";import"./utils/index.js";export{y as DeviceType,C as EDIT_LINK_PATTERNS,x as isActiveSidebarItem,u as resolveArraySidebarItems,S as resolveAutoLink,w as resolveEditLink,d as resolveMultiSidebarItems,T as resolvePrefix,E as resolveRepoType,f as resolveSidebarHeadingItem,p as resolveSidebarItems,m as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,e as setupDarkMode,g as setupSidebarItems,_ as sidebarItemsSymbol,t as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,v as useSidebarItems,b as useUpdateDeviceStatus};
1
+ import{n as e,t}from"../useDarkMode-BfKvIN6K.js";import{t as n}from"../useData-nv4hwlgW.js";import{t as r}from"../useEditLink-BmoW42FE.js";import{t as i}from"../useNavigate-mlFey3ew.js";import{t as a}from"../useNavbarConfig-CxVplYul.js";import{t as o}from"../useNavbarRepo-BScd94be.js";import{t as s}from"../useNavbarSelectLanguage-FHyzHFEW.js";import{t as c}from"../useRelatedLinks-BwsPumn1.js";import{t as l}from"../useScrollPromise-CB6ZLciv.js";import{a as u,c as d,i as f,l as p,n as m,o as h,r as g,s as _,t as v}from"../useSidebarItems-CL0nJ7E8.js";import{n as y,t as b}from"../useUpdateDeviceStatus-DMKiVB3W.js";import{t as x}from"../isActiveSidebarItem-BQHhsM53.js";import{t as S}from"../resolveAutoLink-XUJwl3Kb.js";import{n as C,t as w}from"../resolveEditLink-lteF0-Mv.js";import{t as T}from"../resolvePrefix-CQnTmTk4.js";import{t as E}from"../resolveRepoType-BfcHRhpi.js";export{b as DeviceType,w as EDIT_LINK_PATTERNS,x as isActiveSidebarItem,v as resolveArraySidebarItems,S as resolveAutoLink,C as resolveEditLink,m as resolveMultiSidebarItems,T as resolvePrefix,E as resolveRepoType,g as resolveSidebarHeadingItem,f as resolveSidebarItems,u as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,t as setupDarkMode,_ as setupSidebarItems,d as sidebarItemsSymbol,e as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,p as useSidebarItems,y as useUpdateDeviceStatus};
@@ -6,4 +6,3 @@
6
6
  @use 'external-link-icon';
7
7
  @use 'layout';
8
8
  @use 'plugins';
9
- @use '@vuepress/plugin-palette/style';
@@ -1,6 +1,6 @@
1
- import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-aythFTeC.js";
2
- import { t as resolveAutoLink } from "../../resolveAutoLink-BR2Z05MD.js";
3
- import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-DazcWeGf.js";
4
- import { t as resolvePrefix } from "../../resolvePrefix-BN9K9RA5.js";
5
- import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-Wcj35_rs.js";
1
+ import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-K6rOnBw4.js";
2
+ import { t as resolveAutoLink } from "../../resolveAutoLink-DBXc0Cd3.js";
3
+ import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-BRZu2eno.js";
4
+ import { t as resolvePrefix } from "../../resolvePrefix-BXZhEIJn.js";
5
+ import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DEy0Gvc4.js";
6
6
  export { EDIT_LINK_PATTERNS, RepoType, isActiveSidebarItem, resolveAutoLink, resolveEditLink, resolvePrefix, resolveRepoType };
@@ -1 +1 @@
1
- import{isActiveSidebarItem as e}from"./isActiveSidebarItem.js";import{resolveAutoLink as t}from"./resolveAutoLink.js";import{EDIT_LINK_PATTERNS as n,resolveEditLink as r}from"./resolveEditLink.js";import{resolvePrefix as i}from"./resolvePrefix.js";import{resolveRepoType as a}from"./resolveRepoType.js";export{n as EDIT_LINK_PATTERNS,e as isActiveSidebarItem,t as resolveAutoLink,r as resolveEditLink,i as resolvePrefix,a as resolveRepoType};
1
+ import{t as e}from"../../isActiveSidebarItem-BQHhsM53.js";import{t}from"../../resolveAutoLink-XUJwl3Kb.js";import{n,t as r}from"../../resolveEditLink-lteF0-Mv.js";import{t as i}from"../../resolvePrefix-CQnTmTk4.js";import{t as a}from"../../resolveRepoType-BfcHRhpi.js";import"../../utils-CAISgiXf.js";export{r as EDIT_LINK_PATTERNS,e as isActiveSidebarItem,t as resolveAutoLink,n as resolveEditLink,i as resolvePrefix,a as resolveRepoType};
@@ -1,2 +1,2 @@
1
- import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-aythFTeC.js";
1
+ import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-K6rOnBw4.js";
2
2
  export { isActiveSidebarItem };
@@ -1,2 +1 @@
1
- const e=e=>decodeURI(e).replace(/#.*$/,``).replace(/(index)?\.(md|html)$/,``),t=(t,n)=>n.hash===t?!0:e(n.path)===e(t),n=(e,r)=>e.link&&t(e.link,r)?!0:`children`in e?e.children.some(e=>n(e,r)):!1;export{n as isActiveSidebarItem};
2
- //# sourceMappingURL=isActiveSidebarItem.js.map
1
+ import{t as e}from"../../isActiveSidebarItem-BQHhsM53.js";export{e as isActiveSidebarItem};
@@ -1,2 +1,2 @@
1
- import { t as resolveAutoLink } from "../../resolveAutoLink-BR2Z05MD.js";
1
+ import { t as resolveAutoLink } from "../../resolveAutoLink-DBXc0Cd3.js";
2
2
  export { resolveAutoLink };
@@ -1,2 +1 @@
1
- import{resolveRoute as e}from"vuepress/client";const t=(t,n)=>{let{notFound:r,meta:i,path:a}=e(t,n);return r?{text:a,link:a}:{text:i.title||a,link:a}};export{t as resolveAutoLink};
2
- //# sourceMappingURL=resolveAutoLink.js.map
1
+ import{t as e}from"../../resolveAutoLink-XUJwl3Kb.js";export{e as resolveAutoLink};
@@ -1,2 +1,2 @@
1
- import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-DazcWeGf.js";
1
+ import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-BRZu2eno.js";
2
2
  export { EDIT_LINK_PATTERNS, resolveEditLink };
@@ -1,2 +1 @@
1
- import{isLinkHttp as e,removeEndingSlash as t,removeLeadingSlash as n}from"vuepress/shared";import{resolveRepoType as r}from"@theme/resolveRepoType";const i={GitHub:`:repo/edit/:branch/:path`,GitLab:`:repo/-/edit/:branch/:path`,Gitee:`:repo/edit/:branch/:path`,Bitbucket:`:repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default`},a=({docsRepo:e,editLinkPattern:t})=>{if(t)return t;let n=r(e);return n==null?null:i[n]},o=({docsRepo:r,docsBranch:i,docsDir:o,filePathRelative:s,editLinkPattern:c})=>{if(!s)return null;let l=a({docsRepo:r,editLinkPattern:c});return l?l.replace(/:repo/,e(r)?r:`https://github.com/${r}`).replace(/:branch/,i).replace(/:path/,n(`${t(o)}/${s}`)):null};export{i as EDIT_LINK_PATTERNS,o as resolveEditLink};
2
- //# sourceMappingURL=resolveEditLink.js.map
1
+ import{n as e,t}from"../../resolveEditLink-lteF0-Mv.js";export{t as EDIT_LINK_PATTERNS,e as resolveEditLink};
@@ -1,2 +1,2 @@
1
- import { t as resolvePrefix } from "../../resolvePrefix-BN9K9RA5.js";
1
+ import { t as resolvePrefix } from "../../resolvePrefix-BXZhEIJn.js";
2
2
  export { resolvePrefix };
@@ -1,2 +1 @@
1
- import{ensureEndingSlash as e,isLinkAbsolute as t,isLinkWithProtocol as n}from"@vuepress/helper/client";const r=(r=``,i=``)=>t(i)||n(i)?i:`${e(r)}${i}`;export{r as resolvePrefix};
2
- //# sourceMappingURL=resolvePrefix.js.map
1
+ import{t as e}from"../../resolvePrefix-CQnTmTk4.js";export{e as resolvePrefix};
@@ -1,2 +1,2 @@
1
- import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-Wcj35_rs.js";
1
+ import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DEy0Gvc4.js";
2
2
  export { RepoType, resolveRepoType };
@@ -1,2 +1 @@
1
- import{isLinkHttp as e}from"vuepress/shared";const t=t=>!e(t)||/^(https?:)?\/\/github\.com\//.test(t)?`GitHub`:/^(https?:)?\/\/bitbucket\.org\//.test(t)?`Bitbucket`:/^(https?:)?\/\/gitlab\.com\//.test(t)?`GitLab`:/^(https?:)?\/\/gitee\.com\//.test(t)?`Gitee`:null;export{t as resolveRepoType};
2
- //# sourceMappingURL=resolveRepoType.js.map
1
+ import{t as e}from"../../resolveRepoType-BfcHRhpi.js";export{e as resolveRepoType};
@@ -0,0 +1 @@
1
+ export{};
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };