valaxy 0.20.4 → 0.20.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 (64) hide show
  1. package/client/components/ValaxyApp.vue +10 -10
  2. package/client/components/ValaxyDecrypt.vue +1 -0
  3. package/client/components/ValaxyGalleryDecrypt.vue +1 -0
  4. package/client/components/ValaxyMd.vue +3 -3
  5. package/client/components/builtin/ValaxyMermaid.vue +40 -41
  6. package/client/composables/app/useValaxyHead.ts +3 -3
  7. package/client/composables/categories.ts +1 -1
  8. package/client/composables/codeGroups.ts +1 -1
  9. package/client/composables/collections.ts +1 -1
  10. package/client/composables/common.ts +3 -3
  11. package/client/composables/features/collapse-code.ts +1 -1
  12. package/client/composables/features/copy-code.ts +1 -0
  13. package/client/composables/features/index.ts +1 -1
  14. package/client/composables/helper/useInvisibleElement.ts +1 -1
  15. package/client/composables/index.ts +10 -10
  16. package/client/composables/locale.ts +4 -2
  17. package/client/composables/outline/anchor.ts +1 -1
  18. package/client/composables/outline/headers.ts +3 -3
  19. package/client/composables/outline/index.ts +1 -1
  20. package/client/composables/post/index.ts +3 -3
  21. package/client/composables/search/index.ts +1 -1
  22. package/client/composables/search/{fuse.ts → useFuseSearch.ts} +11 -7
  23. package/client/composables/tags.ts +1 -1
  24. package/client/composables/widgets/aplayer.ts +1 -1
  25. package/client/config.ts +8 -8
  26. package/client/index.ts +5 -5
  27. package/client/main.ts +15 -15
  28. package/client/modules/devtools.ts +1 -1
  29. package/client/modules/floating-vue.ts +3 -3
  30. package/client/modules/mermaid.ts +3 -3
  31. package/client/modules/nprogress.ts +1 -1
  32. package/client/modules/pinia.ts +1 -1
  33. package/client/modules/schemaOrg.ts +1 -1
  34. package/client/modules/valaxy.ts +6 -6
  35. package/client/setup/main.ts +7 -7
  36. package/client/setup/mermaid.ts +1 -1
  37. package/client/setups.ts +1 -1
  38. package/client/stores/app.ts +1 -1
  39. package/client/stores/site.ts +2 -2
  40. package/client/types/index.ts +1 -1
  41. package/client/utils/index.ts +3 -3
  42. package/client/utils/time.ts +3 -3
  43. package/dist/chunk-BQRH2D76.mjs +162 -0
  44. package/dist/chunk-F3UFLKIV.cjs +161 -0
  45. package/dist/node/cli/index.cjs +1 -1
  46. package/dist/node/cli/index.mjs +1 -1
  47. package/dist/node/index.cjs +1 -1
  48. package/dist/node/index.d.cts +86 -86
  49. package/dist/node/index.d.ts +86 -86
  50. package/dist/node/index.mjs +1 -1
  51. package/dist/types/index.cjs +1 -1
  52. package/dist/types/index.d.cts +3 -3
  53. package/dist/types/index.d.ts +3 -3
  54. package/dist/types/index.mjs +1 -1
  55. package/package.json +25 -25
  56. package/shims.d.ts +2 -2
  57. package/types/config.ts +1 -1
  58. package/types/index.ts +3 -3
  59. package/dist/chunk-RPJK52Q7.mjs +0 -162
  60. package/dist/chunk-SEN6YL7Y.cjs +0 -161
  61. package/dist/{chunk-7EKNBB3E.cjs → chunk-6GE64PZD.cjs} +0 -0
  62. package/dist/{chunk-AUDFAOQV.mjs → chunk-WE2LNW3F.mjs} +0 -0
  63. package/dist/{config-DfXD9Gt_.d.cts → config-Dxu7i2Zs.d.cts} +1 -1
  64. package/dist/{config-DfXD9Gt_.d.ts → config-Dxu7i2Zs.d.ts} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { acceptHMRUpdate, defineStore } from 'pinia'
2
- import { computed, ref } from 'vue'
3
2
  import { useMobile, useSiteConfig, useThemeConfig, useValaxyDark } from 'valaxy'
3
+ import { computed, ref } from 'vue'
4
4
 
5
5
  /**
6
6
  * Global store for users
@@ -1,7 +1,7 @@
1
- import { computed, ref } from 'vue'
1
+ import type { PageDataPayload } from '../../types'
2
2
  import { acceptHMRUpdate, defineStore } from 'pinia'
3
+ import { computed, ref } from 'vue'
3
4
  import { usePostList, useRouterStore } from '..'
4
- import type { PageDataPayload } from '../../types'
5
5
  import { setWindowValaxyProp } from '../utils/dev'
6
6
 
7
7
  /**
@@ -1,5 +1,5 @@
1
- import type { ViteSSGContext } from 'vite-ssg'
2
1
  import type mermaid from 'mermaid'
2
+ import type { ViteSSGContext } from 'vite-ssg'
3
3
 
4
4
  export type UserModule = (ctx: ViteSSGContext) => void
5
5
 
@@ -1,8 +1,8 @@
1
1
  export * from './cdn'
2
2
  export * from './code'
3
+ export * from './content'
3
4
  export * from './helper'
5
+ export * from './router'
4
6
  export * from './time'
5
- export * from './wrap'
6
7
  export * from './types'
7
- export * from './content'
8
- export * from './router'
8
+ export * from './wrap'
@@ -1,10 +1,10 @@
1
1
  import type { ToDateOptionsWithTZ } from 'date-fns-tz'
2
- import { format as formatWithTZ, toZonedTime } from 'date-fns-tz'
2
+ import type { Post } from '../../types'
3
3
  import { format, toDate } from 'date-fns'
4
+ import { format as formatWithTZ, toZonedTime } from 'date-fns-tz'
4
5
  import { DateTime } from 'luxon'
5
- import type { Post } from '../../types'
6
- import { i18n } from '../modules/valaxy'
7
6
  import { timezone as globalTimezone } from '../composables/global'
7
+ import { i18n } from '../modules/valaxy'
8
8
 
9
9
  const referenceDate = new Date(1986, 3 /* Apr */, 4, 10, 32, 0, 900)
10
10