11<script setup lang="ts">
22import AutoLink from ' @theme/AutoLink.vue'
3- import {
4- usePageData ,
5- usePageFrontmatter ,
6- useSiteLocaleData ,
7- } from ' @vuepress/client'
8- import { computed } from ' vue'
9- import type { ComputedRef } from ' vue'
3+ import { usePageData , usePageFrontmatter } from ' @vuepress/client'
4+ import { useThemeLocaleData } from ' @vuepress/theme-default/lib/client/composables/index.js'
5+ import { resolveEditLink } from ' @vuepress/theme-default/lib/client/utils/index.js'
106import type {
11- DefaultThemeNormalPageFrontmatter ,
12- DefaultThemePageData ,
13- NavLink ,
14- } from ' @vuepress/theme-default/lib/shared'
15- import { useThemeLocaleData } from ' @vuepress/theme-default/lib/client/composables '
16- import { resolveEditLink } from ' @vuepress/theme-default/lib/client/utils '
7+ DefaultThemeNormalPageFrontmatter ,
8+ DefaultThemePageData ,
9+ NavLink
10+ } from ' @vuepress/theme-default/lib/shared/index.js '
11+ import type { ComputedRef } from ' vue '
12+ import { computed } from ' vue '
1713
1814const useEditNavLink = (): ComputedRef <null | NavLink > => {
1915 const themeLocale = useThemeLocaleData ()
@@ -98,7 +94,7 @@ const contributors = useContributors()
9894 </script >
9995
10096<template >
101- <div class =" page-meta text-right " >
97+ <div class =" page-meta" >
10298 <div v-if =" editNavLink" class =" meta-item edit-link" >
10399 <AutoLink class =" meta-item-label" :item =" editNavLink" />
104100 </div >
@@ -110,10 +106,7 @@ const contributors = useContributors()
110106 </ClientOnly >
111107 </div >
112108
113- <div
114- v-if =" contributors && contributors.length"
115- class =" meta-item contributors"
116- >
109+ <div v-if =" contributors && contributors.length" class =" meta-item contributors" >
117110 <span class =" meta-item-label" >{{ themeLocale.contributorsText }}: </span >
118111 <span class =" meta-item-info" >
119112 <template v-for =" (contributor , index ) in contributors " :key =" index " >
@@ -125,4 +118,4 @@ const contributors = useContributors()
125118 </span >
126119 </div >
127120 </div >
128- </template >
121+ </template >
0 commit comments