@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.
Files changed (46) hide show
  1. package/client/common/constants.js +1 -8
  2. package/client/common/fs.js +84 -0
  3. package/client/components/batch-op/batch-op-alert.jsx +23 -0
  4. package/client/components/batch-op/batch-op-editor.jsx +206 -0
  5. package/client/components/batch-op/batch-op-logs.jsx +53 -0
  6. package/client/components/batch-op/batch-op-runner.jsx +315 -0
  7. package/client/components/bookmark-form/ai-bookmark-form.jsx +2 -1
  8. package/client/components/bookmark-form/bookmark-from-history-modal.jsx +2 -1
  9. package/client/components/bookmark-form/common/fields.jsx +15 -0
  10. package/client/components/bookmark-form/config/rdp.js +5 -0
  11. package/client/components/common/auto-check-update.jsx +31 -0
  12. package/client/components/common/notification.styl +1 -1
  13. package/client/components/file-transfer/conflict-resolve.jsx +3 -0
  14. package/client/components/footer/batch-input.jsx +10 -7
  15. package/client/components/main/error-wrapper.jsx +18 -7
  16. package/client/components/main/main.jsx +6 -7
  17. package/client/components/main/upgrade.jsx +133 -104
  18. package/client/components/main/upgrade.styl +2 -2
  19. package/client/components/rdp/file-transfer.js +375 -0
  20. package/client/components/rdp/rdp-session.jsx +169 -76
  21. package/client/components/rdp/rdp.styl +27 -0
  22. package/client/components/setting-sync/auto-sync.jsx +53 -0
  23. package/client/components/setting-sync/data-import.jsx +69 -8
  24. package/client/components/sftp/address-bar.jsx +23 -3
  25. package/client/components/sidebar/bookmark-select.jsx +3 -2
  26. package/client/components/sidebar/history-item.jsx +3 -1
  27. package/client/components/sidebar/index.jsx +0 -9
  28. package/client/components/sidebar/info-modal.jsx +7 -2
  29. package/client/components/tabs/add-btn-menu.jsx +1 -1
  30. package/client/components/tabs/add-btn.jsx +9 -15
  31. package/client/components/tabs/quick-connect.jsx +6 -10
  32. package/client/components/terminal/terminal.jsx +4 -5
  33. package/client/components/tree-list/tree-list.jsx +115 -10
  34. package/client/components/tree-list/tree-list.styl +3 -0
  35. package/client/components/tree-list/tree-search.jsx +9 -1
  36. package/client/components/widgets/widget-form.jsx +6 -0
  37. package/client/store/app-upgrade.js +2 -2
  38. package/client/store/common.js +0 -28
  39. package/client/store/load-data.js +3 -3
  40. package/client/store/mcp-handler.js +2 -2
  41. package/client/store/sync.js +25 -1
  42. package/client/store/tab.js +1 -1
  43. package/client/store/watch.js +10 -18
  44. package/client/views/index.pug +1 -2
  45. package/package.json +1 -1
  46. package/client/components/batch-op/batch-op.jsx +0 -694
@@ -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 (store.config.autoSync && dbNamesForSync.includes(name)) {
72
- await store.uploadSettingAll()
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
  })
@@ -33,8 +33,7 @@ html
33
33
  }
34
34
 
35
35
  - if (!isDev)
36
- link(rel='stylesheet', href='css/' + version + '-basic.css')
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "3.2.0",
3
+ "version": "3.5.6",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",