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.
- package/client/components/ValaxyApp.vue +10 -10
- package/client/components/ValaxyDecrypt.vue +1 -0
- package/client/components/ValaxyGalleryDecrypt.vue +1 -0
- package/client/components/ValaxyMd.vue +3 -3
- package/client/components/builtin/ValaxyMermaid.vue +40 -41
- package/client/composables/app/useValaxyHead.ts +3 -3
- package/client/composables/categories.ts +1 -1
- package/client/composables/codeGroups.ts +1 -1
- package/client/composables/collections.ts +1 -1
- package/client/composables/common.ts +3 -3
- package/client/composables/features/collapse-code.ts +1 -1
- package/client/composables/features/copy-code.ts +1 -0
- package/client/composables/features/index.ts +1 -1
- package/client/composables/helper/useInvisibleElement.ts +1 -1
- package/client/composables/index.ts +10 -10
- package/client/composables/locale.ts +4 -2
- package/client/composables/outline/anchor.ts +1 -1
- package/client/composables/outline/headers.ts +3 -3
- package/client/composables/outline/index.ts +1 -1
- package/client/composables/post/index.ts +3 -3
- package/client/composables/search/index.ts +1 -1
- package/client/composables/search/{fuse.ts → useFuseSearch.ts} +11 -7
- package/client/composables/tags.ts +1 -1
- package/client/composables/widgets/aplayer.ts +1 -1
- package/client/config.ts +8 -8
- package/client/index.ts +5 -5
- package/client/main.ts +15 -15
- package/client/modules/devtools.ts +1 -1
- package/client/modules/floating-vue.ts +3 -3
- package/client/modules/mermaid.ts +3 -3
- package/client/modules/nprogress.ts +1 -1
- package/client/modules/pinia.ts +1 -1
- package/client/modules/schemaOrg.ts +1 -1
- package/client/modules/valaxy.ts +6 -6
- package/client/setup/main.ts +7 -7
- package/client/setup/mermaid.ts +1 -1
- package/client/setups.ts +1 -1
- package/client/stores/app.ts +1 -1
- package/client/stores/site.ts +2 -2
- package/client/types/index.ts +1 -1
- package/client/utils/index.ts +3 -3
- package/client/utils/time.ts +3 -3
- package/dist/chunk-BQRH2D76.mjs +162 -0
- package/dist/chunk-F3UFLKIV.cjs +161 -0
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +86 -86
- package/dist/node/index.d.ts +86 -86
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.mjs +1 -1
- package/package.json +25 -25
- package/shims.d.ts +2 -2
- package/types/config.ts +1 -1
- package/types/index.ts +3 -3
- package/dist/chunk-RPJK52Q7.mjs +0 -162
- package/dist/chunk-SEN6YL7Y.cjs +0 -161
- package/dist/{chunk-7EKNBB3E.cjs → chunk-6GE64PZD.cjs} +0 -0
- package/dist/{chunk-AUDFAOQV.mjs → chunk-WE2LNW3F.mjs} +0 -0
- package/dist/{config-DfXD9Gt_.d.cts → config-Dxu7i2Zs.d.cts} +1 -1
- package/dist/{config-DfXD9Gt_.d.ts → config-Dxu7i2Zs.d.ts} +1 -1
package/client/stores/app.ts
CHANGED
package/client/stores/site.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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
|
/**
|
package/client/types/index.ts
CHANGED
package/client/utils/index.ts
CHANGED
|
@@ -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 './
|
|
8
|
-
export * from './router'
|
|
8
|
+
export * from './wrap'
|
package/client/utils/time.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ToDateOptionsWithTZ } from 'date-fns-tz'
|
|
2
|
-
import {
|
|
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
|
|