fix: arch-02 make type file
This commit is contained in:
@@ -74,19 +74,10 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import {computed, ref, watch} from "vue"
|
||||
import { SystemMetrics } from "~/types/system";
|
||||
|
||||
type MetricKey = "cpu" | "ram" | "incoming" | "outgoing"
|
||||
|
||||
type SystemMetrics = {
|
||||
cpuPercent: number
|
||||
memoryPercent: number
|
||||
totalMemory: number
|
||||
usedMemory: number
|
||||
incomingMbps: number
|
||||
outgoingMbps: number
|
||||
sampledAt: string
|
||||
}
|
||||
|
||||
type HistoryPoint = {
|
||||
sampledAt: string
|
||||
cpu: number
|
||||
|
||||
@@ -46,16 +46,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import {computed} from "vue"
|
||||
|
||||
type SystemMetrics = {
|
||||
cpuPercent: number
|
||||
memoryPercent: number
|
||||
totalMemory: number
|
||||
usedMemory: number
|
||||
incomingMbps: number
|
||||
outgoingMbps: number
|
||||
sampledAt: string
|
||||
}
|
||||
import { SystemMetrics } from "~/types/system";
|
||||
|
||||
const props = defineProps<{
|
||||
metrics: SystemMetrics | null
|
||||
|
||||
Reference in New Issue
Block a user