File tree Expand file tree Collapse file tree 7 files changed +7
-8
lines changed
Expand file tree Collapse file tree 7 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11<script lang="ts" setup>
22import type { DefaultTheme } from ' vitepress/theme'
33import { useData } from ' ../composables/data'
4- import { isActive } from ' ../support/utils '
4+ import { isActive } from ' ../../shared '
55import VPLink from ' ./VPLink.vue'
66
77defineProps <{
Original file line number Diff line number Diff line change 11<script lang="ts" setup>
22import type { DefaultTheme } from ' vitepress/theme'
33import { useData } from ' ../composables/data'
4- import { isActive } from ' ../support/utils '
4+ import { isActive } from ' ../../shared '
55import VPFlyout from ' ./VPFlyout.vue'
66
77defineProps <{
Original file line number Diff line number Diff line change 11<script lang="ts" setup>
22import type { DefaultTheme } from ' vitepress/theme'
33import { useData } from ' ../composables/data'
4- import { isActive } from ' ../support/utils '
4+ import { isActive } from ' ../../shared '
55import VPLink from ' ./VPLink.vue'
66
77defineProps <{
Original file line number Diff line number Diff line change 11import { computed } from 'vue'
22import { useData } from './data'
3- import { isActive } from '../support/utils '
3+ import { isActive } from '../../shared '
44import { getSidebar , getFlatSideBarLinks } from '../support/sidebar'
55
66export function usePrevNext ( ) {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010import { useMediaQuery } from '@vueuse/core'
1111import { useRoute } from 'vitepress'
1212import type { DefaultTheme } from 'vitepress/theme'
13- import { isActive } from '../support/utils '
13+ import { isActive } from '../../shared '
1414import {
1515 hasActiveLink as containsActiveLink ,
1616 getSidebar ,
Original file line number Diff line number Diff line change 11import type { DefaultTheme } from 'vitepress/theme'
2- import { ensureStartingSlash , isActive } from './utils'
2+ import { ensureStartingSlash } from './utils'
3+ import { isActive } from '../../shared'
34
45export interface SidebarLink {
56 text : string
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import { withBase } from 'vitepress'
22import { useData } from '../composables/data'
33import { isExternal , PATHNAME_PROTOCOL_RE } from '../../shared'
44
5- export { isExternal , isActive } from '../../shared'
6-
75export function throttleAndDebounce ( fn : ( ) => void , delay : number ) : ( ) => void {
86 let timeoutId : NodeJS . Timeout
97 let called = false
You can’t perform that action at this time.
0 commit comments