Move software files one directory up, Readme
This commit is contained in:
50
src/pages/admin/dashboardPage/dashboardCard.vue
Normal file
50
src/pages/admin/dashboardPage/dashboardCard.vue
Normal file
@@ -0,0 +1,50 @@
|
||||
<script setup lang="ts">
|
||||
import cardView from '@/components/basics/cardView.vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import outlinedButton from '@/components/basics/outlinedButton.vue';
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
defineProps({
|
||||
title: String,
|
||||
icon: String,
|
||||
firstLine: String,
|
||||
secondLine: String,
|
||||
buttonRoute: String,
|
||||
loading: Boolean
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-col cols="12" md="6" lg="4">
|
||||
<card-view
|
||||
:title="title"
|
||||
:icon="icon"
|
||||
>
|
||||
<v-skeleton-loader
|
||||
type="heading"
|
||||
:loading="loading"
|
||||
class="text-h4 d-flex justify-center"
|
||||
>
|
||||
{{ firstLine }}
|
||||
</v-skeleton-loader>
|
||||
|
||||
<v-skeleton-loader
|
||||
type="text"
|
||||
:loading="loading"
|
||||
class="text-h6 text-disabled d-flex justify-center"
|
||||
>
|
||||
{{ secondLine }}
|
||||
</v-skeleton-loader>
|
||||
|
||||
<template #actions>
|
||||
<outlined-button
|
||||
@click="router.push(buttonRoute)"
|
||||
:loading="loading"
|
||||
>
|
||||
{{ $t('misc.actions.more') }}
|
||||
</outlined-button>
|
||||
</template>
|
||||
</card-view>
|
||||
</v-col>
|
||||
</template>
|
||||
Reference in New Issue
Block a user