From 129ed9ad673e7a4f99638a31c083fdcf8f162316 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 14 Oct 2024 16:20:11 +0800 Subject: [PATCH] # Release v3.3.3 --- spug_web/src/layout/Footer.js | 2 +- spug_web/src/layout/Header.js | 36 ++++++++++--------- spug_web/src/layout/index.js | 1 - spug_web/src/layout/layout.module.less | 19 ++++++++-- spug_web/src/pages/alarm/contact/Form.js | 2 +- spug_web/src/pages/config/setting/Form.js | 2 +- spug_web/src/pages/deploy/app/AutoDeploy.js | 2 +- spug_web/src/pages/deploy/app/Ext1Setup1.js | 2 +- spug_web/src/pages/deploy/app/Ext2Setup1.js | 2 +- spug_web/src/pages/deploy/app/Ext2Setup2.js | 2 +- spug_web/src/pages/deploy/app/Tips.js | 2 +- spug_web/src/pages/deploy/repository/Form.js | 2 +- spug_web/src/pages/deploy/request/Ext1Form.js | 2 +- spug_web/src/pages/deploy/request/Table.js | 4 +-- spug_web/src/pages/exec/task/index.js | 2 +- spug_web/src/pages/login/index.js | 4 +-- spug_web/src/pages/schedule/Step1.js | 2 +- spug_web/src/pages/system/setting/About.js | 6 ++-- .../pages/system/setting/SecuritySetting.js | 2 +- 19 files changed, 55 insertions(+), 41 deletions(-) diff --git a/spug_web/src/layout/Footer.js b/spug_web/src/layout/Footer.js index f991209..79f7888 100644 --- a/spug_web/src/layout/Footer.js +++ b/spug_web/src/layout/Footer.js @@ -18,7 +18,7 @@ export default function () { rel="noopener noreferrer">官网 - 文档
diff --git a/spug_web/src/layout/Header.js b/spug_web/src/layout/Header.js index efd3365..b44127e 100644 --- a/spug_web/src/layout/Header.js +++ b/spug_web/src/layout/Header.js @@ -5,7 +5,7 @@ */ import React from 'react'; import { Link } from 'react-router-dom'; -import { Layout, Dropdown, Menu, Avatar } from 'antd'; +import { Layout, Dropdown, Menu, Avatar, Divider } from 'antd'; import { MenuFoldOutlined, MenuUnfoldOutlined, UserOutlined, LogoutOutlined, CodeOutlined } from '@ant-design/icons'; import { AuthDiv } from 'components'; import Notification from './Notification'; @@ -41,22 +41,26 @@ export default function (props) { return ( -
-
- {props.collapsed ? : } -
+
+ {props.collapsed ? : }
- - - - -
- - - - {localStorage.getItem('nickname')} - - +
+
window.open('https://spug.cc/')}>官网
+
window.open('https://ops.spug.cc/docs/about-spug/')}>文档
+
window.open('https://ssl.spug.cc/')}>证书申请
+ + + + + +
+ + + + {localStorage.getItem('nickname')} + + +
) diff --git a/spug_web/src/layout/index.js b/spug_web/src/layout/index.js index ad8249a..4ba829a 100644 --- a/spug_web/src/layout/index.js +++ b/spug_web/src/layout/index.js @@ -50,7 +50,6 @@ export default function () { {Routes} -
diff --git a/spug_web/src/layout/layout.module.less b/spug_web/src/layout/layout.module.less index 1ee5674..566ab83 100644 --- a/spug_web/src/layout/layout.module.less +++ b/spug_web/src/layout/layout.module.less @@ -1,6 +1,7 @@ .header { display: flex; flex-direction: row; + justify-content: space-between; padding: 0 12px 0 0;; height: 48px; line-height: 48px; @@ -8,8 +9,20 @@ box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); z-index: 2; - .left { - flex: 1; + .right { + display: flex; + flex-direction: row; + align-items: center; + + .link { + color: #333333; + cursor: pointer; + padding: 0 16px; + + &:hover { + background: rgba(0, 0, 0, 0.025); + } + } } .terminal { @@ -80,7 +93,7 @@ display: flex; flex-direction: column; justify-content: space-between; - padding: 24px 24px 0; + padding: 24px; overflow-y: scroll; } diff --git a/spug_web/src/pages/alarm/contact/Form.js b/spug_web/src/pages/alarm/contact/Form.js index e76b964..bfa2ca3 100644 --- a/spug_web/src/pages/alarm/contact/Form.js +++ b/spug_web/src/pages/alarm/contact/Form.js @@ -79,7 +79,7 @@ export default observer(function () { 钉钉收不到通知?请参考 官方文档 + href="https://ops.spug.cc/docs/use-problem#use-dd">官方文档 }> diff --git a/spug_web/src/pages/config/setting/Form.js b/spug_web/src/pages/config/setting/Form.js index 2646c7a..e47317f 100644 --- a/spug_web/src/pages/config/setting/Form.js +++ b/spug_web/src/pages/config/setting/Form.js @@ -78,7 +78,7 @@ export default observer(function () { valuePropName="checked" initialValue={store.record.is_public === undefined || store.record.is_public} tooltip={什么是公共/私有配置?}> + href="https://ops.spug.cc/docs/conf-app">什么是公共/私有配置?}> )} diff --git a/spug_web/src/pages/deploy/app/AutoDeploy.js b/spug_web/src/pages/deploy/app/AutoDeploy.js index 0e6d050..86d1c38 100644 --- a/spug_web/src/pages/deploy/app/AutoDeploy.js +++ b/spug_web/src/pages/deploy/app/AutoDeploy.js @@ -69,7 +69,7 @@ export default observer(function AutoDeploy() {
Copyright {new Date().getFullYear()} By OpenSpug
diff --git a/spug_web/src/pages/schedule/Step1.js b/spug_web/src/pages/schedule/Step1.js index 05fff88..a36bfb0 100644 --- a/spug_web/src/pages/schedule/Step1.js +++ b/spug_web/src/pages/schedule/Step1.js @@ -114,7 +114,7 @@ export default observer(function () { 任务执行失败告警通知, 钉钉收不到通知? + href="https://ops.spug.cc/docs/use-problem#use-dd">钉钉收不到通知? )}>