From 05deb89451b53b57b6ebe90f6b6df6a0b98bd156 Mon Sep 17 00:00:00 2001 From: Steven <1066106590@qq.com> Date: Sat, 9 Mar 2024 20:49:15 +0800 Subject: [PATCH 1/2] update translation-zh (#1999) --- web/translation/translate.zh_Hans.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index feb8a6ee..16ec5add 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -214,13 +214,13 @@ "request" = "要求" "response" = "回复" "name" = "姓名" -"value" = "价值" +"value" = "值" [pages.inbounds.stream.tcp] "version" = "版本" "method" = "方法" -"path" = "小路" -"status" = "地位" +"path" = "路径" +"status" = "状态" "statusDescription" = "状态说明" "requestHeader" = "请求头" "responseHeader" = "响应头" @@ -234,7 +234,7 @@ "infoDesc" = "此处的所有更改都需要保存并重启面板才能生效" "restartPanel" = "重启面板" "restartPanelDesc" = "确定要重启面板吗?点击确定将于 3 秒后重启,若重启后无法访问面板,请前往服务器查看面板日志信息" -"actions" = "动作" +"actions" = "操作" "resetDefaultConfig" = "重置为默认配置" "panelSettings" = "面板配置" "securitySettings" = "安全设定" @@ -276,7 +276,7 @@ "tgNotifyBackupDesc" = "正在发送数据库备份文件和报告通知" "tgNotifyLogin" = "登录通知" "tgNotifyLoginDesc" = "当有人试图登录您的面板时显示用户名、IP 地址和时间" -"sessionMaxAge" = "会话最大年龄" +"sessionMaxAge" = "会话最大时间" "sessionMaxAgeDesc" = "您可以保持登录状态的时间(单位:分钟)" "expireTimeDiff" = "耗尽时间阈值" "expireTimeDiffDesc" = "到期前检测耗尽(单位:天)" @@ -426,7 +426,7 @@ "dest" = "目的地" "inbound" = "入站" "outbound" = "出站" -"balancer" = "平衡器" +"balancer" = "负载均衡" "info" = "信息" "add" = "添加规则" "edit" = "编辑规则" @@ -440,7 +440,7 @@ "tag" = "标签" "tagDesc" = "唯一标记" "address" = "地址" -"reverse" = "反转" +"reverse" = "反向" "domain" = "域名" "type" = "类型" "bridge" = "桥" @@ -448,9 +448,9 @@ "intercon" = "互连" [pages.xray.balancer] -"addBalancer" = "添加平衡器" -"editBalancer" = "编辑平衡器" -"balancerStrategy" = "战略" +"addBalancer" = "添加负载均衡" +"editBalancer" = "编辑负载均衡" +"balancerStrategy" = "策略" "balancerSelectors" = "选择器" "tag" = "标签" "tagDesc" = "唯一标记" From ffa531f9cac29802af8778404679d6112b7a6b97 Mon Sep 17 00:00:00 2001 From: Tara Rostami <132676256+TaraRostami@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:36:16 +0330 Subject: [PATCH 2/2] Minor Fixes (#1992) autocomplete max - min for input-number --- web/assets/css/custom.css | 21 ++++++++++++++++++- web/html/login.html | 24 +++++++++------------- web/html/xui/common_sider.html | 26 ++---------------------- web/html/xui/component/setting.html | 4 ++-- web/html/xui/component/themeSwitch.html | 12 ++++++++--- web/html/xui/form/inbound.html | 2 +- web/html/xui/form/stream/stream_kcp.html | 12 +++++------ web/html/xui/inbounds.html | 2 +- web/html/xui/settings.html | 14 ++++++------- 9 files changed, 58 insertions(+), 59 deletions(-) diff --git a/web/assets/css/custom.css b/web/assets/css/custom.css index 4ab6c5a8..506a0439 100644 --- a/web/assets/css/custom.css +++ b/web/assets/css/custom.css @@ -80,6 +80,11 @@ html[data-theme='ultra-dark'] { .dark .waves-header { background-color: #0a2227; } + .dark .ant-calendar-year-panel-year:hover, + .dark .ant-calendar-month-panel-month:hover, + .dark .ant-calendar-decade-panel-decade:hover { + background-color: var(--dark-color-surface-600); + } } html, @@ -175,7 +180,7 @@ style attribute { position: relative; clear: both; } -.ant-table-body { +.ant-table-wrapper > div > div > div > div > div > div { overflow-x: auto !important; } .ant-card-hoverable { @@ -791,6 +796,15 @@ style attribute { border-color: var(--dark-color-surface-500); } +@media (max-width: 768px) { + .dark .ant-popover-inner { + background-color: var(--dark-color-surface-200); + } + .dark > .ant-popover-content > .ant-popover-arrow { + border-color: var(--dark-color-surface-200); + } +} + .ant-dropdown-menu-dark .ant-dropdown-menu-item:hover, .dark .ant-select-dropdown-menu-item-selected, .dark .ant-calendar-time-picker-select-option-selected { @@ -1257,3 +1271,8 @@ b, strong { .ant-empty-small .ant-empty-image { height: 20px; } + +.ant-menu-theme-switch:hover { + background-color: transparent !important; + cursor: default !important; +} diff --git a/web/html/login.html b/web/html/login.html index 7655c66f..dfb01cea 100644 --- a/web/html/login.html +++ b/web/html/login.html @@ -374,6 +374,12 @@ transform: translateZ(-100px); } } + .ant-menu-item .anticon { + margin-right: 4px; + } + .ant-menu-inline .ant-menu-item { + padding: 0 16px !important; + } @@ -410,19 +416,19 @@ - - - @@ -455,17 +461,7 @@ - -   - - - - - Ultra - - + diff --git a/web/html/xui/common_sider.html b/web/html/xui/common_sider.html index 78b833b9..bc8f4608 100644 --- a/web/html/xui/common_sider.html +++ b/web/html/xui/common_sider.html @@ -24,18 +24,7 @@ {{define "commonSider"}} - - - - - - - Ultra - - - + {{template "menuItems" .}} @@ -49,18 +38,7 @@
- - - - - - - Ultra - - - + {{template "menuItems" .}} diff --git a/web/html/xui/component/setting.html b/web/html/xui/component/setting.html index 82c0ae75..8adc000c 100644 --- a/web/html/xui/component/setting.html +++ b/web/html/xui/component/setting.html @@ -16,7 +16,7 @@