feat(client): expose dataSymbol

closes #2489
pull/2515/head
Divyansh Singh 1 year ago
parent 69b2625623
commit a5475304fa

@ -12,7 +12,7 @@ export type { EnhanceAppContext, Theme } from './app/theme'
export type { HeadConfig, Header, PageData, SiteData } from '../../types/shared'
// composables
export { useData } from './app/data'
export { useData, dataSymbol } from './app/data'
export { useRoute, useRouter } from './app/router'
// utilities

@ -12,7 +12,7 @@ import {
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
import Mark from 'mark.js/src/vanilla.js'
import MiniSearch, { type SearchResult } from 'minisearch'
import { useRouter } from 'vitepress'
import { useRouter, dataSymbol } from 'vitepress'
import {
computed,
createApp,
@ -27,7 +27,6 @@ import {
type Ref
} from 'vue'
import type { ModalTranslations } from '../../../../types/local-search'
import { dataSymbol } from '../../app/data'
import { pathToFile } from '../../app/utils'
import { useData } from '../composables/data'
import { createTranslate } from '../support/translation'

Loading…
Cancel
Save