@ansidev-oss/vitepress-theme-ansidev 1.1.0 → 1.2.0
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/{Swetrix-k7SUudua.js → Swetrix-GKEyGNrV.js} +29 -6
- package/dist/client/index.js +54 -54
- package/dist/client/styles.css +1 -1
- package/dist/client/types/index.d.ts +8 -0
- package/dist/node/composables.d.mts +9 -0
- package/dist/node/composables.mjs +33 -1
- package/package.json +20 -22
- package/src/client/components/DonationWidget.vue +9 -3
- package/src/client/components/Footer.vue +11 -4
- package/src/client/components/Link.vue +11 -5
- package/src/client/components/LocaleSwitcher.vue +5 -5
- package/src/client/components/PostDate.test.ts +16 -7
- package/src/client/components/PostDate.vue +16 -7
- package/src/client/components/PostItem.vue +17 -7
- package/src/client/components/PostList.vue +7 -4
- package/src/client/components/ProjectCard.vue +42 -14
- package/src/client/components/ProjectList.vue +12 -5
- package/src/client/components/RouterLink.vue +3 -3
- package/src/client/components/SharingWidget.vue +3 -1
- package/src/client/components/StatusBadge.vue +10 -10
- package/src/client/components/TermBadge.vue +11 -7
- package/src/client/components/TermLink.vue +4 -4
- package/src/client/composables/date.ts +1 -1
- package/src/client/composables/lang.test.ts +6 -2
- package/src/client/composables/lang.ts +12 -5
- package/src/client/composables/locale.ts +4 -1
- package/src/client/composables/project.ts +3 -3
- package/src/client/composables/rank.ts +5 -2
- package/src/client/index.ts +1 -1
- package/src/client/layouts/Layout.vue +2 -2
- package/src/client/pages/ArchivesPage.vue +10 -5
- package/src/client/pages/CategoriesPage.vue +13 -5
- package/src/client/pages/HomePage.vue +3 -3
- package/src/client/pages/Page.vue +13 -11
- package/src/client/pages/PostsPage.vue +4 -4
- package/src/client/pages/ProjectsPage.vue +10 -7
- package/src/client/pages/TagsPage.vue +10 -4
- package/src/client/plugins/donation/components/Donation.vue +5 -3
- package/src/client/plugins/donation/components/DonationButton.vue +3 -1
- package/src/client/plugins/donation/index.ts +11 -8
- package/src/client/plugins/i18n/index.ts +2 -2
- package/src/client/plugins/sharing/components/Sharing.vue +39 -15
- package/src/client/plugins/sharing/components/SharingButton.vue +34 -14
- package/src/client/plugins/sharing/index.ts +3 -1
- package/src/client/styles/base.css +1 -1
- package/src/client/styles/blog.css +38 -14
- package/src/client/styles/index.css +2 -3
- package/src/client/types/index.ts +8 -0
- package/src/node/composables/excerpt.test.ts +88 -0
- package/src/node/composables/excerpt.ts +57 -0
- package/src/node/composables/index.ts +1 -0
- package/src/node/composables/markdown.ts +8 -2
- package/src/node/composables/route.ts +15 -7
- package/src/node/composables/slug.ts +12 -4
- package/src/node/config.ts +20 -14
- package/src/shared/composables/useSlug.ts +2 -1
- package/dist/node/composables/index.d.ts +0 -3
- package/dist/node/composables/markdown.d.ts +0 -2
- package/dist/node/composables/route.d.ts +0 -15
- package/dist/node/composables/slug.d.ts +0 -7
- package/dist/node/composables/types.d.ts +0 -7
- package/dist/node/config.d.ts +0 -45
package/dist/node/config.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { UserConfig } from 'vitepress';
|
|
2
|
-
import type { ThemeConfig } from '../client/types';
|
|
3
|
-
/**
|
|
4
|
-
* @type {import('vitepress').UserConfig}
|
|
5
|
-
*/
|
|
6
|
-
declare const baseConfig: {
|
|
7
|
-
themeConfig: {
|
|
8
|
-
siteURL: string;
|
|
9
|
-
googleAnalytics: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
search: {
|
|
13
|
-
provider: string;
|
|
14
|
-
options: {
|
|
15
|
-
/**
|
|
16
|
-
* @param {string} src
|
|
17
|
-
* @param {import('vitepress').MarkdownEnv} env
|
|
18
|
-
* @param {import('markdown-it')} md
|
|
19
|
-
*/
|
|
20
|
-
_render(src: any, env: any, md: any): Promise<string>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
vite: {
|
|
25
|
-
ssr: {
|
|
26
|
-
noExternal: string[];
|
|
27
|
-
};
|
|
28
|
-
optimizeDeps: {
|
|
29
|
-
exclude: string[];
|
|
30
|
-
};
|
|
31
|
-
css: {
|
|
32
|
-
preprocessorOptions: {
|
|
33
|
-
scss: {
|
|
34
|
-
api: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Helper function to define theme configuration with proper typing
|
|
42
|
-
* Note: TailwindCSS plugin should be added in vite.config.ts, not here
|
|
43
|
-
*/
|
|
44
|
-
export declare function defineWithDefaultThemeConfig(config?: UserConfig<ThemeConfig>): UserConfig<ThemeConfig>;
|
|
45
|
-
export default baseConfig;
|