完善dockerfile构建镜像
This commit is contained in:
@ -3,7 +3,6 @@ import Guacamole from 'guacamole-common-js';
|
||||
import {message, Modal} from 'antd'
|
||||
import qs from "qs";
|
||||
import {prefix, wsServer} from "../../common/constants";
|
||||
import {LoadingOutlined} from '@ant-design/icons';
|
||||
import {getToken} from "../../utils/utils";
|
||||
import './Access.css'
|
||||
|
||||
@ -14,8 +13,6 @@ const STATE_CONNECTED = 3;
|
||||
const STATE_DISCONNECTING = 4;
|
||||
const STATE_DISCONNECTED = 5;
|
||||
|
||||
const antIcon = <LoadingOutlined/>;
|
||||
|
||||
class Access extends Component {
|
||||
|
||||
formRef = React.createRef()
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React, {Component} from 'react';
|
||||
import {Card, Col, Layout, PageHeader, Radio, Row, Statistic, Typography} from "antd";
|
||||
import {Card, Col, PageHeader, Radio, Row, Statistic} from "antd";
|
||||
import {DesktopOutlined, IdcardOutlined, LinkOutlined, UserOutlined} from '@ant-design/icons';
|
||||
import {itemRender} from '../../utils/utils'
|
||||
import request from "../../common/request";
|
||||
@ -7,9 +7,6 @@ import './Dashboard.css'
|
||||
import {Link} from "react-router-dom";
|
||||
import {Area} from '@ant-design/charts';
|
||||
|
||||
const {Content} = Layout;
|
||||
const {Title, Paragraph} = Typography;
|
||||
|
||||
|
||||
const routes = [
|
||||
{
|
||||
|
@ -258,14 +258,6 @@ class OfflineSession extends Component {
|
||||
|
||||
return `${record.username}@${record.ip}:${record.port}`;
|
||||
}
|
||||
}, {
|
||||
title: '屏幕大小',
|
||||
dataIndex: 'screen',
|
||||
key: 'screen',
|
||||
render: (text, record) => {
|
||||
|
||||
return `${record.width}x${record.height}`;
|
||||
}
|
||||
}, {
|
||||
title: '连接协议',
|
||||
dataIndex: 'protocol',
|
||||
@ -385,7 +377,7 @@ class OfflineSession extends Component {
|
||||
/>
|
||||
|
||||
<Select
|
||||
style={{width: 200}}
|
||||
style={{width: 150}}
|
||||
showSearch
|
||||
value={this.state.queryParams.userId}
|
||||
placeholder='用户昵称'
|
||||
@ -397,7 +389,7 @@ class OfflineSession extends Component {
|
||||
</Select>
|
||||
|
||||
<Select
|
||||
style={{width: 200}}
|
||||
style={{width: 150}}
|
||||
showSearch
|
||||
value={this.state.queryParams.assetId}
|
||||
placeholder='资产名称'
|
||||
|
@ -255,14 +255,6 @@ class OnlineSession extends Component {
|
||||
|
||||
return `${record.username}@${record.ip}:${record.port}`;
|
||||
}
|
||||
}, {
|
||||
title: '屏幕大小',
|
||||
dataIndex: 'screen',
|
||||
key: 'screen',
|
||||
render: (text, record) => {
|
||||
|
||||
return `${record.width}x${record.height}`;
|
||||
}
|
||||
}, {
|
||||
title: '连接协议',
|
||||
dataIndex: 'protocol',
|
||||
@ -378,7 +370,7 @@ class OnlineSession extends Component {
|
||||
/>
|
||||
|
||||
<Select
|
||||
style={{width: 200}}
|
||||
style={{width: 150}}
|
||||
showSearch
|
||||
value={this.state.queryParams.userId}
|
||||
placeholder='用户昵称'
|
||||
@ -390,7 +382,7 @@ class OnlineSession extends Component {
|
||||
</Select>
|
||||
|
||||
<Select
|
||||
style={{width: 200}}
|
||||
style={{width: 150}}
|
||||
showSearch
|
||||
value={this.state.queryParams.assetId}
|
||||
placeholder='资产名称'
|
||||
|
@ -1,5 +1,6 @@
|
||||
import React, {Component} from 'react';
|
||||
import Guacamole from "guacamole-common-js";
|
||||
import {prefix, server} from "../../common/constants";
|
||||
|
||||
class Playback extends Component {
|
||||
|
||||
@ -13,7 +14,7 @@ class Playback extends Component {
|
||||
}
|
||||
|
||||
initPlayer(sessionId) {
|
||||
var RECORDING_URL = '/sessions/' + sessionId + '/recording';
|
||||
var RECORDING_URL = `${server + prefix}/sessions/${sessionId}/recording`;
|
||||
|
||||
var player = document.getElementById('player');
|
||||
var display = document.getElementById('display');
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React, {Component} from 'react';
|
||||
import {Layout, PageHeader} from "antd";
|
||||
import {Button, Form, Input, Layout, PageHeader} from "antd";
|
||||
import {itemRender} from '../../utils/utils'
|
||||
import {Form, Input, Button, Checkbox} from "antd";
|
||||
import request from "../../common/request";
|
||||
import {message} from "antd/es";
|
||||
|
||||
@ -110,7 +109,8 @@ class Info extends Component {
|
||||
},
|
||||
]}
|
||||
>
|
||||
<Input type='password' placeholder="新的密码" onChange={(value) => this.onNewPasswordChange(value)}/>
|
||||
<Input type='password' placeholder="新的密码"
|
||||
onChange={(value) => this.onNewPasswordChange(value)}/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item
|
||||
@ -126,7 +126,8 @@ class Info extends Component {
|
||||
validateStatus={this.state.validateStatus}
|
||||
help={this.state.errorMsg || ''}
|
||||
>
|
||||
<Input type='password' placeholder="请和上面输入新的密码保持一致" onChange={(value) => this.onNewPassword2Change(value)}/>
|
||||
<Input type='password' placeholder="请和上面输入新的密码保持一致"
|
||||
onChange={(value) => this.onNewPassword2Change(value)}/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item {...formTailLayout}>
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import {Form, Input, Modal, Radio} from "antd/lib/index";
|
||||
import {Form, Input, Modal} from "antd/lib/index";
|
||||
|
||||
const UserModal = ({title, visible, handleOk, handleCancel, confirmLoading, model}) => {
|
||||
|
||||
|
Reference in New Issue
Block a user