diff --git a/frontend/src/pages/index/IndexPage.vue b/frontend/src/pages/index/IndexPage.vue index f578a4c7..292e4156 100644 --- a/frontend/src/pages/index/IndexPage.vue +++ b/frontend/src/pages/index/IndexPage.vue @@ -63,33 +63,6 @@ const displayVersion = computed( () => panelUpdateInfo.value?.currentVersion || window.X_UI_CUR_VER || '?', ); -const healthItems = computed(() => { - const cpuPercent = Number(status.cpu?.percent || 0); - const memPercent = Number(status.mem?.percent || 0); - return [ - { - label: 'Xray', - value: status.xray.state, - color: status.xray.color, - }, - { - label: 'CPU', - value: `${cpuPercent.toFixed(1)}%`, - color: cpuPercent > 85 ? 'red' : cpuPercent > 65 ? 'orange' : 'green', - }, - { - label: 'Memory', - value: `${memPercent.toFixed(1)}%`, - color: memPercent > 85 ? 'red' : 'blue', - }, - { - label: 'Update', - value: panelUpdateInfo.value.updateAvailable ? panelUpdateInfo.value.latestVersion : 'current', - color: panelUpdateInfo.value.updateAvailable ? 'orange' : 'green', - }, - ]; -}); - // Hide/reveal the public IPv4/IPv6 — same pattern as legacy. const showIp = ref(false); @@ -151,25 +124,6 @@ async function openConfig() {