Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
- 移除无法使用的代码片段
Browse files Browse the repository at this point in the history
- 修复「系统监控页每秒访问数太大」fixed #325
  • Loading branch information
dushixiang committed Dec 18, 2022
1 parent cb7bb7d commit 7328b41
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 162 deletions.
2 changes: 1 addition & 1 deletion web/src/components/dashboard/Monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Monitoring = () => {

let monitorQuery = useQuery('getMonitorData', monitorApi.getData, {
initialData: initData,
refetchInterval: 5
refetchInterval: 5000
});

let loadPercent = monitorQuery.data?.loadStat['percent'];
Expand Down
35 changes: 0 additions & 35 deletions web/src/components/session/OfflineSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {openTinyWin} from "../../utils/window";
import {MODE_COLORS, PROTOCOL_COLORS} from "../../common/constants";
import sessionApi from "../../api/session";
import './OfflineSession.css'
import SessionCommandRecord from "./SessionCommandRecord";
import Show from "../../dd/fi/show";

const {Content} = Layout;
Expand All @@ -33,12 +32,6 @@ const OfflineSession = () => {
dataIndex: 'clientIp',
key: 'clientIp',
hideInSearch: true,
},{
title: 'IP定位',
tip: '国家|区域|省份|城市|ISP',
dataIndex: 'region',
key: 'region',
hideInSearch: true,
}, {
title: '接入方式',
dataIndex: 'mode',
Expand Down Expand Up @@ -134,19 +127,6 @@ const OfflineSession = () => {
回放
</Button>
</Show>,
<Show menu={'offline-session-command'} key={'offline-session-command'}>
<Button
key='command'
disabled={disableCmdRecord}
type="link"
size='small'
onClick={() => {
setSelectedRow(record);
setSessionCommandVisible(true);
}}>
命令记录({record['commandCount']})
</Button>
</Show>,
<Show menu={'offline-session-del'} key={'offline-session-del'}>
<Popconfirm
key={'confirm-delete'}
Expand Down Expand Up @@ -264,21 +244,6 @@ const OfflineSession = () => {
</Show>,
]}
/>

<Drawer title="命令记录"
placement="right"
width={window.innerWidth * 0.9}
onClose={() => {
setSelectedRow({});
setSessionCommandVisible(false);
}}
visible={sessionCommandVisible}
>
<SessionCommandRecord
visible={sessionCommandVisible}
sessionId={selectedRow['id']}
/>
</Drawer>
</Content>);
};

Expand Down
126 changes: 0 additions & 126 deletions web/src/components/session/SessionCommandRecord.js

This file was deleted.

0 comments on commit 7328b41

Please sign in to comment.