UNPKG

vuepress-theme-hope

Version:

A light vuepress theme with tons of features

246 lines 14.9 kB
import { _ as SidebarLinkItem, a as BloggerInfoSlotData, c as HeroLogoSlotData, d as PortfolioInfoSlotData, f as SidebarItemsSlotData, g as SidebarItem, h as SidebarGroupItem, i as ArticleTitleSlotData, l as PortfolioAvatarSlotData, m as TocSlotData, n as ArticleExcerptSlotData, o as HeroBackgroundSlotData, p as Style, r as ArticleInfoSlotData, s as HeroInfoSlotData, t as ArticleCoverSlotData, u as PortfolioBackgroundSlotData, v as PageInfoProps } from "../slots-T4SWFCIa.js"; import { a as SidebarGroupOptions, c as SidebarObjectOptions, d as AutoLinkOptions, f as NavItemOptions, h as AuthorName, i as SidebarArrayOptions, l as SidebarOptions, m as AuthorInfo, n as ThemePortfolioFrontmatter, o as SidebarItemOptions, p as Author, r as ThemeBasePageFrontmatter, s as SidebarLinkOptions, t as PortfolioMedia, u as SidebarStructureOptions } from "../portfolio-FPgkMXUX.js"; import { $ as getStringArray, A as NavbarLocaleOptions, B as InfoOptions, C as ThemeProjectHomePageFrontmatter, D as NavbarComponent, E as RouteLocaleData, F as MetaLocaleOptions, G as FeatureOptions, H as FeatureLocaleConfig, I as MetaLocateData, J as EncryptOptions, K as EncryptConfig, L as DocsRepoLocaleOptions, M as NavbarGroupOptions, N as NavbarLinkOptions, O as NavbarLayoutOptions, P as NavbarOptions, Q as getCategory, R as FooterLocaleOptions, S as ThemeProjectHomeHighlightOptions, T as ThemeNormalPageFrontmatter, U as FeatureLocaleData, V as FeatureConfig, W as FeatureLocaleOptions, X as PasswordOptions, Y as PasswordConfig, Z as getAuthor, _ as ThemePageData, a as DeprecatedLayoutOptions, b as ThemeProjectHomeFeatureOptions, c as LayoutLocaleOptions, d as SidebarFileInfo, et as getTag, f as SidebarInfo, g as SidebarSorterKeyword, h as SidebarSorterFunction, i as ThemeLocaleOptions, j as NavGroup, k as NavbarLocaleData, l as LayoutOptions, m as SidebarSorter, n as ThemeLocaleConfig, o as LayoutLocaleConfig, p as SidebarLocaleOptions, q as EncryptLocaleData, r as ThemeLocaleData, s as LayoutLocaleData, t as ThemeData, u as SidebarDirInfo, v as ThemeProjectHomeActionOptions, w as StructureSidebarDirOptions, x as ThemeProjectHomeHighlightItem, y as ThemeProjectHomeFeatureItem, z as InfoConfig } from "../data-BaDXBlcL.js"; import { a as BlogLocaleData, c as PaginationLocaleData, d as PageInfoData, f as PageType, i as BlogLocaleConfig, l as PageInfoType, n as ThemeBlogHomeProjectOptions, o as BlogLocaleOptions, r as ThemeHomePageFrontmatter, s as DeprecatedBlogLocaleData, t as ThemeBlogHomePageFrontmatter, u as ArticleInfoData } from "../blogHome-DJaoVOnc.js"; import { a as DeprecatedAppearanceOptions, i as DarkModeOptions, n as AppearanceLocaleData, o as OutlookLocaleData, r as AppearanceOptions, t as AppearanceConfig } from "../appearance-CPtSZA01.js"; import { a as useDarkMode, n as _default$2, t as _default$6 } from "../NotFound-DhG2brD8.js"; import * as _$vue from "vue"; import { ComputedRef, FunctionalComponent, PropType, Ref, SlotsType, VNode } from "vue"; import { ThemeDataRef, ThemeLocaleDataRef } from "@vuepress/plugin-theme-data/client"; import { ClientData } from "vuepress/client"; import { RequiredSlot, Slot } from "@vuepress/helper/client"; //#region src/client/components/appearance/ColorModeSwitch.d.ts declare const _default: _$vue.DefineComponent<{}, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/appearance/ThemeColorPicker.d.ts declare const _default$10: _$vue.DefineComponent<_$vue.ExtractPropTypes<{ /** * Theme color picker config * * 主题色选择器配置 */ themeColors: { type: PropType<Record<string, string>>; required: true; }; }>, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{ /** * Theme color picker config * * 主题色选择器配置 */ themeColors: { type: PropType<Record<string, string>>; required: true; }; }>> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/appearance/ToggleFullScreenButton.d.ts declare const _default$11: _$vue.DefineComponent<{}, () => VNode | null, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/base/AutoLink.d.ts interface AutoLinkProps { /** Autolink config */ config: AutoLinkOptions; /** * Icon sizing * * @default "both" */ iconSizing?: "height" | "width" | "both"; } declare const AutoLink: FunctionalComponent<AutoLinkProps, ["focusout"], { before?: Slot; after?: Slot; default?: RequiredSlot; }>; //#endregion //#region src/client/components/base/PageContent.d.ts declare const _default$7: _$vue.DefineComponent<{}, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{ pageTop?: Slot; pageBottom?: Slot; content?: Slot; contentBefore?: Slot; contentAfter?: Slot; toc?: Slot<TocSlotData>; tocBefore?: Slot; tocAfter?: Slot; }>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/base/MainFadeInUpTransition.d.ts declare const _default$3: _$vue.DefineComponent<{}, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{ default?: Slot; }>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/base/MainLayout.d.ts declare const _default$4: _$vue.DefineComponent<_$vue.ExtractPropTypes<{ /** * Extra class of container * * 容器额外类名 */ containerClass: StringConstructor; /** * Whether disable navbar * * 是否禁用导航栏 */ noNavbar: BooleanConstructor; /** * Whether disable sidebar * * 是否禁用侧边栏 */ noSidebar: BooleanConstructor; /** Whether disable toc */ noToc: BooleanConstructor; }>, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{ /** * Extra class of container * * 容器额外类名 */ containerClass: StringConstructor; /** * Whether disable navbar * * 是否禁用导航栏 */ noNavbar: BooleanConstructor; /** * Whether disable sidebar * * 是否禁用侧边栏 */ noSidebar: BooleanConstructor; /** Whether disable toc */ noToc: BooleanConstructor; }>> & Readonly<{}>, { noNavbar: boolean; noSidebar: boolean; noToc: boolean; }, SlotsType<{ default: Slot; navScreenTop?: Slot; navScreenBottom?: Slot; sidebarItems?: Slot<SidebarItemsSlotData>; sidebarTop?: Slot; sidebarBottom?: Slot; }>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/base/MarkdownContent.d.ts declare const _default$5: _$vue.DefineComponent<_$vue.ExtractPropTypes<{ /** Whether use customized layout */custom: BooleanConstructor; }>, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{ /** Whether use customized layout */custom: BooleanConstructor; }>> & Readonly<{}>, { custom: boolean; }, SlotsType<{ contentBefore?: Slot; contentAfter?: Slot; }>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/base/PrintButton.d.ts declare const _default$8: _$vue.DefineComponent<{}, () => VNode | null, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/base/SkipLink.d.ts declare const _default$9: _$vue.DefineComponent<_$vue.ExtractPropTypes<{ /** Content ID */content: { type: StringConstructor; default: string; }; }>, () => VNode[], {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{ /** Content ID */content: { type: StringConstructor; default: string; }; }>> & Readonly<{}>, { content: string; }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/components/transitions/DropTransition.d.ts declare const _default$1: _$vue.DefineComponent<_$vue.ExtractPropTypes<{ /** Transition delay */delay: { type: NumberConstructor; default: number; }; /** Transition duration */ duration: { type: NumberConstructor; default: number; }; /** Whether to use TransitionGroup */ group: BooleanConstructor; /** Whether to use appear */ appear: BooleanConstructor; }>, () => VNode, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{ /** Transition delay */delay: { type: NumberConstructor; default: number; }; /** Transition duration */ duration: { type: NumberConstructor; default: number; }; /** Whether to use TransitionGroup */ group: BooleanConstructor; /** Whether to use appear */ appear: BooleanConstructor; }>> & Readonly<{}>, { group: boolean; appear: boolean; delay: number; duration: number; }, SlotsType<{ default: RequiredSlot; }>, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>; //#endregion //#region src/client/composables/useAuthorInfo.d.ts declare const useAuthorInfo: () => ComputedRef<AuthorInfo>; //#endregion //#region src/client/composables/useData.d.ts interface Data<PageFrontmatter extends Record<string, unknown> = ThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = ThemePageData> extends Pick<ClientData<PageFrontmatter, PageData>, "frontmatter" | "head" | "headTitle" | "lang" | "layouts" | "page" | "pageComponent" | "pageLayout" | "redirects" | "routeLocale" | "routePath" | "routes" | "site" | "siteLocale"> { theme: ThemeDataRef<ThemeData>; themeLocale: ThemeLocaleDataRef<ThemeLocaleConfig>; } declare const useData: <PageFrontmatter extends Record<string, unknown> = ThemeNormalPageFrontmatter, PageData extends Record<string, unknown> = ThemePageData>() => Data<PageFrontmatter, PageData>; //#endregion //#region src/client/composables/useMetaInfo.d.ts interface MetaInfo { /** Whether to show "changelog" or not */ changelog: ComputedRef<boolean>; /** Whether to show "Contributors" or not */ contributors: ComputedRef<"content" | "meta" | boolean>; /** Whether to show "Last updated" or not */ lastUpdated: ComputedRef<boolean>; } declare const useMetaInfo: () => MetaInfo; //#endregion //#region src/client/composables/useNavigate.d.ts declare const useNavigate: () => ((url: string) => void); //#endregion //#region src/client/composables/usePageInfo.d.ts declare const usePageInfo: () => { info: ComputedRef<PageInfoProps>; items: ComputedRef<PageInfoType[] | false | null>; }; //#endregion //#region src/client/composables/usePure.d.ts declare const usePure: () => ComputedRef<boolean>; //#endregion //#region src/client/composables/useRelatedLinks.d.ts interface RelatedLinks { prevLink: ComputedRef<AutoLinkOptions | null>; nextLink: ComputedRef<AutoLinkOptions | null>; } declare const useRelatedLinks: () => RelatedLinks; //#endregion //#region src/client/composables/useTheme.d.ts declare const useTheme: () => ThemeDataRef<ThemeData>; //#endregion //#region src/client/composables/useWindowSize.d.ts interface WindowSizeRef { isMobile: Ref<boolean>; isPC: Ref<boolean>; } declare const useWindowSize: () => WindowSizeRef; //#endregion //#region src/client/typings/navbar.d.ts type NavbarLinkItem = AutoLinkOptions; type NavbarItem = NavbarLinkItem | NavGroup<AutoLinkOptions | NavGroup<NavbarLinkItem>>; //#endregion export { AppearanceConfig, AppearanceLocaleData, AppearanceOptions, ArticleCoverSlotData, ArticleExcerptSlotData, ArticleInfoData, ArticleInfoSlotData, ArticleTitleSlotData, Author, AuthorInfo, AuthorName, AutoLink, AutoLinkOptions, BlogLocaleConfig, BlogLocaleData, BlogLocaleOptions, BloggerInfoSlotData, _default as ColorModeSwitch, DarkModeOptions, DeprecatedAppearanceOptions, DeprecatedBlogLocaleData, DeprecatedLayoutOptions, DocsRepoLocaleOptions, _default$1 as DropTransition, EncryptConfig, EncryptLocaleData, EncryptOptions, FeatureConfig, FeatureLocaleConfig, FeatureLocaleData, FeatureLocaleOptions, FeatureOptions, FooterLocaleOptions, HeroBackgroundSlotData, HeroInfoSlotData, HeroLogoSlotData, InfoConfig, InfoOptions, _default$2 as Layout, LayoutLocaleConfig, LayoutLocaleData, LayoutLocaleOptions, LayoutOptions, _default$3 as MainFadeInUpTransition, _default$4 as MainLayout, _default$5 as MarkdownContent, MetaLocaleOptions, MetaLocateData, NavGroup, NavItemOptions, NavbarComponent, NavbarGroupOptions, NavbarItem, NavbarLayoutOptions, NavbarLinkItem, NavbarLinkOptions, NavbarLocaleData, NavbarLocaleOptions, NavbarOptions, _default$6 as NotFound, OutlookLocaleData, _default$7 as PageContent, PageInfoData, PageInfoType, PageType, PaginationLocaleData, PasswordConfig, PasswordOptions, PortfolioAvatarSlotData, PortfolioBackgroundSlotData, PortfolioInfoSlotData, PortfolioMedia, _default$8 as PrintButton, RouteLocaleData, SidebarArrayOptions, SidebarDirInfo, SidebarFileInfo, SidebarGroupItem, SidebarGroupOptions, SidebarInfo, SidebarItem, SidebarItemOptions, SidebarItemsSlotData, SidebarLinkItem, SidebarLinkOptions, SidebarLocaleOptions, SidebarObjectOptions, SidebarOptions, SidebarSorter, SidebarSorterFunction, SidebarSorterKeyword, SidebarStructureOptions, _default$9 as SkipLink, StructureSidebarDirOptions, Style, ThemeBasePageFrontmatter, ThemeBlogHomePageFrontmatter, ThemeBlogHomeProjectOptions, _default$10 as ThemeColorPicker, ThemeData, ThemeHomePageFrontmatter, ThemeLocaleConfig, ThemeLocaleData, ThemeLocaleOptions, ThemeNormalPageFrontmatter, ThemePageData, ThemePortfolioFrontmatter, ThemeProjectHomeActionOptions, ThemeProjectHomeFeatureItem, ThemeProjectHomeFeatureOptions, ThemeProjectHomeHighlightItem, ThemeProjectHomeHighlightOptions, ThemeProjectHomePageFrontmatter, TocSlotData, _default$11 as ToggleFullScreenButton, getAuthor, getCategory, getStringArray, getTag, useAuthorInfo, useDarkMode, useData, useMetaInfo, useNavigate, usePageInfo, usePure, useRelatedLinks, useTheme, useWindowSize }; //# sourceMappingURL=index.d.ts.map