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() {
- -
-
- - {{ item.label }}: {{ item.value }} - -
- - {{ t('refresh') }} - {{ t('pages.index.restartXray') }} - {{ t('pages.index.logs') }} - - {{ t('pages.index.updatePanel') }} - - -
-
- @@ -415,36 +369,6 @@ async function openConfig() { min-height: calc(100vh - 120px); } -.health-strip { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - padding: 10px 12px; - border: 1px solid rgba(0, 0, 0, 0.06); - border-radius: 6px; - background: var(--bg-card); -} - -.health-tags, -.critical-actions { - display: flex; - align-items: center; - flex-wrap: wrap; - gap: 6px; -} - -.health-tags :deep(.ant-tag) { - margin-inline-end: 0; -} - -@media (max-width: 768px) { - .health-strip { - align-items: flex-start; - flex-direction: column; - } -} - .action { cursor: pointer; justify-content: center;