@electerm/electerm-react 2.3.176 → 2.3.190
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/components/bookmark-form/common/fields.jsx +1 -1
- package/client/components/bookmark-form/common/ssh-auth-selector.jsx +36 -32
- package/client/components/bookmark-form/common/ssh-auth-type-selector.jsx +4 -1
- package/client/components/bookmark-form/config/common-fields.js +29 -24
- package/client/components/bookmark-form/config/ftp.js +5 -5
- package/client/components/bookmark-form/config/local.js +9 -9
- package/client/components/bookmark-form/config/rdp.js +3 -3
- package/client/components/bookmark-form/config/serial.js +4 -4
- package/client/components/bookmark-form/config/ssh.js +3 -2
- package/client/components/bookmark-form/config/telnet.js +2 -2
- package/client/components/bookmark-form/config/vnc.js +5 -5
- package/client/components/bookmark-form/config/web.js +3 -3
- package/client/components/bookmark-form/tree-delete.jsx +100 -42
- package/client/components/quick-commands/quick-commands-form-elem.jsx +9 -39
- package/client/components/setting-panel/hotkey.jsx +132 -0
- package/client/components/setting-panel/setting-common.jsx +8 -62
- package/client/components/shortcuts/get-key-char.js +1 -1
- package/client/components/shortcuts/shortcut-control.jsx +5 -0
- package/client/components/shortcuts/shortcut-editor.jsx +3 -0
- package/client/components/shortcuts/shortcut-handler.js +8 -0
- package/client/components/shortcuts/shortcut-utils.js +49 -0
- package/client/components/shortcuts/shortcuts-defaults.js +5 -0
- package/client/components/shortcuts/shortcuts.jsx +4 -40
- package/client/components/sidebar/index.jsx +3 -0
- package/client/components/tabs/tab.jsx +11 -0
- package/client/components/widgets/widget-form.jsx +7 -1
- package/client/store/tab.js +11 -0
- package/package.json +1 -1
|
@@ -190,6 +190,10 @@ class Tab extends Component {
|
|
|
190
190
|
window.store.reloadTab(this.props.tab.id)
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
handleReloadAll = () => {
|
|
194
|
+
window.store.reloadAllTabs()
|
|
195
|
+
}
|
|
196
|
+
|
|
193
197
|
onDragEnd = e => {
|
|
194
198
|
removeClass(this.tabRef.current, onDragCls)
|
|
195
199
|
this.clearCls()
|
|
@@ -260,6 +264,7 @@ class Tab extends Component {
|
|
|
260
264
|
const closeShortcut = this.getShortcut('app_closeCurrentTab')
|
|
261
265
|
const cloneToNextShortcut = this.getShortcut('app_cloneToNextLayout')
|
|
262
266
|
const duplicateShortcut = this.getShortcut('app_duplicateTab')
|
|
267
|
+
const reloadAllShortcut = this.getShortcut('app_reloadAll')
|
|
263
268
|
|
|
264
269
|
const x = [
|
|
265
270
|
{
|
|
@@ -305,6 +310,12 @@ class Tab extends Component {
|
|
|
305
310
|
icon: <iconsMap.ReloadOutlined />,
|
|
306
311
|
label: e('reload'),
|
|
307
312
|
extra: reloadShortcut
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
key: 'handleReloadAll',
|
|
316
|
+
icon: <iconsMap.ReloadOutlined />,
|
|
317
|
+
label: e('reloadAll'),
|
|
318
|
+
extra: reloadAllShortcut
|
|
308
319
|
}
|
|
309
320
|
].filter(Boolean)
|
|
310
321
|
return x
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import React from 'react'
|
|
5
5
|
import { Form, Input, InputNumber, Switch, Select, Button, Tooltip } from 'antd'
|
|
6
6
|
import { formItemLayout, tailFormItemLayout } from '../../common/form-layout'
|
|
7
|
+
import HelpIcon from '../common/help-icon'
|
|
7
8
|
|
|
8
9
|
export default function WidgetForm ({ widget, onSubmit, loading, hasRunningInstance }) {
|
|
9
10
|
const [form] = Form.useForm()
|
|
@@ -83,7 +84,12 @@ export default function WidgetForm ({ widget, onSubmit, loading, hasRunningInsta
|
|
|
83
84
|
return (
|
|
84
85
|
<div className='widget-form'>
|
|
85
86
|
<div className='pd1b alignright'>
|
|
86
|
-
<h4>
|
|
87
|
+
<h4>
|
|
88
|
+
{info.name}
|
|
89
|
+
{info.name === 'MCP Server' && (
|
|
90
|
+
<HelpIcon link='https://github.com/electerm/electerm/wiki/MCP-Widget-Usage-Guide' />
|
|
91
|
+
)}
|
|
92
|
+
</h4>
|
|
87
93
|
<p>{info.description}</p>
|
|
88
94
|
</div>
|
|
89
95
|
<Form
|
package/client/store/tab.js
CHANGED
|
@@ -124,6 +124,17 @@ export default Store => {
|
|
|
124
124
|
}, 0)
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
Store.prototype.reloadAllTabs = function () {
|
|
128
|
+
const { store } = window
|
|
129
|
+
const { tabs } = store
|
|
130
|
+
// Reload all tabs with a small delay between each to avoid conflicts
|
|
131
|
+
tabs.forEach((tab, index) => {
|
|
132
|
+
setTimeout(() => {
|
|
133
|
+
store.reloadTab(tab.id)
|
|
134
|
+
}, index * 100) // 100ms delay between each reload
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
|
|
127
138
|
Store.prototype.duplicateTab = function (tabId) {
|
|
128
139
|
const { store } = window
|
|
129
140
|
const { tabs } = store
|