mirror of https://github.com/halo-dev/halo
29 lines
830 B
Vue
29 lines
830 B
Vue
<script lang="ts" setup>
|
|
import { useDashboardStats } from "@console/composables/use-dashboard-stats";
|
|
import { IconEye, VCard } from "@halo-dev/components";
|
|
|
|
const { data: stats } = useDashboardStats();
|
|
</script>
|
|
<template>
|
|
<VCard class="h-full" :body-class="['h-full']">
|
|
<div class="flex h-full">
|
|
<div class="flex items-center gap-4">
|
|
<span
|
|
class="hidden rounded-full bg-gray-100 p-2.5 text-gray-600 sm:block"
|
|
>
|
|
<IconEye class="h-5 w-5" />
|
|
</span>
|
|
|
|
<div>
|
|
<span class="text-sm text-gray-500">
|
|
{{ $t("core.dashboard.widgets.presets.views_stats.title") }}
|
|
</span>
|
|
<p class="text-2xl font-medium text-gray-900">
|
|
{{ stats?.visits || 0 }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</VCard>
|
|
</template>
|