@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.
Files changed (62) hide show
  1. package/dist/client/{Swetrix-k7SUudua.js → Swetrix-GKEyGNrV.js} +29 -6
  2. package/dist/client/index.js +54 -54
  3. package/dist/client/styles.css +1 -1
  4. package/dist/client/types/index.d.ts +8 -0
  5. package/dist/node/composables.d.mts +9 -0
  6. package/dist/node/composables.mjs +33 -1
  7. package/package.json +20 -22
  8. package/src/client/components/DonationWidget.vue +9 -3
  9. package/src/client/components/Footer.vue +11 -4
  10. package/src/client/components/Link.vue +11 -5
  11. package/src/client/components/LocaleSwitcher.vue +5 -5
  12. package/src/client/components/PostDate.test.ts +16 -7
  13. package/src/client/components/PostDate.vue +16 -7
  14. package/src/client/components/PostItem.vue +17 -7
  15. package/src/client/components/PostList.vue +7 -4
  16. package/src/client/components/ProjectCard.vue +42 -14
  17. package/src/client/components/ProjectList.vue +12 -5
  18. package/src/client/components/RouterLink.vue +3 -3
  19. package/src/client/components/SharingWidget.vue +3 -1
  20. package/src/client/components/StatusBadge.vue +10 -10
  21. package/src/client/components/TermBadge.vue +11 -7
  22. package/src/client/components/TermLink.vue +4 -4
  23. package/src/client/composables/date.ts +1 -1
  24. package/src/client/composables/lang.test.ts +6 -2
  25. package/src/client/composables/lang.ts +12 -5
  26. package/src/client/composables/locale.ts +4 -1
  27. package/src/client/composables/project.ts +3 -3
  28. package/src/client/composables/rank.ts +5 -2
  29. package/src/client/index.ts +1 -1
  30. package/src/client/layouts/Layout.vue +2 -2
  31. package/src/client/pages/ArchivesPage.vue +10 -5
  32. package/src/client/pages/CategoriesPage.vue +13 -5
  33. package/src/client/pages/HomePage.vue +3 -3
  34. package/src/client/pages/Page.vue +13 -11
  35. package/src/client/pages/PostsPage.vue +4 -4
  36. package/src/client/pages/ProjectsPage.vue +10 -7
  37. package/src/client/pages/TagsPage.vue +10 -4
  38. package/src/client/plugins/donation/components/Donation.vue +5 -3
  39. package/src/client/plugins/donation/components/DonationButton.vue +3 -1
  40. package/src/client/plugins/donation/index.ts +11 -8
  41. package/src/client/plugins/i18n/index.ts +2 -2
  42. package/src/client/plugins/sharing/components/Sharing.vue +39 -15
  43. package/src/client/plugins/sharing/components/SharingButton.vue +34 -14
  44. package/src/client/plugins/sharing/index.ts +3 -1
  45. package/src/client/styles/base.css +1 -1
  46. package/src/client/styles/blog.css +38 -14
  47. package/src/client/styles/index.css +2 -3
  48. package/src/client/types/index.ts +8 -0
  49. package/src/node/composables/excerpt.test.ts +88 -0
  50. package/src/node/composables/excerpt.ts +57 -0
  51. package/src/node/composables/index.ts +1 -0
  52. package/src/node/composables/markdown.ts +8 -2
  53. package/src/node/composables/route.ts +15 -7
  54. package/src/node/composables/slug.ts +12 -4
  55. package/src/node/config.ts +20 -14
  56. package/src/shared/composables/useSlug.ts +2 -1
  57. package/dist/node/composables/index.d.ts +0 -3
  58. package/dist/node/composables/markdown.d.ts +0 -2
  59. package/dist/node/composables/route.d.ts +0 -15
  60. package/dist/node/composables/slug.d.ts +0 -7
  61. package/dist/node/composables/types.d.ts +0 -7
  62. package/dist/node/config.d.ts +0 -45
@@ -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;