mirror of
https://github.com/elk-zone/elk.git
synced 2024-09-07 20:59:09 +01:00
16 lines
464 B
Vue
16 lines
464 B
Vue
<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>
|