From 5f9f324d784568884d52f90a2cf41641284cdd56 Mon Sep 17 00:00:00 2001 From: dushixiang Date: Sun, 24 Jan 2021 17:24:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ web/src/components/access/Console.js | 9 ++------- web/src/components/command/BatchCommand.js | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3b804ad..afe74f0 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ Next Terminal基于 [Apache Guacamole](!https://guacamole.apache.org/) 开发, - 在线会话管理(监控、强制断开) - 离线会话管理(查看录屏) - 双因素认证 感谢 [naiba](!https://github.com/naiba) 贡献 +- 资产标签 +- 资产授权 +- 用户分组 ## 在线体验 diff --git a/web/src/components/access/Console.js b/web/src/components/access/Console.js index d57ca47..be69114 100644 --- a/web/src/components/access/Console.js +++ b/web/src/components/access/Console.js @@ -7,13 +7,6 @@ import "./Console.css" import {getToken} from "../../utils/utils"; import {FitAddon} from 'xterm-addon-fit' - -function getGeometry(width, height) { - const cols = Math.floor(width / 9); - const rows = Math.floor(height / 17) - 1; - return [cols, rows]; -} - class Console extends Component { state = { @@ -100,6 +93,8 @@ class Console extends Component { term.writeln(`\x1B[1;3;31m${msg['content']}\x1B[0m `) webSocket.close(); break; + default: + break; } if (!executedCommand) { diff --git a/web/src/components/command/BatchCommand.js b/web/src/components/command/BatchCommand.js index 18b9cd9..0c3e61a 100644 --- a/web/src/components/command/BatchCommand.js +++ b/web/src/components/command/BatchCommand.js @@ -1,5 +1,5 @@ import React, {Component} from 'react'; -import {Card, Input, List, PageHeader, Popconfirm} from "antd"; +import {Card, Input, List, PageHeader} from "antd"; import Console from "../access/Console"; import {itemRender} from "../../utils/utils"; import Logout from "../user/Logout"; @@ -100,7 +100,7 @@ class BatchCommand extends Component { }) } }} - > + >