@hefou/dux 0.0.0-stage → 1.0.1
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/LICENSE +21 -0
- package/README.md +121 -2
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/Layout.cjs +1 -0
- package/dist/cjs/components/Layout.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Badge.cjs +1 -0
- package/dist/cjs/components/common/Badge.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/NavDropdown.cjs +1 -0
- package/dist/cjs/components/common/NavDropdown.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/PageHero.cjs +1 -0
- package/dist/cjs/components/common/PageHero.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/SocialIcons.cjs +1 -0
- package/dist/cjs/components/common/SocialIcons.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/docs/DocFooter.cjs +1 -0
- package/dist/cjs/components/docs/DocFooter.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/docs/Outline.cjs +1 -0
- package/dist/cjs/components/docs/Outline.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/docs/Sidebar.cjs +1 -0
- package/dist/cjs/components/docs/Sidebar.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/home/Features.cjs +1 -0
- package/dist/cjs/components/home/Features.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/home/Hero.cjs +1 -0
- package/dist/cjs/components/home/Hero.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/home/QuickStart.cjs +1 -0
- package/dist/cjs/components/home/QuickStart.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/layout/Footer.cjs +1 -0
- package/dist/cjs/components/layout/Footer.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/layout/Header.cjs +1 -0
- package/dist/cjs/components/layout/Header.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/ChangeLog.cjs +1 -0
- package/dist/cjs/components/pages/ChangeLog.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/Doc.cjs +1 -0
- package/dist/cjs/components/pages/Doc.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/Home.cjs +1 -0
- package/dist/cjs/components/pages/Home.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/Jump.cjs +1 -0
- package/dist/cjs/components/pages/Jump.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/NotFound.cjs +1 -0
- package/dist/cjs/components/pages/NotFound.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/SinglePage.cjs +1 -0
- package/dist/cjs/components/pages/SinglePage.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/pages/Sponsor.cjs +1 -0
- package/dist/cjs/components/pages/Sponsor.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/search/MiniSearchModal.cjs +1 -0
- package/dist/cjs/components/search/MiniSearchModal.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/search/SearchButton.cjs +1 -0
- package/dist/cjs/components/search/SearchButton.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/composables/search.data.cjs +1 -0
- package/dist/cjs/composables/useIcon.cjs +1 -0
- package/dist/cjs/composables/useLink.cjs +1 -0
- package/dist/cjs/composables/useLocale.cjs +1 -0
- package/dist/cjs/composables/useReadingTime.cjs +1 -0
- package/dist/cjs/composables/useSearch.cjs +1 -0
- package/dist/cjs/config.cjs +1 -0
- package/dist/cjs/dux.css +3 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/locales/de-DE.cjs +1 -0
- package/dist/cjs/locales/en-US.cjs +1 -0
- package/dist/cjs/locales/es-ES.cjs +1 -0
- package/dist/cjs/locales/fr-FR.cjs +1 -0
- package/dist/cjs/locales/ja-JP.cjs +1 -0
- package/dist/cjs/locales/ko-KR.cjs +1 -0
- package/dist/cjs/locales/ru-RU.cjs +1 -0
- package/dist/cjs/locales/zh-CN.cjs +1 -0
- package/dist/cjs/locales/zh-TW.cjs +1 -0
- package/dist/cjs/shims/dayjs.cjs +1 -0
- package/dist/cjs/shims/sanitize-url.cjs +1 -0
- package/dist/esm/components/Layout.js +4 -0
- package/dist/esm/components/Layout.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/esm/components/common/Badge.js +4 -0
- package/dist/esm/components/common/Badge.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/esm/components/common/NavDropdown.js +4 -0
- package/dist/esm/components/common/NavDropdown.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/esm/components/common/PageHero.js +4 -0
- package/dist/esm/components/common/PageHero.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/esm/components/common/SocialIcons.js +4 -0
- package/dist/esm/components/common/SocialIcons.vue_vue_type_script_setup_true_lang.js +87 -0
- package/dist/esm/components/docs/DocFooter.js +4 -0
- package/dist/esm/components/docs/DocFooter.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/esm/components/docs/Outline.js +4 -0
- package/dist/esm/components/docs/Outline.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/esm/components/docs/Sidebar.js +4 -0
- package/dist/esm/components/docs/Sidebar.vue_vue_type_script_setup_true_lang.js +88 -0
- package/dist/esm/components/home/Features.js +4 -0
- package/dist/esm/components/home/Features.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/esm/components/home/Hero.js +4 -0
- package/dist/esm/components/home/Hero.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/esm/components/home/QuickStart.js +4 -0
- package/dist/esm/components/home/QuickStart.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/esm/components/layout/Footer.js +4 -0
- package/dist/esm/components/layout/Footer.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/esm/components/layout/Header.js +4 -0
- package/dist/esm/components/layout/Header.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/esm/components/pages/ChangeLog.js +4 -0
- package/dist/esm/components/pages/ChangeLog.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/esm/components/pages/Doc.js +4 -0
- package/dist/esm/components/pages/Doc.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/esm/components/pages/Home.js +4 -0
- package/dist/esm/components/pages/Home.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/esm/components/pages/Jump.js +4 -0
- package/dist/esm/components/pages/Jump.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/esm/components/pages/NotFound.js +4 -0
- package/dist/esm/components/pages/NotFound.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/esm/components/pages/SinglePage.js +4 -0
- package/dist/esm/components/pages/SinglePage.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/esm/components/pages/Sponsor.js +4 -0
- package/dist/esm/components/pages/Sponsor.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/esm/components/search/MiniSearchModal.js +4 -0
- package/dist/esm/components/search/MiniSearchModal.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/esm/components/search/SearchButton.js +4 -0
- package/dist/esm/components/search/SearchButton.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/esm/composables/search.data.js +20 -0
- package/dist/esm/composables/useIcon.js +12 -0
- package/dist/esm/composables/useLink.js +30 -0
- package/dist/esm/composables/useLocale.js +55 -0
- package/dist/esm/composables/useReadingTime.js +36 -0
- package/dist/esm/composables/useSearch.js +71 -0
- package/dist/esm/config.js +58 -0
- package/dist/esm/dux.css +3 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/locales/de-DE.js +72 -0
- package/dist/esm/locales/en-US.js +72 -0
- package/dist/esm/locales/es-ES.js +72 -0
- package/dist/esm/locales/fr-FR.js +72 -0
- package/dist/esm/locales/ja-JP.js +72 -0
- package/dist/esm/locales/ko-KR.js +72 -0
- package/dist/esm/locales/ru-RU.js +72 -0
- package/dist/esm/locales/zh-CN.js +72 -0
- package/dist/esm/locales/zh-TW.js +72 -0
- package/dist/esm/shims/dayjs.js +5 -0
- package/dist/esm/shims/sanitize-url.js +5 -0
- package/dist/types/components/Layout.vue.d.ts +3 -0
- package/dist/types/components/common/Badge.vue.d.ts +9 -0
- package/dist/types/components/common/NavDropdown.vue.d.ts +16 -0
- package/dist/types/components/common/PageHero.vue.d.ts +27 -0
- package/dist/types/components/common/SocialIcons.vue.d.ts +9 -0
- package/dist/types/components/docs/DocFooter.vue.d.ts +3 -0
- package/dist/types/components/docs/Outline.vue.d.ts +3 -0
- package/dist/types/components/docs/Sidebar.vue.d.ts +3 -0
- package/dist/types/components/home/Features.vue.d.ts +18 -0
- package/dist/types/components/home/Hero.vue.d.ts +33 -0
- package/dist/types/components/home/QuickStart.vue.d.ts +22 -0
- package/dist/types/components/layout/Footer.vue.d.ts +10 -0
- package/dist/types/components/layout/Header.vue.d.ts +10 -0
- package/dist/types/components/pages/ChangeLog.vue.d.ts +3 -0
- package/dist/types/components/pages/Doc.vue.d.ts +3 -0
- package/dist/types/components/pages/Home.vue.d.ts +3 -0
- package/dist/types/components/pages/Jump.vue.d.ts +3 -0
- package/dist/types/components/pages/NotFound.vue.d.ts +3 -0
- package/dist/types/components/pages/SinglePage.vue.d.ts +3 -0
- package/dist/types/components/pages/Sponsor.vue.d.ts +3 -0
- package/dist/types/components/search/MiniSearchModal.vue.d.ts +3 -0
- package/dist/types/components/search/SearchButton.vue.d.ts +3 -0
- package/dist/types/composables/search.data.d.ts +3 -0
- package/dist/types/composables/useIcon.d.ts +11 -0
- package/dist/types/composables/useLink.d.ts +10 -0
- package/dist/types/composables/useLocale.d.ts +12 -0
- package/dist/types/composables/useReadingTime.d.ts +9 -0
- package/dist/types/composables/useSearch.d.ts +65 -0
- package/dist/types/config.d.ts +6 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/types/index.d.ts +65 -0
- package/package.json +87 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
type?: 'info' | 'tip' | 'warning' | 'danger' | 'default';
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
|
+
type: "default" | "warning" | "danger" | "info" | "tip";
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface NavItem {
|
|
2
|
+
text: string;
|
|
3
|
+
link?: string;
|
|
4
|
+
items?: NavItem[];
|
|
5
|
+
target?: string;
|
|
6
|
+
activeMatch?: string;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
item: NavItem;
|
|
10
|
+
depth?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
13
|
+
depth: number;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
align?: 'left' | 'center';
|
|
6
|
+
color?: 'primary' | 'sponsor' | 'success' | 'warning' | 'danger' | 'info' | 'gray';
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_template: () => {
|
|
10
|
+
__VLS_Slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
|
+
size: "sm" | "md" | "lg";
|
|
17
|
+
color: "sponsor" | "primary" | "success" | "warning" | "danger" | "info" | "gray";
|
|
18
|
+
align: "center" | "left";
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
variant?: 'header' | 'footer';
|
|
3
|
+
class?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
6
|
+
variant: "footer" | "header";
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
features: any[];
|
|
3
|
+
config?: {
|
|
4
|
+
badge?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
extraSection?: {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
tags?: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface HeroAction {
|
|
2
|
+
text: string;
|
|
3
|
+
link: string;
|
|
4
|
+
theme?: 'brand' | 'alt';
|
|
5
|
+
target?: string;
|
|
6
|
+
}
|
|
7
|
+
interface HeroQrCode {
|
|
8
|
+
title: string;
|
|
9
|
+
image: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
link?: string;
|
|
13
|
+
}
|
|
14
|
+
interface HeroConfig {
|
|
15
|
+
name?: string;
|
|
16
|
+
text?: string;
|
|
17
|
+
tagline?: string;
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
image?: {
|
|
20
|
+
src: string;
|
|
21
|
+
alt?: string;
|
|
22
|
+
} | false;
|
|
23
|
+
actions?: HeroAction[];
|
|
24
|
+
mockUrl?: string;
|
|
25
|
+
qrCodes?: HeroQrCode[];
|
|
26
|
+
qrCodeSize?: number | string;
|
|
27
|
+
}
|
|
28
|
+
interface Props {
|
|
29
|
+
hero: HeroConfig;
|
|
30
|
+
}
|
|
31
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
quickStart?: {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
badge?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
steps?: Array<{
|
|
8
|
+
step: string;
|
|
9
|
+
title: string;
|
|
10
|
+
description: string;
|
|
11
|
+
code: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
color: string;
|
|
14
|
+
}>;
|
|
15
|
+
helpText?: string;
|
|
16
|
+
helpLink?: string;
|
|
17
|
+
helpLinkText?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
footer: {
|
|
3
|
+
copyright?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
};
|
|
6
|
+
themeConfig: any;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DefaultTheme } from 'vitepress/theme';
|
|
2
|
+
interface Props {
|
|
3
|
+
themeConfig?: DefaultTheme.Config;
|
|
4
|
+
site?: any;
|
|
5
|
+
isDark?: boolean;
|
|
6
|
+
lang?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 处理图标类名的 composable
|
|
4
|
+
* 支持 emoji、heroicons 和自定义图标类
|
|
5
|
+
*/
|
|
6
|
+
export declare function useIcon(): {
|
|
7
|
+
getIconClass: (iconName: string | undefined) => string;
|
|
8
|
+
useIconClass: (icon: Ref<string | undefined>) => import("vue").ComputedRef<string>;
|
|
9
|
+
isEmoji: (icon: string | undefined) => boolean;
|
|
10
|
+
isImageUrl: (icon: string | undefined) => boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 处理链接和资源路径,自动添加 base 前缀
|
|
3
|
+
*/
|
|
4
|
+
export declare function useLink(): {
|
|
5
|
+
isExternalLink: (link: string) => boolean;
|
|
6
|
+
resolveLink: (link: string | undefined) => string;
|
|
7
|
+
resolveAsset: (path: string | undefined) => string;
|
|
8
|
+
resolveNavLinks: (items: any[]) => any[];
|
|
9
|
+
resolveSidebarLinks: (sidebar: any) => any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import enUS from '../locales/en-US.json';
|
|
2
|
+
/**
|
|
3
|
+
* 获取当前语言的本地化文本
|
|
4
|
+
* @param section 区域名称 (notFound, sponsor)
|
|
5
|
+
* @returns 本地化文本对象
|
|
6
|
+
*/
|
|
7
|
+
export declare function useLocale(section: keyof typeof enUS): import("vue").ComputedRef<any>;
|
|
8
|
+
/**
|
|
9
|
+
* 获取支持的语言列表
|
|
10
|
+
* @returns 语言代码数组
|
|
11
|
+
*/
|
|
12
|
+
export declare function getSupportedLocales(): string[];
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import MiniSearch from 'minisearch';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
export interface SearchResult {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
text: string;
|
|
7
|
+
url: string;
|
|
8
|
+
section?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const isSearchOpen: Ref<boolean, boolean>;
|
|
11
|
+
export declare const searchQuery: Ref<string, string>;
|
|
12
|
+
export declare const searchResults: Ref<SearchResult[]>;
|
|
13
|
+
export declare const selectedIndex: Ref<number, number>;
|
|
14
|
+
export declare const searchIndex: Ref<{
|
|
15
|
+
add: (document: SearchResult) => void;
|
|
16
|
+
addAll: (documents: readonly SearchResult[]) => void;
|
|
17
|
+
addAllAsync: (documents: readonly SearchResult[], options?: {
|
|
18
|
+
chunkSize?: number;
|
|
19
|
+
}) => Promise<void>;
|
|
20
|
+
remove: (document: SearchResult) => void;
|
|
21
|
+
removeAll: (documents?: readonly SearchResult[]) => void;
|
|
22
|
+
discard: (id: any) => void;
|
|
23
|
+
discardAll: (ids: readonly any[]) => void;
|
|
24
|
+
replace: (updatedDocument: SearchResult) => void;
|
|
25
|
+
vacuum: (options?: import("minisearch").VacuumOptions) => Promise<void>;
|
|
26
|
+
readonly isVacuuming: boolean;
|
|
27
|
+
readonly dirtCount: number;
|
|
28
|
+
readonly dirtFactor: number;
|
|
29
|
+
has: (id: any) => boolean;
|
|
30
|
+
getStoredFields: (id: any) => Record<string, unknown> | undefined;
|
|
31
|
+
search: (query: import("minisearch").Query, searchOptions?: import("minisearch").SearchOptions) => import("minisearch").SearchResult[];
|
|
32
|
+
autoSuggest: (queryString: string, options?: import("minisearch").SearchOptions) => import("minisearch").Suggestion[];
|
|
33
|
+
readonly documentCount: number;
|
|
34
|
+
readonly termCount: number;
|
|
35
|
+
toJSON: () => import("minisearch").AsPlainObject;
|
|
36
|
+
}, MiniSearch<SearchResult> | {
|
|
37
|
+
add: (document: SearchResult) => void;
|
|
38
|
+
addAll: (documents: readonly SearchResult[]) => void;
|
|
39
|
+
addAllAsync: (documents: readonly SearchResult[], options?: {
|
|
40
|
+
chunkSize?: number;
|
|
41
|
+
}) => Promise<void>;
|
|
42
|
+
remove: (document: SearchResult) => void;
|
|
43
|
+
removeAll: (documents?: readonly SearchResult[]) => void;
|
|
44
|
+
discard: (id: any) => void;
|
|
45
|
+
discardAll: (ids: readonly any[]) => void;
|
|
46
|
+
replace: (updatedDocument: SearchResult) => void;
|
|
47
|
+
vacuum: (options?: import("minisearch").VacuumOptions) => Promise<void>;
|
|
48
|
+
readonly isVacuuming: boolean;
|
|
49
|
+
readonly dirtCount: number;
|
|
50
|
+
readonly dirtFactor: number;
|
|
51
|
+
has: (id: any) => boolean;
|
|
52
|
+
getStoredFields: (id: any) => Record<string, unknown> | undefined;
|
|
53
|
+
search: (query: import("minisearch").Query, searchOptions?: import("minisearch").SearchOptions) => import("minisearch").SearchResult[];
|
|
54
|
+
autoSuggest: (queryString: string, options?: import("minisearch").SearchOptions) => import("minisearch").Suggestion[];
|
|
55
|
+
readonly documentCount: number;
|
|
56
|
+
readonly termCount: number;
|
|
57
|
+
toJSON: () => import("minisearch").AsPlainObject;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const isLoading: Ref<boolean, boolean>;
|
|
60
|
+
export declare function initSearchIndex(): Promise<void>;
|
|
61
|
+
export declare function performSearch(query: string): void;
|
|
62
|
+
export declare function openSearch(): void;
|
|
63
|
+
export declare function closeSearch(): void;
|
|
64
|
+
export declare function selectResult(index: number, navigate?: (url: string) => void): void;
|
|
65
|
+
export declare function navigateResults(direction: 'up' | 'down'): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './styles/index.css';
|
|
2
|
+
export declare const theme: {
|
|
3
|
+
Layout: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
NotFound: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
enhanceApp({ app }: import("vitepress").EnhanceAppContext): void;
|
|
6
|
+
};
|
|
7
|
+
export default theme;
|
|
8
|
+
export { default as Layout } from './components/Layout.vue';
|
|
9
|
+
export { default as NotFound } from './components/pages/NotFound.vue';
|
|
10
|
+
export { default as Home } from './components/pages/Home.vue';
|
|
11
|
+
export { default as Doc } from './components/pages/Doc.vue';
|
|
12
|
+
export { default as SinglePage } from './components/pages/SinglePage.vue';
|
|
13
|
+
export { default as ChangeLog } from './components/pages/ChangeLog.vue';
|
|
14
|
+
export { default as Sponsor } from './components/pages/Sponsor.vue';
|
|
15
|
+
export { default as Jump } from './components/pages/Jump.vue';
|
|
16
|
+
export * from './types';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { DefaultTheme } from 'vitepress';
|
|
2
|
+
/**
|
|
3
|
+
* 多语言文本配置
|
|
4
|
+
*/
|
|
5
|
+
export interface LangConfig {
|
|
6
|
+
notFound?: {
|
|
7
|
+
title?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
backToHome?: string;
|
|
10
|
+
previousPage?: string;
|
|
11
|
+
};
|
|
12
|
+
sponsor?: {
|
|
13
|
+
selectPaymentMethod?: string;
|
|
14
|
+
recentSupporters?: string;
|
|
15
|
+
totalSupporters?: string;
|
|
16
|
+
totalAmount?: string;
|
|
17
|
+
};
|
|
18
|
+
search?: {
|
|
19
|
+
button?: {
|
|
20
|
+
buttonText?: string;
|
|
21
|
+
buttonAriaLabel?: string;
|
|
22
|
+
};
|
|
23
|
+
modal?: {
|
|
24
|
+
displayDetails?: string;
|
|
25
|
+
resetButtonTitle?: string;
|
|
26
|
+
backButtonTitle?: string;
|
|
27
|
+
noResultsText?: string;
|
|
28
|
+
footer?: {
|
|
29
|
+
selectText?: string;
|
|
30
|
+
selectKeyAriaLabel?: string;
|
|
31
|
+
navigateText?: string;
|
|
32
|
+
navigateUpKeyAriaLabel?: string;
|
|
33
|
+
navigateDownKeyAriaLabel?: string;
|
|
34
|
+
closeText?: string;
|
|
35
|
+
closeKeyAriaLabel?: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
sidebar?: {
|
|
40
|
+
toggleButtonText?: string;
|
|
41
|
+
mobileTitle?: string;
|
|
42
|
+
docNavTitle?: string;
|
|
43
|
+
};
|
|
44
|
+
docFooter?: {
|
|
45
|
+
editLinkText?: string;
|
|
46
|
+
lastUpdatedText?: string;
|
|
47
|
+
prevPageText?: string;
|
|
48
|
+
nextPageText?: string;
|
|
49
|
+
};
|
|
50
|
+
readingTime?: {
|
|
51
|
+
time?: string;
|
|
52
|
+
words?: string;
|
|
53
|
+
minute?: string;
|
|
54
|
+
minutes?: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Theme 配置接口
|
|
59
|
+
*/
|
|
60
|
+
export interface ThemeConfig extends DefaultTheme.Config {
|
|
61
|
+
/**
|
|
62
|
+
* 多语言文本配置
|
|
63
|
+
*/
|
|
64
|
+
langs?: LangConfig;
|
|
65
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,90 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hefou/dux",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "基于VitePress 文档主题,适配AI知识库与项目文档",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.cjs",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"style": "./dist/esm/dux.css",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/esm/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./config": {
|
|
17
|
+
"types": "./dist/types/config.d.ts",
|
|
18
|
+
"import": "./dist/esm/config.js",
|
|
19
|
+
"require": "./dist/cjs/config.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./shims/sanitize-url": {
|
|
22
|
+
"types": "./dist/types/shims/sanitize-url.d.ts",
|
|
23
|
+
"import": "./dist/esm/shims/sanitize-url.js",
|
|
24
|
+
"require": "./dist/cjs/shims/sanitize-url.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./shims/dayjs": {
|
|
27
|
+
"types": "./dist/types/shims/dayjs.d.ts",
|
|
28
|
+
"import": "./dist/esm/shims/dayjs.js",
|
|
29
|
+
"require": "./dist/cjs/shims/dayjs.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./dist/index.css": "./dist/esm/dux.css"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md",
|
|
36
|
+
"LICENSE"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@iconify/tailwind4": "^1.2.3",
|
|
40
|
+
"@vueuse/core": "^15.0.0",
|
|
41
|
+
"dayjs": "^1.11.23",
|
|
42
|
+
"minisearch": "^7.2.0",
|
|
43
|
+
"vitepress-mermaid-renderer": "^1.2.3"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@iconify-json/heroicons": "^1.2.3",
|
|
47
|
+
"@iconify-json/tabler": "^1.2.43",
|
|
48
|
+
"@iconify/tailwind": "^1.2.0",
|
|
49
|
+
"@tailwindcss/vite": "^4.3.5",
|
|
50
|
+
"@types/node": "^26.6.6",
|
|
51
|
+
"bumpp": "^12.3.0",
|
|
52
|
+
"tailwindcss": "^4.3.5",
|
|
53
|
+
"@vitejs/plugin-vue": "^6.0.10",
|
|
54
|
+
"rimraf": "^6.1.4",
|
|
55
|
+
"typescript": "^5.9.3",
|
|
56
|
+
"vite": "^8.3.7",
|
|
57
|
+
"vite-plugin-dts": "^5.1.2",
|
|
58
|
+
"vitepress": "^2.0.0-alpha.21",
|
|
59
|
+
"vue": "^3.5.45",
|
|
60
|
+
"vue-tsc": "^3.3.14"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"vitepress": "^1.6.4 || >=2.0.0-alpha.18 <3.0.0",
|
|
64
|
+
"vue": "^3.5.0"
|
|
65
|
+
},
|
|
66
|
+
"keywords": [
|
|
67
|
+
"vitepress",
|
|
68
|
+
"theme",
|
|
69
|
+
"hcf-ai",
|
|
70
|
+
"vue",
|
|
71
|
+
"documentation"
|
|
72
|
+
],
|
|
73
|
+
"author": "hefow",
|
|
74
|
+
"license": "MIT",
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"repository": {
|
|
79
|
+
"type": "git",
|
|
80
|
+
"url": "https://github.com/hefou/vpt",
|
|
81
|
+
"directory": "packages/dux"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"clean": "rimraf dist",
|
|
85
|
+
"build": "pnpm run clean && vite build && (vue-tsc --declaration --emitDeclarationOnly --outDir dist/types || true)",
|
|
86
|
+
"build:watch": "vite build --watch",
|
|
87
|
+
"dev": "pnpm run build:watch",
|
|
88
|
+
"release": "pnpm publish --access public"
|
|
89
|
+
}
|
|
6
90
|
}
|