123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <script setup lang="ts">
- definePageMeta({
- layout: 'admin',
- })
- useHead({
- title: `Club Stats — Hush Your Money`,
- meta: [
- { name: 'description', content: `Hush Your Money makes spending safu.` }
- ],
- })
- /* Initialize stores. */
- import { useSystemStore } from '@/stores/system'
- const System = useSystemStore()
- const stats = ref(null)
- const init = async () => {
- /* Request all stats. */
- stats.value = await $fetch('/_stats')
- .catch(err => console.error(err))
- console.log('STATS', stats.value)
- }
- onMounted(() => {
- init()
- })
- // onBeforeUnmount(() => {
- // console.log('Before Unmount!')
- // // Now is the time to perform all cleanup operations.
- // })
- </script>
- <template>
- <main class="max-w-5xl mx-auto py-5 flex flex-col gap-4">
- <h1 class="text-5xl font-medium">
- Club Stats
- </h1>
- <p>
- Lorem, ipsum dolor sit amet consectetur adipisicing elit. Id eius voluptatem minus natus at eveniet dolorum eos mollitia, maxime animi excepturi harum omnis illum odit recusandae pariatur! Unde, explicabo molestias.
- </p>
- <pre v-if="stats">{{stats}}</pre>
- </main>
- </template>
|