@electerm/electerm-react 1.40.18 → 1.50.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/common/constants.js +57 -7
- package/client/common/new-terminal.js +2 -2
- package/client/components/auth/login.jsx +34 -57
- package/client/components/batch-op/batch-op.jsx +12 -11
- package/client/components/bookmark-form/index.jsx +2 -2
- package/client/components/bookmark-form/ssh-form.jsx +4 -1
- package/client/components/bookmark-form/tree-delete.jsx +5 -5
- package/client/components/context-menu/boomarks.jsx +8 -12
- package/client/components/context-menu/context-menu.jsx +10 -10
- package/client/components/context-menu/history.jsx +21 -24
- package/client/components/context-menu/menu-btn.jsx +11 -11
- package/client/components/context-menu/tabs.jsx +15 -19
- package/client/components/context-menu/zoom.jsx +25 -29
- package/client/components/footer/footer-entry.jsx +56 -56
- package/client/components/icons/split-icons.jsx +77 -0
- package/client/components/layout/layout-alg.js +260 -0
- package/client/components/layout/layout-item.jsx +26 -0
- package/client/components/layout/layout.jsx +167 -0
- package/client/components/layout/layout.styl +5 -0
- package/client/components/layout/layouts.jsx +71 -0
- package/client/components/layout/session-size-alg.js +31 -0
- package/client/components/main/main.jsx +183 -109
- package/client/components/main/wrapper.styl +2 -4
- package/client/components/profile/profile-list.jsx +1 -3
- package/client/components/profile/profile-transport-mod.jsx +1 -1
- package/client/components/profile/profile-transport.jsx +6 -9
- package/client/components/quick-commands/quick-command-transport.jsx +6 -9
- package/client/components/quick-commands/quick-commands-box.jsx +144 -153
- package/client/components/quick-commands/quick-commands-select.jsx +10 -3
- package/client/components/rdp/rdp-session.jsx +3 -23
- package/client/components/rdp/resolution-edit.jsx +40 -42
- package/client/components/session/session.jsx +62 -317
- package/client/components/session/session.styl +1 -5
- package/client/components/session/sessions.jsx +99 -105
- package/client/components/setting-panel/bookmark-tree-list.jsx +1 -1
- package/client/components/setting-panel/setting-common.jsx +6 -4
- package/client/components/setting-panel/setting-modal.jsx +31 -31
- package/client/components/setting-panel/start-session-select.jsx +4 -4
- package/client/components/setting-panel/tab-settings.jsx +27 -5
- package/client/components/setting-sync/data-import.jsx +36 -39
- package/client/components/setting-sync/setting-sync-form.jsx +9 -9
- package/client/components/setting-sync/setting-sync.jsx +50 -52
- package/client/components/sftp/address-bookmark.jsx +57 -58
- package/client/components/sftp/confirm-modal-store.jsx +34 -40
- package/client/components/sftp/file-item.jsx +14 -3
- package/client/components/sftp/file-mode-modal.jsx +3 -0
- package/client/components/sftp/list-table-ui.jsx +4 -4
- package/client/components/sftp/sftp-entry.jsx +2 -2
- package/client/components/sftp/transfer-conflict-store.jsx +13 -17
- package/client/components/sftp/transport-action-store.jsx +38 -31
- package/client/components/sftp/transports-action-store.jsx +3 -3
- package/client/components/sftp/transports-ui-store.jsx +18 -23
- package/client/components/shortcuts/shortcut-handler.js +1 -0
- package/client/components/shortcuts/shortcuts.jsx +9 -12
- package/client/components/side-panel-r/right-side-panel.styl +40 -0
- package/client/components/side-panel-r/side-panel-r.jsx +102 -0
- package/client/components/sidebar/bookmark-select.jsx +40 -40
- package/client/components/sidebar/bookmark.jsx +63 -65
- package/client/components/sidebar/history.jsx +53 -50
- package/client/components/sidebar/index.jsx +195 -184
- package/client/components/sidebar/info-modal.jsx +202 -202
- package/client/components/sidebar/sidebar.styl +8 -2
- package/client/components/sidebar/transfer-history-modal.jsx +95 -100
- package/client/components/sidebar/transfer-list-control.jsx +2 -2
- package/client/components/sidebar/transfer-list.jsx +45 -42
- package/client/components/sidebar/transfer-modal.jsx +49 -52
- package/client/components/sidebar/transport-ui.jsx +1 -1
- package/client/components/tabs/index.jsx +261 -49
- package/client/components/tabs/tab.jsx +60 -65
- package/client/components/tabs/tabs.styl +6 -1
- package/client/components/tabs/window-control.jsx +46 -48
- package/client/components/terminal/index.jsx +101 -104
- package/client/components/terminal/term-search.jsx +26 -24
- package/client/components/terminal-info/run-cmd.jsx +0 -25
- package/client/components/terminal-info/terminal-info.jsx +60 -0
- package/client/components/terminal-info/terminal-info.styl +1 -1
- package/client/components/tree-list/bookmark-transport.jsx +8 -9
- package/client/components/tree-list/tree-list.jsx +36 -26
- package/client/components/vnc/vnc-session.jsx +1 -6
- package/client/store/common.js +1 -1
- package/client/store/event.js +2 -2
- package/client/store/index.js +21 -32
- package/client/store/init-state.js +15 -3
- package/client/store/load-data.js +1 -1
- package/client/store/quick-command.js +4 -4
- package/client/store/session.js +1 -1
- package/client/store/setting.js +9 -5
- package/client/store/sync.js +16 -9
- package/client/store/system-menu.js +1 -10
- package/client/store/tab.js +66 -1
- package/client/store/transfer-list.js +5 -6
- package/client/store/watch.js +11 -6
- package/package.json +1 -1
- package/client/components/common/react-subx.jsx +0 -1
- package/client/components/common/resize-wrap.jsx +0 -222
- package/client/components/common/resize-wrap.styl +0 -9
- package/client/components/terminal-info/content.jsx +0 -152
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* history select
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { memo } from 'react'
|
|
6
6
|
import ItemList from '../setting-panel/list'
|
|
7
7
|
import { pick } from 'lodash-es'
|
|
8
8
|
import { EditOutlined, PushpinOutlined } from '@ant-design/icons'
|
|
@@ -10,55 +10,58 @@ import { Tooltip } from 'antd'
|
|
|
10
10
|
|
|
11
11
|
const e = window.translate
|
|
12
12
|
|
|
13
|
-
export default
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
13
|
+
export default memo(function HistoryPanel (props) {
|
|
14
|
+
const { store } = window
|
|
15
|
+
const {
|
|
16
|
+
openedSideBar,
|
|
17
|
+
pinned,
|
|
18
|
+
history,
|
|
19
|
+
activeItemId
|
|
20
|
+
} = props
|
|
21
|
+
if (openedSideBar !== 'history') {
|
|
22
|
+
return null
|
|
23
|
+
}
|
|
24
|
+
const prps = {
|
|
25
|
+
className: 'font16 mg1x mg2l pointer iblock control-icon'
|
|
26
|
+
}
|
|
27
|
+
const prps1 = {
|
|
28
|
+
className: prps.className + (pinned ? ' pinned' : '')
|
|
29
|
+
}
|
|
30
|
+
function handleClickItem (item) {
|
|
31
|
+
store.onSelectHistory(item.id)
|
|
32
|
+
}
|
|
33
|
+
return (
|
|
34
|
+
<div
|
|
35
|
+
className='sidebar-panel history-panel animate-fast'
|
|
36
|
+
{...pick(props, ['onMouseEnter', 'onMouseLeave'])}
|
|
37
|
+
>
|
|
38
|
+
<div className='pd1y pd2t pd2x'>
|
|
39
|
+
<div className='fix'>
|
|
40
|
+
<div className='fleft'>{e('history')}</div>
|
|
41
|
+
<div className='fleft'>
|
|
42
|
+
<Tooltip title={`${e('edit')} ${e('history')}`}>
|
|
43
|
+
<EditOutlined
|
|
44
|
+
className='font16 mg1x mg2l pointer iblock control-icon icon-do-edit'
|
|
45
|
+
onClick={store.handleEditHistory}
|
|
46
|
+
/>
|
|
47
|
+
</Tooltip>
|
|
48
|
+
<Tooltip title={e('pin')}>
|
|
49
|
+
<PushpinOutlined
|
|
50
|
+
{...prps1}
|
|
51
|
+
onClick={store.handlePin}
|
|
52
|
+
/>
|
|
53
|
+
</Tooltip>
|
|
51
54
|
</div>
|
|
52
55
|
</div>
|
|
53
|
-
<div className='pd2x'>
|
|
54
|
-
<ItemList
|
|
55
|
-
type='history'
|
|
56
|
-
list={store.history || []}
|
|
57
|
-
onClickItem={item => store.onSelectHistory(item.id)}
|
|
58
|
-
activeItemId={store.activeItemId}
|
|
59
|
-
/>
|
|
60
|
-
</div>
|
|
61
56
|
</div>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
<div className='pd2x'>
|
|
58
|
+
<ItemList
|
|
59
|
+
type='history'
|
|
60
|
+
list={history || []}
|
|
61
|
+
onClickItem={handleClickItem}
|
|
62
|
+
activeItemId={activeItemId}
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
)
|
|
67
|
+
})
|
|
@@ -9,14 +9,12 @@ import {
|
|
|
9
9
|
UpCircleOutlined,
|
|
10
10
|
BarsOutlined
|
|
11
11
|
} from '@ant-design/icons'
|
|
12
|
-
|
|
12
|
+
import { useRef, memo } from 'react'
|
|
13
13
|
import { Tooltip } from 'antd'
|
|
14
|
-
import { Component } from '../common/react-subx'
|
|
15
14
|
import BookMarksWrap from './bookmark'
|
|
16
15
|
import HistoryWrap from './history'
|
|
17
16
|
import TransferList from './transfer-list'
|
|
18
17
|
import MenuBtn from '../context-menu/menu-btn'
|
|
19
|
-
import InfoModal from './info-modal'
|
|
20
18
|
import {
|
|
21
19
|
sidebarWidth,
|
|
22
20
|
settingMap,
|
|
@@ -28,212 +26,225 @@ import './sidebar.styl'
|
|
|
28
26
|
|
|
29
27
|
const e = window.translate
|
|
30
28
|
|
|
31
|
-
export default
|
|
32
|
-
handler = null
|
|
29
|
+
export default memo(function Sidebar (props) {
|
|
30
|
+
const handler = useRef(null)
|
|
31
|
+
|
|
32
|
+
const {
|
|
33
|
+
height,
|
|
34
|
+
upgradeInfo,
|
|
35
|
+
settingTab,
|
|
36
|
+
settingItem,
|
|
37
|
+
isSyncingSetting,
|
|
38
|
+
leftSidebarWidth,
|
|
39
|
+
pinned,
|
|
40
|
+
fileTransfers,
|
|
41
|
+
openedSideBar,
|
|
42
|
+
transferHistory,
|
|
43
|
+
transferTab,
|
|
44
|
+
showModal,
|
|
45
|
+
showInfoModal,
|
|
46
|
+
activeItemId
|
|
47
|
+
} = props
|
|
48
|
+
|
|
49
|
+
const { store } = window
|
|
33
50
|
|
|
34
|
-
handleMouseLeave = () => {
|
|
35
|
-
if (
|
|
51
|
+
const handleMouseLeave = () => {
|
|
52
|
+
if (pinned) {
|
|
36
53
|
return false
|
|
37
54
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
interval
|
|
55
|
+
handler.current = setTimeout(
|
|
56
|
+
() => store.setOpenedSideBar(''),
|
|
57
|
+
400
|
|
42
58
|
)
|
|
43
59
|
}
|
|
44
60
|
|
|
45
|
-
handleMouseEnterBookmark = () => {
|
|
46
|
-
if (
|
|
61
|
+
const handleMouseEnterBookmark = () => {
|
|
62
|
+
if (pinned) {
|
|
47
63
|
return false
|
|
48
64
|
}
|
|
49
|
-
clearTimeout(
|
|
50
|
-
|
|
65
|
+
clearTimeout(handler.current)
|
|
66
|
+
store.setOpenedSideBar('bookmarks')
|
|
51
67
|
}
|
|
52
68
|
|
|
53
|
-
handleMouseEnterHistory = () => {
|
|
54
|
-
if (
|
|
69
|
+
const handleMouseEnterHistory = () => {
|
|
70
|
+
if (pinned) {
|
|
55
71
|
return false
|
|
56
72
|
}
|
|
57
|
-
clearTimeout(
|
|
58
|
-
|
|
73
|
+
clearTimeout(handler.current)
|
|
74
|
+
store.setOpenedSideBar('history')
|
|
59
75
|
}
|
|
60
76
|
|
|
61
|
-
handleShowUpgrade = () => {
|
|
62
|
-
|
|
77
|
+
const handleShowUpgrade = () => {
|
|
78
|
+
store.storeAssign({
|
|
63
79
|
_upgradeInfo: JSON.stringify({
|
|
64
|
-
...
|
|
80
|
+
...props.store.upgradeInfo,
|
|
65
81
|
showUpgradeModal: true
|
|
66
82
|
})
|
|
67
83
|
})
|
|
68
84
|
}
|
|
69
85
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const showBatchOp = showModal === modals.batchOps
|
|
100
|
-
const settingActive = showSetting && settingTab === settingMap.setting && settingItem.id === 'setting-common'
|
|
101
|
-
const syncActive = showSetting && settingTab === settingMap.setting && settingItem.id === 'setting-sync'
|
|
102
|
-
const themeActive = showSetting && settingTab === settingMap.terminalThemes
|
|
103
|
-
const historyActive = showSetting && settingTab === settingMap.history
|
|
104
|
-
const bookmarksActive = showSetting && settingTab === settingMap.bookmarks
|
|
105
|
-
const sideProps = openedSideBar
|
|
106
|
-
? {
|
|
107
|
-
className: 'sidebar-list',
|
|
108
|
-
style: {
|
|
109
|
-
width: `${leftSidebarWidth}px`
|
|
110
|
-
}
|
|
86
|
+
const {
|
|
87
|
+
onNewSsh,
|
|
88
|
+
openSetting,
|
|
89
|
+
openAbout,
|
|
90
|
+
openSettingSync,
|
|
91
|
+
openTerminalThemes,
|
|
92
|
+
onClickBookmark,
|
|
93
|
+
onClickHistory,
|
|
94
|
+
toggleBatchOp,
|
|
95
|
+
setLeftSidePanelWidth
|
|
96
|
+
} = store
|
|
97
|
+
const {
|
|
98
|
+
showUpgradeModal,
|
|
99
|
+
upgradePercent,
|
|
100
|
+
checkingRemoteVersion,
|
|
101
|
+
shouldUpgrade
|
|
102
|
+
} = upgradeInfo
|
|
103
|
+
const showSetting = showModal === modals.setting
|
|
104
|
+
const showBatchOp = showModal === modals.batchOps
|
|
105
|
+
const settingActive = showSetting && settingTab === settingMap.setting && settingItem.id === 'setting-common'
|
|
106
|
+
const syncActive = showSetting && settingTab === settingMap.setting && settingItem.id === 'setting-sync'
|
|
107
|
+
const themeActive = showSetting && settingTab === settingMap.terminalThemes
|
|
108
|
+
const historyActive = showSetting && settingTab === settingMap.history
|
|
109
|
+
const bookmarksActive = showSetting && settingTab === settingMap.bookmarks
|
|
110
|
+
const sideProps = openedSideBar
|
|
111
|
+
? {
|
|
112
|
+
className: 'sidebar-list',
|
|
113
|
+
style: {
|
|
114
|
+
width: `${leftSidebarWidth}px`
|
|
111
115
|
}
|
|
112
|
-
: {
|
|
113
|
-
className: 'sidebar-list'
|
|
114
|
-
}
|
|
115
|
-
const sidebarProps = {
|
|
116
|
-
className: `sidebar type-${openedSideBar}`,
|
|
117
|
-
style: {
|
|
118
|
-
width: sidebarWidth,
|
|
119
|
-
height
|
|
120
116
|
}
|
|
117
|
+
: {
|
|
118
|
+
className: 'sidebar-list'
|
|
119
|
+
}
|
|
120
|
+
const sidebarProps = {
|
|
121
|
+
className: `sidebar type-${openedSideBar}`,
|
|
122
|
+
style: {
|
|
123
|
+
width: sidebarWidth,
|
|
124
|
+
height
|
|
121
125
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
onClick={onNewSsh}
|
|
134
|
-
/>
|
|
135
|
-
</SideIcon>
|
|
136
|
-
<SideIcon
|
|
137
|
-
title={e(settingMap.bookmarks)}
|
|
138
|
-
active={bookmarksActive}
|
|
139
|
-
>
|
|
140
|
-
<BookOutlined
|
|
141
|
-
onMouseEnter={this.handleMouseEnterBookmark}
|
|
142
|
-
onMouseLeave={this.handleMouseLeave}
|
|
143
|
-
onClick={onClickBookmark}
|
|
144
|
-
className='font20 iblock control-icon'
|
|
145
|
-
/>
|
|
146
|
-
</SideIcon>
|
|
147
|
-
<SideIcon
|
|
148
|
-
title={e(settingMap.history)}
|
|
149
|
-
active={historyActive}
|
|
150
|
-
>
|
|
151
|
-
<ClockCircleOutlined
|
|
152
|
-
onMouseEnter={this.handleMouseEnterHistory}
|
|
153
|
-
onMouseLeave={this.handleMouseLeave}
|
|
154
|
-
onClick={onClickHistory}
|
|
155
|
-
className='font20 iblock control-icon'
|
|
156
|
-
/>
|
|
157
|
-
</SideIcon>
|
|
158
|
-
<TransferList store={store} />
|
|
159
|
-
<SideIcon
|
|
160
|
-
title={e(settingMap.terminalThemes)}
|
|
161
|
-
active={themeActive}
|
|
162
|
-
>
|
|
163
|
-
<PictureOutlined
|
|
164
|
-
className='font20 iblock pointer control-icon'
|
|
165
|
-
onClick={openTerminalThemes}
|
|
166
|
-
/>
|
|
167
|
-
</SideIcon>
|
|
168
|
-
<SideIcon
|
|
169
|
-
title={e(settingMap.setting)}
|
|
170
|
-
active={settingActive}
|
|
171
|
-
>
|
|
172
|
-
<SettingOutlined className='iblock font20 control-icon' onClick={openSetting} />
|
|
173
|
-
</SideIcon>
|
|
174
|
-
<SideIcon
|
|
175
|
-
title={e('settingSync')}
|
|
176
|
-
active={syncActive}
|
|
177
|
-
>
|
|
178
|
-
<CloudSyncOutlined
|
|
179
|
-
className='iblock font20 control-icon'
|
|
180
|
-
onClick={openSettingSync}
|
|
181
|
-
spin={isSyncingSetting}
|
|
182
|
-
/>
|
|
183
|
-
</SideIcon>
|
|
184
|
-
<SideIcon
|
|
185
|
-
title={e('batchOp')}
|
|
186
|
-
active={showBatchOp}
|
|
187
|
-
>
|
|
188
|
-
<BarsOutlined className='iblock font20 control-icon' onClick={toggleBatchOp} />
|
|
189
|
-
</SideIcon>
|
|
190
|
-
<SideIcon
|
|
191
|
-
title={e('about')}
|
|
192
|
-
active={showInfoModal}
|
|
193
|
-
>
|
|
194
|
-
<InfoCircleOutlined
|
|
195
|
-
className='iblock font16 control-icon open-about-icon'
|
|
196
|
-
onClick={openAbout}
|
|
197
|
-
/>
|
|
198
|
-
</SideIcon>
|
|
199
|
-
{
|
|
200
|
-
!checkingRemoteVersion && !showUpgradeModal && shouldUpgrade
|
|
201
|
-
? (
|
|
202
|
-
<Tooltip
|
|
203
|
-
title={`${e('upgrading')} ${upgradePercent || 0}%`}
|
|
204
|
-
placement='right'
|
|
205
|
-
>
|
|
206
|
-
<div
|
|
207
|
-
className='control-icon-wrap'
|
|
208
|
-
>
|
|
209
|
-
<UpCircleOutlined
|
|
210
|
-
className='iblock font18 control-icon hvr-bob upgrade-icon'
|
|
211
|
-
onClick={this.handleShowUpgrade}
|
|
212
|
-
/>
|
|
213
|
-
</div>
|
|
214
|
-
</Tooltip>
|
|
215
|
-
)
|
|
216
|
-
: null
|
|
217
|
-
}
|
|
126
|
+
}
|
|
127
|
+
const transferProps = {
|
|
128
|
+
fileTransfers,
|
|
129
|
+
transferTab,
|
|
130
|
+
transferHistory
|
|
131
|
+
}
|
|
132
|
+
return (
|
|
133
|
+
<div {...sidebarProps}>
|
|
134
|
+
<div className='sidebar-bar btns'>
|
|
135
|
+
<div className='control-icon-wrap'>
|
|
136
|
+
<MenuBtn store={store} config={store.config} />
|
|
218
137
|
</div>
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
138
|
+
<SideIcon
|
|
139
|
+
title={e('newBookmark')}
|
|
140
|
+
>
|
|
141
|
+
<PlusCircleOutlined
|
|
142
|
+
className='font22 iblock control-icon'
|
|
143
|
+
onClick={onNewSsh}
|
|
144
|
+
/>
|
|
145
|
+
</SideIcon>
|
|
146
|
+
<SideIcon
|
|
147
|
+
title={e(settingMap.bookmarks)}
|
|
148
|
+
active={bookmarksActive}
|
|
224
149
|
>
|
|
225
|
-
<
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
150
|
+
<BookOutlined
|
|
151
|
+
onMouseEnter={handleMouseEnterBookmark}
|
|
152
|
+
onMouseLeave={handleMouseLeave}
|
|
153
|
+
onClick={onClickBookmark}
|
|
154
|
+
className='font20 iblock control-icon'
|
|
229
155
|
/>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
156
|
+
</SideIcon>
|
|
157
|
+
<SideIcon
|
|
158
|
+
title={e(settingMap.history)}
|
|
159
|
+
active={historyActive}
|
|
160
|
+
>
|
|
161
|
+
<ClockCircleOutlined
|
|
162
|
+
onMouseEnter={handleMouseEnterHistory}
|
|
163
|
+
onMouseLeave={handleMouseLeave}
|
|
164
|
+
onClick={onClickHistory}
|
|
165
|
+
className='font20 iblock control-icon'
|
|
234
166
|
/>
|
|
235
|
-
</
|
|
167
|
+
</SideIcon>
|
|
168
|
+
<TransferList {...transferProps} />
|
|
169
|
+
<SideIcon
|
|
170
|
+
title={e(settingMap.terminalThemes)}
|
|
171
|
+
active={themeActive}
|
|
172
|
+
>
|
|
173
|
+
<PictureOutlined
|
|
174
|
+
className='font20 iblock pointer control-icon'
|
|
175
|
+
onClick={openTerminalThemes}
|
|
176
|
+
/>
|
|
177
|
+
</SideIcon>
|
|
178
|
+
<SideIcon
|
|
179
|
+
title={e(settingMap.setting)}
|
|
180
|
+
active={settingActive}
|
|
181
|
+
>
|
|
182
|
+
<SettingOutlined className='iblock font20 control-icon' onClick={openSetting} />
|
|
183
|
+
</SideIcon>
|
|
184
|
+
<SideIcon
|
|
185
|
+
title={e('settingSync')}
|
|
186
|
+
active={syncActive}
|
|
187
|
+
>
|
|
188
|
+
<CloudSyncOutlined
|
|
189
|
+
className='iblock font20 control-icon'
|
|
190
|
+
onClick={openSettingSync}
|
|
191
|
+
spin={isSyncingSetting}
|
|
192
|
+
/>
|
|
193
|
+
</SideIcon>
|
|
194
|
+
<SideIcon
|
|
195
|
+
title={e('batchOp')}
|
|
196
|
+
active={showBatchOp}
|
|
197
|
+
>
|
|
198
|
+
<BarsOutlined className='iblock font20 control-icon' onClick={toggleBatchOp} />
|
|
199
|
+
</SideIcon>
|
|
200
|
+
<SideIcon
|
|
201
|
+
title={e('about')}
|
|
202
|
+
active={showInfoModal}
|
|
203
|
+
>
|
|
204
|
+
<InfoCircleOutlined
|
|
205
|
+
className='iblock font16 control-icon open-about-icon'
|
|
206
|
+
onClick={openAbout}
|
|
207
|
+
/>
|
|
208
|
+
</SideIcon>
|
|
209
|
+
{
|
|
210
|
+
!checkingRemoteVersion && !showUpgradeModal && shouldUpgrade
|
|
211
|
+
? (
|
|
212
|
+
<Tooltip
|
|
213
|
+
title={`${e('upgrading')} ${upgradePercent || 0}%`}
|
|
214
|
+
placement='right'
|
|
215
|
+
>
|
|
216
|
+
<div
|
|
217
|
+
className='control-icon-wrap'
|
|
218
|
+
>
|
|
219
|
+
<UpCircleOutlined
|
|
220
|
+
className='iblock font18 control-icon hvr-bob upgrade-icon'
|
|
221
|
+
onClick={handleShowUpgrade}
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
</Tooltip>
|
|
225
|
+
)
|
|
226
|
+
: null
|
|
227
|
+
}
|
|
236
228
|
</div>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
229
|
+
<SidePanel
|
|
230
|
+
sideProps={sideProps}
|
|
231
|
+
setLeftSidePanelWidth={setLeftSidePanelWidth}
|
|
232
|
+
leftSidebarWidth={leftSidebarWidth}
|
|
233
|
+
>
|
|
234
|
+
<BookMarksWrap
|
|
235
|
+
pinned={pinned}
|
|
236
|
+
onMouseEnter={handleMouseEnterBookmark}
|
|
237
|
+
onMouseLeave={handleMouseLeave}
|
|
238
|
+
/>
|
|
239
|
+
<HistoryWrap
|
|
240
|
+
history={props.history}
|
|
241
|
+
openedSideBar={openedSideBar}
|
|
242
|
+
onMouseEnter={handleMouseEnterHistory}
|
|
243
|
+
onMouseLeave={handleMouseLeave}
|
|
244
|
+
activeItemId={activeItemId}
|
|
245
|
+
pinned={pinned}
|
|
246
|
+
/>
|
|
247
|
+
</SidePanel>
|
|
248
|
+
</div>
|
|
249
|
+
)
|
|
250
|
+
})
|