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' export type { HeadConfig, Header, PageData, SiteData } from '../../types/shared'
// composables // composables
export { useData } from './app/data' export { useData, dataSymbol } from './app/data'
export { useRoute, useRouter } from './app/router' export { useRoute, useRouter } from './app/router'
// utilities // utilities

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

Loading…
Cancel
Save