refactor: rename components

This commit is contained in:
Anthony Fu 2022-11-23 10:22:18 +08:00
parent a4d235b6fe
commit df9ee293a7
9 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,15 @@
<script setup lang="ts">
const account = $computed(() => currentUser.value?.account)
</script>
<template>
<div flex flex-col gap-4 p4>
<!-- TODO: multiple account switcher -->
<template v-if="account">
<AccountInfo :account="account" />
<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>
</div>
</template>