add dashboard

This commit is contained in:
Litlyx
2024-06-01 15:27:40 +02:00
parent 75f0787c3b
commit df4faf366f
201 changed files with 91267 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<script lang="ts" setup>
const props = defineProps<{ label: string, disabled?: boolean, loading?: boolean }>();
</script>
<template>
<div :class="{ '!bg-[#354a87] !text-text/50 !cursor-not-allowed': (disabled || loading) }"
class="bg-accent text-text px-4 py-2 text-center cursor-pointer hover:bg-[#5075e2] hover:text-text-sub">
<span v-show="!loading">{{ label }}</span>
<i v-if="loading" class="fas fa-loader animate-[spin_2s_linear_infinite]"></i>
</div>
</template>