diff --git a/resource/l10n/en-US.toml b/resource/l10n/en-US.toml index 3884ab0..38b2634 100644 --- a/resource/l10n/en-US.toml +++ b/resource/l10n/en-US.toml @@ -690,3 +690,18 @@ other = "Cancel" [FMError] other = "Agent returned an error, please view the console for details. To open a new connection, reopen the FM again." + +[Remaining] +other = "Remaining" + +[Lifetime] +other = "Lifetime" + +[Price] +other = "Price" + +[Expired] +other = "Expired" + +[Days] +other = "d" diff --git a/resource/l10n/es-ES.toml b/resource/l10n/es-ES.toml index 1d77d67..e32bef6 100644 --- a/resource/l10n/es-ES.toml +++ b/resource/l10n/es-ES.toml @@ -690,3 +690,18 @@ other = "Cancelar" [FMError] other = "Agent devolvió un error, consulte la consola para obtener más detalles. Para abrir una nueva conexión, vuelva a abrir el FM." + +[Remaining] +other = "Remaining" + +[Lifetime] +other = "Lifetime" + +[Price] +other = "Price" + +[Expired] +other = "Expired" + +[Days] +other = "d" diff --git a/resource/l10n/zh-CN.toml b/resource/l10n/zh-CN.toml index 2208494..26478db 100644 --- a/resource/l10n/zh-CN.toml +++ b/resource/l10n/zh-CN.toml @@ -690,3 +690,18 @@ other = "取消" [FMError] other = "Agent 返回了错误,请查看控制台获取详细信息。要建立新连接,请重新打开 FM。" + +[Remaining] +other = "剩余" + +[Lifetime] +other = "永续" + +[Price] +other = "价格" + +[Expired] +other = "已到期" + +[Days] +other = "天" diff --git a/resource/l10n/zh-TW.toml b/resource/l10n/zh-TW.toml index cde3d23..dc07750 100644 --- a/resource/l10n/zh-TW.toml +++ b/resource/l10n/zh-TW.toml @@ -690,3 +690,18 @@ other = "取消" [FMError] other = "Agent 回傳了錯誤,請查看主控台獲取詳細資訊。要建立新連線,請重新開啟 FM。" + +[Remaining] +other = "剩餘" + +[Lifetime] +other = "永續" + +[Price] +other = "價格" + +[Expired] +other = "已到期" + +[Days] +other = "天" diff --git a/resource/static/theme-server-status/css/dark.css b/resource/static/theme-server-status/css/dark.css index ea37d77..011e4ca 100755 --- a/resource/static/theme-server-status/css/dark.css +++ b/resource/static/theme-server-status/css/dark.css @@ -8,6 +8,11 @@ body[theme="dark"] .navbar .navbar-brand { color: #ffffff; } +body[theme="dark"] .navbar .navbar-nav li.pc-active a, +body[theme="dark"] .navbar .navbar-nav li.m-active a{ + color: rgba(73, 146, 255, 1); +} + body[theme="dark"] .navbar .dropdown-menu { background-color: rgba(23, 26, 30, 1); border-color: rgba(49, 54, 59, 1); @@ -88,8 +93,8 @@ body[theme="dark"] .table > tbody > tr.expandRow.even > td:before{ /* expandRow展开部分样式结束 */ body[theme="dark"] .progress { - background-image: linear-gradient(#2c2c2c 0,rgba(28, 29, 38, 1) 100%); - background-color: rgba(28, 29, 38, 1); + background-image: none; + background-color: rgba(255, 255, 255, 0.075); } body[theme="dark"] .progress-bar { @@ -174,5 +179,5 @@ body[theme="dark"] .toolbox i{ } body[theme="dark"] .network-box .network-box-header{ - border-bottom: 1px solid rgba(110, 112, 121, 0.25); + border-bottom-color: rgba(110, 112, 121, 0.25); } \ No newline at end of file diff --git a/resource/static/theme-server-status/css/light.css b/resource/static/theme-server-status/css/light.css index 93b3f10..8cc7b08 100755 --- a/resource/static/theme-server-status/css/light.css +++ b/resource/static/theme-server-status/css/light.css @@ -16,10 +16,15 @@ body[theme="light"] .navbar .navbar-brand { color: rgba(0, 0, 0, 0.87); } -body[theme="light"] .navbar .navbar-nav > li > a{ +body[theme="light"] .navbar .navbar-nav > li > a { color: rgba(0, 0, 0, 0.87); } +body[theme="light"] .navbar .navbar-nav li.pc-active a, +body[theme="light"] .navbar .navbar-nav li.m-active a { + color: rgba(73, 146, 255, 1); +} + body[theme="light"] .navbar .navbar-nav > .open > a:focus, body[theme="light"] .navbar .navbar-nav > .open > a:hover, body[theme="light"] .navbar .navbar-nav > .active > a, @@ -198,7 +203,7 @@ body[theme="light"] .modal-header i.xclose{ } body[theme="light"] .network-box .network-box-header{ - border-bottom: 1px solid rgba(224, 230, 241, 0.6); + border-bottom-color: rgba(224, 230, 241, 0.6); } @media only screen and (max-width: 767px) { diff --git a/resource/static/theme-server-status/css/main.css b/resource/static/theme-server-status/css/main.css index e77100b..86b7735 100755 --- a/resource/static/theme-server-status/css/main.css +++ b/resource/static/theme-server-status/css/main.css @@ -237,8 +237,8 @@ tr.accordion-toggle{ } .node-cell.network { - min-width: 100px; - max-width: 100px; + min-width: 110px; + max-width: 110px; } .node-cell.traffic { @@ -250,6 +250,24 @@ tr.accordion-toggle{ max-width: 50px; } +.node-cell.remaining { + min-width: 65px; + max-width: 65px; +} + +.node-cell.remaining .additional { + position: absolute; + left: 0; + font-size: 12px; + text-align: center; + width: 100%; +} + +.node-cell.remaining .additional small{ + white-space: nowrap; + font-size: 80%; +} + .temp-detail { cursor: pointer; } @@ -331,6 +349,8 @@ td.ping-network-quality { padding: 5px 0px 15px 5px; cursor: pointer; width: 100%; + border-bottom-width: 1px; + border-bottom-style: solid; } .network-box .network-box-header .dropdown-menu { @@ -529,6 +549,10 @@ footer p{ display: none; visibility: hidden; } + .node-cell.remaining { + min-width: 75px; + max-width: 75px; + } .accordian-body{ margin: 5px 0px 5px 10px; } @@ -572,6 +596,7 @@ footer p{ .network-box .network-box-header { margin: 8px 0px 0px 8px; font-size: 16px; + border-bottom: none; } .network-box .chartTitle { font-size: 16px; diff --git a/resource/static/theme-server-status/js/mixin.js b/resource/static/theme-server-status/js/mixin.js index d12728e..05fb65d 100644 --- a/resource/static/theme-server-status/js/mixin.js +++ b/resource/static/theme-server-status/js/mixin.js @@ -155,6 +155,11 @@ const mixinsVue = { checkIsMobile() { // 检测设备类型,页面宽度小于768px认为是移动设备 return window.innerWidth <= 768; }, + isMenuActive(page){ + if(page == this.$root.page) { + return this.isMobile ? 'm-active' : 'pc-active'; + } + }, setBenchmarkHeight() { let vh = window.innerHeight * 0.01; document.documentElement.style.setProperty('--vh', `${vh}px`); diff --git a/resource/template/dashboard-default/server.html b/resource/template/dashboard-default/server.html index 24c3456..2cea237 100644 --- a/resource/template/dashboard-default/server.html +++ b/resource/template/dashboard-default/server.html @@ -30,9 +30,6 @@