mirror of https://github.com/openspug/spug
U 优化发布控制台
parent
975c632c98
commit
91569b6a35
|
@ -130,7 +130,7 @@ function Ext1Console(props) {
|
||||||
)}
|
)}
|
||||||
<Modal
|
<Modal
|
||||||
visible={visible}
|
visible={visible}
|
||||||
width={1000}
|
width="70%"
|
||||||
footer={null}
|
footer={null}
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
className={styles.console}
|
className={styles.console}
|
||||||
|
@ -147,7 +147,7 @@ function Ext1Console(props) {
|
||||||
<Collapse.Panel header={(
|
<Collapse.Panel header={(
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<b className={styles.title}/>
|
<b className={styles.title}/>
|
||||||
<Steps size="small" className={styles.step} current={local.step} status={local.status}>
|
<Steps size="small" className={styles.step} current={local.step} status={local.status} style={{margin: 0}}>
|
||||||
<StepItem title="构建准备" item={local} step={0}/>
|
<StepItem title="构建准备" item={local} step={0}/>
|
||||||
<StepItem title="检出前任务" item={local} step={1}/>
|
<StepItem title="检出前任务" item={local} step={1}/>
|
||||||
<StepItem title="执行检出" item={local} step={2}/>
|
<StepItem title="执行检出" item={local} step={2}/>
|
||||||
|
|
|
@ -11,13 +11,15 @@ function OutView(props) {
|
||||||
const el = useRef()
|
const el = useRef()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setTimeout(() => {
|
||||||
const fitPlugin = new FitAddon()
|
const fitPlugin = new FitAddon()
|
||||||
const term = new Terminal({disableStdin: true})
|
const term = new Terminal({disableStdin: true})
|
||||||
term.loadAddon(fitPlugin)
|
term.loadAddon(fitPlugin)
|
||||||
term.setOption('theme', {background: '#fff', foreground: '#000', selection: '#999'})
|
term.setOption('theme', {background: '#fff', foreground: '#000', selection: '#999'})
|
||||||
term.open(el.current)
|
term.open(el.current)
|
||||||
props.setTerm(term)
|
|
||||||
fitPlugin.fit()
|
fitPlugin.fit()
|
||||||
|
props.setTerm(term)
|
||||||
|
}, 100)
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.step {
|
.step {
|
||||||
width: 600px;
|
flex: 1;
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue