mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 13:32:24 +00:00
Compare commits
2 commits
1243a3cfe8
...
62a2618618
Author | SHA1 | Date | |
---|---|---|---|
![]() |
62a2618618 | ||
![]() |
bf6350c0a3 |
14 changed files with 11 additions and 64 deletions
|
@ -558,6 +558,10 @@ class CPUFormatter {
|
||||||
static cpuSpeedFormat(speed) {
|
static cpuSpeedFormat(speed) {
|
||||||
return speed > 1000 ? (speed / 1000).toFixed(2) + " GHz" : speed.toFixed(2) + " MHz";
|
return speed > 1000 ? (speed / 1000).toFixed(2) + " GHz" : speed.toFixed(2) + " MHz";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static cpuCoreFormat(cores) {
|
||||||
|
return cores === 1 ? "1 Core" : cores + " Cores";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class TimeFormatter {
|
class TimeFormatter {
|
||||||
|
|
|
@ -109,11 +109,10 @@
|
||||||
:stroke-color="status.cpu.color"
|
:stroke-color="status.cpu.color"
|
||||||
:percent="status.cpu.percent"></a-progress>
|
:percent="status.cpu.percent"></a-progress>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ i18n "pages.index.cpu" }}</span>
|
<b>{{ i18n "pages.index.cpu" }}:</b> [[ CPUFormatter.cpuCoreFormat(status.cpuCores) ]]
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<a-icon type="area-chart"></a-icon>
|
<a-icon type="area-chart"></a-icon>
|
||||||
<template slot="title">
|
<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.logicalProcessors" }}:</b> [[ (status.logicalPro) ]]</div>
|
||||||
<div><b>{{ i18n "pages.index.frequency" }}:</b> [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]</div>
|
<div><b>{{ i18n "pages.index.frequency" }}:</b> [[ CPUFormatter.cpuSpeedFormat(status.cpuSpeedMhz) ]]</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -125,14 +124,7 @@
|
||||||
:stroke-color="status.mem.color"
|
:stroke-color="status.mem.color"
|
||||||
:percent="status.mem.percent"></a-progress>
|
:percent="status.mem.percent"></a-progress>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ i18n "pages.index.memory" }}</span>
|
<b>{{ i18n "pages.index.memory"}}:</b> [[ SizeFormatter.sizeFormat(status.mem.current) ]] / [[ SizeFormatter.sizeFormat(status.mem.total) ]]
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -144,14 +136,7 @@
|
||||||
:stroke-color="status.swap.color"
|
:stroke-color="status.swap.color"
|
||||||
:percent="status.swap.percent"></a-progress>
|
:percent="status.swap.percent"></a-progress>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ i18n "pages.index.swap" }}</span>
|
<b>{{ i18n "pages.index.swap" }}:</b> [[ SizeFormatter.sizeFormat(status.swap.current) ]] / [[ SizeFormatter.sizeFormat(status.swap.total) ]]
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" :style="{ textAlign: 'center' }">
|
<a-col :span="12" :style="{ textAlign: 'center' }">
|
||||||
|
@ -159,14 +144,7 @@
|
||||||
:stroke-color="status.disk.color"
|
:stroke-color="status.disk.color"
|
||||||
:percent="status.disk.percent"></a-progress>
|
:percent="status.disk.percent"></a-progress>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ i18n "pages.index.storage" }}</span>
|
<b>{{ i18n "pages.index.storage"}}:</b> [[ SizeFormatter.sizeFormat(status.disk.current) ]] / [[ SizeFormatter.sizeFormat(status.disk.total) ]]
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Overview"
|
"title" = "Overview"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "Cores"
|
|
||||||
"logicalProcessors" = "Logical Processors"
|
"logicalProcessors" = "Logical Processors"
|
||||||
"frequency" = "Frequency"
|
"frequency" = "Frequency"
|
||||||
"swap" = "Swap"
|
"swap" = "Swap"
|
||||||
"storage" = "Storage"
|
"storage" = "Storage"
|
||||||
"storageUsed" = "Used"
|
|
||||||
"storageTotal" = "Total"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "Threads"
|
"threads" = "Threads"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Estado del Sistema"
|
"title" = "Estado del Sistema"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "Núcleos"
|
|
||||||
"logicalProcessors" = "Procesadores lógicos"
|
"logicalProcessors" = "Procesadores lógicos"
|
||||||
"frequency" = "Frecuencia"
|
"frequency" = "Frecuencia"
|
||||||
"swap" = "Intercambio"
|
"swap" = "Intercambio"
|
||||||
"storage" = "Almacenamiento"
|
"storage" = "Almacenamiento"
|
||||||
"storageUsed" = "Usado"
|
|
||||||
"storageTotal" = "Total"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "Hilos"
|
"threads" = "Hilos"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "نمای کلی"
|
"title" = "نمای کلی"
|
||||||
"cpu" = "پردازنده"
|
"cpu" = "پردازنده"
|
||||||
"cpuCores" = "هستهها"
|
|
||||||
"logicalProcessors" = "پردازندههای منطقی"
|
"logicalProcessors" = "پردازندههای منطقی"
|
||||||
"frequency" = "فرکانس"
|
"frequency" = "فرکانس"
|
||||||
"swap" = "سواپ"
|
"swap" = "سواپ"
|
||||||
"storage" = "ذخیرهسازی"
|
"storage" = "ذخیرهسازی"
|
||||||
"storageUsed" = "استفاده شده"
|
|
||||||
"storageTotal" = "کل"
|
|
||||||
"memory" = "حافظه رم"
|
"memory" = "حافظه رم"
|
||||||
"threads" = "رشتهها"
|
"threads" = "رشتهها"
|
||||||
"xrayStatus" = "ایکسری"
|
"xrayStatus" = "ایکسری"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Ikhtisar"
|
"title" = "Ikhtisar"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "Inti"
|
|
||||||
"logicalProcessors" = "Prosesor logis"
|
"logicalProcessors" = "Prosesor logis"
|
||||||
"frequency" = "Frekuensi"
|
"frequency" = "Frekuensi"
|
||||||
"swap" = "Swap"
|
"swap" = "Swap"
|
||||||
"storage" = "Penyimpanan"
|
"storage" = "Penyimpanan"
|
||||||
"storageUsed" = "Digunakan"
|
|
||||||
"storageTotal" = "Total"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "Thread"
|
"threads" = "Thread"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
@ -335,6 +332,7 @@
|
||||||
"subShowInfo" = "Tampilkan Info Penggunaan"
|
"subShowInfo" = "Tampilkan Info Penggunaan"
|
||||||
"subShowInfoDesc" = "Sisa traffic dan tanggal akan ditampilkan di aplikasi klien."
|
"subShowInfoDesc" = "Sisa traffic dan tanggal akan ditampilkan di aplikasi klien."
|
||||||
"subURI" = "URI Proxy Terbalik"
|
"subURI" = "URI Proxy Terbalik"
|
||||||
|
"subURIDesc" = "Path URI dari URL langganan untuk digunakan di belakang proxy."
|
||||||
"externalTrafficInformEnable" = "Informasikan API eksternal pada setiap pembaruan lalu lintas."
|
"externalTrafficInformEnable" = "Informasikan API eksternal pada setiap pembaruan lalu lintas."
|
||||||
"externalTrafficInformEnableDesc" = "Inform external API on every traffic update."
|
"externalTrafficInformEnableDesc" = "Inform external API on every traffic update."
|
||||||
"externalTrafficInformURI" = "Lalu Lintas Eksternal Menginformasikan URI"
|
"externalTrafficInformURI" = "Lalu Lintas Eksternal Menginformasikan URI"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "システムステータス"
|
"title" = "システムステータス"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "コア"
|
|
||||||
"logicalProcessors" = "論理プロセッサ"
|
"logicalProcessors" = "論理プロセッサ"
|
||||||
"frequency" = "周波数"
|
"frequency" = "周波数"
|
||||||
"swap" = "スワップ"
|
"swap" = "スワップ"
|
||||||
"storage" = "ストレージ"
|
"storage" = "ストレージ"
|
||||||
"storageUsed" = "使用済み"
|
|
||||||
"storageTotal" = "合計"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "スレッド"
|
"threads" = "スレッド"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Visão Geral"
|
"title" = "Visão Geral"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "Núcleos"
|
|
||||||
"logicalProcessors" = "Processadores lógicos"
|
"logicalProcessors" = "Processadores lógicos"
|
||||||
"frequency" = "Frequência"
|
"frequency" = "Frequência"
|
||||||
"swap" = "Swap"
|
"swap" = "Swap"
|
||||||
"storage" = "Armazenamento"
|
"storage" = "Armazenamento"
|
||||||
"storageUsed" = "Usado"
|
|
||||||
"storageTotal" = "Total"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "Threads"
|
"threads" = "Threads"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Статус системы"
|
"title" = "Статус системы"
|
||||||
"cpu" = "ЦП"
|
"cpu" = "ЦП"
|
||||||
"cpuCores" = "Ядра"
|
|
||||||
"logicalProcessors" = "Логические процессоры"
|
"logicalProcessors" = "Логические процессоры"
|
||||||
"frequency" = "Частота"
|
"frequency" = "Частота"
|
||||||
"swap" = "Файл подкачки"
|
"swap" = "Файл подкачки"
|
||||||
"storage" = "Хранилище"
|
"storage" = "Хранилище"
|
||||||
"storageUsed" = "Использовано"
|
|
||||||
"storageTotal" = "Всего"
|
|
||||||
"memory" = "ОЗУ"
|
"memory" = "ОЗУ"
|
||||||
"threads" = "Потоки"
|
"threads" = "Потоки"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Genel Bakış"
|
"title" = "Genel Bakış"
|
||||||
"cpu" = "İşlemci"
|
"cpu" = "İşlemci"
|
||||||
"cpuCores" = "Çekirdekler"
|
|
||||||
"logicalProcessors" = "Mantıksal işlemciler"
|
"logicalProcessors" = "Mantıksal işlemciler"
|
||||||
"frequency" = "Frekans"
|
"frequency" = "Frekans"
|
||||||
"swap" = "Takas"
|
"swap" = "Takas"
|
||||||
"storage" = "Depolama"
|
"storage" = "Depolama"
|
||||||
"storageUsed" = "Kullanılan"
|
|
||||||
"storageTotal" = "Toplam"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "İş parçacıkları"
|
"threads" = "İş parçacıkları"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Огляд"
|
"title" = "Огляд"
|
||||||
"cpu" = "ЦП"
|
"cpu" = "ЦП"
|
||||||
"cpuCores" = "Ядра"
|
|
||||||
"logicalProcessors" = "Логічні процесори"
|
"logicalProcessors" = "Логічні процесори"
|
||||||
"frequency" = "Частота"
|
"frequency" = "Частота"
|
||||||
"swap" = "Своп"
|
"swap" = "Своп"
|
||||||
"storage" = "Сховище"
|
"storage" = "Сховище"
|
||||||
"storageUsed" = "Використано"
|
|
||||||
"storageTotal" = "Всього"
|
|
||||||
"memory" = "ОЗП"
|
"memory" = "ОЗП"
|
||||||
"threads" = "Потоки"
|
"threads" = "Потоки"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "Trạng thái hệ thống"
|
"title" = "Trạng thái hệ thống"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "Nhân"
|
|
||||||
"logicalProcessors" = "Bộ xử lý logic"
|
"logicalProcessors" = "Bộ xử lý logic"
|
||||||
"frequency" = "Tần số"
|
"frequency" = "Tần số"
|
||||||
"swap" = "Swap"
|
"swap" = "Swap"
|
||||||
"storage" = "Lưu trữ"
|
"storage" = "Lưu trữ"
|
||||||
"storageUsed" = "Đã dùng"
|
|
||||||
"storageTotal" = "Tổng"
|
|
||||||
"memory" = "RAM"
|
"memory" = "RAM"
|
||||||
"threads" = "Luồng"
|
"threads" = "Luồng"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "系统状态"
|
"title" = "系统状态"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "核心"
|
|
||||||
"logicalProcessors" = "逻辑处理器"
|
"logicalProcessors" = "逻辑处理器"
|
||||||
"frequency" = "频率"
|
"frequency" = "频率"
|
||||||
"swap" = "交换分区"
|
"swap" = "交换分区"
|
||||||
"storage" = "存储"
|
"storage" = "存储"
|
||||||
"storageUsed" = "已用"
|
|
||||||
"storageTotal" = "总计"
|
|
||||||
"memory" = "内存"
|
"memory" = "内存"
|
||||||
"threads" = "线程"
|
"threads" = "线程"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
|
@ -92,13 +92,10 @@
|
||||||
[pages.index]
|
[pages.index]
|
||||||
"title" = "系統狀態"
|
"title" = "系統狀態"
|
||||||
"cpu" = "CPU"
|
"cpu" = "CPU"
|
||||||
"cpuCores" = "核心"
|
|
||||||
"logicalProcessors" = "邏輯處理器"
|
"logicalProcessors" = "邏輯處理器"
|
||||||
"frequency" = "頻率"
|
"frequency" = "頻率"
|
||||||
"swap" = "交換空間"
|
"swap" = "交換空間"
|
||||||
"storage" = "儲存"
|
"storage" = "儲存"
|
||||||
"storageUsed" = "已使用"
|
|
||||||
"storageTotal" = "總計"
|
|
||||||
"memory" = "記憶體"
|
"memory" = "記憶體"
|
||||||
"threads" = "執行緒"
|
"threads" = "執行緒"
|
||||||
"xrayStatus" = "Xray"
|
"xrayStatus" = "Xray"
|
||||||
|
|
Loading…
Reference in a new issue