@vuepress/theme-default 2.0.0-rc.137 → 2.0.0-rc.139
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.
- package/dist/client/components/VPAutoLink.vue +29 -2
- package/dist/client/components/VPNavbarDropdown.vue +8 -2
- package/dist/client/components/VPSidebarItem.vue +35 -20
- package/dist/client/composables/index.d.ts +12 -12
- package/dist/client/composables/index.js +1 -1
- package/dist/client/composables/useDarkMode.d.ts +1 -1
- package/dist/client/composables/useDarkMode.js +1 -1
- package/dist/client/composables/useData.d.ts +1 -1
- package/dist/client/composables/useData.js +1 -1
- package/dist/client/composables/useEditLink.d.ts +1 -1
- package/dist/client/composables/useEditLink.js +1 -1
- package/dist/client/composables/useHeaders.d.ts +1 -4
- package/dist/client/composables/useHeaders.js +1 -1
- package/dist/client/composables/useHeaders.js.map +1 -1
- package/dist/client/composables/useNavbarConfig.d.ts +1 -1
- package/dist/client/composables/useNavbarConfig.js +1 -1
- package/dist/client/composables/useNavbarRepo.d.ts +1 -1
- package/dist/client/composables/useNavbarRepo.js +1 -1
- package/dist/client/composables/useNavbarSelectLanguage.d.ts +1 -1
- package/dist/client/composables/useNavbarSelectLanguage.js +1 -1
- package/dist/client/composables/useNavigate.d.ts +1 -1
- package/dist/client/composables/useNavigate.js +1 -1
- package/dist/client/composables/useRelatedLinks.d.ts +1 -1
- package/dist/client/composables/useRelatedLinks.js +1 -1
- package/dist/client/composables/useScrollPromise.d.ts +1 -1
- package/dist/client/composables/useScrollPromise.js +1 -1
- package/dist/client/composables/useSidebarItems.d.ts +1 -1
- package/dist/client/composables/useSidebarItems.js +1 -1
- package/dist/client/composables/useUpdateDeviceStatus.d.ts +1 -1
- package/dist/client/composables/useUpdateDeviceStatus.js +1 -1
- package/dist/client/config.d.ts +1 -4
- package/dist/client/config.js +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/index.d.ts +20 -20
- package/dist/client/index.js +1 -1
- package/dist/client/utils/index.d.ts +6 -6
- package/dist/client/utils/index.js +1 -1
- package/dist/client/utils/isActiveSidebarItem.d.ts +1 -1
- package/dist/client/utils/isActiveSidebarItem.js +1 -1
- package/dist/client/utils/resolveAutoLink.d.ts +1 -1
- package/dist/client/utils/resolveAutoLink.js +1 -1
- package/dist/client/utils/resolveEditLink.d.ts +1 -1
- package/dist/client/utils/resolveEditLink.js +1 -1
- package/dist/client/utils/resolvePrefix.d.ts +1 -1
- package/dist/client/utils/resolvePrefix.js +1 -1
- package/dist/client/utils/resolveRepoType.d.ts +1 -1
- package/dist/client/utils/resolveRepoType.js +1 -1
- package/dist/{index-DnNaefpa.d.ts → index-B-NfQxLQ.d.ts} +2 -13
- package/dist/index-CzfpBrYE.d.ts +3 -0
- package/dist/index-gVluNoQB.d.ts +8 -0
- package/dist/isActiveSidebarItem-s6FewkTf.d.ts +4 -0
- package/dist/{isActiveSidebarItem-CdmUcp0l.js → isActiveSidebarItem-vL4aXoeX.js} +1 -1
- package/dist/isActiveSidebarItem-vL4aXoeX.js.map +1 -0
- package/dist/node/index.d.ts +3 -12
- package/dist/node/index.js.map +1 -1
- package/dist/{resolveAutoLink-JDq36I7k.d.ts → resolveAutoLink-Cw8JZzG1.d.ts} +2 -5
- package/dist/{resolveAutoLink-XUJwl3Kb.js → resolveAutoLink-DKGp9cn4.js} +1 -1
- package/dist/resolveAutoLink-DKGp9cn4.js.map +1 -0
- package/dist/{resolveEditLink-VYO59JxD.d.ts → resolveEditLink-CnoRqTqe.d.ts} +1 -4
- package/dist/{resolveEditLink-lteF0-Mv.js → resolveEditLink-Ds33XEh4.js} +1 -1
- package/dist/resolveEditLink-Ds33XEh4.js.map +1 -0
- package/dist/{resolvePrefix-CQnTmTk4.js → resolvePrefix-Co9SoF5M.js} +1 -1
- package/dist/resolvePrefix-Co9SoF5M.js.map +1 -0
- package/dist/resolvePrefix-DwAjhGDe.d.ts +2 -0
- package/dist/resolveRepoType-BjvddHET.d.ts +3 -0
- package/dist/{resolveRepoType-BfcHRhpi.js → resolveRepoType-DYzLb2Xi.js} +1 -1
- package/dist/resolveRepoType-DYzLb2Xi.js.map +1 -0
- package/dist/{typings-Cbpr0bFc.d.ts → typings-nCS-rgzp.d.ts} +2 -5
- package/dist/{useDarkMode-BfKvIN6K.js → useDarkMode-C8li1LOU.js} +1 -1
- package/dist/useDarkMode-C8li1LOU.js.map +1 -0
- package/dist/{useDarkMode-DmWka_eQ.d.ts → useDarkMode-CAUx2JA_.d.ts} +1 -4
- package/dist/{useData-DLY6oMFR.d.ts → useData-CHJ4YQxm.d.ts} +4 -7
- package/dist/useData-EgwoIcp1.js +2 -0
- package/dist/useData-EgwoIcp1.js.map +1 -0
- package/dist/useEditLink-CCShB2Bn.js +2 -0
- package/dist/useEditLink-CCShB2Bn.js.map +1 -0
- package/dist/{useEditLink-DXlW5QzK.d.ts → useEditLink-DxrHQSBQ.d.ts} +2 -5
- package/dist/useNavbarConfig--ON58eTy.js +2 -0
- package/dist/useNavbarConfig--ON58eTy.js.map +1 -0
- package/dist/useNavbarConfig-D-9JdR3e.d.ts +4 -0
- package/dist/{useNavbarRepo-B9pyDtUq.d.ts → useNavbarRepo-DpDvdhVG.d.ts} +2 -5
- package/dist/useNavbarRepo-DzLa0J7F.js +2 -0
- package/dist/useNavbarRepo-DzLa0J7F.js.map +1 -0
- package/dist/useNavbarSelectLanguage-CE-_yvom.d.ts +9 -0
- package/dist/{useNavbarSelectLanguage-FHyzHFEW.js → useNavbarSelectLanguage-D1veoHvn.js} +2 -2
- package/dist/useNavbarSelectLanguage-D1veoHvn.js.map +1 -0
- package/dist/useNavigate-BqFABdRH.d.ts +2 -0
- package/dist/{useNavigate-mlFey3ew.js → useNavigate-D65vYI7T.js} +1 -1
- package/dist/useNavigate-D65vYI7T.js.map +1 -0
- package/dist/useRelatedLinks-Bq7S8W2Y.js +2 -0
- package/dist/useRelatedLinks-Bq7S8W2Y.js.map +1 -0
- package/dist/useRelatedLinks-LUir1Pbq.d.ts +8 -0
- package/dist/useScrollPromise-Bo6RkwWO.d.ts +7 -0
- package/dist/{useScrollPromise-CB6ZLciv.js → useScrollPromise-L_hUHm0Z.js} +1 -1
- package/dist/useScrollPromise-L_hUHm0Z.js.map +1 -0
- package/dist/useSidebarItems-BdjWkZ-U.js +2 -0
- package/dist/useSidebarItems-BdjWkZ-U.js.map +1 -0
- package/dist/{useSidebarItems-C7_FZHit.d.ts → useSidebarItems-ed5-CCJI.d.ts} +4 -7
- package/dist/useUpdateDeviceStatus-BHudnBnG.js +2 -0
- package/dist/useUpdateDeviceStatus-BHudnBnG.js.map +1 -0
- package/dist/{useUpdateDeviceStatus-CsrJ_Qqv.d.ts → useUpdateDeviceStatus-BmTgRI9A.d.ts} +1 -4
- package/package.json +22 -22
- package/dist/index-CKVw8AvB.d.ts +0 -3
- package/dist/index-D1ZnfV_H.d.ts +0 -8
- package/dist/isActiveSidebarItem-CdmUcp0l.js.map +0 -1
- package/dist/isActiveSidebarItem-CimWaCAf.d.ts +0 -7
- package/dist/resolveAutoLink-XUJwl3Kb.js.map +0 -1
- package/dist/resolveEditLink-lteF0-Mv.js.map +0 -1
- package/dist/resolvePrefix-BXZhEIJn.d.ts +0 -5
- package/dist/resolvePrefix-CQnTmTk4.js.map +0 -1
- package/dist/resolveRepoType-BfcHRhpi.js.map +0 -1
- package/dist/resolveRepoType-DmT6nK6z.d.ts +0 -6
- package/dist/useDarkMode-BfKvIN6K.js.map +0 -1
- package/dist/useData-nv4hwlgW.js +0 -2
- package/dist/useData-nv4hwlgW.js.map +0 -1
- package/dist/useEditLink-BmoW42FE.js +0 -2
- package/dist/useEditLink-BmoW42FE.js.map +0 -1
- package/dist/useNavbarConfig-CxVplYul.js +0 -2
- package/dist/useNavbarConfig-CxVplYul.js.map +0 -1
- package/dist/useNavbarConfig-jIUipXMq.d.ts +0 -7
- package/dist/useNavbarRepo-BScd94be.js +0 -2
- package/dist/useNavbarRepo-BScd94be.js.map +0 -1
- package/dist/useNavbarSelectLanguage-FHyzHFEW.js.map +0 -1
- package/dist/useNavbarSelectLanguage-zG8uc9ys.d.ts +0 -12
- package/dist/useNavigate-mlFey3ew.js.map +0 -1
- package/dist/useNavigate-zqYnxkd_.d.ts +0 -5
- package/dist/useRelatedLinks-BwsPumn1.js +0 -2
- package/dist/useRelatedLinks-BwsPumn1.js.map +0 -1
- package/dist/useRelatedLinks-Ds7UdilB.d.ts +0 -11
- package/dist/useScrollPromise-CB6ZLciv.js.map +0 -1
- package/dist/useScrollPromise-TwtWBE3d.d.ts +0 -10
- package/dist/useSidebarItems-D1vD1QQp.js +0 -2
- package/dist/useSidebarItems-D1vD1QQp.js.map +0 -1
- package/dist/useUpdateDeviceStatus-eEm3JFFI.js +0 -2
- package/dist/useUpdateDeviceStatus-eEm3JFFI.js.map +0 -1
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { RequiredSlot, Slot } from '@vuepress/helper/client'
|
|
3
|
+
import { computed } from 'vue'
|
|
3
4
|
import type { AutoLinkConfig } from 'vuepress/client'
|
|
4
|
-
import { AutoLink } from 'vuepress/client'
|
|
5
|
+
import { AutoLink, resolveRoutePath, useRoute } from 'vuepress/client'
|
|
6
|
+
import { isLinkWithProtocol, splitPath } from 'vuepress/shared'
|
|
5
7
|
|
|
6
8
|
const { config } = defineProps<{
|
|
7
9
|
/** The auto link config */
|
|
8
10
|
config: AutoLinkConfig
|
|
9
11
|
}>()
|
|
10
12
|
|
|
13
|
+
const route = useRoute()
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Whether the link points to a page of the current site
|
|
17
|
+
*
|
|
18
|
+
* It uses the same rule as `AutoLink`, which renders an internal link as a
|
|
19
|
+
* `RouteLink` and an external one as an `<a>` element.
|
|
20
|
+
*/
|
|
21
|
+
const isInternalLink = computed(
|
|
22
|
+
() => !isLinkWithProtocol(config.link) && config.target !== '_blank',
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Whether the link points to the current page
|
|
27
|
+
*
|
|
28
|
+
* The hash and the query are ignored, so that a link to an anchor of the
|
|
29
|
+
* current page is also marked as the current page.
|
|
30
|
+
*/
|
|
31
|
+
const isCurrentPage = computed(
|
|
32
|
+
() =>
|
|
33
|
+
isInternalLink.value &&
|
|
34
|
+
resolveRoutePath(splitPath(config.link).pathname, route.path) ===
|
|
35
|
+
route.path,
|
|
36
|
+
)
|
|
37
|
+
|
|
11
38
|
defineSlots<{
|
|
12
39
|
default?: RequiredSlot<AutoLinkConfig>
|
|
13
40
|
before?: Slot<AutoLinkConfig>
|
|
@@ -16,7 +43,7 @@ defineSlots<{
|
|
|
16
43
|
</script>
|
|
17
44
|
|
|
18
45
|
<template>
|
|
19
|
-
<AutoLink :config="config">
|
|
46
|
+
<AutoLink :config="config" :aria-current="isCurrentPage ? 'page' : undefined">
|
|
20
47
|
<template v-if="$slots.default" #default>
|
|
21
48
|
<slot v-bind="config" />
|
|
22
49
|
</template>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { FadeInExpandTransition } from '@vuepress/helper/client'
|
|
3
3
|
import { useToggle } from '@vueuse/core'
|
|
4
|
-
import { computed } from 'vue'
|
|
4
|
+
import { computed, useId } from 'vue'
|
|
5
5
|
import { onContentUpdated } from 'vuepress/client'
|
|
6
6
|
|
|
7
7
|
import VPAutoLink from '@theme/VPAutoLink.vue'
|
|
@@ -17,6 +17,8 @@ const { config } = defineProps<{
|
|
|
17
17
|
|
|
18
18
|
const [open, toggleOpen] = useToggle()
|
|
19
19
|
|
|
20
|
+
const menuId = `vp-navbar-dropdown-${useId()}`
|
|
21
|
+
|
|
20
22
|
const dropdownAriaLabel = computed(() => config.ariaLabel || config.text)
|
|
21
23
|
|
|
22
24
|
const isLastItemOfArray = (arrayItem: unknown, array: unknown[]): boolean =>
|
|
@@ -46,6 +48,8 @@ onContentUpdated(() => {
|
|
|
46
48
|
<button
|
|
47
49
|
class="vp-navbar-dropdown-title"
|
|
48
50
|
type="button"
|
|
51
|
+
:aria-expanded="open"
|
|
52
|
+
:aria-controls="menuId"
|
|
49
53
|
:aria-label="dropdownAriaLabel"
|
|
50
54
|
@click="handleDropdown"
|
|
51
55
|
>
|
|
@@ -56,6 +60,8 @@ onContentUpdated(() => {
|
|
|
56
60
|
<button
|
|
57
61
|
class="vp-navbar-dropdown-title-mobile"
|
|
58
62
|
type="button"
|
|
63
|
+
:aria-expanded="open"
|
|
64
|
+
:aria-controls="menuId"
|
|
59
65
|
:aria-label="dropdownAriaLabel"
|
|
60
66
|
@click="() => toggleOpen()"
|
|
61
67
|
>
|
|
@@ -64,7 +70,7 @@ onContentUpdated(() => {
|
|
|
64
70
|
</button>
|
|
65
71
|
|
|
66
72
|
<FadeInExpandTransition>
|
|
67
|
-
<ul v-show="open" class="vp-navbar-dropdown">
|
|
73
|
+
<ul :id="menuId" v-show="open" class="vp-navbar-dropdown">
|
|
68
74
|
<li
|
|
69
75
|
v-for="child in config.children"
|
|
70
76
|
:key="child.text"
|
|
@@ -20,12 +20,21 @@ const route = useRoute()
|
|
|
20
20
|
const router = useRouter()
|
|
21
21
|
|
|
22
22
|
const collapsible = computed(() => (item as SidebarGroupItem).collapsible)
|
|
23
|
+
const hasChildren = computed(
|
|
24
|
+
() => 'children' in item && item.children.length > 0,
|
|
25
|
+
)
|
|
26
|
+
/** Whether the item is rendered as a button to toggle its children */
|
|
27
|
+
const isDisclosure = computed(
|
|
28
|
+
() => collapsible.value && !item.link && hasChildren.value,
|
|
29
|
+
)
|
|
23
30
|
const isActive = computed(() => isActiveSidebarItem(item, route))
|
|
24
31
|
const itemClass = computed(() => ({
|
|
25
32
|
'vp-sidebar-item': true,
|
|
26
33
|
'vp-sidebar-heading': depth === 0,
|
|
27
34
|
'active': isActive.value,
|
|
28
|
-
|
|
35
|
+
// Only items that can be clicked (a link or a disclosure button) show a
|
|
36
|
+
// pointer cursor.
|
|
37
|
+
'collapsible': collapsible.value && (Boolean(item.link) || hasChildren.value),
|
|
29
38
|
}))
|
|
30
39
|
|
|
31
40
|
const isOpenDefault = computed(() =>
|
|
@@ -33,13 +42,6 @@ const isOpenDefault = computed(() =>
|
|
|
33
42
|
)
|
|
34
43
|
|
|
35
44
|
const [isOpen, toggleIsOpen] = useToggle(isOpenDefault.value)
|
|
36
|
-
const onClick = (event: Event): void => {
|
|
37
|
-
if (collapsible.value) {
|
|
38
|
-
event.preventDefault()
|
|
39
|
-
// toggle open status on click
|
|
40
|
-
toggleIsOpen()
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
45
|
|
|
44
46
|
// reset open status after navigation
|
|
45
47
|
const unregisterRouterHook = router.afterEach(() => {
|
|
@@ -63,22 +65,21 @@ onBeforeUnmount(() => {
|
|
|
63
65
|
/>
|
|
64
66
|
</template>
|
|
65
67
|
</VPAutoLink>
|
|
66
|
-
<
|
|
67
|
-
v-else
|
|
68
|
-
|
|
68
|
+
<button
|
|
69
|
+
v-else-if="isDisclosure"
|
|
70
|
+
type="button"
|
|
69
71
|
:class="itemClass"
|
|
70
|
-
|
|
71
|
-
@
|
|
72
|
+
:aria-expanded="isOpen"
|
|
73
|
+
@click="toggleIsOpen()"
|
|
72
74
|
>
|
|
73
75
|
{{ item.text }}
|
|
74
|
-
<span
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/>
|
|
76
|
+
<span class="arrow" :class="isOpen ? 'down' : 'right'" />
|
|
77
|
+
</button>
|
|
78
|
+
<p v-else :class="itemClass">
|
|
79
|
+
{{ item.text }}
|
|
79
80
|
</p>
|
|
80
81
|
|
|
81
|
-
<VPDropdownTransition v-if="
|
|
82
|
+
<VPDropdownTransition v-if="hasChildren">
|
|
82
83
|
<ul v-show="isOpen" class="vp-sidebar-children">
|
|
83
84
|
<VPSidebarItem
|
|
84
85
|
v-for="child in item.children"
|
|
@@ -105,6 +106,20 @@ onBeforeUnmount(() => {
|
|
|
105
106
|
outline-offset: -1px;
|
|
106
107
|
}
|
|
107
108
|
|
|
109
|
+
&:is(button) {
|
|
110
|
+
border-block: 0;
|
|
111
|
+
border-inline-end: 0;
|
|
112
|
+
border-radius: 0;
|
|
113
|
+
|
|
114
|
+
background: none;
|
|
115
|
+
|
|
116
|
+
font-family: inherit;
|
|
117
|
+
line-height: inherit;
|
|
118
|
+
text-align: start;
|
|
119
|
+
|
|
120
|
+
appearance: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
108
123
|
&.vp-sidebar-heading {
|
|
109
124
|
box-sizing: border-box;
|
|
110
125
|
width: 100%;
|
|
@@ -161,7 +176,7 @@ onBeforeUnmount(() => {
|
|
|
161
176
|
}
|
|
162
177
|
}
|
|
163
178
|
|
|
164
|
-
&.active:not(p.vp-sidebar-heading) {
|
|
179
|
+
&.active:not(:is(p, button).vp-sidebar-heading) {
|
|
165
180
|
border-inline-start-color: var(--vp-c-accent);
|
|
166
181
|
color: var(--vp-c-accent);
|
|
167
182
|
font-weight: 600;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-
|
|
2
|
-
import { n as useData, t as Data } from "../../useData-
|
|
3
|
-
import { t as useEditLink } from "../../useEditLink-
|
|
4
|
-
import { t as useNavigate } from "../../useNavigate-
|
|
5
|
-
import { t as useNavbarConfig } from "../../useNavbarConfig-
|
|
6
|
-
import { t as useNavbarRepo } from "../../useNavbarRepo-
|
|
7
|
-
import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-
|
|
8
|
-
import { t as useRelatedLinks } from "../../useRelatedLinks-
|
|
9
|
-
import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-
|
|
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-
|
|
11
|
-
import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-
|
|
12
|
-
import "../../index-
|
|
1
|
+
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-CAUx2JA_.js";
|
|
2
|
+
import { n as useData, t as Data } from "../../useData-CHJ4YQxm.js";
|
|
3
|
+
import { t as useEditLink } from "../../useEditLink-DxrHQSBQ.js";
|
|
4
|
+
import { t as useNavigate } from "../../useNavigate-BqFABdRH.js";
|
|
5
|
+
import { t as useNavbarConfig } from "../../useNavbarConfig-D-9JdR3e.js";
|
|
6
|
+
import { t as useNavbarRepo } from "../../useNavbarRepo-DpDvdhVG.js";
|
|
7
|
+
import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-CE-_yvom.js";
|
|
8
|
+
import { t as useRelatedLinks } from "../../useRelatedLinks-LUir1Pbq.js";
|
|
9
|
+
import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-Bo6RkwWO.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-ed5-CCJI.js";
|
|
11
|
+
import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-BmTgRI9A.js";
|
|
12
|
+
import "../../index-gVluNoQB.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-
|
|
1
|
+
import{n as e,t}from"../../useDarkMode-C8li1LOU.js";import{t as n}from"../../useData-EgwoIcp1.js";import{t as r}from"../../useEditLink-CCShB2Bn.js";import{t as i}from"../../useNavigate-D65vYI7T.js";import{t as a}from"../../useNavbarConfig--ON58eTy.js";import{t as o}from"../../useNavbarRepo-DzLa0J7F.js";import{t as s}from"../../useNavbarSelectLanguage-D1veoHvn.js";import{t as c}from"../../useRelatedLinks-Bq7S8W2Y.js";import{t as l}from"../../useScrollPromise-L_hUHm0Z.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-BdjWkZ-U.js";import{n as y,t as b}from"../../useUpdateDeviceStatus-BHudnBnG.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-
|
|
1
|
+
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-CAUx2JA_.js";
|
|
2
2
|
export { DarkModeRef, setupDarkMode, useDarkMode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as setupDarkMode,n as useDarkMode}from"../../useDarkMode-C8li1LOU.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useData, t as Data } from "../../useData-
|
|
1
|
+
import { n as useData, t as Data } from "../../useData-CHJ4YQxm.js";
|
|
2
2
|
export { Data, useData };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useData}from"../../useData-EgwoIcp1.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useEditLink } from "../../useEditLink-
|
|
1
|
+
import { t as useEditLink } from "../../useEditLink-DxrHQSBQ.js";
|
|
2
2
|
export { useEditLink };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useEditLink}from"../../useEditLink-CCShB2Bn.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{
|
|
1
|
+
import{getHeaders as e}from"@vuepress/helper/client";import{injectLocal as t,provideLocal as n}from"@vueuse/core";import{computed as r,ref as i}from"vue";import{onContentUpdated as a}from"vuepress/client";import{useData as o}from"@theme/useData";const s=Symbol(`headers`),c=()=>{let e=t(s);if(!e)throw Error(`useHeaders() is called without provider.`);return e},l=()=>{let{frontmatter:t,themeLocale:c}=o(),l=i([]),u=r(()=>t.value.sidebarDepth??c.value.sidebarDepth??2),d=()=>{u.value<=0?l.value=[]:l.value=e({levels:[2,u.value+1],ignore:[`.vp-badge`]})};n(s,l),a(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,
|
|
1
|
+
{"version":3,"file":"useHeaders.js","names":["useData","getHeaders","injectLocal","provideLocal","computed","ref","onContentUpdated","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,EAAUR,EAAYM,CAAa,EAEzC,GAAI,CAACE,EAAS,MAAU,MAAM,0CAA0C,EAExE,OAAOA,CACT,EAEaC,MAA2B,CACtC,GAAM,CAAEC,cAAaC,eAAgBb,EAAQ,EAEvCc,EAAyBT,EAAI,CAAC,CAAC,EAC/BU,EAASX,MACPQ,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,EAEAZ,EAAaK,EAAeM,CAAU,EAEtCR,EAAkBW,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-
|
|
1
|
+
import { t as useNavbarConfig } from "../../useNavbarConfig-D-9JdR3e.js";
|
|
2
2
|
export { useNavbarConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useNavbarConfig}from"../../useNavbarConfig--ON58eTy.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useNavbarRepo } from "../../useNavbarRepo-
|
|
1
|
+
import { t as useNavbarRepo } from "../../useNavbarRepo-DpDvdhVG.js";
|
|
2
2
|
export { useNavbarRepo };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useNavbarRepo}from"../../useNavbarRepo-DzLa0J7F.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-
|
|
1
|
+
import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-CE-_yvom.js";
|
|
2
2
|
export { useNavbarSelectLanguage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useNavbarSelectLanguage}from"../../useNavbarSelectLanguage-D1veoHvn.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useNavigate } from "../../useNavigate-
|
|
1
|
+
import { t as useNavigate } from "../../useNavigate-BqFABdRH.js";
|
|
2
2
|
export { useNavigate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useNavigate}from"../../useNavigate-D65vYI7T.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useRelatedLinks } from "../../useRelatedLinks-
|
|
1
|
+
import { t as useRelatedLinks } from "../../useRelatedLinks-LUir1Pbq.js";
|
|
2
2
|
export { useRelatedLinks };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useRelatedLinks}from"../../useRelatedLinks-Bq7S8W2Y.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-
|
|
1
|
+
import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-Bo6RkwWO.js";
|
|
2
2
|
export { ScrollPromise, useScrollPromise };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as useScrollPromise}from"../../useScrollPromise-L_hUHm0Z.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-
|
|
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-ed5-CCJI.js";
|
|
2
2
|
export { SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupSidebarItems, sidebarItemsSymbol, useSidebarItems };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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-BdjWkZ-U.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-
|
|
1
|
+
import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-BmTgRI9A.js";
|
|
2
2
|
export { DeviceType, useUpdateDeviceStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as DeviceType,n as useUpdateDeviceStatus}from"../../useUpdateDeviceStatus-BHudnBnG.js";
|
package/dist/client/config.d.ts
CHANGED
|
@@ -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
|
-
|
|
8
|
-
export { clientConfig as default };
|
|
9
|
-
//# sourceMappingURL=config.d.ts.map
|
|
6
|
+
export { clientConfig as default };
|
package/dist/client/config.js
CHANGED
|
@@ -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
|
|
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
|
|
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"}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-
|
|
2
|
-
import
|
|
3
|
-
import { n as useData, t as Data } from "../useData-
|
|
4
|
-
import { t as useEditLink } from "../useEditLink-
|
|
5
|
-
import { t as useNavigate } from "../useNavigate-
|
|
6
|
-
import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-
|
|
7
|
-
import { t as useNavbarConfig } from "../useNavbarConfig-
|
|
8
|
-
import { t as useNavbarRepo } from "../useNavbarRepo-
|
|
9
|
-
import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-
|
|
10
|
-
import { t as useRelatedLinks } from "../useRelatedLinks-
|
|
11
|
-
import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-
|
|
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-
|
|
13
|
-
import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-
|
|
14
|
-
import "../index-
|
|
15
|
-
import { t as isActiveSidebarItem } from "../isActiveSidebarItem-
|
|
16
|
-
import { t as resolveAutoLink } from "../resolveAutoLink-
|
|
17
|
-
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-
|
|
18
|
-
import { t as resolvePrefix } from "../resolvePrefix-
|
|
19
|
-
import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-
|
|
20
|
-
import "../index-
|
|
1
|
+
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-CAUx2JA_.js";
|
|
2
|
+
import "../index-gVluNoQB.js";
|
|
3
|
+
import { n as useData, t as Data } from "../useData-CHJ4YQxm.js";
|
|
4
|
+
import { t as useEditLink } from "../useEditLink-DxrHQSBQ.js";
|
|
5
|
+
import { t as useNavigate } from "../useNavigate-BqFABdRH.js";
|
|
6
|
+
import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-nCS-rgzp.js";
|
|
7
|
+
import { t as useNavbarConfig } from "../useNavbarConfig-D-9JdR3e.js";
|
|
8
|
+
import { t as useNavbarRepo } from "../useNavbarRepo-DpDvdhVG.js";
|
|
9
|
+
import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-CE-_yvom.js";
|
|
10
|
+
import { t as useRelatedLinks } from "../useRelatedLinks-LUir1Pbq.js";
|
|
11
|
+
import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-Bo6RkwWO.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-ed5-CCJI.js";
|
|
13
|
+
import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-BmTgRI9A.js";
|
|
14
|
+
import "../index-CzfpBrYE.js";
|
|
15
|
+
import { t as isActiveSidebarItem } from "../isActiveSidebarItem-s6FewkTf.js";
|
|
16
|
+
import { t as resolveAutoLink } from "../resolveAutoLink-Cw8JZzG1.js";
|
|
17
|
+
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-CnoRqTqe.js";
|
|
18
|
+
import { t as resolvePrefix } from "../resolvePrefix-DwAjhGDe.js";
|
|
19
|
+
import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-BjvddHET.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-B-NfQxLQ.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 };
|
package/dist/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"../useDarkMode-
|
|
1
|
+
import{n as e,t}from"../useDarkMode-C8li1LOU.js";import{t as n}from"../useData-EgwoIcp1.js";import{t as r}from"../useEditLink-CCShB2Bn.js";import{t as i}from"../useNavigate-D65vYI7T.js";import{t as a}from"../useNavbarConfig--ON58eTy.js";import{t as o}from"../useNavbarRepo-DzLa0J7F.js";import{t as s}from"../useNavbarSelectLanguage-D1veoHvn.js";import{t as c}from"../useRelatedLinks-Bq7S8W2Y.js";import{t as l}from"../useScrollPromise-L_hUHm0Z.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-BdjWkZ-U.js";import{n as y,t as b}from"../useUpdateDeviceStatus-BHudnBnG.js";import{t as x}from"../isActiveSidebarItem-vL4aXoeX.js";import{t as S}from"../resolveAutoLink-DKGp9cn4.js";import{n as C,t as w}from"../resolveEditLink-Ds33XEh4.js";import{t as T}from"../resolvePrefix-Co9SoF5M.js";import{t as E}from"../resolveRepoType-DYzLb2Xi.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-
|
|
2
|
-
import { t as resolveAutoLink } from "../../resolveAutoLink-
|
|
3
|
-
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-
|
|
4
|
-
import { t as resolvePrefix } from "../../resolvePrefix-
|
|
5
|
-
import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-
|
|
6
|
-
import "../../index-
|
|
1
|
+
import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-s6FewkTf.js";
|
|
2
|
+
import { t as resolveAutoLink } from "../../resolveAutoLink-Cw8JZzG1.js";
|
|
3
|
+
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-CnoRqTqe.js";
|
|
4
|
+
import { t as resolvePrefix } from "../../resolvePrefix-DwAjhGDe.js";
|
|
5
|
+
import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-BjvddHET.js";
|
|
6
|
+
import "../../index-CzfpBrYE.js";
|
|
7
7
|
export { EDIT_LINK_PATTERNS, RepoType, isActiveSidebarItem, resolveAutoLink, resolveEditLink, resolvePrefix, resolveRepoType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"../../isActiveSidebarItem-
|
|
1
|
+
import{t as e}from"../../isActiveSidebarItem-vL4aXoeX.js";import{t}from"../../resolveAutoLink-DKGp9cn4.js";import{n,t as r}from"../../resolveEditLink-Ds33XEh4.js";import{t as i}from"../../resolvePrefix-Co9SoF5M.js";import{t as a}from"../../resolveRepoType-DYzLb2Xi.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-
|
|
1
|
+
import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-s6FewkTf.js";
|
|
2
2
|
export { isActiveSidebarItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as isActiveSidebarItem}from"../../isActiveSidebarItem-vL4aXoeX.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveAutoLink } from "../../resolveAutoLink-
|
|
1
|
+
import { t as resolveAutoLink } from "../../resolveAutoLink-Cw8JZzG1.js";
|
|
2
2
|
export { resolveAutoLink };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as resolveAutoLink}from"../../resolveAutoLink-DKGp9cn4.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-
|
|
1
|
+
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-CnoRqTqe.js";
|
|
2
2
|
export { EDIT_LINK_PATTERNS, resolveEditLink };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as EDIT_LINK_PATTERNS,n as resolveEditLink}from"../../resolveEditLink-Ds33XEh4.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolvePrefix } from "../../resolvePrefix-
|
|
1
|
+
import { t as resolvePrefix } from "../../resolvePrefix-DwAjhGDe.js";
|
|
2
2
|
export { resolvePrefix };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as resolvePrefix}from"../../resolvePrefix-Co9SoF5M.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-
|
|
1
|
+
import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-BjvddHET.js";
|
|
2
2
|
export { RepoType, resolveRepoType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{t as resolveRepoType}from"../../resolveRepoType-DYzLb2Xi.js";
|