mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Implement new confirmation modal utility
This commit is contained in:
parent
0fe13cbeee
commit
73bfbcf252
9 changed files with 226 additions and 10 deletions
|
|
@ -61,14 +61,14 @@
|
|||
</Menu.Item>
|
||||
<Menu.Item value="" v-if="identity">
|
||||
<NuxtLink href="/settings" class="w-full">
|
||||
<ButtonBase theme="outline" class="w-full !justify-start">
|
||||
<ButtonBase theme="ghost" class="w-full !justify-start">
|
||||
<Icon icon="tabler:adjustments" class="!size-6" />
|
||||
<span class="shrink-0 line-clamp-1">Settings</span>
|
||||
</ButtonBase>
|
||||
</NuxtLink>
|
||||
</Menu.Item>
|
||||
<Menu.Item value="">
|
||||
<ButtonBase @click="$emit('signIn')" theme="outline" class="w-full !justify-start">
|
||||
<ButtonBase @click="$emit('signIn')" theme="ghost" class="w-full !justify-start">
|
||||
<Icon icon="tabler:user-plus" class="!size-6" />
|
||||
<span class="shrink-0 line-clamp-1">Add new account</span>
|
||||
</ButtonBase>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
Timelines</h3>
|
||||
|
||||
<NuxtLink v-for="timeline in visibleTimelines" :key="timeline.href" :to="timeline.href">
|
||||
<ButtonBase theme="outline" class="w-full !justify-start overflow-hidden rounded-sm">
|
||||
<ButtonBase theme="ghost" class="w-full !justify-start overflow-hidden rounded-sm">
|
||||
<Icon :icon="timeline.icon" class="!size-6" />
|
||||
<span class="shrink-0 line-clamp-1">{{ timeline.name }}</span>
|
||||
</ButtonBase>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
<AccountPicker @sign-in="signIn().finally(() => loadingAuth = false)"
|
||||
@sign-out="id => signOut(id).finally(() => loadingAuth = false)" />
|
||||
<NuxtLink href="/register" v-if="!identity">
|
||||
<ButtonBase theme="outline" class="w-full !justify-start overflow-hidden rounded-sm">
|
||||
<ButtonBase theme="ghost" class="w-full !justify-start overflow-hidden rounded-sm">
|
||||
<Icon icon="tabler:certificate" class="!size-6" />
|
||||
<span class="shrink-0 line-clamp-1">Register</span>
|
||||
</ButtonBase>
|
||||
|
|
@ -102,10 +102,10 @@ import ButtonBase from "~/packages/ui/components/buttons/button.vue";
|
|||
import Icon from "~/packages/ui/components/icons/icon.vue";
|
||||
import ButtonDropdown from "../buttons/button-dropdown.vue";
|
||||
import ButtonMobileNavbar from "../buttons/button-mobile-navbar.vue";
|
||||
import Button from "../composer/button.vue";
|
||||
import AdaptiveDropdown from "../dropdowns/AdaptiveDropdown.vue";
|
||||
import AccountPicker from "./account-picker.vue";
|
||||
const { $pwa } = useNuxtApp();
|
||||
|
||||
const timelines = ref([
|
||||
{
|
||||
href: "/home",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue