diff --git a/components/BackupRun.vue b/components/BackupRun.vue index d3eb365..0243eaa 100644 --- a/components/BackupRun.vue +++ b/components/BackupRun.vue @@ -80,7 +80,6 @@ import { computed, onMounted, ref } from "vue" import { Icon as IconifyIcon } from "@iconify/vue" import { apiFetch } from "~/composables/useApiAuth" -import { useApiAuthHeader } from "~/composables/useApiAuth" type BackupScript = { key: string @@ -120,7 +119,6 @@ const scripts = ref([]) const output = ref("") const message = ref("") const isError = ref(false) -const apiAuthHeader = useApiAuthHeader() const statusClass = computed(() => (isError.value ? "status-error" : "status-success")) diff --git a/components/Speed-test.vue b/components/Speed-test.vue index 8e0501b..c0243d4 100644 --- a/components/Speed-test.vue +++ b/components/Speed-test.vue @@ -62,7 +62,7 @@ const metrics = computed(() => [ async function testDownload() { const start = performance.now() - const res = await apiRequest('/api/download') + const res = await apiRequest('/api/speedtest') if (!res.ok) { throw new Error(`HTTP ${res.status}`) } diff --git a/components/SystemMetricsChart.vue b/components/SystemMetricsChart.vue index 1ff1d98..f4e30fe 100644 --- a/components/SystemMetricsChart.vue +++ b/components/SystemMetricsChart.vue @@ -3,47 +3,70 @@

Historique systeme

-

CPU, RAM et debit reseau sur les derniers releves

+

CPU et RAM avec cache journalier local

-
-
-