feat: KeyActions component & general progress

This commit is contained in:
Zack Spear
2023-06-01 20:12:26 -07:00
parent d7829aadd1
commit 52bbcbc984
21 changed files with 428 additions and 180 deletions
+32
View File
@@ -0,0 +1,32 @@
<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { InformationCircleIcon } from '@heroicons/vue/24/solid';
import { useServerStore } from '~/store/server';
import type { UserProfileLink } from '~/types/userProfile';
const { stateData } = storeToRefs(useServerStore());
const links = ref<UserProfileLink[]>([
{
click: () => console.debug('Placeholder Button'),
external: true,
icon: InformationCircleIcon,
text: 'Placeholder Button',
},
{
click: () => console.debug('Support Button'),
external: true,
icon: InformationCircleIcon,
text: 'Support Button',
},
]);
</script>
<template>
<ul v-if="stateData.error" class="list-reset flex flex-col gap-y-4px p-12px -mx-4px bg-red/20">
<h3>{{ stateData.error.heading }}</h3>
<p>{{ stateData.error.message }}</p>
<li v-for="(link, index) in links" :key="`link_${index}`" class="-mx-8px">
<UpcDropdownItem :item="link" />
</li>
</ul>
</template>