@electerm/electerm-react 3.2.0 → 3.5.6
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 +1 -8
- package/client/common/fs.js +84 -0
- package/client/components/batch-op/batch-op-alert.jsx +23 -0
- package/client/components/batch-op/batch-op-editor.jsx +206 -0
- package/client/components/batch-op/batch-op-logs.jsx +53 -0
- package/client/components/batch-op/batch-op-runner.jsx +315 -0
- package/client/components/bookmark-form/ai-bookmark-form.jsx +2 -1
- package/client/components/bookmark-form/bookmark-from-history-modal.jsx +2 -1
- package/client/components/bookmark-form/common/fields.jsx +15 -0
- package/client/components/bookmark-form/config/rdp.js +5 -0
- package/client/components/common/auto-check-update.jsx +31 -0
- package/client/components/common/notification.styl +1 -1
- package/client/components/file-transfer/conflict-resolve.jsx +3 -0
- package/client/components/footer/batch-input.jsx +10 -7
- package/client/components/main/error-wrapper.jsx +18 -7
- package/client/components/main/main.jsx +6 -7
- package/client/components/main/upgrade.jsx +133 -104
- package/client/components/main/upgrade.styl +2 -2
- package/client/components/rdp/file-transfer.js +375 -0
- package/client/components/rdp/rdp-session.jsx +169 -76
- package/client/components/rdp/rdp.styl +27 -0
- package/client/components/setting-sync/auto-sync.jsx +53 -0
- package/client/components/setting-sync/data-import.jsx +69 -8
- package/client/components/sftp/address-bar.jsx +23 -3
- package/client/components/sidebar/bookmark-select.jsx +3 -2
- package/client/components/sidebar/history-item.jsx +3 -1
- package/client/components/sidebar/index.jsx +0 -9
- package/client/components/sidebar/info-modal.jsx +7 -2
- package/client/components/tabs/add-btn-menu.jsx +1 -1
- package/client/components/tabs/add-btn.jsx +9 -15
- package/client/components/tabs/quick-connect.jsx +6 -10
- package/client/components/terminal/terminal.jsx +4 -5
- package/client/components/tree-list/tree-list.jsx +115 -10
- package/client/components/tree-list/tree-list.styl +3 -0
- package/client/components/tree-list/tree-search.jsx +9 -1
- package/client/components/widgets/widget-form.jsx +6 -0
- package/client/store/app-upgrade.js +2 -2
- package/client/store/common.js +0 -28
- package/client/store/load-data.js +3 -3
- package/client/store/mcp-handler.js +2 -2
- package/client/store/sync.js +25 -1
- package/client/store/tab.js +1 -1
- package/client/store/watch.js +10 -18
- package/client/views/index.pug +1 -2
- package/package.json +1 -1
- package/client/components/batch-op/batch-op.jsx +0 -694
package/client/store/watch.js
CHANGED
|
@@ -20,22 +20,6 @@ import { refsStatic } from '../components/common/ref'
|
|
|
20
20
|
import dataCompare from '../common/data-compare'
|
|
21
21
|
|
|
22
22
|
export default store => {
|
|
23
|
-
// autoRun(() => {
|
|
24
|
-
// store.focus()
|
|
25
|
-
// // store.termSearchOpen = false
|
|
26
|
-
// store.termSearchMatchCount = 0
|
|
27
|
-
// return store.activeTabId
|
|
28
|
-
// }).start()
|
|
29
|
-
|
|
30
|
-
// autoRun(() => {
|
|
31
|
-
// if (store.menuOpened) {
|
|
32
|
-
// store.initMenuEvent()
|
|
33
|
-
// } else {
|
|
34
|
-
// store.onCloseMenu()
|
|
35
|
-
// }
|
|
36
|
-
// return store.menuOpened
|
|
37
|
-
// })
|
|
38
|
-
|
|
39
23
|
for (const name of dbNamesForWatch) {
|
|
40
24
|
window[`watch${name}`] = autoRun(async () => {
|
|
41
25
|
if (window.migrating) {
|
|
@@ -68,8 +52,16 @@ export default store => {
|
|
|
68
52
|
)
|
|
69
53
|
}
|
|
70
54
|
await store.updateLastDataUpdateTime()
|
|
71
|
-
if (
|
|
72
|
-
|
|
55
|
+
if (dbNamesForSync.includes(name)) {
|
|
56
|
+
const syncSetting = store.config.syncSetting || {}
|
|
57
|
+
const { autoSync, autoSyncInterval, autoSyncDirection } = syncSetting
|
|
58
|
+
if (autoSync && autoSyncInterval === 0) {
|
|
59
|
+
if (autoSyncDirection === 'download') {
|
|
60
|
+
await store.downloadSettingAll()
|
|
61
|
+
} else {
|
|
62
|
+
await store.uploadSettingAll()
|
|
63
|
+
}
|
|
64
|
+
}
|
|
73
65
|
}
|
|
74
66
|
return store[name]
|
|
75
67
|
})
|
package/client/views/index.pug
CHANGED
|
@@ -33,8 +33,7 @@ html
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
- if (!isDev)
|
|
36
|
-
link(rel='stylesheet', href='css/' + version + '
|
|
37
|
-
link(rel='stylesheet', href='css/' + version + '-electerm.css')
|
|
36
|
+
link(rel='stylesheet', href='css/style-' + version + '.css')
|
|
38
37
|
style(id='theme-css').
|
|
39
38
|
style(id='custom-css').
|
|
40
39
|
body
|