@vuepress/theme-default 2.0.0-rc.136 → 2.0.0-rc.138

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 (95) hide show
  1. package/dist/client/composables/index.d.ts +12 -12
  2. package/dist/client/composables/index.js +1 -1
  3. package/dist/client/composables/useDarkMode.d.ts +1 -1
  4. package/dist/client/composables/useDarkMode.js +1 -1
  5. package/dist/client/composables/useData.d.ts +1 -1
  6. package/dist/client/composables/useData.js +1 -1
  7. package/dist/client/composables/useEditLink.d.ts +1 -1
  8. package/dist/client/composables/useEditLink.js +1 -1
  9. package/dist/client/composables/useHeaders.d.ts +1 -4
  10. package/dist/client/composables/useHeaders.js +1 -1
  11. package/dist/client/composables/useHeaders.js.map +1 -1
  12. package/dist/client/composables/useNavbarConfig.d.ts +1 -1
  13. package/dist/client/composables/useNavbarConfig.js +1 -1
  14. package/dist/client/composables/useNavbarRepo.d.ts +1 -1
  15. package/dist/client/composables/useNavbarRepo.js +1 -1
  16. package/dist/client/composables/useNavbarSelectLanguage.d.ts +1 -1
  17. package/dist/client/composables/useNavbarSelectLanguage.js +1 -1
  18. package/dist/client/composables/useNavigate.d.ts +1 -1
  19. package/dist/client/composables/useNavigate.js +1 -1
  20. package/dist/client/composables/useRelatedLinks.d.ts +1 -1
  21. package/dist/client/composables/useRelatedLinks.js +1 -1
  22. package/dist/client/composables/useScrollPromise.d.ts +1 -1
  23. package/dist/client/composables/useScrollPromise.js +1 -1
  24. package/dist/client/composables/useSidebarItems.d.ts +1 -1
  25. package/dist/client/composables/useSidebarItems.js +1 -1
  26. package/dist/client/composables/useUpdateDeviceStatus.d.ts +1 -1
  27. package/dist/client/composables/useUpdateDeviceStatus.js +1 -1
  28. package/dist/client/config.d.ts +1 -4
  29. package/dist/client/config.js +1 -1
  30. package/dist/client/config.js.map +1 -1
  31. package/dist/client/index.d.ts +20 -20
  32. package/dist/client/index.js +1 -1
  33. package/dist/client/utils/index.d.ts +6 -6
  34. package/dist/client/utils/isActiveSidebarItem.d.ts +1 -1
  35. package/dist/client/utils/isActiveSidebarItem.js +1 -1
  36. package/dist/client/utils/resolveAutoLink.d.ts +1 -1
  37. package/dist/client/utils/resolveAutoLink.js +1 -1
  38. package/dist/client/utils/resolveEditLink.d.ts +1 -1
  39. package/dist/client/utils/resolveEditLink.js +1 -1
  40. package/dist/client/utils/resolvePrefix.d.ts +1 -1
  41. package/dist/client/utils/resolvePrefix.js +1 -1
  42. package/dist/client/utils/resolveRepoType.d.ts +1 -1
  43. package/dist/client/utils/resolveRepoType.js +1 -1
  44. package/dist/index--4Q8BmVV.d.ts +3 -0
  45. package/dist/index-BJbWgGUf.d.ts +8 -0
  46. package/dist/{index-DnNaefpa.d.ts → index-DM_-Gf3x.d.ts} +1 -12
  47. package/dist/isActiveSidebarItem-CInJFY7t.d.ts +4 -0
  48. package/dist/isActiveSidebarItem-CdmUcp0l.js.map +1 -1
  49. package/dist/node/index.d.ts +2 -11
  50. package/dist/node/index.js.map +1 -1
  51. package/dist/{resolveAutoLink-JDq36I7k.d.ts → resolveAutoLink-CgIw9MWM.d.ts} +2 -5
  52. package/dist/resolveAutoLink-XUJwl3Kb.js.map +1 -1
  53. package/dist/{resolveEditLink-VYO59JxD.d.ts → resolveEditLink-DzBrOebC.d.ts} +1 -4
  54. package/dist/resolveEditLink-lteF0-Mv.js.map +1 -1
  55. package/dist/resolvePrefix-CQnTmTk4.js.map +1 -1
  56. package/dist/resolvePrefix-DvC1-afu.d.ts +2 -0
  57. package/dist/resolveRepoType-BfcHRhpi.js.map +1 -1
  58. package/dist/resolveRepoType-DlYSUv-A.d.ts +3 -0
  59. package/dist/{typings-Cbpr0bFc.d.ts → typings-DV97y_41.d.ts} +2 -5
  60. package/dist/useDarkMode-BfKvIN6K.js.map +1 -1
  61. package/dist/{useDarkMode-DmWka_eQ.d.ts → useDarkMode-DWdqlXpq.d.ts} +1 -4
  62. package/dist/{useData-DLY6oMFR.d.ts → useData-DMP1s8dN.d.ts} +3 -6
  63. package/dist/useData-nv4hwlgW.js.map +1 -1
  64. package/dist/{useEditLink-DXlW5QzK.d.ts → useEditLink-B8XOetrs.d.ts} +1 -4
  65. package/dist/useEditLink-BmoW42FE.js.map +1 -1
  66. package/dist/useNavbarConfig-BWLU4cpg.d.ts +4 -0
  67. package/dist/useNavbarConfig-CxVplYul.js.map +1 -1
  68. package/dist/useNavbarRepo-BScd94be.js.map +1 -1
  69. package/dist/{useNavbarRepo-B9pyDtUq.d.ts → useNavbarRepo-gcoAtjQO.d.ts} +2 -5
  70. package/dist/useNavbarSelectLanguage-DzNEB1HX.d.ts +9 -0
  71. package/dist/useNavbarSelectLanguage-FHyzHFEW.js.map +1 -1
  72. package/dist/useNavigate-ELe41hTY.d.ts +2 -0
  73. package/dist/useNavigate-mlFey3ew.js.map +1 -1
  74. package/dist/useRelatedLinks-BwsPumn1.js.map +1 -1
  75. package/dist/useRelatedLinks-mvQ28g6C.d.ts +8 -0
  76. package/dist/useScrollPromise-C9SNUmX_.d.ts +7 -0
  77. package/dist/useScrollPromise-CB6ZLciv.js.map +1 -1
  78. package/dist/{useSidebarItems-C7_FZHit.d.ts → useSidebarItems-ByhBOO09.d.ts} +3 -6
  79. package/dist/useSidebarItems-D1vD1QQp.js.map +1 -1
  80. package/dist/useUpdateDeviceStatus-CNEsUwNK.js +2 -0
  81. package/dist/useUpdateDeviceStatus-CNEsUwNK.js.map +1 -0
  82. package/dist/{useUpdateDeviceStatus-CsrJ_Qqv.d.ts → useUpdateDeviceStatus-DD8W3spZ.d.ts} +1 -4
  83. package/package.json +22 -22
  84. package/dist/index-CKVw8AvB.d.ts +0 -3
  85. package/dist/index-D1ZnfV_H.d.ts +0 -8
  86. package/dist/isActiveSidebarItem-CimWaCAf.d.ts +0 -7
  87. package/dist/resolvePrefix-BXZhEIJn.d.ts +0 -5
  88. package/dist/resolveRepoType-DmT6nK6z.d.ts +0 -6
  89. package/dist/useNavbarConfig-jIUipXMq.d.ts +0 -7
  90. package/dist/useNavbarSelectLanguage-zG8uc9ys.d.ts +0 -12
  91. package/dist/useNavigate-zqYnxkd_.d.ts +0 -5
  92. package/dist/useRelatedLinks-Ds7UdilB.d.ts +0 -11
  93. package/dist/useScrollPromise-TwtWBE3d.d.ts +0 -10
  94. package/dist/useUpdateDeviceStatus-eEm3JFFI.js +0 -2
  95. package/dist/useUpdateDeviceStatus-eEm3JFFI.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DmWka_eQ.js";
2
- import { n as useData, t as Data } from "../../useData-DLY6oMFR.js";
3
- import { t as useEditLink } from "../../useEditLink-DXlW5QzK.js";
4
- import { t as useNavigate } from "../../useNavigate-zqYnxkd_.js";
5
- import { t as useNavbarConfig } from "../../useNavbarConfig-jIUipXMq.js";
6
- import { t as useNavbarRepo } from "../../useNavbarRepo-B9pyDtUq.js";
7
- import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-zG8uc9ys.js";
8
- import { t as useRelatedLinks } from "../../useRelatedLinks-Ds7UdilB.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-C7_FZHit.js";
11
- import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-CsrJ_Qqv.js";
12
- import "../../index-D1ZnfV_H.js";
1
+ import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DWdqlXpq.js";
2
+ import { n as useData, t as Data } from "../../useData-DMP1s8dN.js";
3
+ import { t as useEditLink } from "../../useEditLink-B8XOetrs.js";
4
+ import { t as useNavigate } from "../../useNavigate-ELe41hTY.js";
5
+ import { t as useNavbarConfig } from "../../useNavbarConfig-BWLU4cpg.js";
6
+ import { t as useNavbarRepo } from "../../useNavbarRepo-gcoAtjQO.js";
7
+ import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-DzNEB1HX.js";
8
+ import { t as useRelatedLinks } from "../../useRelatedLinks-mvQ28g6C.js";
9
+ import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-C9SNUmX_.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-ByhBOO09.js";
11
+ import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-DD8W3spZ.js";
12
+ import "../../index-BJbWgGUf.js";
13
13
  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{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-D1vD1QQp.js";import{n as y,t as b}from"../../useUpdateDeviceStatus-eEm3JFFI.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
+ 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-D1vD1QQp.js";import{n as y,t as b}from"../../useUpdateDeviceStatus-CNEsUwNK.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-DmWka_eQ.js";
1
+ import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DWdqlXpq.js";
2
2
  export { DarkModeRef, setupDarkMode, useDarkMode };
@@ -1 +1 @@
1
- import{n as e,t}from"../../useDarkMode-BfKvIN6K.js";export{t as setupDarkMode,e as useDarkMode};
1
+ export{t as setupDarkMode,n as useDarkMode}from"../../useDarkMode-BfKvIN6K.js";
@@ -1,2 +1,2 @@
1
- import { n as useData, t as Data } from "../../useData-DLY6oMFR.js";
1
+ import { n as useData, t as Data } from "../../useData-DMP1s8dN.js";
2
2
  export { Data, useData };
@@ -1 +1 @@
1
- import{t as e}from"../../useData-nv4hwlgW.js";export{e as useData};
1
+ export{t as useData}from"../../useData-nv4hwlgW.js";
@@ -1,2 +1,2 @@
1
- import { t as useEditLink } from "../../useEditLink-DXlW5QzK.js";
1
+ import { t as useEditLink } from "../../useEditLink-B8XOetrs.js";
2
2
  export { useEditLink };
@@ -1 +1 @@
1
- import{t as e}from"../../useEditLink-BmoW42FE.js";export{e as useEditLink};
1
+ export{t as useEditLink}from"../../useEditLink-BmoW42FE.js";
@@ -1,6 +1,5 @@
1
1
  import { HeaderItem } from "@vuepress/helper/client";
2
2
  import { InjectionKey, Ref } from "vue";
3
- //#region src/client/composables/useHeaders.d.ts
4
3
  export type HeadersRef = Ref<HeaderItem[]>;
5
4
  export declare const headersSymbol: InjectionKey<HeadersRef>;
6
5
  /**
@@ -11,6 +10,4 @@ export declare const headersSymbol: InjectionKey<HeadersRef>;
11
10
  * @returns Headers ref / 标题引用
12
11
  */
13
12
  export declare const useHeaders: () => HeadersRef;
14
- export declare const setupHeaders: () => void;
15
- //#endregion
16
- //# sourceMappingURL=useHeaders.d.ts.map
13
+ export declare const setupHeaders: () => void;
@@ -1,2 +1,2 @@
1
- import{getHeaders as e}from"@vuepress/helper/client";import{onContentUpdated as t}from"vuepress/client";import{injectLocal as n,provideLocal as r}from"@vueuse/core";import{computed as i,ref as a}from"vue";import{useData as o}from"@theme/useData";const s=Symbol(`headers`),c=()=>{let e=n(s);if(!e)throw Error(`useHeaders() is called without provider.`);return e},l=()=>{let{frontmatter:n,themeLocale:c}=o(),l=a([]),u=i(()=>n.value.sidebarDepth??c.value.sidebarDepth??2),d=()=>{if(u.value<=0){l.value=[];return}l.value=e({levels:[2,u.value+1],ignore:[`.vp-badge`]})};r(s,l),t(e=>{e===`beforeUnmount`?l.value=[]:d()})};export{s as headersSymbol,l as setupHeaders,c as useHeaders};
1
+ import{getHeaders as e}from"@vuepress/helper/client";import{onContentUpdated as t}from"vuepress/client";import{injectLocal as n,provideLocal as r}from"@vueuse/core";import{computed as i,ref as a}from"vue";import{useData as o}from"@theme/useData";const s=Symbol(`headers`),c=()=>{let e=n(s);if(!e)throw Error(`useHeaders() is called without provider.`);return e},l=()=>{let{frontmatter:n,themeLocale:c}=o(),l=a([]),u=i(()=>n.value.sidebarDepth??c.value.sidebarDepth??2),d=()=>{u.value<=0?l.value=[]:l.value=e({levels:[2,u.value+1],ignore:[`.vp-badge`]})};r(s,l),t(e=>{e===`beforeUnmount`?l.value=[]:d()})};export{s as headersSymbol,l as setupHeaders,c as useHeaders};
2
2
  //# sourceMappingURL=useHeaders.js.map
@@ -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,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
+ {"version":3,"file":"useHeaders.js","names":["useData","getHeaders","onContentUpdated","injectLocal","provideLocal","computed","ref","useData$1","headersSymbol","useHeaders","headers","setupHeaders","frontmatter","themeLocale","headersRef","levels","updateHeaders","reason"],"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":"A,sPAWA,MAAaQ,EAA0C,OAAO,SAAS,EAS1DC,MAA+B,CAC1C,IAAMC,EAAUP,EAAYK,CAAa,EAEzC,GAAI,CAACE,EAAS,MAAU,MAAM,0CAA0C,EAExE,OAAOA,CACT,EAEaC,MAA2B,CACtC,GAAM,CAAEC,cAAaC,eAAgBb,EAAQ,EAEvCc,EAAyBR,EAAI,CAAC,CAAC,EAC/BS,EAASV,MACPO,EAAY,MAAM,cAAgBC,EAAY,MAAM,cAAgB,CAC5E,EAEMG,MAA4B,CAC5BD,EAAO,OAAS,EAClBD,EAAW,MAAQ,CAAC,EAItBA,EAAW,MAAQb,EAAW,CAC5B,OAAQ,CAAC,EAAGc,EAAO,MAAQ,CAAC,EAC5B,OAAQ,CAAC,WAAW,CACtB,CAAC,CACH,EAEAX,EAAaI,EAAeM,CAAU,EAEtCZ,EAAkBe,GAAW,CACvBA,IAAW,gBAAiBH,EAAW,MAAQ,CAAC,EAC/CE,EAAc,CACrB,CAAC,CACH,E"}
@@ -1,2 +1,2 @@
1
- import { t as useNavbarConfig } from "../../useNavbarConfig-jIUipXMq.js";
1
+ import { t as useNavbarConfig } from "../../useNavbarConfig-BWLU4cpg.js";
2
2
  export { useNavbarConfig };
@@ -1 +1 @@
1
- import{t as e}from"../../useNavbarConfig-CxVplYul.js";export{e as useNavbarConfig};
1
+ export{t as useNavbarConfig}from"../../useNavbarConfig-CxVplYul.js";
@@ -1,2 +1,2 @@
1
- import { t as useNavbarRepo } from "../../useNavbarRepo-B9pyDtUq.js";
1
+ import { t as useNavbarRepo } from "../../useNavbarRepo-gcoAtjQO.js";
2
2
  export { useNavbarRepo };
@@ -1 +1 @@
1
- import{t as e}from"../../useNavbarRepo-BScd94be.js";export{e as useNavbarRepo};
1
+ export{t as useNavbarRepo}from"../../useNavbarRepo-BScd94be.js";
@@ -1,2 +1,2 @@
1
- import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-zG8uc9ys.js";
1
+ import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-DzNEB1HX.js";
2
2
  export { useNavbarSelectLanguage };
@@ -1 +1 @@
1
- import{t as e}from"../../useNavbarSelectLanguage-FHyzHFEW.js";export{e as useNavbarSelectLanguage};
1
+ export{t as useNavbarSelectLanguage}from"../../useNavbarSelectLanguage-FHyzHFEW.js";
@@ -1,2 +1,2 @@
1
- import { t as useNavigate } from "../../useNavigate-zqYnxkd_.js";
1
+ import { t as useNavigate } from "../../useNavigate-ELe41hTY.js";
2
2
  export { useNavigate };
@@ -1 +1 @@
1
- import{t as e}from"../../useNavigate-mlFey3ew.js";export{e as useNavigate};
1
+ export{t as useNavigate}from"../../useNavigate-mlFey3ew.js";
@@ -1,2 +1,2 @@
1
- import { t as useRelatedLinks } from "../../useRelatedLinks-Ds7UdilB.js";
1
+ import { t as useRelatedLinks } from "../../useRelatedLinks-mvQ28g6C.js";
2
2
  export { useRelatedLinks };
@@ -1 +1 @@
1
- import{t as e}from"../../useRelatedLinks-BwsPumn1.js";export{e as useRelatedLinks};
1
+ export{t as useRelatedLinks}from"../../useRelatedLinks-BwsPumn1.js";
@@ -1,2 +1,2 @@
1
- import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-TwtWBE3d.js";
1
+ import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-C9SNUmX_.js";
2
2
  export { ScrollPromise, useScrollPromise };
@@ -1 +1 @@
1
- import{t as e}from"../../useScrollPromise-CB6ZLciv.js";export{e as useScrollPromise};
1
+ export{t as useScrollPromise}from"../../useScrollPromise-CB6ZLciv.js";
@@ -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-C7_FZHit.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-ByhBOO09.js";
2
2
  export { SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupSidebarItems, sidebarItemsSymbol, useSidebarItems };
@@ -1 +1 @@
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-D1vD1QQp.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
+ export{t as resolveArraySidebarItems,n as resolveMultiSidebarItems,r as resolveSidebarHeadingItem,i as resolveSidebarItems,a as resolveSidebarPageHeader,o as resolveSidebarPageHeaders,s as setupSidebarItems,c as sidebarItemsSymbol,l as useSidebarItems}from"../../useSidebarItems-D1vD1QQp.js";
@@ -1,2 +1,2 @@
1
- import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-CsrJ_Qqv.js";
1
+ import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-DD8W3spZ.js";
2
2
  export { DeviceType, useUpdateDeviceStatus };
@@ -1 +1 @@
1
- import{n as e,t}from"../../useUpdateDeviceStatus-eEm3JFFI.js";export{t as DeviceType,e as useUpdateDeviceStatus};
1
+ export{t as DeviceType,n as useUpdateDeviceStatus}from"../../useUpdateDeviceStatus-CNEsUwNK.js";
@@ -2,8 +2,5 @@ import { ClientConfig } from "vuepress/client";
2
2
  import "@vuepress/helper/colors.css";
3
3
  import "@vuepress/helper/normalize.css";
4
4
  import "./styles/index.scss";
5
- //#region src/client/config.d.ts
6
5
  export declare const clientConfig: ClientConfig;
7
- //#endregion
8
- export { clientConfig as default };
9
- //# sourceMappingURL=config.d.ts.map
6
+ export { clientConfig as default };
@@ -1,2 +1,2 @@
1
- import{hasGlobalComponent as e}from"@vuepress/helper/client";import{defineClientConfig as t}from"vuepress/client";import{setupDarkMode as n}from"@theme/useDarkMode";import{setupHeaders as r}from"@theme/useHeaders";import{useScrollPromise as i}from"@theme/useScrollPromise";import{setupSidebarItems as a}from"@theme/useSidebarItems";import o from"./components/global/Badge.vue";import s from"./layouts/Layout.vue";import c from"./layouts/NotFound.vue";import"@vuepress/helper/colors.css";import"@vuepress/helper/normalize.css";import"./styles/index.scss";const l=t({enhance({app:t,router:n}){e(`Badge`)||t.component(`Badge`,o);let r=n.options.scrollBehavior;n.options.scrollBehavior=async(...e)=>(await i().wait(),r(...e))},setup(){n(),r(),a()},layouts:{Layout:s,NotFound:c}});export{l as clientConfig,l as default};
1
+ import{hasGlobalComponent as e}from"@vuepress/helper/client";import{defineClientConfig as t}from"vuepress/client";import{setupDarkMode as n}from"@theme/useDarkMode";import{setupHeaders as r}from"@theme/useHeaders";import{useScrollPromise as i}from"@theme/useScrollPromise";import{setupSidebarItems as a}from"@theme/useSidebarItems";import o from"./components/global/Badge.vue";import s from"./layouts/Layout.vue";import c from"./layouts/NotFound.vue";import"@vuepress/helper/colors.css";import"@vuepress/helper/normalize.css";import"./styles/index.scss";const l=t({enhance({app:t,router:n}){e(`Badge`)||t.component(`Badge`,o);let{scrollBehavior:r}=n.options,a=async(e,t,n)=>(await i().wait(),n||(e.hash?{el:e.hash}:{top:0}));n.options.scrollBehavior=r?async(...e)=>(await i().wait(),r(...e)):a},setup(){n(),r(),a()},layouts:{Layout:s,NotFound:c}});export{l as clientConfig,l as default};
2
2
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { hasGlobalComponent } from '@vuepress/helper/client'\nimport type { ClientConfig } from 'vuepress/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 const clientConfig: ClientConfig = 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\nexport default clientConfig\n"],"mappings":"0iBAiBA,MAAa,EAA6B,EAAmB,CAC3D,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
+ {"version":3,"file":"config.js","names":["hasGlobalComponent","defineClientConfig","setupDarkMode","setupHeaders","useScrollPromise","setupSidebarItems","Badge","Layout","NotFound","clientConfig","app","router","scrollBehavior","transitionScrollBehavior","to","_from","savedPosition","args"],"sources":["../../src/client/config.ts"],"sourcesContent":["import { hasGlobalComponent } from '@vuepress/helper/client'\nimport type { ClientConfig } from 'vuepress/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 const clientConfig: ClientConfig = defineClientConfig({\n enhance({ app, router }) {\n if (!hasGlobalComponent('Badge')) app.component('Badge', Badge)\n\n // handle scrollBehavior with transition\n // oxlint-disable-next-line typescript/no-deprecated\n const { scrollBehavior } = router.options\n\n type RouterScrollBehavior = NonNullable<\n // oxlint-disable-next-line typescript/no-deprecated\n typeof router.options.scrollBehavior\n >\n\n // VuePress 2.0.0-rc.32+ no longer provides a scrollBehavior and restores\n // the scroll position right after the route changes, before the page\n // transition has inserted the new page. Restore it after the transition\n // ourselves so hash targets exist when they are scrolled into view.\n // oxlint-disable-next-line unicorn/consistent-function-scoping\n const transitionScrollBehavior: RouterScrollBehavior = async (\n to,\n _from,\n savedPosition,\n ) => {\n await useScrollPromise().wait()\n\n if (savedPosition) return savedPosition\n if (to.hash) return { el: to.hash }\n return { top: 0 }\n }\n\n // scrollBehavior is a bit hard to typed here\n // oxlint-disable-next-line typescript/no-deprecated\n router.options.scrollBehavior = scrollBehavior\n ? async (...args): Promise<Awaited<ReturnType<RouterScrollBehavior>>> => {\n await useScrollPromise().wait()\n return scrollBehavior(...args)\n }\n : transitionScrollBehavior\n },\n\n setup() {\n setupDarkMode()\n setupHeaders()\n setupSidebarItems()\n },\n\n layouts: {\n Layout,\n NotFound,\n },\n})\n\nexport default clientConfig\n"],"mappings":"A,0iBAiBA,MAAaS,EAA6BR,EAAmB,CAC3D,QAAQ,CAAES,MAAKC,UAAU,CAClBX,EAAmB,OAAO,GAAGU,EAAI,UAAU,QAASJ,CAAK,EAI9D,GAAM,CAAEM,kBAAmBD,EAAO,QAY5BE,EAAiD,MACrDC,EACAC,EACAC,KAEA,MAAMZ,EAAiB,CAAC,CAAC,KAAK,EAE1BY,IACAF,EAAG,KAAa,CAAE,GAAIA,EAAG,IAAK,EAC3B,CAAE,IAAK,CAAE,IAKlBH,EAAO,QAAQ,eAAiBC,EAC5B,MAAO,GAAGK,KACR,MAAMb,EAAiB,CAAC,CAAC,KAAK,EACvBQ,EAAe,GAAGK,CAAI,GAE/BJ,CACN,EAEA,OAAQ,CACNX,EAAc,EACdC,EAAa,EACbE,EAAkB,CACpB,EAEA,QAAS,CACPE,SACAC,UACF,CACF,CAAC,E"}
@@ -1,21 +1,21 @@
1
- import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-DmWka_eQ.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-DnNaefpa.js";
3
- import { n as useData, t as Data } from "../useData-DLY6oMFR.js";
4
- import { t as useEditLink } from "../useEditLink-DXlW5QzK.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-Cbpr0bFc.js";
7
- import { t as useNavbarConfig } from "../useNavbarConfig-jIUipXMq.js";
8
- import { t as useNavbarRepo } from "../useNavbarRepo-B9pyDtUq.js";
9
- import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-zG8uc9ys.js";
10
- import { t as useRelatedLinks } from "../useRelatedLinks-Ds7UdilB.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-C7_FZHit.js";
13
- import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-CsrJ_Qqv.js";
14
- import "../index-D1ZnfV_H.js";
15
- import { t as isActiveSidebarItem } from "../isActiveSidebarItem-CimWaCAf.js";
16
- import { t as resolveAutoLink } from "../resolveAutoLink-JDq36I7k.js";
17
- import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-VYO59JxD.js";
18
- import { t as resolvePrefix } from "../resolvePrefix-BXZhEIJn.js";
19
- import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-DmT6nK6z.js";
20
- import "../index-CKVw8AvB.js";
1
+ import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-DWdqlXpq.js";
2
+ import "../index-BJbWgGUf.js";
3
+ import { n as useData, t as Data } from "../useData-DMP1s8dN.js";
4
+ import { t as useEditLink } from "../useEditLink-B8XOetrs.js";
5
+ import { t as useNavigate } from "../useNavigate-ELe41hTY.js";
6
+ import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-DV97y_41.js";
7
+ import { t as useNavbarConfig } from "../useNavbarConfig-BWLU4cpg.js";
8
+ import { t as useNavbarRepo } from "../useNavbarRepo-gcoAtjQO.js";
9
+ import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-DzNEB1HX.js";
10
+ import { t as useRelatedLinks } from "../useRelatedLinks-mvQ28g6C.js";
11
+ import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-C9SNUmX_.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-ByhBOO09.js";
13
+ import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-DD8W3spZ.js";
14
+ import "../index--4Q8BmVV.js";
15
+ import { t as isActiveSidebarItem } from "../isActiveSidebarItem-CInJFY7t.js";
16
+ import { t as resolveAutoLink } from "../resolveAutoLink-CgIw9MWM.js";
17
+ import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-DzBrOebC.js";
18
+ import { t as resolvePrefix } from "../resolvePrefix-DvC1-afu.js";
19
+ import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-DlYSUv-A.js";
20
+ 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-DM_-Gf3x.js";
21
21
  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{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-D1vD1QQp.js";import{n as y,t as b}from"../useUpdateDeviceStatus-eEm3JFFI.js";import{t as x}from"../isActiveSidebarItem-CdmUcp0l.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};
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-D1vD1QQp.js";import{n as y,t as b}from"../useUpdateDeviceStatus-CNEsUwNK.js";import{t as x}from"../isActiveSidebarItem-CdmUcp0l.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};
@@ -1,7 +1,7 @@
1
- import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-CimWaCAf.js";
2
- import { t as resolveAutoLink } from "../../resolveAutoLink-JDq36I7k.js";
3
- import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-VYO59JxD.js";
4
- import { t as resolvePrefix } from "../../resolvePrefix-BXZhEIJn.js";
5
- import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DmT6nK6z.js";
6
- import "../../index-CKVw8AvB.js";
1
+ import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-CInJFY7t.js";
2
+ import { t as resolveAutoLink } from "../../resolveAutoLink-CgIw9MWM.js";
3
+ import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-DzBrOebC.js";
4
+ import { t as resolvePrefix } from "../../resolvePrefix-DvC1-afu.js";
5
+ import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DlYSUv-A.js";
6
+ import "../../index--4Q8BmVV.js";
7
7
  export { EDIT_LINK_PATTERNS, RepoType, isActiveSidebarItem, resolveAutoLink, resolveEditLink, resolvePrefix, resolveRepoType };
@@ -1,2 +1,2 @@
1
- import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-CimWaCAf.js";
1
+ import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-CInJFY7t.js";
2
2
  export { isActiveSidebarItem };
@@ -1 +1 @@
1
- import{t as e}from"../../isActiveSidebarItem-CdmUcp0l.js";export{e as isActiveSidebarItem};
1
+ export{t as isActiveSidebarItem}from"../../isActiveSidebarItem-CdmUcp0l.js";
@@ -1,2 +1,2 @@
1
- import { t as resolveAutoLink } from "../../resolveAutoLink-JDq36I7k.js";
1
+ import { t as resolveAutoLink } from "../../resolveAutoLink-CgIw9MWM.js";
2
2
  export { resolveAutoLink };
@@ -1 +1 @@
1
- import{t as e}from"../../resolveAutoLink-XUJwl3Kb.js";export{e as resolveAutoLink};
1
+ export{t as resolveAutoLink}from"../../resolveAutoLink-XUJwl3Kb.js";
@@ -1,2 +1,2 @@
1
- import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-VYO59JxD.js";
1
+ import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-DzBrOebC.js";
2
2
  export { EDIT_LINK_PATTERNS, resolveEditLink };
@@ -1 +1 @@
1
- import{n as e,t}from"../../resolveEditLink-lteF0-Mv.js";export{t as EDIT_LINK_PATTERNS,e as resolveEditLink};
1
+ export{t as EDIT_LINK_PATTERNS,n as resolveEditLink}from"../../resolveEditLink-lteF0-Mv.js";
@@ -1,2 +1,2 @@
1
- import { t as resolvePrefix } from "../../resolvePrefix-BXZhEIJn.js";
1
+ import { t as resolvePrefix } from "../../resolvePrefix-DvC1-afu.js";
2
2
  export { resolvePrefix };
@@ -1 +1 @@
1
- import{t as e}from"../../resolvePrefix-CQnTmTk4.js";export{e as resolvePrefix};
1
+ export{t as resolvePrefix}from"../../resolvePrefix-CQnTmTk4.js";
@@ -1,2 +1,2 @@
1
- import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DmT6nK6z.js";
1
+ import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-DlYSUv-A.js";
2
2
  export { RepoType, resolveRepoType };
@@ -1 +1 @@
1
- import{t as e}from"../../resolveRepoType-BfcHRhpi.js";export{e as resolveRepoType};
1
+ export{t as resolveRepoType}from"../../resolveRepoType-BfcHRhpi.js";
@@ -0,0 +1,3 @@
1
+ import "./isActiveSidebarItem-CInJFY7t.js";
2
+ import "./resolveAutoLink-CgIw9MWM.js";
3
+ import "./resolveEditLink-DzBrOebC.js";
@@ -0,0 +1,8 @@
1
+ import "./useDarkMode-DWdqlXpq.js";
2
+ import "./useData-DMP1s8dN.js";
3
+ import "./useEditLink-B8XOetrs.js";
4
+ import "./useNavbarConfig-BWLU4cpg.js";
5
+ import "./useNavbarRepo-gcoAtjQO.js";
6
+ import "./useNavbarSelectLanguage-DzNEB1HX.js";
7
+ import "./useRelatedLinks-mvQ28g6C.js";
8
+ import "./useSidebarItems-ByhBOO09.js";
@@ -1,7 +1,6 @@
1
1
  import { GitPluginPageData } from "@vuepress/plugin-git";
2
2
  import { ThemeData } from "@vuepress/plugin-theme-data";
3
3
  import { LocaleData, PageFrontmatter } from "vuepress/shared";
4
- //#region src/shared/nav.d.ts
5
4
  /** Base nav item, displayed as text */
6
5
  interface NavItemOptions {
7
6
  text: string;
@@ -20,8 +19,6 @@ interface AutoLinkOptions extends NavItemOptions {
20
19
  /** Whether it's active only when exact match */
21
20
  exact?: boolean;
22
21
  }
23
- //#endregion
24
- //#region src/shared/navbar.d.ts
25
22
  /** Base nav group, has nav items children */
26
23
  interface NavGroup<T> extends NavItemOptions {
27
24
  /** Link prefix of current group */
@@ -34,8 +31,6 @@ interface NavGroup<T> extends NavItemOptions {
34
31
  type NavbarLinkOptions = AutoLinkOptions | string;
35
32
  type NavbarGroupOptions = NavGroup<NavbarLinkOptions | NavGroup<NavbarLinkOptions>>;
36
33
  type NavbarOptions = (NavbarGroupOptions | NavbarLinkOptions)[] | false;
37
- //#endregion
38
- //#region src/shared/sidebar.d.ts
39
34
  type SidebarLinkOptions = AutoLinkOptions;
40
35
  interface SidebarGroupOptions extends NavItemOptions {
41
36
  /** Link prefix of current group */
@@ -55,8 +50,6 @@ type SidebarItemOptions = SidebarGroupOptions | SidebarLinkOptions | string;
55
50
  type SidebarArrayOptions = SidebarItemOptions[];
56
51
  type SidebarObjectOptions = Record<string, SidebarArrayOptions | "heading" | false>;
57
52
  type SidebarOptions = SidebarArrayOptions | SidebarObjectOptions | "heading";
58
- //#endregion
59
- //#region src/shared/options.d.ts
60
53
  type DefaultThemeLocaleOptions = DefaultThemeData;
61
54
  type DefaultThemeData = ThemeData<DefaultThemeLocaleData>;
62
55
  interface DefaultThemeLocaleData extends LocaleData {
@@ -283,8 +276,6 @@ interface DefaultThemeLocaleData extends LocaleData {
283
276
  /** Text for next link */
284
277
  next?: string | false;
285
278
  }
286
- //#endregion
287
- //#region src/shared/page.d.ts
288
279
  interface DefaultThemePageData extends Partial<GitPluginPageData> {
289
280
  filePathRelative: string | null;
290
281
  }
@@ -325,6 +316,4 @@ interface DefaultThemeNormalPageFrontmatter extends DefaultThemePageFrontmatter
325
316
  prev?: AutoLinkOptions | string;
326
317
  next?: AutoLinkOptions | string;
327
318
  }
328
- //#endregion
329
- export { NavbarOptions as _, DefaultThemeData as a, SidebarArrayOptions as c, SidebarLinkOptions as d, SidebarObjectOptions as f, NavbarLinkOptions as g, NavbarGroupOptions as h, DefaultThemePageFrontmatter as i, SidebarGroupOptions as l, NavGroup as m, DefaultThemeNormalPageFrontmatter as n, DefaultThemeLocaleData as o, SidebarOptions as p, DefaultThemePageData as r, DefaultThemeLocaleOptions as s, DefaultThemeHomePageFrontmatter as t, SidebarItemOptions as u, AutoLinkOptions as v, NavItemOptions as y };
330
- //# sourceMappingURL=index-DnNaefpa.d.ts.map
319
+ export { NavbarOptions as _, DefaultThemeData as a, SidebarArrayOptions as c, SidebarLinkOptions as d, SidebarObjectOptions as f, NavbarLinkOptions as g, NavbarGroupOptions as h, DefaultThemePageFrontmatter as i, SidebarGroupOptions as l, NavGroup as m, DefaultThemeNormalPageFrontmatter as n, DefaultThemeLocaleData as o, SidebarOptions as p, DefaultThemePageData as r, DefaultThemeLocaleOptions as s, DefaultThemeHomePageFrontmatter as t, SidebarItemOptions as u, AutoLinkOptions as v, NavItemOptions as y };
@@ -0,0 +1,4 @@
1
+ import { i as SidebarItem } from "./typings-DV97y_41.js";
2
+ import { RouteLocationNormalizedLoaded } from "vuepress/client";
3
+ declare const isActiveSidebarItem: (item: SidebarItem, route: RouteLocationNormalizedLoaded) => boolean;
4
+ export { isActiveSidebarItem as t };
@@ -1 +1 @@
1
- {"version":3,"file":"isActiveSidebarItem-CdmUcp0l.js","names":[],"sources":["../src/client/utils/isActiveSidebarItem.ts"],"sourcesContent":["import { normalizePath } from '@vuepress/helper/client'\nimport type { RouteLocationNormalizedLoaded } from 'vuepress/client'\n\nimport type { SidebarItem } from '../typings.js'\n\nconst isActiveLink = (\n link: string,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (route.hash === link) return true\n\n const currentPath = normalizePath(decodeURI(route.path), true)\n const targetPath = normalizePath(decodeURI(link), true)\n return currentPath === targetPath\n}\n\nexport const isActiveSidebarItem = (\n item: SidebarItem,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (item.link && isActiveLink(item.link, route)) return true\n\n if ('children' in item)\n return item.children.some((child) => isActiveSidebarItem(child, route))\n\n return false\n}\n"],"mappings":"wDAKA,MAAM,GACJ,EACA,IAEI,EAAM,OAAS,GAEC,EAAc,UAAU,EAAM,IAAI,EAAG,EAExC,IADE,EAAc,UAAU,CAAI,EAAG,EAClB,EAGrB,GACX,EACA,IAEI,EAAK,MAAQ,EAAa,EAAK,KAAM,CAAK,EAAU,GAEpD,aAAc,GACT,EAAK,SAAS,KAAM,GAAU,EAAoB,EAAO,CAAK,CAAC"}
1
+ {"version":3,"file":"isActiveSidebarItem-CdmUcp0l.js","names":["normalizePath","isActiveLink","link","route","isActiveSidebarItem","item","child"],"sources":["../src/client/utils/isActiveSidebarItem.ts"],"sourcesContent":["import { normalizePath } from '@vuepress/helper/client'\nimport type { RouteLocationNormalizedLoaded } from 'vuepress/client'\n\nimport type { SidebarItem } from '../typings.js'\n\nconst isActiveLink = (\n link: string,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (route.hash === link) return true\n\n const currentPath = normalizePath(decodeURI(route.path), true)\n const targetPath = normalizePath(decodeURI(link), true)\n return currentPath === targetPath\n}\n\nexport const isActiveSidebarItem = (\n item: SidebarItem,\n route: RouteLocationNormalizedLoaded,\n): boolean => {\n if (item.link && isActiveLink(item.link, route)) return true\n\n if ('children' in item)\n return item.children.some((child) => isActiveSidebarItem(child, route))\n\n return false\n}\n"],"mappings":"A,wDAKA,MAAMC,GACJC,EACAC,IAEIA,EAAM,OAASD,GAECF,EAAc,UAAUG,EAAM,IAAI,EAAG,EAExC,IADEH,EAAc,UAAUE,CAAI,EAAG,EAClB,EAGrBE,GACXC,EACAF,IAEIE,EAAK,MAAQJ,EAAaI,EAAK,KAAMF,CAAK,EAAU,GAEpD,aAAcE,GACTA,EAAK,SAAS,KAAMC,GAAUF,EAAoBE,EAAOH,CAAK,CAAC,E"}
@@ -1,4 +1,4 @@
1
- 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-DnNaefpa.js";
1
+ 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-DM_-Gf3x.js";
2
2
  import { BackToTopPluginOptions } from "@vuepress/plugin-back-to-top";
3
3
  import { CopyCodePluginOptions } from "@vuepress/plugin-copy-code";
4
4
  import { GitPluginOptions } from "@vuepress/plugin-git";
@@ -10,7 +10,6 @@ import { SeoPluginOptions } from "@vuepress/plugin-seo";
10
10
  import { SitemapPluginOptions } from "@vuepress/plugin-sitemap";
11
11
  import { LocaleConfig } from "vuepress/shared";
12
12
  import { Theme } from "vuepress/core";
13
- //#region src/node/typings.d.ts
14
13
  interface DefaultThemePluginsOptions {
15
14
  /** Enable `@vuepress/plugin-active-header-links` or not */
16
15
  activeHeaderLinks?: boolean;
@@ -37,8 +36,6 @@ interface DefaultThemePluginsOptions {
37
36
  /** Enable `@vuepress/plugin-markdown-tab` or not */
38
37
  tab?: MarkdownTabPluginOptions | boolean;
39
38
  }
40
- //#endregion
41
- //#region src/node/defaultTheme.d.ts
42
39
  export interface DefaultThemeOptions extends DefaultThemeLocaleOptions {
43
40
  /** Deployed hostname */
44
41
  hostname?: string;
@@ -46,8 +43,6 @@ export interface DefaultThemeOptions extends DefaultThemeLocaleOptions {
46
43
  themePlugins?: DefaultThemePluginsOptions;
47
44
  }
48
45
  export declare const defaultTheme: ({ hostname, themePlugins, ...localeOptions }?: DefaultThemeOptions) => Theme;
49
- //#endregion
50
- //#region src/node/utils/assignDefaultLocaleOptions.d.ts
51
46
  export declare const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions;
52
47
  export declare const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData;
53
48
  /**
@@ -56,8 +51,6 @@ export declare const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData;
56
51
  * @param localeOptions - Locale options to assign default options
57
52
  */
58
53
  export declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLocaleOptions) => void;
59
- //#endregion
60
- //#region src/node/utils/resolveMarkdownHintLocales.d.ts
61
54
  /**
62
55
  * Resolve options for `@vuepress/plugin-markdown-container`
63
56
  *
@@ -67,6 +60,4 @@ export declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLoc
67
60
  * @returns Locales config for `@vuepress/plugin-markdown-container`
68
61
  */
69
62
  export declare const resolveMarkdownHintLocales: (localeOptions: DefaultThemeData) => LocaleConfig<MarkdownHintPluginLocaleData>;
70
- //#endregion
71
- export type { AutoLinkOptions, DefaultThemeData, DefaultThemeHomePageFrontmatter, DefaultThemeLocaleData, DefaultThemeLocaleOptions, DefaultThemeNormalPageFrontmatter, DefaultThemePageData, DefaultThemePageFrontmatter, DefaultThemePluginsOptions, NavGroup, NavItemOptions, NavbarGroupOptions, NavbarLinkOptions, NavbarOptions, SidebarArrayOptions, SidebarGroupOptions, SidebarItemOptions, SidebarLinkOptions, SidebarObjectOptions, SidebarOptions };
72
- //# sourceMappingURL=index.d.ts.map
63
+ export type { AutoLinkOptions, DefaultThemeData, DefaultThemeHomePageFrontmatter, DefaultThemeLocaleData, DefaultThemeLocaleOptions, DefaultThemeNormalPageFrontmatter, DefaultThemePageData, DefaultThemePageFrontmatter, DefaultThemePluginsOptions, NavGroup, NavItemOptions, NavbarGroupOptions, NavbarLinkOptions, NavbarOptions, SidebarArrayOptions, SidebarGroupOptions, SidebarItemOptions, SidebarLinkOptions, SidebarObjectOptions, SidebarOptions };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/node/utils/assignDefaultLocaleOptions.ts","../../src/node/utils/resolveMarkdownHintLocales.ts","../../src/node/defaultTheme.ts"],"sourcesContent":["import type {\n DefaultThemeLocaleData,\n DefaultThemeLocaleOptions,\n} from '../../shared/index.js'\n\nexport const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions = {\n // color mode\n colorMode: 'auto',\n colorModeSwitch: true,\n\n // navbar\n navbar: [],\n logo: null,\n repo: null,\n selectLanguageText: 'Languages',\n selectLanguageAriaLabel: 'Select language',\n\n // sidebar\n sidebar: 'heading',\n sidebarDepth: 2,\n\n // page meta\n editLink: true,\n editLinkText: 'Edit this page',\n lastUpdated: true,\n contributors: true,\n contributorsText: 'Contributors',\n\n // 404 page messages\n notFound: [\n `There's nothing here.`,\n `How did we get here?`,\n `That's a Four-Oh-Four.`,\n `Looks like we've got some broken links.`,\n ],\n backToHome: 'Take me home',\n\n // a11y\n openInNewWindow: 'open in new window',\n toggleColorMode: 'toggle color mode',\n toggleSidebar: 'toggle sidebar',\n}\n\nexport const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData = {\n // navbar\n selectLanguageName: 'English',\n}\n\n/**\n * Assign default options\n *\n * @param localeOptions - Locale options to assign default options\n */\nexport const assignDefaultLocaleOptions = (\n localeOptions: DefaultThemeLocaleOptions,\n): void => {\n localeOptions.locales ??= {}\n Object.assign(localeOptions, {\n ...DEFAULT_LOCALE_OPTIONS,\n ...localeOptions,\n })\n localeOptions.locales['/'] ??= {}\n Object.assign(localeOptions.locales['/'], {\n ...DEFAULT_LOCALE_DATA,\n ...localeOptions.locales['/'],\n })\n}\n","import type { MarkdownHintPluginLocaleData } from '@vuepress/plugin-markdown-hint'\nimport type { LocaleConfig } from 'vuepress/shared'\n\nimport type { DefaultThemeData } from '../../shared/index.js'\n\n/**\n * Resolve options for `@vuepress/plugin-markdown-container`\n *\n * For custom containers default title\n *\n * @param localeOptions - Locales config from theme options\n * @returns Locales config for `@vuepress/plugin-markdown-container`\n */\nexport const resolveMarkdownHintLocales = (\n localeOptions: DefaultThemeData,\n): LocaleConfig<MarkdownHintPluginLocaleData> =>\n Object.entries(localeOptions.locales ?? {}).reduce<\n LocaleConfig<MarkdownHintPluginLocaleData>\n >((result, [key, value]) => {\n result[key] = {}\n\n if (value.tip) result[key].tip = value.tip\n if (value.warning) result[key].warning = value.warning\n if (value.danger) result[key].caution = value.danger\n if (value.important) result[key].important = value.important\n if (value.note) result[key].note = value.note\n\n return result\n }, {})\n","import { addViteOptimizeDepsExclude } from '@vuepress/helper'\nimport { activeHeaderLinksPlugin } from '@vuepress/plugin-active-header-links'\nimport { backToTopPlugin } from '@vuepress/plugin-back-to-top'\nimport { copyCodePlugin } from '@vuepress/plugin-copy-code'\nimport { gitPlugin } from '@vuepress/plugin-git'\nimport { linksCheckPlugin } from '@vuepress/plugin-links-check'\nimport { markdownHintPlugin } from '@vuepress/plugin-markdown-hint'\nimport { markdownTabPlugin } from '@vuepress/plugin-markdown-tab'\nimport { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom'\nimport { nprogressPlugin } from '@vuepress/plugin-nprogress'\nimport { palettePlugin } from '@vuepress/plugin-palette'\nimport { prismjsPlugin } from '@vuepress/plugin-prismjs'\nimport { seoPlugin } from '@vuepress/plugin-seo'\nimport { sitemapPlugin } from '@vuepress/plugin-sitemap'\nimport { themeDataPlugin } from '@vuepress/plugin-theme-data'\nimport type { Page, Theme } from 'vuepress/core'\nimport { isPlainObject } from 'vuepress/shared'\nimport { fs, getDirname, path } from 'vuepress/utils'\n\nimport type { DefaultThemeLocaleOptions } from '../shared/index.js'\nimport type { DefaultThemePluginsOptions } from './typings.js'\nimport {\n assignDefaultLocaleOptions,\n resolveMarkdownHintLocales,\n} from './utils/index.js'\n\nconst __dirname = import.meta.dirname || getDirname(import.meta.url)\n\n// oxlint-disable-next-line node/no-top-level-await\nconst [componentFiles, composableFiles, utilFiles] = await Promise.all([\n fs.readdir(path.resolve(__dirname, '../client/components')),\n fs.readdir(path.resolve(__dirname, '../client/composables')),\n fs.readdir(path.resolve(__dirname, '../client/utils')),\n])\n\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /** Deployed hostname */\n hostname?: string\n\n /** To avoid confusion with the root `plugins` option, we use `themePlugins` */\n themePlugins?: DefaultThemePluginsOptions\n}\n\nexport const defaultTheme = ({\n hostname,\n themePlugins = {},\n ...localeOptions\n}: DefaultThemeOptions = {}): Theme => {\n assignDefaultLocaleOptions(localeOptions)\n\n return {\n name: '@vuepress/theme-default',\n\n userStyle: '.vuepress/styles/index.scss',\n\n templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n componentFiles\n .filter((file) => file.endsWith('.vue'))\n .map((file) => [\n `@theme/${file}`,\n path.resolve(__dirname, '../client/components', file),\n ]),\n ),\n // use alias to make all composables replaceable\n ...Object.fromEntries(\n composableFiles\n .filter((file) => file.endsWith('.js'))\n .map((file) => [\n `@theme/${file.slice(0, -3)}`,\n path.resolve(__dirname, '../client/composables', file),\n ]),\n ),\n // use alias to make all utils replaceable\n ...Object.fromEntries(\n utilFiles\n .filter((file) => file.endsWith('.js'))\n .map((file) => [\n `@theme/${file.slice(0, -3)}`,\n path.resolve(__dirname, '../client/utils', file),\n ]),\n ),\n },\n\n clientConfigFile: path.resolve(__dirname, '../client/config.js'),\n\n extendsBundlerOptions: (bundlerOptions, app) => {\n // ensure theme alias is not optimized by Vite\n addViteOptimizeDepsExclude(bundlerOptions, app, '@theme')\n },\n\n extendsPage: (page: Page) => {\n // save relative file path into page data to generate edit link\n page.data.filePathRelative = page.filePathRelative\n // save title into route meta to generate navbar and sidebar\n page.routeMeta.title = page.title\n },\n\n plugins: [\n // @vuepress/plugin-active-header-link\n (themePlugins.activeHeaderLinks ?? true)\n ? activeHeaderLinksPlugin({\n // should greater than page transition duration\n delay: 300,\n })\n : [],\n\n // @vuepress/plugin-back-to-top\n (themePlugins.backToTop ?? true)\n ? backToTopPlugin(\n isPlainObject(themePlugins.backToTop) ? themePlugins.backToTop : {},\n )\n : [],\n\n // @vuepress/plugin-copy-code\n (themePlugins.copyCode ?? true)\n ? copyCodePlugin({\n ...(isPlainObject(themePlugins.copyCode)\n ? themePlugins.copyCode\n : {}),\n })\n : [],\n\n // @vuepress/plugin-markdown-container\n (themePlugins.hint ?? true)\n ? markdownHintPlugin({\n locales: resolveMarkdownHintLocales(localeOptions),\n ...(isPlainObject(themePlugins.hint) ? themePlugins.hint : {}),\n })\n : [],\n\n // @vuepress/plugin-git\n (themePlugins.git ?? true)\n ? gitPlugin({\n createdTime: false,\n updatedTime: localeOptions.lastUpdated ?? true,\n changelog: { repoUrl: localeOptions.repo || '' },\n ...(isPlainObject(themePlugins.git) ? themePlugins.git : {}),\n })\n : [],\n\n // @vuepress/plugin-links-check\n (themePlugins.linksCheck ?? true)\n ? linksCheckPlugin(\n isPlainObject(themePlugins.linksCheck)\n ? themePlugins.linksCheck\n : {},\n )\n : [],\n\n // @vuepress/plugin-medium-zoom\n (themePlugins.mediumZoom ?? true) ? mediumZoomPlugin() : [],\n\n // @vuepress/plugin-nprogress\n (themePlugins.nprogress ?? true) ? nprogressPlugin() : [],\n\n // @vuepress/plugin-palette\n palettePlugin({ preset: 'sass' }),\n\n // @vuepress/plugin-prismjs\n (themePlugins.prismjs ?? true)\n ? prismjsPlugin(\n isPlainObject(themePlugins.prismjs) ? themePlugins.prismjs : {},\n )\n : [],\n\n // @vuepress/plugin-seo\n hostname && (themePlugins.seo ?? true)\n ? seoPlugin({\n hostname,\n ...(isPlainObject(themePlugins.seo) ? themePlugins.seo : {}),\n })\n : [],\n\n // @vuepress/plugin-sitemap\n hostname && (themePlugins.sitemap ?? true)\n ? sitemapPlugin({\n hostname,\n ...(isPlainObject(themePlugins.sitemap)\n ? themePlugins.sitemap\n : {}),\n })\n : [],\n\n // @vuepress/plugin-markdown-tab\n (themePlugins.tab ?? true)\n ? markdownTabPlugin(\n isPlainObject(themePlugins.tab)\n ? themePlugins.tab\n : { codeTabs: true, tabs: true },\n )\n : [],\n\n // @vuepress/plugin-theme-data\n themeDataPlugin({ themeData: localeOptions }),\n ],\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.js","names":["addViteOptimizeDepsExclude","activeHeaderLinksPlugin","backToTopPlugin","copyCodePlugin","gitPlugin","linksCheckPlugin","markdownHintPlugin","markdownTabPlugin","mediumZoomPlugin","nprogressPlugin","palettePlugin","prismjsPlugin","seoPlugin","sitemapPlugin","themeDataPlugin","isPlainObject","fs","getDirname","path","DEFAULT_LOCALE_OPTIONS","DEFAULT_LOCALE_DATA","assignDefaultLocaleOptions","localeOptions","resolveMarkdownHintLocales","result","key","value","__dirname","componentFiles","composableFiles","utilFiles","defaultTheme","hostname","themePlugins","file","bundlerOptions","app","page"],"sources":["../../src/node/utils/assignDefaultLocaleOptions.ts","../../src/node/utils/resolveMarkdownHintLocales.ts","../../src/node/defaultTheme.ts"],"sourcesContent":["import type {\n DefaultThemeLocaleData,\n DefaultThemeLocaleOptions,\n} from '../../shared/index.js'\n\nexport const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions = {\n // color mode\n colorMode: 'auto',\n colorModeSwitch: true,\n\n // navbar\n navbar: [],\n logo: null,\n repo: null,\n selectLanguageText: 'Languages',\n selectLanguageAriaLabel: 'Select language',\n\n // sidebar\n sidebar: 'heading',\n sidebarDepth: 2,\n\n // page meta\n editLink: true,\n editLinkText: 'Edit this page',\n lastUpdated: true,\n contributors: true,\n contributorsText: 'Contributors',\n\n // 404 page messages\n notFound: [\n `There's nothing here.`,\n `How did we get here?`,\n `That's a Four-Oh-Four.`,\n `Looks like we've got some broken links.`,\n ],\n backToHome: 'Take me home',\n\n // a11y\n openInNewWindow: 'open in new window',\n toggleColorMode: 'toggle color mode',\n toggleSidebar: 'toggle sidebar',\n}\n\nexport const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData = {\n // navbar\n selectLanguageName: 'English',\n}\n\n/**\n * Assign default options\n *\n * @param localeOptions - Locale options to assign default options\n */\nexport const assignDefaultLocaleOptions = (\n localeOptions: DefaultThemeLocaleOptions,\n): void => {\n localeOptions.locales ??= {}\n Object.assign(localeOptions, {\n ...DEFAULT_LOCALE_OPTIONS,\n ...localeOptions,\n })\n localeOptions.locales['/'] ??= {}\n Object.assign(localeOptions.locales['/'], {\n ...DEFAULT_LOCALE_DATA,\n ...localeOptions.locales['/'],\n })\n}\n","import type { MarkdownHintPluginLocaleData } from '@vuepress/plugin-markdown-hint'\nimport type { LocaleConfig } from 'vuepress/shared'\n\nimport type { DefaultThemeData } from '../../shared/index.js'\n\n/**\n * Resolve options for `@vuepress/plugin-markdown-container`\n *\n * For custom containers default title\n *\n * @param localeOptions - Locales config from theme options\n * @returns Locales config for `@vuepress/plugin-markdown-container`\n */\nexport const resolveMarkdownHintLocales = (\n localeOptions: DefaultThemeData,\n): LocaleConfig<MarkdownHintPluginLocaleData> =>\n Object.entries(localeOptions.locales ?? {}).reduce<\n LocaleConfig<MarkdownHintPluginLocaleData>\n >((result, [key, value]) => {\n result[key] = {}\n\n if (value.tip) result[key].tip = value.tip\n if (value.warning) result[key].warning = value.warning\n if (value.danger) result[key].caution = value.danger\n if (value.important) result[key].important = value.important\n if (value.note) result[key].note = value.note\n\n return result\n }, {})\n","import { addViteOptimizeDepsExclude } from '@vuepress/helper'\nimport { activeHeaderLinksPlugin } from '@vuepress/plugin-active-header-links'\nimport { backToTopPlugin } from '@vuepress/plugin-back-to-top'\nimport { copyCodePlugin } from '@vuepress/plugin-copy-code'\nimport { gitPlugin } from '@vuepress/plugin-git'\nimport { linksCheckPlugin } from '@vuepress/plugin-links-check'\nimport { markdownHintPlugin } from '@vuepress/plugin-markdown-hint'\nimport { markdownTabPlugin } from '@vuepress/plugin-markdown-tab'\nimport { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom'\nimport { nprogressPlugin } from '@vuepress/plugin-nprogress'\nimport { palettePlugin } from '@vuepress/plugin-palette'\nimport { prismjsPlugin } from '@vuepress/plugin-prismjs'\nimport { seoPlugin } from '@vuepress/plugin-seo'\nimport { sitemapPlugin } from '@vuepress/plugin-sitemap'\nimport { themeDataPlugin } from '@vuepress/plugin-theme-data'\nimport type { Page, Theme } from 'vuepress/core'\nimport { isPlainObject } from 'vuepress/shared'\nimport { fs, getDirname, path } from 'vuepress/utils'\n\nimport type { DefaultThemeLocaleOptions } from '../shared/index.js'\nimport type { DefaultThemePluginsOptions } from './typings.js'\nimport {\n assignDefaultLocaleOptions,\n resolveMarkdownHintLocales,\n} from './utils/index.js'\n\nconst __dirname = import.meta.dirname || getDirname(import.meta.url)\n\n// oxlint-disable-next-line node/no-top-level-await\nconst [componentFiles, composableFiles, utilFiles] = await Promise.all([\n fs.readdir(path.resolve(__dirname, '../client/components')),\n fs.readdir(path.resolve(__dirname, '../client/composables')),\n fs.readdir(path.resolve(__dirname, '../client/utils')),\n])\n\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /** Deployed hostname */\n hostname?: string\n\n /** To avoid confusion with the root `plugins` option, we use `themePlugins` */\n themePlugins?: DefaultThemePluginsOptions\n}\n\nexport const defaultTheme = ({\n hostname,\n themePlugins = {},\n ...localeOptions\n}: DefaultThemeOptions = {}): Theme => {\n assignDefaultLocaleOptions(localeOptions)\n\n return {\n name: '@vuepress/theme-default',\n\n userStyle: '.vuepress/styles/index.scss',\n\n templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n componentFiles\n .filter((file) => file.endsWith('.vue'))\n .map((file) => [\n `@theme/${file}`,\n path.resolve(__dirname, '../client/components', file),\n ]),\n ),\n // use alias to make all composables replaceable\n ...Object.fromEntries(\n composableFiles\n .filter((file) => file.endsWith('.js'))\n .map((file) => [\n `@theme/${file.slice(0, -3)}`,\n path.resolve(__dirname, '../client/composables', file),\n ]),\n ),\n // use alias to make all utils replaceable\n ...Object.fromEntries(\n utilFiles\n .filter((file) => file.endsWith('.js'))\n .map((file) => [\n `@theme/${file.slice(0, -3)}`,\n path.resolve(__dirname, '../client/utils', file),\n ]),\n ),\n },\n\n clientConfigFile: path.resolve(__dirname, '../client/config.js'),\n\n extendsBundlerOptions: (bundlerOptions, app) => {\n // ensure theme alias is not optimized by Vite\n addViteOptimizeDepsExclude(bundlerOptions, app, '@theme')\n },\n\n extendsPage: (page: Page) => {\n // save relative file path into page data to generate edit link\n page.data.filePathRelative = page.filePathRelative\n // save title into route meta to generate navbar and sidebar\n page.routeMeta.title = page.title\n },\n\n plugins: [\n // @vuepress/plugin-active-header-link\n (themePlugins.activeHeaderLinks ?? true)\n ? activeHeaderLinksPlugin({\n // should greater than page transition duration\n delay: 300,\n })\n : [],\n\n // @vuepress/plugin-back-to-top\n (themePlugins.backToTop ?? true)\n ? backToTopPlugin(\n isPlainObject(themePlugins.backToTop) ? themePlugins.backToTop : {},\n )\n : [],\n\n // @vuepress/plugin-copy-code\n (themePlugins.copyCode ?? true)\n ? copyCodePlugin({\n ...(isPlainObject(themePlugins.copyCode)\n ? themePlugins.copyCode\n : {}),\n })\n : [],\n\n // @vuepress/plugin-markdown-container\n (themePlugins.hint ?? true)\n ? markdownHintPlugin({\n locales: resolveMarkdownHintLocales(localeOptions),\n ...(isPlainObject(themePlugins.hint) ? themePlugins.hint : {}),\n })\n : [],\n\n // @vuepress/plugin-git\n (themePlugins.git ?? true)\n ? gitPlugin({\n createdTime: false,\n updatedTime: localeOptions.lastUpdated ?? true,\n changelog: { repoUrl: localeOptions.repo || '' },\n ...(isPlainObject(themePlugins.git) ? themePlugins.git : {}),\n })\n : [],\n\n // @vuepress/plugin-links-check\n (themePlugins.linksCheck ?? true)\n ? linksCheckPlugin(\n isPlainObject(themePlugins.linksCheck)\n ? themePlugins.linksCheck\n : {},\n )\n : [],\n\n // @vuepress/plugin-medium-zoom\n (themePlugins.mediumZoom ?? true) ? mediumZoomPlugin() : [],\n\n // @vuepress/plugin-nprogress\n (themePlugins.nprogress ?? true) ? nprogressPlugin() : [],\n\n // @vuepress/plugin-palette\n palettePlugin({ preset: 'sass' }),\n\n // @vuepress/plugin-prismjs\n (themePlugins.prismjs ?? true)\n ? prismjsPlugin(\n isPlainObject(themePlugins.prismjs) ? themePlugins.prismjs : {},\n )\n : [],\n\n // @vuepress/plugin-seo\n hostname && (themePlugins.seo ?? true)\n ? seoPlugin({\n hostname,\n ...(isPlainObject(themePlugins.seo) ? themePlugins.seo : {}),\n })\n : [],\n\n // @vuepress/plugin-sitemap\n hostname && (themePlugins.sitemap ?? true)\n ? sitemapPlugin({\n hostname,\n ...(isPlainObject(themePlugins.sitemap)\n ? themePlugins.sitemap\n : {}),\n })\n : [],\n\n // @vuepress/plugin-markdown-tab\n (themePlugins.tab ?? true)\n ? markdownTabPlugin(\n isPlainObject(themePlugins.tab)\n ? themePlugins.tab\n : { codeTabs: true, tabs: true },\n )\n : [],\n\n // @vuepress/plugin-theme-data\n themeDataPlugin({ themeData: localeOptions }),\n ],\n }\n}\n"],"mappings":"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"}
@@ -1,5 +1,4 @@
1
- import { v as AutoLinkOptions } from "./index-DnNaefpa.js";
2
- //#region src/client/utils/resolveAutoLink.d.ts
1
+ import { v as AutoLinkOptions } from "./index-DM_-Gf3x.js";
3
2
  /**
4
3
  * Resolve AutoLink props from string
5
4
  *
@@ -14,6 +13,4 @@ import { v as AutoLinkOptions } from "./index-DnNaefpa.js";
14
13
  * @returns Resolved AutoLink options / 解析后的 AutoLink 选项
15
14
  */
16
15
  declare const resolveAutoLink: (config: string, currentPath?: string) => AutoLinkOptions;
17
- //#endregion
18
- export { resolveAutoLink as t };
19
- //# sourceMappingURL=resolveAutoLink-JDq36I7k.d.ts.map
16
+ export { resolveAutoLink as t };