Skip to content

Commit

Permalink
improve: status-server主题日常优化 (#432)
Browse files Browse the repository at this point in the history
* improve: status-server主题日常优化
1. 首页账单信息:价格设置成“-1”前台展示为”PAYG“,自动续期(autoRenewal)功能增加支持付费周期yr,mo;
2. 当未获取到国旗图标时,默认彩虹旗;
3. 当未获取到os(操作系统)信息时,默认linux
4. 一些其他优化

* 修改表达不准确的语言文件
  • Loading branch information
nap0o authored Oct 8, 2024
1 parent 08aaea8 commit 937696c
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 93 deletions.
2 changes: 1 addition & 1 deletion resource/l10n/zh-CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ other = "活动"
other = "版本"

[NetSpeed]
other = "网络"
other = "网速"

[Uptime]
other = "在线"
Expand Down
2 changes: 1 addition & 1 deletion resource/l10n/zh-TW.toml
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ other = "活動"
other = "版本"

[NetSpeed]
other = "網路"
other = "網速"

[Uptime]
other = "在線"
Expand Down
24 changes: 12 additions & 12 deletions resource/static/theme-server-status/css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body[theme="dark"] .navbar .navbar-brand {
}

body[theme="dark"] .navbar .navbar-nav li.pc-active a,
body[theme="dark"] .navbar .navbar-nav li.m-active a{
body[theme="dark"] .navbar .navbar-nav li.m-active a {
color: rgba(73, 146, 255, 1);
}

Expand All @@ -32,7 +32,7 @@ body[theme="dark"] .navbar .dropdown-menu > li > a:hover {
body[theme="dark"] .navbar .navbar-nav > .open > a:focus,
body[theme="dark"] .navbar .navbar-nav > .open > a:hover,
body[theme="dark"] .navbar .navbar-nav > .active > a,
body[theme="dark"] .navbar .navbar-nav > .open > a{
body[theme="dark"] .navbar .navbar-nav > .open > a {
background-image: none;
box-shadow: none;
background-color: transparent;
Expand All @@ -58,7 +58,7 @@ body[theme="dark"] .table {
body[theme="dark"] .table > tbody > tr > td:before,
body[theme="dark"] .table > tfoot > tr > td:before,
body[theme="dark"] .table > thead > tr > td:before,
body[theme="dark"] .table > thead > tr.node-group-cell > th:before{
body[theme="dark"] .table > thead > tr.node-group-cell > th:before {
background-color: rgba(58, 62, 65, 1);
}

Expand All @@ -74,7 +74,7 @@ body[theme="dark"] .table-striped tbody > tr.odd > th {
background-color: rgba(34, 35, 46, 1);
}

body[theme="dark"] .table-hover > tbody > tr:hover{
body[theme="dark"] .table-hover > tbody > tr:hover {
background-color: unset;
}

Expand All @@ -83,11 +83,11 @@ body[theme="dark"] .table-hover > tbody > tr:not(.expandRow):hover > td {
}

/* expandRow展开部分样式 */
body[theme="dark"] .table > tbody > tr.expandRow.odd > td:before{
body[theme="dark"] .table > tbody > tr.expandRow.odd > td:before {
background-color: rgba(34, 35, 46, 1);
}

body[theme="dark"] .table > tbody > tr.expandRow.even > td:before{
body[theme="dark"] .table > tbody > tr.expandRow.even > td:before {
background-color: rgba(28, 29, 38, 1);
}
/* expandRow展开部分样式结束 */
Expand Down Expand Up @@ -155,29 +155,29 @@ body[theme="dark"] footer p a:hover {
text-decoration: none;
}

body[theme="dark"] .modal-content{
body[theme="dark"] .modal-content {
background-color: rgba(28, 29, 38, 1);
color: #f1f1f1;
}

body[theme="dark"] #earthChartBox .modal-content{
body[theme="dark"] #earthChartBox .modal-content {
background-color: rgba(0, 0, 0, 1);
color: #f1f1f1;
}

body[theme="dark"] .modal-header{
body[theme="dark"] .modal-header {
border-bottom-color:#080808;
}

body[theme="dark"] .modal-header i.xclose{
body[theme="dark"] .modal-header i.xclose {
color: #f1f1f1;
}

body[theme="dark"] .toolbox i{
body[theme="dark"] .toolbox i {
color: rgba(241, 241, 241, 1);
background-color: rgba(0, 0, 0, 0.5);
}

body[theme="dark"] .network-box .network-box-header{
body[theme="dark"] .network-box .network-box-header {
border-bottom-color: rgba(110, 112, 121, 0.25);
}
6 changes: 3 additions & 3 deletions resource/static/theme-server-status/css/dark.plus.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ body[theme="dark"] .table > thead > tr.node-group-tag > th:before {
body[theme="dark"] .table > tbody > tr > td:before,
body[theme="dark"] .table > tfoot > tr > td:before,
body[theme="dark"] .table > thead > tr > td:before,
body[theme="dark"] .table > thead > tr.node-group-cell > th:before{
body[theme="dark"] .table > thead > tr.node-group-cell > th:before {
/** border-bottom 颜色 **/
background-color: rgba(155, 155, 155, 0.1);
}
Expand All @@ -96,11 +96,11 @@ body[theme="dark"] .table-hover > tbody > tr:not(.expandRow):hover > td {
}

/* expandRow展开部分样式 */
body[theme="dark"] .table > tbody > tr.expandRow.odd > td:before{
body[theme="dark"] .table > tbody > tr.expandRow.odd > td:before {
background-color: unset;
}

body[theme="dark"] .table > tbody > tr.expandRow.even > td:before{
body[theme="dark"] .table > tbody > tr.expandRow.even > td:before {
background-color: unset;
}
/* expandRow展开部分样式结束 */
Expand Down
24 changes: 12 additions & 12 deletions resource/static/theme-server-status/css/light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions resource/static/theme-server-status/css/light.plus.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ body[theme="light"] .navbar .dropdown-menu {


body[theme="light"] .navbar .dropdown-menu > li > a:focus,
body[theme="light"] .navbar .dropdown-menu > li > a:hover{
body[theme="light"] .navbar .dropdown-menu > li > a:hover {
/** 二级导航鼠标悬停选中背景 **/
background-color: rgba(0, 0, 0, .05);
}

body[theme="light"] .navbar .navbar-collapse{
body[theme="light"] .navbar .navbar-collapse {
border-color:rgba(0, 0, 0, 0.085);
}

body[theme="light"] .navbar .navbar-toggle .icon-bar{
body[theme="light"] .navbar .navbar-toggle .icon-bar {
background-color: rgba(0, 0, 0, 0.9);
}

Expand Down Expand Up @@ -87,7 +87,7 @@ body[theme="light"] .table > thead > tr.node-group-tag > th:before {
body[theme="light"] .table > tbody > tr > td:before,
body[theme="light"] .table > tfoot > tr > td:before,
body[theme="light"] .table > thead > tr > td:before,
body[theme="light"] .table > thead > tr.node-group-cell > th:before{
body[theme="light"] .table > thead > tr.node-group-cell > th:before {
/** border-bottom 颜色 **/
background-color: rgba(0, 0, 0, 0.075);
}
Expand All @@ -97,11 +97,11 @@ body[theme="light"] .table-hover > tbody > tr:not(.expandRow):hover > td {
}

/* expandRow展开部分样式 */
body[theme="light"] .table > tbody > tr.expandRow.odd > td:before{
body[theme="light"] .table > tbody > tr.expandRow.odd > td:before {
background-color: unset;
}

body[theme="light"] .table > tbody > tr.expandRow.even > td:before{
body[theme="light"] .table > tbody > tr.expandRow.even > td:before {
background-color: unset;
}
/* expandRow展开部分样式结束 */
Expand All @@ -123,7 +123,7 @@ body[theme="light"] .progress-bar-danger {
background-image: linear-gradient(to right, rgba(255, 70, 0, 0.6) 0, rgba(201, 48, 44,0.6) 100%);
}

body[theme="light"] .toolbox i{
body[theme="light"] .toolbox i {
background-color: rgba(255, 255, 255, .55);
}

Expand Down
Loading

0 comments on commit 937696c

Please sign in to comment.