chore: return old system status

with new translations
This commit is contained in:
Shishkevich D. 2025-04-05 00:42:29 +00:00
parent 1243a3cfe8
commit bf6350c0a3
14 changed files with 10 additions and 64 deletions

View file

@ -558,6 +558,10 @@ class CPUFormatter {
static cpuSpeedFormat(speed) {
return speed > 1000 ? (speed / 1000).toFixed(2) + " GHz" : speed.toFixed(2) + " MHz";
}
static cpuCoreFormat(cores) {
return cores === 1 ? "1 Core" : cores + " Cores";
}
}
class TimeFormatter {

View file

@ -109,11 +109,10 @@
:stroke-color="status.cpu.color"
:percent="status.cpu.percent"></a-progress>
<div>
<span>{{ i18n "pages.index.cpu" }}</span>
<b>{{ i18n "pages.index.cpu" }}:</b> [[ CPUFormatter.cpuCoreFormat(status.cpuCores) ]]
<a-tooltip>
<a-icon type="area-chart"></a-icon>
<template slot="title">
<div><b>{{ i18n "pages.index.cpuCores" }}:</b> [[ (status.cpuCores) ]]</div>
<div><b>{{ i18n "pages.index.logicalProcessors" }}:</b> [[ (status.logicalPro) ]]</div>
<div><b>{{ i18n "pages.index.frequency" }}:</b> [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]</div>
</template>
@ -125,14 +124,7 @@
:stroke-color="status.mem.color"
:percent="status.mem.percent"></a-progress>
<div>
<span>{{ i18n "pages.index.memory" }}</span>
<a-tooltip>
<a-icon type="area-chart"></a-icon>
<template slot="title">
<div><b>{{ i18n "pages.index.storageUsed" }}:</b> [[ SizeFormatter.sizeFormat(status.mem.current) ]]</div>
<div><b>{{ i18n "pages.index.storageTotal" }}:</b> [[ SizeFormatter.sizeFormat(status.mem.total) ]]</div>
</template>
</a-tooltip>
<b>{{ i18n "pages.index.memory"}}:</b> [[ SizeFormatter.sizeFormat(status.mem.current) ]] / [[ SizeFormatter.sizeFormat(status.mem.total) ]]
</div>
</a-col>
</a-row>
@ -144,14 +136,7 @@
:stroke-color="status.swap.color"
:percent="status.swap.percent"></a-progress>
<div>
<span>{{ i18n "pages.index.swap" }}</span>
<a-tooltip>
<a-icon type="area-chart"></a-icon>
<template slot="title">
<div><b>{{ i18n "pages.index.storageUsed" }}:</b> [[ SizeFormatter.sizeFormat(status.swap.current) ]]</div>
<div><b>{{ i18n "pages.index.storageTotal" }}:</b> [[ SizeFormatter.sizeFormat(status.swap.total) ]]</div>
</template>
</a-tooltip>
<b>{{ i18n "pages.index.swap" }}:</b> [[ SizeFormatter.sizeFormat(status.swap.current) ]] / [[ SizeFormatter.sizeFormat(status.swap.total) ]]
</div>
</a-col>
<a-col :span="12" :style="{ textAlign: 'center' }">
@ -159,14 +144,7 @@
:stroke-color="status.disk.color"
:percent="status.disk.percent"></a-progress>
<div>
<span>{{ i18n "pages.index.storage" }}</span>
<a-tooltip>
<a-icon type="area-chart"></a-icon>
<template slot="title">
<div><b>{{ i18n "pages.index.storageUsed" }}:</b> [[ SizeFormatter.sizeFormat(status.disk.current) ]]</div>
<div><b>{{ i18n "pages.index.storageTotal" }}:</b> [[ SizeFormatter.sizeFormat(status.disk.total) ]]</div>
</template>
</a-tooltip>
<b>{{ i18n "pages.index.storage"}}:</b> [[ SizeFormatter.sizeFormat(status.disk.current) ]] / [[ SizeFormatter.sizeFormat(status.disk.total) ]]
</div>
</a-col>
</a-row>

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Overview"
"cpu" = "CPU"
"cpuCores" = "Cores"
"logicalProcessors" = "Logical Processors"
"frequency" = "Frequency"
"swap" = "Swap"
"storage" = "Storage"
"storageUsed" = "Used"
"storageTotal" = "Total"
"memory" = "RAM"
"threads" = "Threads"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Estado del Sistema"
"cpu" = "CPU"
"cpuCores" = "Núcleos"
"logicalProcessors" = "Procesadores lógicos"
"frequency" = "Frecuencia"
"swap" = "Intercambio"
"storage" = "Almacenamiento"
"storageUsed" = "Usado"
"storageTotal" = "Total"
"memory" = "RAM"
"threads" = "Hilos"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "نمای کلی"
"cpu" = "پردازنده"
"cpuCores" = "هسته‌ها"
"logicalProcessors" = "پردازنده‌های منطقی"
"frequency" = "فرکانس"
"swap" = "سواپ"
"storage" = "ذخیره‌سازی"
"storageUsed" = "استفاده شده"
"storageTotal" = "کل"
"memory" = "حافظه رم"
"threads" = "رشته‌ها"
"xrayStatus" = "ایکس‌ری"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Ikhtisar"
"cpu" = "CPU"
"cpuCores" = "Inti"
"logicalProcessors" = "Prosesor logis"
"frequency" = "Frekuensi"
"swap" = "Swap"
"storage" = "Penyimpanan"
"storageUsed" = "Digunakan"
"storageTotal" = "Total"
"memory" = "RAM"
"threads" = "Thread"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "システムステータス"
"cpu" = "CPU"
"cpuCores" = "コア"
"logicalProcessors" = "論理プロセッサ"
"frequency" = "周波数"
"swap" = "スワップ"
"storage" = "ストレージ"
"storageUsed" = "使用済み"
"storageTotal" = "合計"
"memory" = "RAM"
"threads" = "スレッド"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Visão Geral"
"cpu" = "CPU"
"cpuCores" = "Núcleos"
"logicalProcessors" = "Processadores lógicos"
"frequency" = "Frequência"
"swap" = "Swap"
"storage" = "Armazenamento"
"storageUsed" = "Usado"
"storageTotal" = "Total"
"memory" = "RAM"
"threads" = "Threads"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Статус системы"
"cpu" = "ЦП"
"cpuCores" = "Ядра"
"logicalProcessors" = "Логические процессоры"
"frequency" = "Частота"
"swap" = "Файл подкачки"
"storage" = "Хранилище"
"storageUsed" = "Использовано"
"storageTotal" = "Всего"
"memory" = "ОЗУ"
"threads" = "Потоки"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Genel Bakış"
"cpu" = "İşlemci"
"cpuCores" = "Çekirdekler"
"logicalProcessors" = "Mantıksal işlemciler"
"frequency" = "Frekans"
"swap" = "Takas"
"storage" = "Depolama"
"storageUsed" = "Kullanılan"
"storageTotal" = "Toplam"
"memory" = "RAM"
"threads" = "İş parçacıkları"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Огляд"
"cpu" = "ЦП"
"cpuCores" = "Ядра"
"logicalProcessors" = "Логічні процесори"
"frequency" = "Частота"
"swap" = "Своп"
"storage" = "Сховище"
"storageUsed" = "Використано"
"storageTotal" = "Всього"
"memory" = "ОЗП"
"threads" = "Потоки"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "Trạng thái hệ thống"
"cpu" = "CPU"
"cpuCores" = "Nhân"
"logicalProcessors" = "Bộ xử lý logic"
"frequency" = "Tần số"
"swap" = "Swap"
"storage" = "Lưu trữ"
"storageUsed" = "Đã dùng"
"storageTotal" = "Tổng"
"memory" = "RAM"
"threads" = "Luồng"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "系统状态"
"cpu" = "CPU"
"cpuCores" = "核心"
"logicalProcessors" = "逻辑处理器"
"frequency" = "频率"
"swap" = "交换分区"
"storage" = "存储"
"storageUsed" = "已用"
"storageTotal" = "总计"
"memory" = "内存"
"threads" = "线程"
"xrayStatus" = "Xray"

View file

@ -92,13 +92,10 @@
[pages.index]
"title" = "系統狀態"
"cpu" = "CPU"
"cpuCores" = "核心"
"logicalProcessors" = "邏輯處理器"
"frequency" = "頻率"
"swap" = "交換空間"
"storage" = "儲存"
"storageUsed" = "已使用"
"storageTotal" = "總計"
"memory" = "記憶體"
"threads" = "執行緒"
"xrayStatus" = "Xray"