pools.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script setup lang="ts">
  2. definePageMeta({
  3. layout: 'admin',
  4. })
  5. useHead({
  6. title: `Pools — Hush Your Money`,
  7. meta: [
  8. { name: 'description', content: `Hush Your Money makes spending safu.` }
  9. ],
  10. })
  11. /* Initialize stores. */
  12. import { useSystemStore } from '@/stores/system'
  13. const System = useSystemStore()
  14. const pools = ref(null)
  15. const init = async () => {
  16. /* Request all pools. */
  17. pools.value = await $fetch('/_pools')
  18. .catch(err => console.error(err))
  19. console.log('POOLS', pools.value)
  20. }
  21. onMounted(() => {
  22. init()
  23. })
  24. // onBeforeUnmount(() => {
  25. // console.log('Before Unmount!')
  26. // // Now is the time to perform all cleanup operations.
  27. // })
  28. </script>
  29. <template>
  30. <main class="max-w-5xl mx-auto py-5 flex flex-col gap-4">
  31. <h1 class="text-5xl font-medium">
  32. Pools
  33. </h1>
  34. <p>
  35. 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.
  36. </p>
  37. <pre v-if="pools">{{pools}}</pre>
  38. </main>
  39. </template>