2022-11-15 15:48:23 +00:00
|
|
|
<script setup lang="ts">
|
2022-11-22 23:08:36 +00:00
|
|
|
const account = $computed(() => currentUser.value?.account)
|
2022-11-15 15:48:23 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-16 21:27:02 +00:00
|
|
|
<div flex flex-col gap-4 p4>
|
2022-11-15 15:48:23 +00:00
|
|
|
<!-- TODO: multiple account switcher -->
|
2022-11-17 13:09:54 +00:00
|
|
|
<template v-if="account">
|
|
|
|
<AccountInfo :account="account" />
|
2022-11-21 06:55:31 +00:00
|
|
|
<PublishWidget draft-key="home" />
|
2022-11-17 13:09:54 +00:00
|
|
|
</template>
|
2022-11-15 15:48:23 +00:00
|
|
|
<!-- 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>
|