From c98d30981dba3de1786f8c71e390127300868b49 Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 10 Jul 2021 19:16:15 +0800 Subject: [PATCH] fix issues --- spug_api/apps/account/management/commands/update.py | 2 +- spug_web/src/layout/Footer.js | 4 ++-- spug_web/src/pages/alarm/contact/Form.js | 4 ++-- spug_web/src/pages/deploy/app/Ext1Setup1.js | 2 +- spug_web/src/pages/deploy/app/Ext1Setup3.js | 2 +- spug_web/src/pages/deploy/app/Ext2Setup1.js | 2 +- spug_web/src/pages/deploy/app/Ext2Setup3.js | 2 +- spug_web/src/pages/deploy/request/Ext1Form.js | 2 +- spug_web/src/pages/login/index.js | 6 +++--- spug_web/src/pages/schedule/Form.js | 2 +- spug_web/src/pages/system/setting/About.js | 8 ++++---- spug_web/src/pages/system/setting/AlarmSetting.js | 2 +- spug_web/src/pages/system/setting/LDAPSetting.js | 2 +- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/spug_api/apps/account/management/commands/update.py b/spug_api/apps/account/management/commands/update.py index 1c37f8c..e33c1f8 100644 --- a/spug_api/apps/account/management/commands/update.py +++ b/spug_api/apps/account/management/commands/update.py @@ -32,7 +32,7 @@ class Command(BaseCommand): # update web web_dir = os.path.join(settings.BASE_DIR, '../spug_web') commands = [ - f'curl -o /tmp/spug_web.tar.gz http://cdn.spug.cc/spug/web_{version}.tar.gz', + f'curl -o /tmp/spug_web.tar.gz https://cdn.spug.cc/spug/web_{version}.tar.gz', f'rm -rf {web_dir}/build', f'tar xf /tmp/spug_web.tar.gz -C {web_dir}' ] diff --git a/spug_web/src/layout/Footer.js b/spug_web/src/layout/Footer.js index eb0b517..3c720ff 100644 --- a/spug_web/src/layout/Footer.js +++ b/spug_web/src/layout/Footer.js @@ -14,11 +14,11 @@ export default class extends React.Component {
- 官网 - 文档
diff --git a/spug_web/src/pages/alarm/contact/Form.js b/spug_web/src/pages/alarm/contact/Form.js index 91b8804..513a195 100644 --- a/spug_web/src/pages/alarm/contact/Form.js +++ b/spug_web/src/pages/alarm/contact/Form.js @@ -60,7 +60,7 @@ class ComForm extends React.Component { 如何获取微信 Token ?}> + href="https://spug.cc/docs/alarm-contact/">如何获取微信 Token ?}> {getFieldDecorator('wx_token', {initialValue: info['wx_token']})( )} @@ -68,7 +68,7 @@ class ComForm extends React.Component { 钉钉收不到通知?请参考 官方文档 + href="https://spug.cc/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">官方文档 }> {getFieldDecorator('ding', {initialValue: info['ding']})( diff --git a/spug_web/src/pages/deploy/app/Ext1Setup1.js b/spug_web/src/pages/deploy/app/Ext1Setup1.js index c93c85a..c233d36 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup1.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup1.js @@ -56,7 +56,7 @@ export default observer(function Ext1Setup1() { 应用审核及发布成功或失败结果通知, 钉钉收不到通知? + href="https://spug.cc/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">钉钉收不到通知? }> Spug 内置了一些全局变量,这些变量可以直接使用,请参考官方文档: 全局变量 + href="https://spug.cc/docs/deploy-config/#%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F">全局变量 , '3': '在部署 Spug 的服务器上运行,可以执行任意自定义命令。', '4': '在部署 Spug 的服务器上运行,当前目录为检出后待发布的源代码目录,可执行任意自定义命令。', diff --git a/spug_web/src/pages/deploy/app/Ext2Setup1.js b/spug_web/src/pages/deploy/app/Ext2Setup1.js index 0c6c00f..197ffbe 100644 --- a/spug_web/src/pages/deploy/app/Ext2Setup1.js +++ b/spug_web/src/pages/deploy/app/Ext2Setup1.js @@ -52,7 +52,7 @@ export default observer(function Ext2Setup1() { 应用审核及发布成功或失败结果通知, 钉钉收不到通知? + href="https://spug.cc/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">钉钉收不到通知? }> 使用前请务必阅读官方文档。}> + href="https://spug.cc/docs/deploy-config#%E6%95%B0%E6%8D%AE%E4%BC%A0%E8%BE%93">使用前请务必阅读官方文档。}> 根据网络情况,首次刷新可能会很慢,请耐心等待。 clone 失败? + href="https://spug.cc/docs/install-error/#%E6%96%B0%E5%BB%BA%E5%B8%B8%E8%A7%84%E5%8F%91%E5%B8%83%E7%94%B3%E8%AF%B7-git-clone-%E9%94%99%E8%AF%AF">clone 失败? }> diff --git a/spug_web/src/pages/login/index.js b/spug_web/src/pages/login/index.js index dae3565..430dafd 100644 --- a/spug_web/src/pages/login/index.js +++ b/spug_web/src/pages/login/index.js @@ -47,7 +47,7 @@ class LoginIndex extends React.Component { content:
未能获取到访问者的真实IP,无法提供基于请求来源IP的合法性验证,详细信息请参考 官方文档
, onOk: () => this.doLogin(data) @@ -121,11 +121,11 @@ class LoginIndex extends React.Component {
Copyright 2020 By OpenSpug
diff --git a/spug_web/src/pages/schedule/Form.js b/spug_web/src/pages/schedule/Form.js index 32b4d16..6a2a028 100644 --- a/spug_web/src/pages/schedule/Form.js +++ b/spug_web/src/pages/schedule/Form.js @@ -200,7 +200,7 @@ class ComForm extends React.Component { 任务执行失败告警通知, 钉钉收不到通知? + href="https://spug.cc/docs/install-error/#%E9%92%89%E9%92%89%E6%94%B6%E4%B8%8D%E5%88%B0%E9%80%9A%E7%9F%A5%EF%BC%9F">钉钉收不到通知? }> {getFieldDecorator('rst_notify.value', {initialValue: info['rst_notify']['value']})( , - btn: 如何升级?, + btn: 如何升级?, description:
{res.content}
}) } @@ -53,11 +53,11 @@ class About extends React.Component { {info['spug_version']} {VERSION} - https://spug.dev + https://spug.cc - https://spug.dev/docs/change-log/ + https://spug.cc/docs/change-log/ diff --git a/spug_web/src/pages/system/setting/AlarmSetting.js b/spug_web/src/pages/system/setting/AlarmSetting.js index 118798d..8c0b61f 100644 --- a/spug_web/src/pages/system/setting/AlarmSetting.js +++ b/spug_web/src/pages/system/setting/AlarmSetting.js @@ -65,7 +65,7 @@ class AlarmSetting extends React.Component { render() { const {getFieldDecorator} = this.props.form; const {mode, spug_key} = this.state; - const spugWx = spug; + const spugWx = spug; return (
报警服务设置
diff --git a/spug_web/src/pages/system/setting/LDAPSetting.js b/spug_web/src/pages/system/setting/LDAPSetting.js index c712d2e..582fe71 100644 --- a/spug_web/src/pages/system/setting/LDAPSetting.js +++ b/spug_web/src/pages/system/setting/LDAPSetting.js @@ -58,7 +58,7 @@ class LDAPSetting extends React.Component { {getFieldDecorator('server', {initialValue: this.setting['server'], rules: [{required: true, message: '请输入LDAP服务地址'}]})( - + )}