Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
P4l0m4 committed Jul 11, 2024
1 parent bfd0751 commit 5fe4409
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,28 @@
>
<LegendTitle>{{ $t('hosts') }}</LegendTitle>
</DonutWithLegends>

<pre>{{ data }}</pre>
</UiCard>
</template>

<script setup lang="ts">
import DonutWithLegends from '@/components/DonutWithLegends.vue'
// import { useDashboardStore } from '@/stores/xo-rest-api/dashboard.store'
import CardTitle from '@core/components/card/CardTitle.vue'
import LegendTitle from '@core/components/LegendTitle.vue'
import UiCard from '@core/components/UiCard.vue'
import UiSeparator from '@core/components/UiSeparator.vue'
import { useFetch } from '@vueuse/core'
// const { records: dashboard, isReady } = useDashboardStore().subscribe()
const { data } = useFetch<string>('/rest/v0/dashboard').get().json<{
nHosts: number
nPools: number
missingPatches?: {
nHostsWithMissingPatches: number
nPoolsWithMissingPatches: number
}
}>()
</script>

0 comments on commit 5fe4409

Please sign in to comment.