@vuepress/theme-default 2.0.0-rc.124 → 2.0.0-rc.125
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/composables/index.d.ts +12 -0
- package/dist/client/composables/useDarkMode.d.ts +2 -0
- package/dist/client/composables/useData.d.ts +2 -0
- package/dist/client/composables/useEditLink.d.ts +2 -0
- package/dist/client/composables/useNavbarConfig.d.ts +2 -0
- package/dist/client/composables/useNavbarRepo.d.ts +2 -0
- package/dist/client/composables/useNavbarSelectLanguage.d.ts +2 -0
- package/dist/client/composables/useNavigate.d.ts +2 -0
- package/dist/client/composables/useRelatedLinks.d.ts +2 -0
- package/dist/client/composables/useScrollPromise.d.ts +2 -0
- package/dist/client/composables/useSidebarItems.d.ts +2 -0
- package/dist/client/composables/useUpdateDeviceStatus.d.ts +2 -0
- package/{lib → dist}/client/composables/useUpdateDeviceStatus.js.map +1 -1
- package/{lib → dist}/client/config.d.ts +0 -4
- package/{lib → dist}/client/index.d.ts +19 -19
- package/dist/client/index.js +1 -0
- package/dist/client/utils/index.d.ts +6 -0
- package/dist/client/utils/isActiveSidebarItem.d.ts +2 -0
- package/dist/client/utils/resolveAutoLink.d.ts +2 -0
- package/dist/client/utils/resolveEditLink.d.ts +2 -0
- package/dist/client/utils/resolvePrefix.d.ts +2 -0
- package/dist/client/utils/resolveRepoType.d.ts +2 -0
- package/{lib/client/utils/isActiveSidebarItem.d.ts → dist/isActiveSidebarItem-aythFTeC.d.ts} +3 -3
- package/{lib → dist}/node/index.d.ts +4 -2
- package/dist/node/index.js.map +1 -0
- package/{lib/page-F2gyvsdE.d.ts → dist/page-FWcDnzJp.d.ts} +2 -2
- package/{lib/client/utils/resolveAutoLink.d.ts → dist/resolveAutoLink-BR2Z05MD.d.ts} +3 -3
- package/{lib/client/utils/resolveEditLink.d.ts → dist/resolveEditLink-DazcWeGf.d.ts} +2 -2
- package/{lib/client/utils/resolvePrefix.d.ts → dist/resolvePrefix-BN9K9RA5.d.ts} +2 -2
- package/{lib/client/utils/resolveRepoType.d.ts → dist/resolveRepoType-Wcj35_rs.d.ts} +2 -2
- package/{lib/sidebar-FqrQ3PGy.d.ts → dist/sidebar-CF1YPYLN.d.ts} +1 -1
- package/{lib/typings-jKn48KwS.d.ts → dist/typings-NbQSzbOn.d.ts} +2 -2
- package/{lib/client/composables/useDarkMode.d.ts → dist/useDarkMode-DLor2cV7.d.ts} +2 -2
- package/{lib/client/composables/useData.d.ts → dist/useData-JDen_Bxm.d.ts} +4 -4
- package/{lib/client/composables/useEditLink.d.ts → dist/useEditLink-DPCTvXmM.d.ts} +2 -2
- package/{lib/client/composables/useNavbarConfig.d.ts → dist/useNavbarConfig-C19TGFg7.d.ts} +3 -3
- package/{lib/client/composables/useNavbarRepo.d.ts → dist/useNavbarRepo-DxhSIAFq.d.ts} +3 -3
- package/{lib/client/composables/useNavbarSelectLanguage.d.ts → dist/useNavbarSelectLanguage-4GkrPvc2.d.ts} +3 -3
- package/{lib/client/composables/useNavigate.d.ts → dist/useNavigate-lH4xyHOV.d.ts} +2 -2
- package/{lib/client/composables/useRelatedLinks.d.ts → dist/useRelatedLinks-ChTW2RRU.d.ts} +3 -3
- package/{lib/client/composables/useScrollPromise.d.ts → dist/useScrollPromise-BAl732Uv.d.ts} +2 -2
- package/{lib/client/composables/useSidebarItems.d.ts → dist/useSidebarItems-CdpB96Ta.d.ts} +4 -4
- package/{lib/client/composables/useUpdateDeviceStatus.d.ts → dist/useUpdateDeviceStatus-SBnOZx8J.d.ts} +2 -2
- package/package.json +32 -32
- package/lib/client/composables/index.d.ts +0 -12
- package/lib/client/index.js +0 -1
- package/lib/client/utils/index.d.ts +0 -6
- package/lib/node/index.js.map +0 -1
- /package/{lib → dist}/client/components/VPAutoLink.vue +0 -0
- /package/{lib → dist}/client/components/VPDarkIcon.vue +0 -0
- /package/{lib → dist}/client/components/VPDropdownTransition.vue +0 -0
- /package/{lib → dist}/client/components/VPEditIcon.vue +0 -0
- /package/{lib → dist}/client/components/VPFadeSlideYTransition.vue +0 -0
- /package/{lib → dist}/client/components/VPHome.vue +0 -0
- /package/{lib → dist}/client/components/VPHomeFeatures.vue +0 -0
- /package/{lib → dist}/client/components/VPHomeFooter.vue +0 -0
- /package/{lib → dist}/client/components/VPHomeHero.vue +0 -0
- /package/{lib → dist}/client/components/VPLightIcon.vue +0 -0
- /package/{lib → dist}/client/components/VPNavbar.vue +0 -0
- /package/{lib → dist}/client/components/VPNavbarBrand.vue +0 -0
- /package/{lib → dist}/client/components/VPNavbarDropdown.vue +0 -0
- /package/{lib → dist}/client/components/VPNavbarItems.vue +0 -0
- /package/{lib → dist}/client/components/VPPage.vue +0 -0
- /package/{lib → dist}/client/components/VPPageMeta.vue +0 -0
- /package/{lib → dist}/client/components/VPPageNav.vue +0 -0
- /package/{lib → dist}/client/components/VPSidebar.vue +0 -0
- /package/{lib → dist}/client/components/VPSidebarItem.vue +0 -0
- /package/{lib → dist}/client/components/VPSidebarItems.vue +0 -0
- /package/{lib → dist}/client/components/VPToggleColorModeButton.vue +0 -0
- /package/{lib → dist}/client/components/VPToggleSidebarButton.vue +0 -0
- /package/{lib → dist}/client/components/global/Badge.vue +0 -0
- /package/{lib → dist}/client/composables/index.js +0 -0
- /package/{lib → dist}/client/composables/useDarkMode.js +0 -0
- /package/{lib → dist}/client/composables/useDarkMode.js.map +0 -0
- /package/{lib → dist}/client/composables/useData.js +0 -0
- /package/{lib → dist}/client/composables/useData.js.map +0 -0
- /package/{lib → dist}/client/composables/useEditLink.js +0 -0
- /package/{lib → dist}/client/composables/useEditLink.js.map +0 -0
- /package/{lib → dist}/client/composables/useHeaders.d.ts +0 -0
- /package/{lib → dist}/client/composables/useHeaders.js +0 -0
- /package/{lib → dist}/client/composables/useHeaders.js.map +0 -0
- /package/{lib → dist}/client/composables/useNavbarConfig.js +0 -0
- /package/{lib → dist}/client/composables/useNavbarConfig.js.map +0 -0
- /package/{lib → dist}/client/composables/useNavbarRepo.js +0 -0
- /package/{lib → dist}/client/composables/useNavbarRepo.js.map +0 -0
- /package/{lib → dist}/client/composables/useNavbarSelectLanguage.js +0 -0
- /package/{lib → dist}/client/composables/useNavbarSelectLanguage.js.map +0 -0
- /package/{lib → dist}/client/composables/useNavigate.js +0 -0
- /package/{lib → dist}/client/composables/useNavigate.js.map +0 -0
- /package/{lib → dist}/client/composables/useRelatedLinks.js +0 -0
- /package/{lib → dist}/client/composables/useRelatedLinks.js.map +0 -0
- /package/{lib → dist}/client/composables/useScrollPromise.js +0 -0
- /package/{lib → dist}/client/composables/useScrollPromise.js.map +0 -0
- /package/{lib → dist}/client/composables/useSidebarItems.js +0 -0
- /package/{lib → dist}/client/composables/useSidebarItems.js.map +0 -0
- /package/{lib → dist}/client/composables/useUpdateDeviceStatus.js +0 -0
- /package/{lib → dist}/client/config.js +0 -0
- /package/{lib → dist}/client/config.js.map +0 -0
- /package/{lib → dist}/client/layouts/Layout.vue +0 -0
- /package/{lib → dist}/client/layouts/NotFound.vue +0 -0
- /package/{lib → dist}/client/shim.d.ts +0 -0
- /package/{lib → dist}/client/styles/_mixins.scss +0 -0
- /package/{lib → dist}/client/styles/_variables.module.scss +0 -0
- /package/{lib → dist}/client/styles/_variables.scss +0 -0
- /package/{lib → dist}/client/styles/arrow.scss +0 -0
- /package/{lib → dist}/client/styles/code-group.scss +0 -0
- /package/{lib → dist}/client/styles/content/code.scss +0 -0
- /package/{lib → dist}/client/styles/content/index.scss +0 -0
- /package/{lib → dist}/client/styles/content/normalize.scss +0 -0
- /package/{lib → dist}/client/styles/content/toc.scss +0 -0
- /package/{lib → dist}/client/styles/external-link-icon.scss +0 -0
- /package/{lib → dist}/client/styles/index.scss +0 -0
- /package/{lib → dist}/client/styles/layout.scss +0 -0
- /package/{lib → dist}/client/styles/normalize.scss +0 -0
- /package/{lib → dist}/client/styles/plugins.scss +0 -0
- /package/{lib → dist}/client/styles/vars-dark.scss +0 -0
- /package/{lib → dist}/client/styles/vars.scss +0 -0
- /package/{lib → dist}/client/utils/index.js +0 -0
- /package/{lib → dist}/client/utils/isActiveSidebarItem.js +0 -0
- /package/{lib → dist}/client/utils/isActiveSidebarItem.js.map +0 -0
- /package/{lib → dist}/client/utils/resolveAutoLink.js +0 -0
- /package/{lib → dist}/client/utils/resolveAutoLink.js.map +0 -0
- /package/{lib → dist}/client/utils/resolveEditLink.js +0 -0
- /package/{lib → dist}/client/utils/resolveEditLink.js.map +0 -0
- /package/{lib → dist}/client/utils/resolvePrefix.js +0 -0
- /package/{lib → dist}/client/utils/resolvePrefix.js.map +0 -0
- /package/{lib → dist}/client/utils/resolveRepoType.js +0 -0
- /package/{lib → dist}/client/utils/resolveRepoType.js.map +0 -0
- /package/{lib → dist}/nav-DikslSJ_.d.ts +0 -0
- /package/{lib → dist}/node/index.js +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../../useDarkMode-DLor2cV7.js";
|
|
2
|
+
import { n as useData, t as Data } from "../../useData-JDen_Bxm.js";
|
|
3
|
+
import { t as useEditLink } from "../../useEditLink-DPCTvXmM.js";
|
|
4
|
+
import { t as useNavigate } from "../../useNavigate-lH4xyHOV.js";
|
|
5
|
+
import { t as useNavbarConfig } from "../../useNavbarConfig-C19TGFg7.js";
|
|
6
|
+
import { t as useNavbarRepo } from "../../useNavbarRepo-DxhSIAFq.js";
|
|
7
|
+
import { t as useNavbarSelectLanguage } from "../../useNavbarSelectLanguage-4GkrPvc2.js";
|
|
8
|
+
import { t as useRelatedLinks } from "../../useRelatedLinks-ChTW2RRU.js";
|
|
9
|
+
import { n as useScrollPromise, t as ScrollPromise } from "../../useScrollPromise-BAl732Uv.js";
|
|
10
|
+
import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-CdpB96Ta.js";
|
|
11
|
+
import { n as useUpdateDeviceStatus, t as DeviceType } from "../../useUpdateDeviceStatus-SBnOZx8J.js";
|
|
12
|
+
export { DarkModeRef, Data, DeviceType, ScrollPromise, SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../../useSidebarItems-CdpB96Ta.js";
|
|
2
|
+
export { SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupSidebarItems, sidebarItemsSymbol, useSidebarItems };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUpdateDeviceStatus.js","names":[],"sources":["../../../src/client/composables/useUpdateDeviceStatus.ts"],"sourcesContent":["// oxlint-disable promise/prefer-await-to-callbacks\nimport { useEventListener } from '@vueuse/core'\nimport { onMounted } from 'vue'\nimport cssVariables from '../styles/_variables.module.scss'\n\nexport enum DeviceType {\n Mobile = 'mobile',\n}\n\nconst DeviceTypeMap = {\n [DeviceType.Mobile]: Number.parseInt(\n cssVariables.mobile.replace('px', ''),\n 10,\n ),\n}\n\n/**\n * add listener to detect screen though device type\n *\n * @param deviceType - Device type to detect / 要检测的设备类型\n * @param callback - Callback function to call when device status changes / 设备状态改变时调用的回调函数\n */\nexport const useUpdateDeviceStatus = (\n deviceType: DeviceType,\n callback: (width: number) => void,\n): void => {\n const width = DeviceTypeMap[deviceType]\n if (!Number.isInteger(width)) {\n if (__VUEPRESS_DEV__) throw new Error('device width must be a integer')\n return\n }\n\n useEventListener('orientationchange', () => {\n callback(width)\n })\n useEventListener('resize', () => {\n callback(width)\n })\n\n onMounted(() => {\n callback(width)\n })\n}\n"],"mappings":"gIAKA,IAAY,
|
|
1
|
+
{"version":3,"file":"useUpdateDeviceStatus.js","names":[],"sources":["../../../src/client/composables/useUpdateDeviceStatus.ts"],"sourcesContent":["// oxlint-disable promise/prefer-await-to-callbacks\nimport { useEventListener } from '@vueuse/core'\nimport { onMounted } from 'vue'\nimport cssVariables from '../styles/_variables.module.scss'\n\nexport enum DeviceType {\n Mobile = 'mobile',\n}\n\nconst DeviceTypeMap = {\n [DeviceType.Mobile]: Number.parseInt(\n cssVariables.mobile.replace('px', ''),\n 10,\n ),\n}\n\n/**\n * add listener to detect screen though device type\n *\n * @param deviceType - Device type to detect / 要检测的设备类型\n * @param callback - Callback function to call when device status changes / 设备状态改变时调用的回调函数\n */\nexport const useUpdateDeviceStatus = (\n deviceType: DeviceType,\n callback: (width: number) => void,\n): void => {\n const width = DeviceTypeMap[deviceType]\n if (!Number.isInteger(width)) {\n if (__VUEPRESS_DEV__) throw new Error('device width must be a integer')\n return\n }\n\n useEventListener('orientationchange', () => {\n callback(width)\n })\n useEventListener('resize', () => {\n callback(width)\n })\n\n onMounted(() => {\n callback(width)\n })\n}\n"],"mappings":"gIAKA,IAAY,EAAL,SAAA,EAAA,OACL,GAAA,OAAA,eACD,CAED,MAAM,EAAgB,EACnB,EAAW,QAAS,OAAO,SAC1B,EAAa,OAAO,QAAQ,KAAM,GAAG,CACrC,GACD,CACF,CAQY,GACX,EACA,IACS,CACT,IAAM,EAAQ,EAAc,GAC5B,GAAI,CAAC,OAAO,UAAU,EAAM,CAAE,CAC5B,GAAI,iBAAkB,MAAU,MAAM,iCAAiC,CACvE,OAGF,EAAiB,wBAA2B,CAC1C,EAAS,EAAM,EACf,CACF,EAAiB,aAAgB,CAC/B,EAAS,EAAM,EACf,CAEF,MAAgB,CACd,EAAS,EAAM,EACf"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import * as vuepress_client0 from "vuepress/client";
|
|
2
|
-
import "@vuepress/helper/colors.css";
|
|
3
|
-
import "@vuepress/helper/normalize.css";
|
|
4
|
-
import "./styles/index.scss";
|
|
5
|
-
|
|
6
2
|
//#region src/client/config.d.ts
|
|
7
3
|
declare const _default: vuepress_client0.ClientConfig;
|
|
8
4
|
//#endregion
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as setupDarkMode, r as useDarkMode, t as DarkModeRef } from "../useDarkMode-DLor2cV7.js";
|
|
2
2
|
import { n as NavItemOptions, t as AutoLinkOptions } from "../nav-DikslSJ_.js";
|
|
3
|
-
import { a as SidebarObjectOptions, c as NavbarGroupOptions, i as SidebarLinkOptions, l as NavbarLinkOptions, n as SidebarGroupOptions, o as SidebarOptions, r as SidebarItemOptions, s as NavGroup, t as SidebarArrayOptions, u as NavbarOptions } from "../sidebar-
|
|
4
|
-
import { a as DefaultThemeData, i as DefaultThemePageFrontmatter, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter } from "../page-
|
|
5
|
-
import {
|
|
6
|
-
import { useEditLink } from "
|
|
7
|
-
import { useNavigate } from "
|
|
8
|
-
import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-
|
|
9
|
-
import { useNavbarConfig } from "
|
|
10
|
-
import { useNavbarRepo } from "
|
|
11
|
-
import { useNavbarSelectLanguage } from "
|
|
12
|
-
import { useRelatedLinks } from "
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { isActiveSidebarItem } from "
|
|
17
|
-
import { resolveAutoLink } from "
|
|
18
|
-
import {
|
|
19
|
-
import { resolvePrefix } from "
|
|
20
|
-
import {
|
|
3
|
+
import { a as SidebarObjectOptions, c as NavbarGroupOptions, i as SidebarLinkOptions, l as NavbarLinkOptions, n as SidebarGroupOptions, o as SidebarOptions, r as SidebarItemOptions, s as NavGroup, t as SidebarArrayOptions, u as NavbarOptions } from "../sidebar-CF1YPYLN.js";
|
|
4
|
+
import { a as DefaultThemeData, i as DefaultThemePageFrontmatter, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter } from "../page-FWcDnzJp.js";
|
|
5
|
+
import { n as useData, t as Data } from "../useData-JDen_Bxm.js";
|
|
6
|
+
import { t as useEditLink } from "../useEditLink-DPCTvXmM.js";
|
|
7
|
+
import { t as useNavigate } from "../useNavigate-lH4xyHOV.js";
|
|
8
|
+
import { a as SidebarLinkItem, i as SidebarItem, n as SidebarGroupItem, r as SidebarHeaderItem, t as NavbarItem } from "../typings-NbQSzbOn.js";
|
|
9
|
+
import { t as useNavbarConfig } from "../useNavbarConfig-C19TGFg7.js";
|
|
10
|
+
import { t as useNavbarRepo } from "../useNavbarRepo-DxhSIAFq.js";
|
|
11
|
+
import { t as useNavbarSelectLanguage } from "../useNavbarSelectLanguage-4GkrPvc2.js";
|
|
12
|
+
import { t as useRelatedLinks } from "../useRelatedLinks-ChTW2RRU.js";
|
|
13
|
+
import { n as useScrollPromise, t as ScrollPromise } from "../useScrollPromise-BAl732Uv.js";
|
|
14
|
+
import { a as resolveSidebarItems, c as setupSidebarItems, i as resolveSidebarHeadingItem, l as sidebarItemsSymbol, n as resolveArraySidebarItems, o as resolveSidebarPageHeader, r as resolveMultiSidebarItems, s as resolveSidebarPageHeaders, t as SidebarItemsRef, u as useSidebarItems } from "../useSidebarItems-CdpB96Ta.js";
|
|
15
|
+
import { n as useUpdateDeviceStatus, t as DeviceType } from "../useUpdateDeviceStatus-SBnOZx8J.js";
|
|
16
|
+
import { t as isActiveSidebarItem } from "../isActiveSidebarItem-aythFTeC.js";
|
|
17
|
+
import { t as resolveAutoLink } from "../resolveAutoLink-BR2Z05MD.js";
|
|
18
|
+
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../resolveEditLink-DazcWeGf.js";
|
|
19
|
+
import { t as resolvePrefix } from "../resolvePrefix-BN9K9RA5.js";
|
|
20
|
+
import { n as resolveRepoType, t as RepoType } from "../resolveRepoType-Wcj35_rs.js";
|
|
21
21
|
export { AutoLinkOptions, DarkModeRef, Data, DefaultThemeData, DefaultThemeHomePageFrontmatter, DefaultThemeLocaleData, DefaultThemeLocaleOptions, DefaultThemeNormalPageFrontmatter, DefaultThemePageData, DefaultThemePageFrontmatter, DeviceType, EDIT_LINK_PATTERNS, NavGroup, NavItemOptions, NavbarGroupOptions, NavbarItem, NavbarLinkOptions, NavbarOptions, RepoType, ScrollPromise, SidebarArrayOptions, SidebarGroupItem, SidebarGroupOptions, SidebarHeaderItem, SidebarItem, SidebarItemOptions, SidebarItemsRef, SidebarLinkItem, SidebarLinkOptions, SidebarObjectOptions, SidebarOptions, isActiveSidebarItem, resolveArraySidebarItems, resolveAutoLink, resolveEditLink, resolveMultiSidebarItems, resolvePrefix, resolveRepoType, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{setupDarkMode as e,useDarkMode as t}from"./composables/useDarkMode.js";import{useData as n}from"./composables/useData.js";import{useEditLink as r}from"./composables/useEditLink.js";import{useNavigate as i}from"./composables/useNavigate.js";import{useNavbarConfig as a}from"./composables/useNavbarConfig.js";import{useNavbarRepo as o}from"./composables/useNavbarRepo.js";import{useNavbarSelectLanguage as s}from"./composables/useNavbarSelectLanguage.js";import{useRelatedLinks as c}from"./composables/useRelatedLinks.js";import{useScrollPromise as l}from"./composables/useScrollPromise.js";import{resolveArraySidebarItems as u,resolveMultiSidebarItems as d,resolveSidebarHeadingItem as f,resolveSidebarItems as p,resolveSidebarPageHeader as m,resolveSidebarPageHeaders as h,setupSidebarItems as g,sidebarItemsSymbol as _,useSidebarItems as v}from"./composables/useSidebarItems.js";import{DeviceType as y,useUpdateDeviceStatus as b}from"./composables/useUpdateDeviceStatus.js";import"./composables/index.js";import{isActiveSidebarItem as x}from"./utils/isActiveSidebarItem.js";import{resolveAutoLink as S}from"./utils/resolveAutoLink.js";import{EDIT_LINK_PATTERNS as C,resolveEditLink as w}from"./utils/resolveEditLink.js";import{resolvePrefix as T}from"./utils/resolvePrefix.js";import{resolveRepoType as E}from"./utils/resolveRepoType.js";import"./utils/index.js";export{y as DeviceType,C as EDIT_LINK_PATTERNS,x as isActiveSidebarItem,u as resolveArraySidebarItems,S as resolveAutoLink,w as resolveEditLink,d as resolveMultiSidebarItems,T as resolvePrefix,E as resolveRepoType,f as resolveSidebarHeadingItem,p as resolveSidebarItems,m as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,e as setupDarkMode,g as setupSidebarItems,_ as sidebarItemsSymbol,t as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,v as useSidebarItems,b as useUpdateDeviceStatus};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { t as isActiveSidebarItem } from "../../isActiveSidebarItem-aythFTeC.js";
|
|
2
|
+
import { t as resolveAutoLink } from "../../resolveAutoLink-BR2Z05MD.js";
|
|
3
|
+
import { n as resolveEditLink, t as EDIT_LINK_PATTERNS } from "../../resolveEditLink-DazcWeGf.js";
|
|
4
|
+
import { t as resolvePrefix } from "../../resolvePrefix-BN9K9RA5.js";
|
|
5
|
+
import { n as resolveRepoType, t as RepoType } from "../../resolveRepoType-Wcj35_rs.js";
|
|
6
|
+
export { EDIT_LINK_PATTERNS, RepoType, isActiveSidebarItem, resolveAutoLink, resolveEditLink, resolvePrefix, resolveRepoType };
|
package/{lib/client/utils/isActiveSidebarItem.d.ts → dist/isActiveSidebarItem-aythFTeC.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as SidebarItem } from "
|
|
1
|
+
import { i as SidebarItem } from "./typings-NbQSzbOn.js";
|
|
2
2
|
import { RouteLocationNormalizedLoaded } from "vuepress/client";
|
|
3
3
|
|
|
4
4
|
//#region src/client/utils/isActiveSidebarItem.d.ts
|
|
5
5
|
declare const isActiveSidebarItem: (item: SidebarItem, route: RouteLocationNormalizedLoaded) => boolean;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { isActiveSidebarItem };
|
|
8
|
-
//# sourceMappingURL=isActiveSidebarItem.d.ts.map
|
|
7
|
+
export { isActiveSidebarItem as t };
|
|
8
|
+
//# sourceMappingURL=isActiveSidebarItem-aythFTeC.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as NavItemOptions, t as AutoLinkOptions } from "../nav-DikslSJ_.js";
|
|
2
|
-
import { a as SidebarObjectOptions, c as NavbarGroupOptions, i as SidebarLinkOptions, l as NavbarLinkOptions, n as SidebarGroupOptions, o as SidebarOptions, r as SidebarItemOptions, s as NavGroup, t as SidebarArrayOptions, u as NavbarOptions } from "../sidebar-
|
|
3
|
-
import { a as DefaultThemeData, i as DefaultThemePageFrontmatter, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter } from "../page-
|
|
2
|
+
import { a as SidebarObjectOptions, c as NavbarGroupOptions, i as SidebarLinkOptions, l as NavbarLinkOptions, n as SidebarGroupOptions, o as SidebarOptions, r as SidebarItemOptions, s as NavGroup, t as SidebarArrayOptions, u as NavbarOptions } from "../sidebar-CF1YPYLN.js";
|
|
3
|
+
import { a as DefaultThemeData, i as DefaultThemePageFrontmatter, n as DefaultThemeNormalPageFrontmatter, o as DefaultThemeLocaleData, r as DefaultThemePageData, s as DefaultThemeLocaleOptions, t as DefaultThemeHomePageFrontmatter } from "../page-FWcDnzJp.js";
|
|
4
4
|
import { BackToTopPluginOptions } from "@vuepress/plugin-back-to-top";
|
|
5
5
|
import { CopyCodePluginOptions } from "@vuepress/plugin-copy-code";
|
|
6
6
|
import { GitPluginOptions } from "@vuepress/plugin-git";
|
|
@@ -88,6 +88,8 @@ declare const DEFAULT_LOCALE_OPTIONS: DefaultThemeLocaleOptions;
|
|
|
88
88
|
declare const DEFAULT_LOCALE_DATA: DefaultThemeLocaleData;
|
|
89
89
|
/**
|
|
90
90
|
* Assign default options
|
|
91
|
+
*
|
|
92
|
+
* @param localeOptions - Locale options to assign default options
|
|
91
93
|
*/
|
|
92
94
|
declare const assignDefaultLocaleOptions: (localeOptions: DefaultThemeLocaleOptions) => void;
|
|
93
95
|
//#endregion
|
|
@@ -0,0 +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'\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'\nimport type {\n DefaultThemeLocaleOptions,\n DefaultThemePageData,\n} 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\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /**\n * deployed hostname\n */\n hostname?: string\n\n /**\n * To avoid confusion with the root `plugins` option,\n * we use `themePlugins`\n */\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 templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n fs\n .readdirSync(path.resolve(__dirname, '../client/components'))\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 fs\n .readdirSync(path.resolve(__dirname, '../client/composables'))\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 fs\n .readdirSync(path.resolve(__dirname, '../client/utils'))\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<Partial<DefaultThemePageData>>) => {\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":"ogCAKA,MAAa,EAAoD,CAE/D,UAAW,OACX,gBAAiB,GAGjB,OAAQ,EAAE,CACV,KAAM,KACN,KAAM,KACN,mBAAoB,YACpB,wBAAyB,kBAGzB,QAAS,UACT,aAAc,EAGd,SAAU,GACV,aAAc,iBACd,YAAa,GACb,aAAc,GACd,iBAAkB,eAGlB,SAAU,CACR,wBACA,uBACA,yBACA,0CACD,CACD,WAAY,eAGZ,gBAAiB,qBACjB,gBAAiB,oBACjB,cAAe,iBAChB,CAEY,EAA8C,CAEzD,mBAAoB,UACrB,CAOY,EACX,GACS,CACT,EAAc,UAAY,EAAE,CAC5B,OAAO,OAAO,EAAe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KAAO,IAC7B,EAAU,CACR,WACA,GAAI,EAAc,EAAa,IAAI,CAAG,EAAa,IAAM,EAAE,CAC5D,CAAC,CACF,EAAE,CAGN,IAAa,EAAa,SAAW,IACjC,EAAc,CACZ,WACA,GAAI,EAAc,EAAa,QAAQ,CACnC,EAAa,QACb,EAAE,CACP,CAAC,CACF,EAAE,CAGL,EAAa,KAAO,GACjB,EACE,EAAc,EAAa,IAAI,CAC3B,EAAa,IACb,CAAE,SAAU,GAAM,KAAM,GAAM,CACnC,CACD,EAAE,CAGN,EAAgB,CAAE,UAAW,EAAe,CAAC,CAC9C,CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
|
|
2
|
-
import { o as SidebarOptions, t as SidebarArrayOptions, u as NavbarOptions } from "./sidebar-
|
|
2
|
+
import { o as SidebarOptions, t as SidebarArrayOptions, u as NavbarOptions } from "./sidebar-CF1YPYLN.js";
|
|
3
3
|
import { GitPluginPageData } from "@vuepress/plugin-git";
|
|
4
4
|
import { ThemeData } from "@vuepress/plugin-theme-data";
|
|
5
5
|
import { LocaleData, PageFrontmatter } from "vuepress/shared";
|
|
@@ -289,4 +289,4 @@ interface DefaultThemeNormalPageFrontmatter extends DefaultThemePageFrontmatter
|
|
|
289
289
|
}
|
|
290
290
|
//#endregion
|
|
291
291
|
export { DefaultThemeData as a, DefaultThemePageFrontmatter as i, DefaultThemeNormalPageFrontmatter as n, DefaultThemeLocaleData as o, DefaultThemePageData as r, DefaultThemeLocaleOptions as s, DefaultThemeHomePageFrontmatter as t };
|
|
292
|
-
//# sourceMappingURL=page-
|
|
292
|
+
//# sourceMappingURL=page-FWcDnzJp.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AutoLinkOptions } from "
|
|
1
|
+
import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
|
|
2
2
|
|
|
3
3
|
//#region src/client/utils/resolveAutoLink.d.ts
|
|
4
4
|
/**
|
|
@@ -16,5 +16,5 @@ import { t as AutoLinkOptions } from "../../nav-DikslSJ_.js";
|
|
|
16
16
|
*/
|
|
17
17
|
declare const resolveAutoLink: (config: string, currentPath?: string) => AutoLinkOptions;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { resolveAutoLink };
|
|
20
|
-
//# sourceMappingURL=resolveAutoLink.d.ts.map
|
|
19
|
+
export { resolveAutoLink as t };
|
|
20
|
+
//# sourceMappingURL=resolveAutoLink-BR2Z05MD.d.ts.map
|
|
@@ -16,5 +16,5 @@ declare const resolveEditLink: ({
|
|
|
16
16
|
editLinkPattern?: string;
|
|
17
17
|
}) => string | null;
|
|
18
18
|
//#endregion
|
|
19
|
-
export {
|
|
20
|
-
//# sourceMappingURL=resolveEditLink.d.ts.map
|
|
19
|
+
export { resolveEditLink as n, EDIT_LINK_PATTERNS as t };
|
|
20
|
+
//# sourceMappingURL=resolveEditLink-DazcWeGf.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/client/utils/resolvePrefix.d.ts
|
|
2
2
|
declare const resolvePrefix: (prefix?: string, path?: string) => string;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { resolvePrefix };
|
|
5
|
-
//# sourceMappingURL=resolvePrefix.d.ts.map
|
|
4
|
+
export { resolvePrefix as t };
|
|
5
|
+
//# sourceMappingURL=resolvePrefix-BN9K9RA5.d.ts.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
type RepoType = 'Bitbucket' | 'Gitee' | 'GitHub' | 'GitLab' | null;
|
|
3
3
|
declare const resolveRepoType: (repo: string) => RepoType;
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
6
|
-
//# sourceMappingURL=resolveRepoType.d.ts.map
|
|
5
|
+
export { resolveRepoType as n, RepoType as t };
|
|
6
|
+
//# sourceMappingURL=resolveRepoType-Wcj35_rs.d.ts.map
|
|
@@ -50,4 +50,4 @@ type SidebarObjectOptions = Record<string, SidebarArrayOptions | 'heading' | fal
|
|
|
50
50
|
type SidebarOptions = SidebarArrayOptions | SidebarObjectOptions | 'heading';
|
|
51
51
|
//#endregion
|
|
52
52
|
export { SidebarObjectOptions as a, NavbarGroupOptions as c, SidebarLinkOptions as i, NavbarLinkOptions as l, SidebarGroupOptions as n, SidebarOptions as o, SidebarItemOptions as r, NavGroup as s, SidebarArrayOptions as t, NavbarOptions as u };
|
|
53
|
-
//# sourceMappingURL=sidebar-
|
|
53
|
+
//# sourceMappingURL=sidebar-CF1YPYLN.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
|
|
2
|
-
import { i as SidebarLinkOptions, n as SidebarGroupOptions, s as NavGroup } from "./sidebar-
|
|
2
|
+
import { i as SidebarLinkOptions, n as SidebarGroupOptions, s as NavGroup } from "./sidebar-CF1YPYLN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/client/typings.d.ts
|
|
5
5
|
type NavbarItem = AutoLinkOptions | NavGroup<NavbarItem>;
|
|
@@ -16,4 +16,4 @@ interface SidebarGroupItem extends SidebarGroupOptions {
|
|
|
16
16
|
type SidebarItem = SidebarGroupItem | SidebarLinkItem;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SidebarLinkItem as a, SidebarItem as i, SidebarGroupItem as n, SidebarHeaderItem as r, NavbarItem as t };
|
|
19
|
-
//# sourceMappingURL=typings-
|
|
19
|
+
//# sourceMappingURL=typings-NbQSzbOn.d.ts.map
|
|
@@ -15,5 +15,5 @@ declare const useDarkMode: () => DarkModeRef;
|
|
|
15
15
|
*/
|
|
16
16
|
declare const setupDarkMode: () => void;
|
|
17
17
|
//#endregion
|
|
18
|
-
export {
|
|
19
|
-
//# sourceMappingURL=useDarkMode.d.ts.map
|
|
18
|
+
export { setupDarkMode as n, useDarkMode as r, DarkModeRef as t };
|
|
19
|
+
//# sourceMappingURL=useDarkMode-DLor2cV7.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DefaultThemeData, n as DefaultThemeNormalPageFrontmatter, r as DefaultThemePageData } from "
|
|
1
|
+
import { a as DefaultThemeData, n as DefaultThemeNormalPageFrontmatter, r as DefaultThemePageData } from "./page-FWcDnzJp.js";
|
|
2
2
|
import { ClientData } from "vuepress/client";
|
|
3
3
|
import { ThemeDataRef, ThemeLocaleDataRef } from "@vuepress/plugin-theme-data/client";
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ interface Data<PageFrontmatter extends Record<string, unknown> = DefaultThemeNor
|
|
|
7
7
|
theme: ThemeDataRef<DefaultThemeData>;
|
|
8
8
|
themeLocale: ThemeLocaleDataRef<DefaultThemeData>;
|
|
9
9
|
}
|
|
10
|
-
declare const useData: <PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData>() => Data<PageFrontmatter, PageData>;
|
|
10
|
+
declare const useData$1: <PageFrontmatter extends Record<string, unknown> = DefaultThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = DefaultThemePageData>() => Data<PageFrontmatter, PageData>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export {
|
|
13
|
-
//# sourceMappingURL=useData.d.ts.map
|
|
12
|
+
export { useData$1 as n, Data as t };
|
|
13
|
+
//# sourceMappingURL=useData-JDen_Bxm.d.ts.map
|
|
@@ -4,5 +4,5 @@ import { ComputedRef } from "vue";
|
|
|
4
4
|
//#region src/client/composables/useEditLink.d.ts
|
|
5
5
|
declare const useEditLink: () => ComputedRef<AutoLinkConfig | null>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { useEditLink };
|
|
8
|
-
//# sourceMappingURL=useEditLink.d.ts.map
|
|
7
|
+
export { useEditLink as t };
|
|
8
|
+
//# sourceMappingURL=useEditLink-DPCTvXmM.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as NavbarItem } from "
|
|
1
|
+
import { t as NavbarItem } from "./typings-NbQSzbOn.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/client/composables/useNavbarConfig.d.ts
|
|
5
5
|
declare const useNavbarConfig: () => ComputedRef<NavbarItem[]>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { useNavbarConfig };
|
|
8
|
-
//# sourceMappingURL=useNavbarConfig.d.ts.map
|
|
7
|
+
export { useNavbarConfig as t };
|
|
8
|
+
//# sourceMappingURL=useNavbarConfig-C19TGFg7.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavbarItem } from "
|
|
1
|
+
import { t as NavbarItem } from "./typings-NbQSzbOn.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/client/composables/useNavbarRepo.d.ts
|
|
@@ -9,5 +9,5 @@ import { ComputedRef } from "vue";
|
|
|
9
9
|
*/
|
|
10
10
|
declare const useNavbarRepo: () => ComputedRef<NavbarItem[]>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useNavbarRepo };
|
|
13
|
-
//# sourceMappingURL=useNavbarRepo.d.ts.map
|
|
12
|
+
export { useNavbarRepo as t };
|
|
13
|
+
//# sourceMappingURL=useNavbarRepo-DxhSIAFq.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavbarItem } from "
|
|
1
|
+
import { t as NavbarItem } from "./typings-NbQSzbOn.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/client/composables/useNavbarSelectLanguage.d.ts
|
|
@@ -9,5 +9,5 @@ import { ComputedRef } from "vue";
|
|
|
9
9
|
*/
|
|
10
10
|
declare const useNavbarSelectLanguage: () => ComputedRef<NavbarItem[]>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { useNavbarSelectLanguage };
|
|
13
|
-
//# sourceMappingURL=useNavbarSelectLanguage.d.ts.map
|
|
12
|
+
export { useNavbarSelectLanguage as t };
|
|
13
|
+
//# sourceMappingURL=useNavbarSelectLanguage-4GkrPvc2.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/client/composables/useNavigate.d.ts
|
|
2
2
|
declare const useNavigate: () => ((url: string) => void);
|
|
3
3
|
//#endregion
|
|
4
|
-
export { useNavigate };
|
|
5
|
-
//# sourceMappingURL=useNavigate.d.ts.map
|
|
4
|
+
export { useNavigate as t };
|
|
5
|
+
//# sourceMappingURL=useNavigate-lH4xyHOV.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as AutoLinkOptions } from "
|
|
1
|
+
import { t as AutoLinkOptions } from "./nav-DikslSJ_.js";
|
|
2
2
|
import { ComputedRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/client/composables/useRelatedLinks.d.ts
|
|
@@ -8,5 +8,5 @@ interface RelatedLinks {
|
|
|
8
8
|
}
|
|
9
9
|
declare const useRelatedLinks: () => RelatedLinks;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { useRelatedLinks };
|
|
12
|
-
//# sourceMappingURL=useRelatedLinks.d.ts.map
|
|
11
|
+
export { useRelatedLinks as t };
|
|
12
|
+
//# sourceMappingURL=useRelatedLinks-ChTW2RRU.d.ts.map
|
package/{lib/client/composables/useScrollPromise.d.ts → dist/useScrollPromise-BAl732Uv.d.ts}
RENAMED
|
@@ -6,5 +6,5 @@ interface ScrollPromise {
|
|
|
6
6
|
}
|
|
7
7
|
declare const useScrollPromise: () => ScrollPromise;
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
10
|
-
//# sourceMappingURL=useScrollPromise.d.ts.map
|
|
9
|
+
export { useScrollPromise as n, ScrollPromise as t };
|
|
10
|
+
//# sourceMappingURL=useScrollPromise-BAl732Uv.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SidebarObjectOptions, o as SidebarOptions, t as SidebarArrayOptions } from "
|
|
2
|
-
import { i as SidebarItem, r as SidebarHeaderItem } from "
|
|
1
|
+
import { a as SidebarObjectOptions, o as SidebarOptions, t as SidebarArrayOptions } from "./sidebar-CF1YPYLN.js";
|
|
2
|
+
import { i as SidebarItem, r as SidebarHeaderItem } from "./typings-NbQSzbOn.js";
|
|
3
3
|
import { PageData, PageHeader } from "vuepress/client";
|
|
4
4
|
import { ComputedRef, InjectionKey } from "vue";
|
|
5
5
|
|
|
@@ -76,5 +76,5 @@ declare const resolveSidebarItems: (sidebarConfig: SidebarOptions | false, page:
|
|
|
76
76
|
*/
|
|
77
77
|
declare const setupSidebarItems: () => void;
|
|
78
78
|
//#endregion
|
|
79
|
-
export {
|
|
80
|
-
//# sourceMappingURL=useSidebarItems.d.ts.map
|
|
79
|
+
export { resolveSidebarItems as a, setupSidebarItems as c, resolveSidebarHeadingItem as i, sidebarItemsSymbol as l, resolveArraySidebarItems as n, resolveSidebarPageHeader as o, resolveMultiSidebarItems as r, resolveSidebarPageHeaders as s, SidebarItemsRef as t, useSidebarItems as u };
|
|
80
|
+
//# sourceMappingURL=useSidebarItems-CdpB96Ta.d.ts.map
|
|
@@ -10,5 +10,5 @@ declare enum DeviceType {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const useUpdateDeviceStatus: (deviceType: DeviceType, callback: (width: number) => void) => void;
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
14
|
-
//# sourceMappingURL=useUpdateDeviceStatus.d.ts.map
|
|
13
|
+
export { useUpdateDeviceStatus as n, DeviceType as t };
|
|
14
|
+
//# sourceMappingURL=useUpdateDeviceStatus-SBnOZx8J.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.125",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"default",
|
|
@@ -20,55 +20,55 @@
|
|
|
20
20
|
"directory": "themes/theme-default"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
|
-
"
|
|
23
|
+
"dist",
|
|
24
24
|
"templates"
|
|
25
25
|
],
|
|
26
26
|
"type": "module",
|
|
27
27
|
"sideEffects": [
|
|
28
|
-
"./
|
|
29
|
-
"./
|
|
30
|
-
"./
|
|
28
|
+
"./dist/client/components/**/*.vue",
|
|
29
|
+
"./dist/client/layouts/*.vue",
|
|
30
|
+
"./dist/client/styles/*.scss"
|
|
31
31
|
],
|
|
32
|
-
"main": "./
|
|
33
|
-
"types": "./
|
|
32
|
+
"main": "./dist/node/index.js",
|
|
33
|
+
"types": "./dist/node/index.d.ts",
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
36
|
-
"types": "./
|
|
37
|
-
"default": "./
|
|
36
|
+
"types": "./dist/node/index.d.ts",
|
|
37
|
+
"default": "./dist/node/index.js"
|
|
38
38
|
},
|
|
39
39
|
"./client": {
|
|
40
|
-
"types": "./
|
|
41
|
-
"default": "./
|
|
40
|
+
"types": "./dist/client/index.d.ts",
|
|
41
|
+
"default": "./dist/client/index.js"
|
|
42
42
|
},
|
|
43
|
-
"./components/*": "./
|
|
44
|
-
"./layouts/*": "./
|
|
43
|
+
"./components/*": "./dist/client/components/*",
|
|
44
|
+
"./layouts/*": "./dist/client/layouts/*",
|
|
45
|
+
"./styles/*.scss": "./dist/client/styles/*.scss",
|
|
45
46
|
"./styles/*": {
|
|
46
|
-
"sass": "./
|
|
47
|
-
"default": "./lib/client/styles/*"
|
|
47
|
+
"sass": "./dist/client/styles/*.scss"
|
|
48
48
|
},
|
|
49
49
|
"./templates/*": "./templates/*",
|
|
50
|
-
"./
|
|
50
|
+
"./dist/*": "./dist/*",
|
|
51
51
|
"./package.json": "./package.json"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
58
|
-
"@vuepress/plugin-active-header-links": "2.0.0-rc.
|
|
59
|
-
"@vuepress/plugin-back-to-top": "2.0.0-rc.
|
|
60
|
-
"@vuepress/plugin-copy-code": "2.0.0-rc.
|
|
61
|
-
"@vuepress/plugin-git": "2.0.0-rc.
|
|
62
|
-
"@vuepress/plugin-links-check": "2.0.0-rc.
|
|
63
|
-
"@vuepress/plugin-markdown-hint": "2.0.0-rc.
|
|
64
|
-
"@vuepress/plugin-markdown-tab": "2.0.0-rc.
|
|
65
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-rc.
|
|
66
|
-
"@vuepress/plugin-nprogress": "2.0.0-rc.
|
|
67
|
-
"@vuepress/plugin-palette": "2.0.0-rc.
|
|
68
|
-
"@vuepress/plugin-prismjs": "2.0.0-rc.
|
|
69
|
-
"@vuepress/plugin-seo": "2.0.0-rc.
|
|
70
|
-
"@vuepress/plugin-sitemap": "2.0.0-rc.
|
|
71
|
-
"@vuepress/plugin-theme-data": "2.0.0-rc.
|
|
57
|
+
"@vuepress/helper": "2.0.0-rc.125",
|
|
58
|
+
"@vuepress/plugin-active-header-links": "2.0.0-rc.125",
|
|
59
|
+
"@vuepress/plugin-back-to-top": "2.0.0-rc.125",
|
|
60
|
+
"@vuepress/plugin-copy-code": "2.0.0-rc.125",
|
|
61
|
+
"@vuepress/plugin-git": "2.0.0-rc.125",
|
|
62
|
+
"@vuepress/plugin-links-check": "2.0.0-rc.125",
|
|
63
|
+
"@vuepress/plugin-markdown-hint": "2.0.0-rc.125",
|
|
64
|
+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.125",
|
|
65
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-rc.125",
|
|
66
|
+
"@vuepress/plugin-nprogress": "2.0.0-rc.125",
|
|
67
|
+
"@vuepress/plugin-palette": "2.0.0-rc.125",
|
|
68
|
+
"@vuepress/plugin-prismjs": "2.0.0-rc.125",
|
|
69
|
+
"@vuepress/plugin-seo": "2.0.0-rc.125",
|
|
70
|
+
"@vuepress/plugin-sitemap": "2.0.0-rc.125",
|
|
71
|
+
"@vuepress/plugin-theme-data": "2.0.0-rc.125",
|
|
72
72
|
"@vueuse/core": "^14.2.1",
|
|
73
73
|
"vue": "^3.5.29"
|
|
74
74
|
},
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"optional": true
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "58e660bb7138f1883e5440a08903d09cdbabcdc8"
|
|
93
93
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DarkModeRef, setupDarkMode, useDarkMode } from "./useDarkMode.js";
|
|
2
|
-
import { Data, useData } from "./useData.js";
|
|
3
|
-
import { useEditLink } from "./useEditLink.js";
|
|
4
|
-
import { useNavigate } from "./useNavigate.js";
|
|
5
|
-
import { useNavbarConfig } from "./useNavbarConfig.js";
|
|
6
|
-
import { useNavbarRepo } from "./useNavbarRepo.js";
|
|
7
|
-
import { useNavbarSelectLanguage } from "./useNavbarSelectLanguage.js";
|
|
8
|
-
import { useRelatedLinks } from "./useRelatedLinks.js";
|
|
9
|
-
import { ScrollPromise, useScrollPromise } from "./useScrollPromise.js";
|
|
10
|
-
import { SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupSidebarItems, sidebarItemsSymbol, useSidebarItems } from "./useSidebarItems.js";
|
|
11
|
-
import { DeviceType, useUpdateDeviceStatus } from "./useUpdateDeviceStatus.js";
|
|
12
|
-
export { DarkModeRef, Data, DeviceType, ScrollPromise, SidebarItemsRef, resolveArraySidebarItems, resolveMultiSidebarItems, resolveSidebarHeadingItem, resolveSidebarItems, resolveSidebarPageHeader, resolveSidebarPageHeaders, setupDarkMode, setupSidebarItems, sidebarItemsSymbol, useDarkMode, useData, useEditLink, useNavbarConfig, useNavbarRepo, useNavbarSelectLanguage, useNavigate, useRelatedLinks, useScrollPromise, useSidebarItems, useUpdateDeviceStatus };
|
package/lib/client/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{setupDarkMode as e,useDarkMode as t}from"./composables/useDarkMode.js";import{useData as n}from"./composables/useData.js";import{useEditLink as r}from"./composables/useEditLink.js";import{useNavigate as i}from"./composables/useNavigate.js";import{useNavbarConfig as a}from"./composables/useNavbarConfig.js";import{useNavbarRepo as o}from"./composables/useNavbarRepo.js";import{useNavbarSelectLanguage as s}from"./composables/useNavbarSelectLanguage.js";import{useRelatedLinks as c}from"./composables/useRelatedLinks.js";import{useScrollPromise as l}from"./composables/useScrollPromise.js";import{resolveArraySidebarItems as u,resolveMultiSidebarItems as d,resolveSidebarHeadingItem as f,resolveSidebarItems as p,resolveSidebarPageHeader as m,resolveSidebarPageHeaders as h,setupSidebarItems as g,sidebarItemsSymbol as _,useSidebarItems as v}from"./composables/useSidebarItems.js";import{DeviceType as y,useUpdateDeviceStatus as b}from"./composables/useUpdateDeviceStatus.js";import{isActiveSidebarItem as x}from"./utils/isActiveSidebarItem.js";import{resolveAutoLink as S}from"./utils/resolveAutoLink.js";import{EDIT_LINK_PATTERNS as C,resolveEditLink as w}from"./utils/resolveEditLink.js";import{resolvePrefix as T}from"./utils/resolvePrefix.js";import{resolveRepoType as E}from"./utils/resolveRepoType.js";export{y as DeviceType,C as EDIT_LINK_PATTERNS,x as isActiveSidebarItem,u as resolveArraySidebarItems,S as resolveAutoLink,w as resolveEditLink,d as resolveMultiSidebarItems,T as resolvePrefix,E as resolveRepoType,f as resolveSidebarHeadingItem,p as resolveSidebarItems,m as resolveSidebarPageHeader,h as resolveSidebarPageHeaders,e as setupDarkMode,g as setupSidebarItems,_ as sidebarItemsSymbol,t as useDarkMode,n as useData,r as useEditLink,a as useNavbarConfig,o as useNavbarRepo,s as useNavbarSelectLanguage,i as useNavigate,c as useRelatedLinks,l as useScrollPromise,v as useSidebarItems,b as useUpdateDeviceStatus};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { isActiveSidebarItem } from "./isActiveSidebarItem.js";
|
|
2
|
-
import { resolveAutoLink } from "./resolveAutoLink.js";
|
|
3
|
-
import { EDIT_LINK_PATTERNS, resolveEditLink } from "./resolveEditLink.js";
|
|
4
|
-
import { resolvePrefix } from "./resolvePrefix.js";
|
|
5
|
-
import { RepoType, resolveRepoType } from "./resolveRepoType.js";
|
|
6
|
-
export { EDIT_LINK_PATTERNS, RepoType, isActiveSidebarItem, resolveAutoLink, resolveEditLink, resolvePrefix, resolveRepoType };
|
package/lib/node/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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 */\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'\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'\nimport type {\n DefaultThemeLocaleOptions,\n DefaultThemePageData,\n} 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\nexport interface DefaultThemeOptions extends DefaultThemeLocaleOptions {\n /**\n * deployed hostname\n */\n hostname?: string\n\n /**\n * To avoid confusion with the root `plugins` option,\n * we use `themePlugins`\n */\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 templateBuild: path.resolve(__dirname, '../../templates/build.html'),\n\n alias: {\n // use alias to make all components replaceable\n ...Object.fromEntries(\n fs\n .readdirSync(path.resolve(__dirname, '../client/components'))\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 fs\n .readdirSync(path.resolve(__dirname, '../client/composables'))\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 fs\n .readdirSync(path.resolve(__dirname, '../client/utils'))\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<Partial<DefaultThemePageData>>) => {\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":"ogCAKA,MAAa,EAAoD,CAE/D,UAAW,OACX,gBAAiB,GAGjB,OAAQ,EAAE,CACV,KAAM,KACN,KAAM,KACN,mBAAoB,YACpB,wBAAyB,kBAGzB,QAAS,UACT,aAAc,EAGd,SAAU,GACV,aAAc,iBACd,YAAa,GACb,aAAc,GACd,iBAAkB,eAGlB,SAAU,CACR,wBACA,uBACA,yBACA,0CACD,CACD,WAAY,eAGZ,gBAAiB,qBACjB,gBAAiB,oBACjB,cAAe,iBAChB,CAEY,EAA8C,CAEzD,mBAAoB,UACrB,CAKY,EACX,GACS,CACT,EAAc,UAAY,EAAE,CAC5B,OAAO,OAAO,EAAe,CAC3B,GAAG,EACH,GAAG,EACJ,CAAC,CACF,EAAc,QAAQ,OAAS,EAAE,CACjC,OAAO,OAAO,EAAc,QAAQ,KAAM,CACxC,GAAG,EACH,GAAG,EAAc,QAAQ,KAC1B,CAAC,ECnDS,EACX,GAEA,OAAO,QAAQ,EAAc,SAAW,EAAE,CAAC,CAAC,QAEzC,EAAQ,CAAC,EAAK,MACf,EAAO,GAAO,EAAE,CAEZ,EAAM,MAAK,EAAO,GAAK,IAAM,EAAM,KACnC,EAAM,UAAS,EAAO,GAAK,QAAU,EAAM,SAC3C,EAAM,SAAQ,EAAO,GAAK,QAAU,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changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|