fix: arch-02 make type file

This commit is contained in:
2026-03-13 11:11:31 +01:00
parent 7c3467d85f
commit ffb84b41a9
4 changed files with 13 additions and 30 deletions

View File

@@ -64,6 +64,8 @@
<script setup lang="ts">
import {computed, onMounted, ref} from "vue"
import { apiFetch } from "~/composables/useApiAuth"
import { SystemMetrics } from "~/types/system";
definePageMeta({layout: false})
type DiskSourceResult = {
@@ -90,16 +92,6 @@ type DiagramItem = {
totalText: string
}
type SystemMetrics = {
cpuPercent: number
memoryPercent: number
totalMemory: number
usedMemory: number
incomingMbps: number
outgoingMbps: number
sampledAt: string
}
const rawResults = ref<DiskSourceResult[]>([])
const loading = ref(false)
const systemMetrics = ref<SystemMetrics | null>(null)