修改docker安装文档
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
docker run -d \
|
docker run -d \
|
||||||
-p 8088:8088 \
|
-p 8088:8088 \
|
||||||
--name next-terminal \
|
--name next-terminal \
|
||||||
--restart always dushixiang/next-terminal:0.0.2
|
--restart always dushixiang/next-terminal:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### 使用`mysql`存储数据
|
### 使用`mysql`存储数据
|
||||||
@ -21,7 +21,7 @@ docker run -d \
|
|||||||
-e MYSQL_PASSWORD=mysql \
|
-e MYSQL_PASSWORD=mysql \
|
||||||
-e MYSQL_DATABASE=next_terminal \
|
-e MYSQL_DATABASE=next_terminal \
|
||||||
--name next-terminal \
|
--name next-terminal \
|
||||||
--restart always dushixiang/next-terminal:0.0.2
|
--restart always dushixiang/next-terminal:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### 注意事项 ⚠️
|
### 注意事项 ⚠️
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "next-terminal",
|
"name": "next-terminal",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/icons": "^4.3.0",
|
"@ant-design/icons": "^4.3.0",
|
||||||
|
@ -138,10 +138,14 @@ class Access extends Component {
|
|||||||
clipboardText: data.data
|
clipboardText: data.data
|
||||||
})
|
})
|
||||||
if (this.state.protocol === 'ssh') {
|
if (this.state.protocol === 'ssh') {
|
||||||
|
if (data.data && data.data.length > 0) {
|
||||||
message.success('您输入的内容已复制到远程服务器上,使用右键将自动粘贴。');
|
message.success('您输入的内容已复制到远程服务器上,使用右键将自动粘贴。');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (data.data && data.data.length > 0) {
|
||||||
message.success('您输入的内容已复制到远程服务器上');
|
message.success('您输入的内容已复制到远程服务器上');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -852,6 +856,8 @@ class Access extends Component {
|
|||||||
|
|
||||||
</Affix>
|
</Affix>
|
||||||
|
|
||||||
|
{
|
||||||
|
this.state.protocol === 'ssh' || this.state.protocol === 'rdp' ?
|
||||||
<Affix style={{position: 'absolute', top: 50, right: 50}}>
|
<Affix style={{position: 'absolute', top: 50, right: 50}}>
|
||||||
<Button
|
<Button
|
||||||
icon={<FolderOpenOutlined/>}
|
icon={<FolderOpenOutlined/>}
|
||||||
@ -861,6 +867,9 @@ class Access extends Component {
|
|||||||
>
|
>
|
||||||
</Button>
|
</Button>
|
||||||
</Affix>
|
</Affix>
|
||||||
|
: null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
<Drawer
|
<Drawer
|
||||||
title={title}
|
title={title}
|
||||||
|
Reference in New Issue
Block a user