-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { NavbarItem } from '@vuepress/theme-default/client' | ||
import { useNavbarRepo as _useNavbarRepo } from '@vuepress/theme-default/client' | ||
import { computed, type ComputedRef } from 'vue' | ||
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / bundle-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / bundle-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarRepo.ts GitHub Actions / bundle-check
|
||
|
||
export const useNavbarRepo = (): ComputedRef<NavbarItem[]> => { | ||
const navbarRepo = _useNavbarRepo() | ||
|
||
return computed(() => [ | ||
{ | ||
...navbarRepo.value[0], | ||
icon: 'github', | ||
}, | ||
]) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { | ||
useNavbarSelectLanguage as _useNavbarSelectLanguage, | ||
type NavbarItem, | ||
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / bundle-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / bundle-check
Check failure on line 3 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / bundle-check
|
||
} from '@vuepress/theme-default/client' | ||
import { computed, type ComputedRef } from 'vue' | ||
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / build-check
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / bundle-check
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / bundle-check
Check failure on line 5 in docs/.vuepress/composables/useNavbarSelectLanguage.ts GitHub Actions / bundle-check
|
||
|
||
export const useNavbarSelectLanguage = (): ComputedRef<NavbarItem[]> => { | ||
const navbarSelectLanguage = _useNavbarSelectLanguage() | ||
|
||
return computed(() => [ | ||
{ | ||
...navbarSelectLanguage.value[0], | ||
icon: 'languages', | ||
}, | ||
]) | ||
} |