valaxy 0.22.17 → 0.23.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/client/composables/app/useValaxyApp.ts +3 -3
- package/client/composables/common.ts +1 -1
- package/client/composables/outline/headers.ts +1 -1
- package/client/composables/search/useFuseSearch.ts +1 -1
- package/client/config.ts +3 -3
- package/client/modules/unhead.ts +13 -0
- package/client/setup/main.ts +2 -2
- package/client/styles/common/markdown.scss +2 -0
- package/dist/{chunk-AP7OY5ZQ.js → chunk-FKXWXNZE.js} +255 -225
- package/dist/{config-B2xuyo8_.d.ts → config-sM4p56qo.d.ts} +1 -1
- package/dist/node/cli/index.d.ts +2 -1
- package/dist/node/cli/index.js +1 -4
- package/dist/node/index.d.ts +12 -14
- package/dist/node/index.js +1 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +0 -2
- package/package.json +33 -33
- package/client/modules/schemaOrg.ts +0 -23
- package/dist/chunk-5DSTD5D3.js +0 -19
- package/dist/chunk-J2BOKDJT.js +0 -428
- package/dist/node/worker_shikiResolveLang.d.ts +0 -6
- package/dist/node/worker_shikiResolveLang.js +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { definePerson, defineWebPage, defineWebSite, useSchemaOrg } from '@unhead/schema-org'
|
|
1
|
+
import { definePerson, defineWebPage, defineWebSite, useSchemaOrg } from '@unhead/schema-org/vue'
|
|
2
2
|
import { useSeoMeta } from '@unhead/vue'
|
|
3
3
|
|
|
4
4
|
// TODO: add docs to override ValaxyApp
|
|
@@ -41,8 +41,8 @@ export function useValaxyApp() {
|
|
|
41
41
|
|
|
42
42
|
// for SEO
|
|
43
43
|
useSchemaOrg([
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
// https://unhead.unjs.io/docs/schema-org/guides/recipes/identity
|
|
45
|
+
// Personal Website or Blog
|
|
46
46
|
definePerson({
|
|
47
47
|
name: siteConfig.value.author.name,
|
|
48
48
|
url: siteUrl.value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MenuItem } from '@valaxyjs/utils'
|
|
2
|
-
import type { DefaultTheme } from '
|
|
2
|
+
import type { DefaultTheme } from '../../../types'
|
|
3
3
|
import { getHeaders } from '@valaxyjs/utils'
|
|
4
4
|
import { computed, shallowRef } from 'vue'
|
|
5
5
|
import { useFrontmatter, useThemeConfig } from '../..'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
|
2
2
|
import type { MaybeRefOrGetter } from '@vueuse/shared'
|
|
3
|
-
import type { FuseListItem } from '
|
|
3
|
+
import type { FuseListItem } from '../../../types'
|
|
4
4
|
import { useFuse } from '@vueuse/integrations/useFuse'
|
|
5
5
|
import { useSiteConfig } from 'valaxy'
|
|
6
6
|
import { computed, shallowRef } from 'vue'
|
package/client/config.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey } from 'vue'
|
|
2
|
+
|
|
1
3
|
// import type { RouteMeta } from 'vue-router'
|
|
2
4
|
// fix build caused by pnpm
|
|
3
5
|
// This is likely not portable. A type annotation is necessary.
|
|
4
6
|
// https://github.com/microsoft/TypeScript/issues/42873
|
|
5
|
-
import type { DefaultTheme, ValaxyConfig } from '
|
|
6
|
-
|
|
7
|
-
import type { ComputedRef, InjectionKey } from 'vue'
|
|
7
|
+
import type { DefaultTheme, ValaxyConfig } from '../types'
|
|
8
8
|
import type { ValaxyData } from './app/data'
|
|
9
9
|
import { computed, inject, readonly, shallowRef } from 'vue'
|
|
10
10
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UserModule } from '../types'
|
|
2
|
+
import { InferSeoMetaPlugin } from '@unhead/addons'
|
|
3
|
+
|
|
4
|
+
export const install: UserModule = async ({ head, isClient }) => {
|
|
5
|
+
// Disables on client build, allows 0kb runtime
|
|
6
|
+
if (isClient && import.meta.env.PROD)
|
|
7
|
+
return
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* https://unhead.unjs.io/docs/head/guides/plugins/infer-seo-meta-tags
|
|
11
|
+
*/
|
|
12
|
+
head?.use(InferSeoMetaPlugin())
|
|
13
|
+
}
|
package/client/setup/main.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { consola } from 'consola'
|
|
|
12
12
|
import { install as installFloatingVue } from '../modules/floating-vue'
|
|
13
13
|
import { install as installNprogress } from '../modules/nprogress'
|
|
14
14
|
import { install as installPinia } from '../modules/pinia'
|
|
15
|
-
import { install as
|
|
15
|
+
import { install as installUnhead } from '../modules/unhead'
|
|
16
16
|
import { install as installValaxy } from '../modules/valaxy'
|
|
17
17
|
|
|
18
18
|
export default function setupMain(ctx: ViteSSGContext, config: ComputedRef<ValaxyConfig<DefaultTheme.Config>>) {
|
|
@@ -21,7 +21,7 @@ export default function setupMain(ctx: ViteSSGContext, config: ComputedRef<Valax
|
|
|
21
21
|
const injection_arg = ctx
|
|
22
22
|
|
|
23
23
|
installValaxy(ctx, config)
|
|
24
|
-
|
|
24
|
+
installUnhead(ctx)
|
|
25
25
|
installPinia(ctx)
|
|
26
26
|
installNprogress(ctx)
|
|
27
27
|
installFloatingVue(ctx, config)
|