mirror of https://github.com/openspug/spug
fix issues
parent
f804be8da5
commit
c98d30981d
|
@ -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}'
|
||||
]
|
||||
|
|
|
@ -14,11 +14,11 @@ export default class extends React.Component {
|
|||
<Layout.Footer style={{padding: 0}}>
|
||||
<div className={styles.footerZone}>
|
||||
<div className={styles.linksZone}>
|
||||
<a className={styles.links} title="官网" href="https://www.spug.dev" target="_blank"
|
||||
<a className={styles.links} title="官网" href="https://spug.cc" target="_blank"
|
||||
rel="noopener noreferrer">官网</a>
|
||||
<a className={styles.links} title="Github" href="https://github.com/openspug/spug" target="_blank"
|
||||
rel="noopener noreferrer"><Icon type="github" /></a>
|
||||
<a title="文档" href="https://www.spug.dev/docs/about-spug/" target="_blank"
|
||||
<a title="文档" href="https://spug.cc/docs/about-spug/" target="_blank"
|
||||
rel="noopener noreferrer">文档</a>
|
||||
</div>
|
||||
<div style={{color: 'rgba(0, 0, 0, .45)'}}>
|
||||
|
|
|
@ -60,7 +60,7 @@ class ComForm extends React.Component {
|
|||
</Form.Item>
|
||||
<Form.Item label="微信Token" extra={
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/docs/alarm-contact/">如何获取微信 Token ?</a>}>
|
||||
href="https://spug.cc/docs/alarm-contact/">如何获取微信 Token ?</a>}>
|
||||
{getFieldDecorator('wx_token', {initialValue: info['wx_token']})(
|
||||
<Input placeholder="请输入微信token"/>
|
||||
)}
|
||||
|
@ -68,7 +68,7 @@ class ComForm extends React.Component {
|
|||
<Form.Item label="钉钉" extra={<span>
|
||||
钉钉收不到通知?请参考
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/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">官方文档</a>
|
||||
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">官方文档</a>
|
||||
</span>}>
|
||||
{getFieldDecorator('ding', {initialValue: info['ding']})(
|
||||
<Input placeholder="请输入钉钉机器人完整地址"/>
|
||||
|
|
|
@ -56,7 +56,7 @@ export default observer(function Ext1Setup1() {
|
|||
<Form.Item label="消息通知" extra={<span>
|
||||
应用审核及发布成功或失败结果通知,
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/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">钉钉收不到通知?</a>
|
||||
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">钉钉收不到通知?</a>
|
||||
</span>}>
|
||||
<Input addonBefore={(
|
||||
<Select disabled={store.isReadOnly}
|
||||
|
|
|
@ -24,7 +24,7 @@ class Ext1Setup3 extends React.Component {
|
|||
'2': <span>
|
||||
Spug 内置了一些全局变量,这些变量可以直接使用,请参考官方文档:
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/docs/deploy-config/#%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F">全局变量</a>
|
||||
href="https://spug.cc/docs/deploy-config/#%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F">全局变量</a>
|
||||
</span>,
|
||||
'3': '在部署 Spug 的服务器上运行,可以执行任意自定义命令。',
|
||||
'4': '在部署 Spug 的服务器上运行,当前目录为检出后待发布的源代码目录,可执行任意自定义命令。',
|
||||
|
|
|
@ -52,7 +52,7 @@ export default observer(function Ext2Setup1() {
|
|||
<Form.Item label="消息通知" extra={<span>
|
||||
应用审核及发布成功或失败结果通知,
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/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">钉钉收不到通知?</a>
|
||||
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">钉钉收不到通知?</a>
|
||||
</span>}>
|
||||
<Input addonBefore={(
|
||||
<Select disabled={store.isReadOnly}
|
||||
|
|
|
@ -136,7 +136,7 @@ class Ext2Setup3 extends React.Component {
|
|||
) : null,
|
||||
<Form.Item key={2} required label="目标路径" extra={<a
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/docs/deploy-config#%E6%95%B0%E6%8D%AE%E4%BC%A0%E8%BE%93">使用前请务必阅读官方文档。</a>}>
|
||||
href="https://spug.cc/docs/deploy-config#%E6%95%B0%E6%8D%AE%E4%BC%A0%E8%BE%93">使用前请务必阅读官方文档。</a>}>
|
||||
<Input
|
||||
disabled={store.isReadOnly}
|
||||
spellCheck={false}
|
||||
|
|
|
@ -142,7 +142,7 @@ class Ext1Form extends React.Component {
|
|||
<Form.Item required label="选择分支/标签/版本" extra={<span>
|
||||
根据网络情况,首次刷新可能会很慢,请耐心等待。
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/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 失败?</a>
|
||||
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 失败?</a>
|
||||
</span>}>
|
||||
<Col span={19}>
|
||||
<Input.Group compact>
|
||||
|
|
|
@ -47,7 +47,7 @@ class LoginIndex extends React.Component {
|
|||
content: <div>
|
||||
未能获取到访问者的真实IP,无法提供基于请求来源IP的合法性验证,详细信息请参考
|
||||
<a target="_blank"
|
||||
href="https://spug.dev/docs/practice/#%E5%AE%89%E5%85%A8%E6%80%A7%E5%AE%9E%E8%B7%B5%E6%8C%87%E5%8D%97"
|
||||
href="https://spug.cc/docs/practice/#%E5%AE%89%E5%85%A8%E6%80%A7%E5%AE%9E%E8%B7%B5%E6%8C%87%E5%8D%97"
|
||||
rel="noopener noreferrer">官方文档</a>。
|
||||
</div>,
|
||||
onOk: () => this.doLogin(data)
|
||||
|
@ -121,11 +121,11 @@ class LoginIndex extends React.Component {
|
|||
|
||||
<div className={styles.footerZone}>
|
||||
<div className={styles.linksZone}>
|
||||
<a className={styles.links} title="官网" href="https://www.spug.dev" target="_blank"
|
||||
<a className={styles.links} title="官网" href="https://spug.cc" target="_blank"
|
||||
rel="noopener noreferrer">官网</a>
|
||||
<a className={styles.links} title="Github" href="https://github.com/openspug/spug" target="_blank"
|
||||
rel="noopener noreferrer"><Icon type="github"/></a>
|
||||
<a title="文档" href="https://www.spug.dev/docs/about-spug/" target="_blank"
|
||||
<a title="文档" href="https://spug.cc/docs/about-spug/" target="_blank"
|
||||
rel="noopener noreferrer">文档</a>
|
||||
</div>
|
||||
<div style={{color: 'rgba(0, 0, 0, .45)'}}>Copyright <Icon type="copyright"/> 2020 By OpenSpug</div>
|
||||
|
|
|
@ -200,7 +200,7 @@ class ComForm extends React.Component {
|
|||
<Form.Item label="失败通知" extra={<span>
|
||||
任务执行失败告警通知,
|
||||
<a target="_blank" rel="noopener noreferrer"
|
||||
href="https://spug.dev/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">钉钉收不到通知?</a>
|
||||
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">钉钉收不到通知?</a>
|
||||
</span>}>
|
||||
{getFieldDecorator('rst_notify.value', {initialValue: info['rst_notify']['value']})(
|
||||
<Input
|
||||
|
|
|
@ -33,7 +33,7 @@ class About extends React.Component {
|
|||
top: 88,
|
||||
message: `发现新版本 ${res.version}`,
|
||||
icon: <Icon type="smile" theme="twoTone"/>,
|
||||
btn: <a target="_blank" rel="noopener noreferrer" href="https://spug.dev/docs/update-version/">如何升级?</a>,
|
||||
btn: <a target="_blank" rel="noopener noreferrer" href="https://spug.cc/docs/update-version/">如何升级?</a>,
|
||||
description: <pre style={{lineHeight: '30px'}}>{res.content}</pre>
|
||||
})
|
||||
}
|
||||
|
@ -53,11 +53,11 @@ class About extends React.Component {
|
|||
<Descriptions.Item label="Spug API版本">{info['spug_version']}</Descriptions.Item>
|
||||
<Descriptions.Item label="Spug Web版本">{VERSION}</Descriptions.Item>
|
||||
<Descriptions.Item label="官网文档">
|
||||
<a href="https://spug.dev" target="_blank" rel="noopener noreferrer">https://spug.dev</a>
|
||||
<a href="https://spug.cc" target="_blank" rel="noopener noreferrer">https://spug.cc</a>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="更新日志">
|
||||
<a href="https://spug.dev/docs/change-log/" target="_blank"
|
||||
rel="noopener noreferrer">https://spug.dev/docs/change-log/</a>
|
||||
<a href="https://spug.cc/docs/change-log/" target="_blank"
|
||||
rel="noopener noreferrer">https://spug.cc/docs/change-log/</a>
|
||||
</Descriptions.Item>
|
||||
</Descriptions>
|
||||
</Spin>
|
||||
|
|
|
@ -65,7 +65,7 @@ class AlarmSetting extends React.Component {
|
|||
render() {
|
||||
const {getFieldDecorator} = this.props.form;
|
||||
const {mode, spug_key} = this.state;
|
||||
const spugWx = <img src="http://image.qbangmang.com/spug-weixin.jpeg" alt='spug'/>;
|
||||
const spugWx = <img src="https://cdn.spug.cc/img/spug-weixin.jpeg" alt='spug'/>;
|
||||
return (
|
||||
<React.Fragment>
|
||||
<div className={styles.title}>报警服务设置</div>
|
||||
|
|
|
@ -58,7 +58,7 @@ class LDAPSetting extends React.Component {
|
|||
<Form.Item required label="LDAP服务地址">
|
||||
{getFieldDecorator('server', {initialValue: this.setting['server'],
|
||||
rules: [{required: true, message: '请输入LDAP服务地址'}]})(
|
||||
<Input placeholder="例如:ldap.spug.dev"/>
|
||||
<Input placeholder="例如:ldap.spug.cc"/>
|
||||
)}
|
||||
</Form.Item>
|
||||
<Form.Item required label="LDAP服务端口">
|
||||
|
|
Loading…
Reference in New Issue