From fd962bf57d1e2c9b249c026440a4135ca354eb32 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 28 Jul 2020 22:57:07 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E5=B8=B8=E8=A7=84=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9=E6=96=B0=E5=A2=9E=E5=B0=8F=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/app/Ext1Setup3.js | 40 ++++++++++++++++----- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup3.js b/spug_web/src/pages/deploy/app/Ext1Setup3.js index 093df59..eba92a4 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup3.js @@ -5,7 +5,7 @@ */ import React from 'react'; import { observer } from 'mobx-react'; -import { Form, Row, Col, Button, Radio, Icon, message } from "antd"; +import { Form, Row, Col, Button, Radio, Icon, Tooltip, message } from "antd"; import { LinkButton } from 'components'; import Editor from 'react-ace'; import 'ace-builds/src-noconflict/mode-text'; @@ -20,6 +20,17 @@ import { cleanCommand } from "../../../libs"; class Ext1Setup3 extends React.Component { constructor(props) { super(props); + this.helpMap = { + '2': + Spug 内置了一些全局变量,这些变量可以直接使用,请参考官方文档: + 全局变量 + , + '3': '在部署 Spug 的服务器上运行,可以执行任意自定义命令。', + '4': '在部署 Spug 的服务器上运行,当前目录为检出后待发布的源代码目录,可执行任意自定义命令。', + '5': '在发布的目标主机上运行,当前目录为目标主机上待发布的源代码目录,可执行任意自定义命令。', + '6': '在发布的目标主机上运行,当前目录为已发布的应用目录,可执行任意自定义命令。' + }; this.state = { loading: false, full: '' @@ -41,14 +52,22 @@ class Ext1Setup3 extends React.Component { }; FilterLabel = (props) => ( -
+
文件过滤: store.deploy['filter_rule']['type'] = e.target.value}> - 包含 - 排除 + 包含 + + + + + 排除 + + + + {this.state.full === '1' ? ( this.setState({full: ''})}>退出全屏 @@ -59,12 +78,17 @@ class Ext1Setup3 extends React.Component { ); NormalLabel = (props) => ( -
- {props.title}: +
+ + {props.title}: + + + + {this.state.full ? ( - this.setState({full: ''})}>退出全屏 + this.setState({full: ''})}>退出全屏 ) : ( - this.setState({full: props.id})}>全屏 + this.setState({full: props.id})}>全屏 )}
);