Skip to content

Commit

Permalink
feat(client): expose dataSymbol
Browse files Browse the repository at this point in the history
closes #2489
  • Loading branch information
brc-dd committed Jun 17, 2023
1 parent 69b2625 commit a547530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/index.ts
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/client/theme-default/components/VPLocalSearchBox.vue
Expand Up @@ -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,
Expand All @@ -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'
Expand Down

0 comments on commit a547530

Please sign in to comment.