ui: restyling navbar
This commit is contained in:
parent
c42fe49ce9
commit
507aedceee
17 changed files with 56 additions and 36 deletions
|
@ -6,10 +6,10 @@ const paginator = masto.timelines.getPublicIterable()
|
|||
<template>
|
||||
<MainContent>
|
||||
<template #title>
|
||||
<div i-ri:earth-fill h-6 mr-1 /><span>Federated Timeline</span>
|
||||
<span text-lg font-bold>Federated Timeline</span>
|
||||
</template>
|
||||
<template #actions>
|
||||
<div color-gray i-ri:equalizer-fill mr-1 h-6 />
|
||||
<div i-ri:equalizer-fill mr-1 h-6 />
|
||||
</template>
|
||||
<slot>
|
||||
<TimelinePaginator :paginator="paginator" />
|
||||
|
|
|
@ -4,17 +4,16 @@ const router = useRouter()
|
|||
if (!token.value)
|
||||
router.replace('/public')
|
||||
|
||||
|
||||
const { data: timelines } = await useAsyncData('timelines-home', () => masto.timelines.fetchPublic({ local: true }).then(r => r.value))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MainContent>
|
||||
<template #title>
|
||||
<div i-ri:group-fill h-6 mr-1 /><span>Local timeline</span>
|
||||
<span text-lg font-bold>Local timeline</span>
|
||||
</template>
|
||||
<template #actions>
|
||||
<div color-gray i-ri:equalizer-fill mr-1 h-6 />
|
||||
<div i-ri:equalizer-fill mr-1 h-6 />
|
||||
</template>
|
||||
<slot>
|
||||
<TimelineList :timelines="timelines" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue