Skip to content

Commit 6e5ed88

Browse files
shishkevichdMHSanaei
authored andcommitted
chore: pretty Inbounds page (#2791)
* chore: pretty 'Inbounds' page * chore: return styles for aCustomStatistic styles was intended to properly display a-statistic in the app, but for some unknown reason it was removed * fix: switch style in dark mode ---------
1 parent d52c50f commit 6e5ed88

15 files changed

+444
-376
lines changed

web/html/xui/component/aCustomStatistic.html

+12
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
{{end}}
1313

1414
{{define "component/aCustomStatistic"}}
15+
<style>
16+
.dark .ant-statistic-content {
17+
color: var(--dark-color-text-primary)
18+
}
19+
.dark .ant-statistic-title {
20+
color: rgba(255, 255, 255, 0.55)
21+
}
22+
.ant-statistic-content {
23+
font-size: 16px;
24+
}
25+
</style>
26+
1527
<script>
1628
Vue.component('a-custom-statistic', {
1729
props: {

web/html/xui/inbounds.html

+404-367
Large diffs are not rendered by default.

web/html/xui/index.html

+4-9
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
}
2525
.dark .ant-backup-list-item svg,
2626
.dark .ant-badge-status-text,
27-
.dark .ant-statistic-content,
2827
.dark .ant-card-extra {
2928
color: var(--dark-color-text-primary);
3029
}
31-
.dark .ant-statistic-title,
3230
.dark .ant-card-actions>li {
3331
color: rgba(255, 255, 255, 0.55);
3432
}
@@ -48,9 +46,6 @@
4846
.ant-card-actions {
4947
background: transparent;
5048
}
51-
.ant-statistic-content {
52-
font-size: 16px;
53-
}
5449
.ip-hidden {
5550
-webkit-user-select: none;
5651
-moz-user-select: none;
@@ -299,16 +294,16 @@
299294
</template>
300295
<a-row :class="showIp ? 'ip-visible' : 'ip-hidden'">
301296
<a-col :xs="24" :xxl="12" :style="{ marginTop: isMobile ? '10px' : 0 }">
302-
<a-custom-statistic :value="status.publicIP.ipv4">
297+
<a-custom-statistic title="IPv4" :value="status.publicIP.ipv4">
303298
<template #prefix>
304-
IPv4:
299+
<a-icon type="global" />
305300
</template>
306301
</a-custom-statistic>
307302
</a-col>
308303
<a-col :xs="24" :xxl="12" :style="{ marginTop: isMobile ? '10px' : 0 }">
309-
<a-custom-statistic :value="status.publicIP.ipv6">
304+
<a-custom-statistic title="IPv6" :value="status.publicIP.ipv6">
310305
<template #prefix>
311-
IPv6:
306+
<a-icon type="global" />
312307
</template>
313308
</a-custom-statistic>
314309
</a-col>

web/translation/translate.en_US.toml

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@
140140
"resetTraffic" = "Reset Traffic"
141141
"addInbound" = "Add Inbound"
142142
"generalActions" = "General Actions"
143+
"autoRefresh" = "Auto-refresh"
144+
"autoRefreshInterval" = "Interval"
143145
"create" = "Create"
144146
"update" = "Update"
145147
"modifyInbound" = "Modify Inbound"

web/translation/translate.es_ES.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Restablecer Tráfico"
143143
"addInbound" = "Agregar Entrada"
144144
"generalActions" = "Acciones Generales"
145+
"autoRefresh" = "Auto-actualizar"
146+
"autoRefreshInterval" = "Intervalo"
145147
"create" = "Crear"
146148
"update" = "Actualizar"
147149
"modifyInbound" = "Modificar Entrada"

web/translation/translate.fa_IR.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "ریست ترافیک"
143143
"addInbound" = "افزودن ورودی"
144144
"generalActions" = "عملیات کلی"
145+
"autoRefresh" = "تازه‌سازی خودکار"
146+
"autoRefreshInterval" = "فاصله"
145147
"create" = "افزودن"
146148
"update" = "ویرایش"
147149
"modifyInbound" = "ویرایش ورودی"

web/translation/translate.id_ID.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Reset Traffic"
143143
"addInbound" = "Tambahkan Masuk"
144144
"generalActions" = "Tindakan Umum"
145+
"autoRefresh" = "Pembaruan otomatis"
146+
"autoRefreshInterval" = "Interval"
145147
"create" = "Buat"
146148
"update" = "Perbarui"
147149
"modifyInbound" = "Ubah Masuk"

web/translation/translate.ja_JP.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "トラフィックリセット"
143143
"addInbound" = "インバウンド追加"
144144
"generalActions" = "一般操作"
145+
"autoRefresh" = "自動更新"
146+
"autoRefreshInterval" = "間隔"
145147
"create" = "追加"
146148
"update" = "更新"
147149
"modifyInbound" = "インバウンド修正"

web/translation/translate.pt_BR.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Redefinir Tráfego"
143143
"addInbound" = "Adicionar Inbound"
144144
"generalActions" = "Ações Gerais"
145+
"autoRefresh" = "Atualização automática"
146+
"autoRefreshInterval" = "Intervalo"
145147
"create" = "Criar"
146148
"update" = "Atualizar"
147149
"modifyInbound" = "Modificar Inbound"

web/translation/translate.ru_RU.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Сбросить трафик"
143143
"addInbound" = "Добавить подключение"
144144
"generalActions" = "Общие действия"
145+
"autoRefresh" = "Автообновление"
146+
"autoRefreshInterval" = "Интервал"
145147
"create" = "Создать"
146148
"update" = "Обновить"
147149
"modifyInbound" = "Изменить подключение"

web/translation/translate.tr_TR.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Trafiği Sıfırla"
143143
"addInbound" = "Gelen Ekle"
144144
"generalActions" = "Genel Eylemler"
145+
"autoRefresh" = "Otomatik yenileme"
146+
"autoRefreshInterval" = "Aralık"
145147
"create" = "Oluştur"
146148
"update" = "Güncelle"
147149
"modifyInbound" = "Geleni Düzenle"

web/translation/translate.uk_UA.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Скинути трафік"
143143
"addInbound" = "Додати вхідний"
144144
"generalActions" = "Загальні дії"
145+
"autoRefresh" = "Автооновлення"
146+
"autoRefreshInterval" = "Інтервал"
145147
"create" = "Створити"
146148
"update" = "Оновити"
147149
"modifyInbound" = "Змінити вхідний"

web/translation/translate.vi_VN.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "Đặt lại lưu lượng"
143143
"addInbound" = "Thêm điểm vào"
144144
"generalActions" = "Hành động chung"
145+
"autoRefresh" = "Tự động làm mới"
146+
"autoRefreshInterval" = "Khoảng thời gian"
145147
"create" = "Tạo mới"
146148
"update" = "Cập nhật"
147149
"modifyInbound" = "Chỉnh sửa điểm vào (Inbound)"

web/translation/translate.zh_CN.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "重置流量"
143143
"addInbound" = "添加入站"
144144
"generalActions" = "通用操作"
145+
"autoRefresh" = "自动刷新"
146+
"autoRefreshInterval" = "间隔"
145147
"create" = "添加"
146148
"update" = "修改"
147149
"modifyInbound" = "修改入站"

web/translation/translate.zh_TW.toml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
"resetTraffic" = "重置流量"
143143
"addInbound" = "新增入站"
144144
"generalActions" = "通用操作"
145+
"autoRefresh" = "自動刷新"
146+
"autoRefreshInterval" = "間隔"
145147
"create" = "新增"
146148
"update" = "修改"
147149
"modifyInbound" = "修改入站"

0 commit comments

Comments
 (0)