@ansidev-oss/vitepress-theme-ansidev 1.0.6

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 (72) hide show
  1. package/LICENSE +21 -0
  2. package/dist/client/Donation-D9Xn0MPt.js +76 -0
  3. package/dist/client/GoogleAnalytics-Dp3EGn1x.js +29 -0
  4. package/dist/client/VPAlgoliaSearchBox-DXE-LCVf.js +126 -0
  5. package/dist/client/VPCarbonAds-Czmm53YE.js +31 -0
  6. package/dist/client/VPLocalSearchBox-ihwA4uH-.js +4086 -0
  7. package/dist/client/composables/date.d.ts +2 -0
  8. package/dist/client/composables/index.d.ts +4 -0
  9. package/dist/client/composables/locale.d.ts +3 -0
  10. package/dist/client/composables/project.d.ts +13 -0
  11. package/dist/client/composables/rank.d.ts +1 -0
  12. package/dist/client/composables/slug.d.ts +2 -0
  13. package/dist/client/index-BtT3qA6T.js +12663 -0
  14. package/dist/client/index-CCR5sUM8.js +10688 -0
  15. package/dist/client/index-CZCdwVUW.js +7566 -0
  16. package/dist/client/index.d.ts +6 -0
  17. package/dist/client/index.js +5 -0
  18. package/dist/client/plugins/donation/index.d.ts +19 -0
  19. package/dist/client/plugins/google-analytics/index.d.ts +8 -0
  20. package/dist/client/plugins/i18n/index.d.ts +53 -0
  21. package/dist/client/styles.css +1 -0
  22. package/dist/client/types/index.d.ts +45 -0
  23. package/dist/node/composables.d.mts +30 -0
  24. package/dist/node/composables.mjs +51 -0
  25. package/dist/node/config.d.mts +46 -0
  26. package/dist/node/config.mjs +47 -0
  27. package/package.json +87 -0
  28. package/src/client/components/EmptyFooter.vue +3 -0
  29. package/src/client/components/Footer.vue +87 -0
  30. package/src/client/components/Link.vue +31 -0
  31. package/src/client/components/LocaleSwitcher.vue +59 -0
  32. package/src/client/components/PostDate.vue +42 -0
  33. package/src/client/components/PostItem.vue +33 -0
  34. package/src/client/components/PostList.vue +23 -0
  35. package/src/client/components/ProjectCard.vue +68 -0
  36. package/src/client/components/ProjectList.vue +23 -0
  37. package/src/client/components/RouterLink.vue +19 -0
  38. package/src/client/components/StatusBadge.vue +56 -0
  39. package/src/client/components/TermBadge.vue +29 -0
  40. package/src/client/components/TermLink.vue +25 -0
  41. package/src/client/composables/date.ts +12 -0
  42. package/src/client/composables/index.ts +4 -0
  43. package/src/client/composables/locale.ts +7 -0
  44. package/src/client/composables/project.ts +30 -0
  45. package/src/client/composables/rank.ts +13 -0
  46. package/src/client/composables/slug.ts +12 -0
  47. package/src/client/index.ts +43 -0
  48. package/src/client/layouts/Layout.vue +25 -0
  49. package/src/client/pages/ArchivesPage.vue +43 -0
  50. package/src/client/pages/CategoriesPage.vue +30 -0
  51. package/src/client/pages/HomePage.vue +18 -0
  52. package/src/client/pages/Page.vue +20 -0
  53. package/src/client/pages/PostsPage.vue +23 -0
  54. package/src/client/pages/ProjectsPage.vue +65 -0
  55. package/src/client/pages/TagsPage.vue +30 -0
  56. package/src/client/plugins/donation/components/Donation.vue +43 -0
  57. package/src/client/plugins/donation/components/DonationButton.vue +22 -0
  58. package/src/client/plugins/donation/index.ts +42 -0
  59. package/src/client/plugins/google-analytics/components/GoogleAnalytics.vue +52 -0
  60. package/src/client/plugins/google-analytics/index.ts +8 -0
  61. package/src/client/plugins/i18n/index.ts +13 -0
  62. package/src/client/plugins/i18n/locales/en.json +25 -0
  63. package/src/client/plugins/i18n/locales/vi.json +25 -0
  64. package/src/client/styles/index.css +30 -0
  65. package/src/client/types/index.ts +50 -0
  66. package/src/node/composables/index.ts +3 -0
  67. package/src/node/composables/markdown.ts +14 -0
  68. package/src/node/composables/route.ts +26 -0
  69. package/src/node/composables/slug.ts +40 -0
  70. package/src/node/composables/types.ts +7 -0
  71. package/src/node/config.ts +79 -0
  72. package/src/vite-env.d.ts +7 -0
@@ -0,0 +1,6 @@
1
+ import type { Theme } from 'vitepress';
2
+ import './styles/index.css';
3
+ export type * from './types';
4
+ declare const theme: Theme;
5
+ export type { DonationPluginConfig, GoogleAnalyticsOptions, Post, PostDate, Project, ThemeConfig, } from './types';
6
+ export default theme;
@@ -0,0 +1,5 @@
1
+ import "@iconify/vue";
2
+ import { k as a } from "./index-CZCdwVUW.js";
3
+ export {
4
+ a as default
5
+ };
@@ -0,0 +1,19 @@
1
+ export declare interface DonationPluginConfig {
2
+ buymeacoffee?: string;
3
+ kofi?: string;
4
+ paypal?: string;
5
+ custom?: {
6
+ [key: string]: CustomDonationConfig;
7
+ };
8
+ }
9
+ export declare interface CustomDonationBaseConfig {
10
+ donationBaseUrl: string;
11
+ donationButtonImage: string;
12
+ donationButtonStyle?: Record<string, string>;
13
+ }
14
+ export declare interface CustomDonationConfig extends CustomDonationBaseConfig {
15
+ donationId: string;
16
+ }
17
+ export declare const supportedDonationPlatforms: {
18
+ [key: string]: CustomDonationBaseConfig;
19
+ };
@@ -0,0 +1,8 @@
1
+ export interface GoogleAnalyticsOptions {
2
+ /**
3
+ * The Google Analytics ID.
4
+ *
5
+ * @default process.env.VITE_GA_ID
6
+ */
7
+ id: string;
8
+ }
@@ -0,0 +1,53 @@
1
+ declare const _default: import("vue-i18n").I18n<{
2
+ en: {
3
+ button: {
4
+ toggle_locale: string;
5
+ read_more: string;
6
+ };
7
+ all_posts: string;
8
+ posted_on: string;
9
+ my_projects: string;
10
+ categories: string;
11
+ tags: string;
12
+ archives: string;
13
+ no_post: string;
14
+ no_category: string;
15
+ no_tag: string;
16
+ no_archive: string;
17
+ license: string;
18
+ source_code: string;
19
+ technologies: string;
20
+ development_status: {
21
+ title: string;
22
+ active: string;
23
+ inactive: string;
24
+ unmaintained: string;
25
+ };
26
+ };
27
+ vi: {
28
+ button: {
29
+ toggle_locale: string;
30
+ read_more: string;
31
+ };
32
+ all_posts: string;
33
+ posted_on: string;
34
+ my_projects: string;
35
+ categories: string;
36
+ tags: string;
37
+ archives: string;
38
+ no_post: string;
39
+ no_category: string;
40
+ no_archive: string;
41
+ no_tag: string;
42
+ license: string;
43
+ source_code: string;
44
+ technologies: string;
45
+ development_status: {
46
+ title: string;
47
+ active: string;
48
+ inactive: string;
49
+ unmaintained: string;
50
+ };
51
+ };
52
+ }, {}, {}, string, false>;
53
+ export default _default;