feat: cache for publish widget

This commit is contained in:
Anthony Fu 2022-11-21 14:55:31 +08:00
parent 5d5cdebb56
commit 193d1cf5c5
9 changed files with 149 additions and 43 deletions

View file

@ -17,7 +17,7 @@ defineProps<{
<h4 font-bold>
{{ account.displayName }}
</h4>
<p op50>
<p op35 text-sm>
@{{ account.acct }}
</p>
</NuxtLink>

View file

@ -9,7 +9,7 @@ const account = $computed(() => currentUser?.account)
<!-- TODO: multiple account switcher -->
<template v-if="account">
<AccountInfo :account="account" />
<PublishWidget />
<PublishWidget draft-key="home" />
</template>
<!-- TODO: dialog for select server -->
<a v-else href="/api/mas.to/login" px2 py1 bg-teal6 text-white m2 rounded>Login</a>