From 36bd3f3384dfe53df41a808c41b011f8e8e9b6fc Mon Sep 17 00:00:00 2001 From: guofeilong Date: Mon, 6 Feb 2023 16:52:51 +0800 Subject: [PATCH] * Code for task #83731 --- module/admin/css/index.css | 29 ++++++++++++- module/admin/lang/zh-cn.php | 6 +++ module/admin/view/index.html.php | 71 ++++++++++++++++++++++++++++++-- 3 files changed, 100 insertions(+), 6 deletions(-) diff --git a/module/admin/css/index.css b/module/admin/css/index.css index d052effbd4..f5523031fb 100755 --- a/module/admin/css/index.css +++ b/module/admin/css/index.css @@ -1,3 +1,17 @@ +/* atomic class */ +.flex {display: flex;} +.align-center {align-items: center;} +.justify-between {justify-content: space-between;} +.title-color {color: #313C52} +.font-13 {font-size: 13px;} +.color-gray {color: #5E626D;} +.border-gray {border: 1px solid #E3E4E9;} +.h-56 {height: 56px;} +.h-40 {height: 40px;} +.pl-16 {padding-left: 16px;} +.px-16 {padding: 0 16px;} +.mb-16 {margin-bottom: 16px;} + #notice {margin: -20px -20px 20px; padding: 20px;} #zentaoLinks {margin-top: 20px;} #zentaoLinks .panel .panel-heading {padding: 6px 10px;} @@ -7,7 +21,6 @@ .admin > .main {flex: 1 1 70%;} .admin > .side {flex: 1 1 30%; padding-left: 10px; margin-left: 16px;} .panel-title {padding: 10px 0px;} -.flex {display: flex;} .panel {padding: 0 0 0 16px;} .settings.panel, .plug.panel {margin-bottom: 16px;} @@ -19,7 +32,6 @@ .settings-list > .setting-box > h4 > img {padding-right: 8px; padding-bottom: 3px; width: 32px; height: 27px;} .settings-list > .setting-box > .setting-desc {padding-bottom: 16px; color: #5E626D;} .settings-list.lite-setting > .setting-box {flex: 1 1 30%;} -.panel-title > a {display: flex; align-items: center;} .plugin-list {display: flex; flex-wrap: wrap; padding: 12px 4px 4px 4px;} .plugin-list > .plugin-item {flex: 1 1 26%; padding: 16px 10px; border: 1px solid #EDEEF2; border-radius: 4px; margin-right: 10px; margin-bottom: 16px; width: 0px; cursor: pointer;} @@ -38,6 +50,7 @@ .official-content > .content {color: #838A9D; font-size: 12px; line-height: 22px; padding-top: 6px;} .official-content > .title {color: #313C52; font-size: 13px; line-height: 14px;} +.classList {aspect-ratio: 4/1;} .classList > .classItem {flex: 1 1 30%; margin: 5px; border: 1px solid rgba(227, 228, 233, 0.6); border-radius: 4px; margin-bottom: 16px; align-items: center;} .classItem > .imgBack {flex: 1 1 50%;} .classItem > .imgBack > .classImg {background-repeat: no-repeat; background-size: contain; aspect-ratio: 16 / 9; background-position: center; margin: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px;} @@ -55,3 +68,15 @@ .main.without-internet > .plug.panel {flex: 1 1 60%; margin-bottom: unset; margin-right: 16px;} .main.without-internet > .bottom > .official.panel {margin-right: unset;} .main.without-internet > .bottom > .official.panel > .main-panel {flex-direction: row-reverse;} + +/* css in side */ +.time-block {background: #EDEEF2; padding: 4px; border-radius: 4px; color: #0B0F18; font-size: 15px;} +.dynamic-block {height: 64px; padding: 12px 16px; display: flex; justify-content: space-between; position: relative; line-height: 20px; border-top: 1px solid #E3E4E9;} +.dynamic-time {white-space: nowrap; position: absolute; right: 28px; bottom: 12px;} + +.patch-block {padding: 12px 16px; line-height: 20px; border-top: 1px solid #E3E4E9;} +.patch-content {height: 40px; overflow: hidden;} + +.upgrade-block {padding: 16px 16px; line-height: 20px; border-top: 1px solid #E3E4E9;} +.upgrade-content {height: 20px; padding-left: 20px; position: relative; margin: 5px 0;} +.upgrade-content:before {content: ' '; width: 10px; height: 10px; background: #E3E4E9; border-radius: 50%; position: absolute; left: 0px; top: 5px;} diff --git a/module/admin/lang/zh-cn.php b/module/admin/lang/zh-cn.php index 05e63ed117..20e7e67adc 100755 --- a/module/admin/lang/zh-cn.php +++ b/module/admin/lang/zh-cn.php @@ -170,4 +170,10 @@ $lang->admin->menuSetting['dev']['desc'] = '支持对系统进行二次开 $lang->admin->menuSetting['convert']['name'] = '数据导入'; $lang->admin->menuSetting['convert']['desc'] = '第三方系统的数据导入。'; +$lang->admin->mon = '月'; +$lang->admin->day = '日'; +$lang->admin->updateDynamics = '更新动态'; +$lang->admin->updatePatch = '补丁更新'; +$lang->admin->upgradeRecommend = '推荐升级'; + include dirname(__FILE__) . '/menu.php'; diff --git a/module/admin/view/index.html.php b/module/admin/view/index.html.php index a293e99564..5576e65c40 100755 --- a/module/admin/view/index.html.php +++ b/module/admin/view/index.html.php @@ -32,7 +32,7 @@
admin->pluginRecommendation;?> - admin->extensionURL, "{$lang->more} ", '_blank', 'class="more text-muted"');?> + admin->extensionURL, "{$lang->more} ", '_blank', 'class="more text-muted flex align-center"');?>
> @@ -68,7 +68,7 @@
admin->publicClass;?> - admin->classURL, "{$lang->more} ", '_blank', 'class="more text-muted"');?> + admin->classURL, "{$lang->more} ", '_blank', 'class="more text-muted flex align-center"');?>
@@ -87,8 +87,71 @@
-