@electerm/electerm-react 1.60.50 → 1.70.0
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 -0
- package/client/common/default-log-path.js +5 -0
- package/client/common/default-setting.js +4 -2
- package/client/common/download-mirrors.js +0 -4
- package/client/common/find-bookmark-group-id.js +1 -2
- package/client/components/ai/ai-config.jsx +2 -2
- package/client/components/batch-op/batch-op-entry.jsx +13 -0
- package/client/components/bookmark-form/index.jsx +1 -1
- package/client/components/footer/footer-entry.jsx +9 -16
- package/client/components/icons/split-view.jsx +14 -0
- package/client/components/main/main.jsx +9 -10
- package/client/components/session/session.jsx +285 -70
- package/client/components/session/session.styl +2 -0
- package/client/components/setting-panel/on-tree-drop.js +10 -19
- package/client/components/setting-panel/setting-modal.jsx +1 -0
- package/client/components/setting-panel/setting-terminal.jsx +94 -20
- package/client/components/setting-panel/tab-settings.jsx +2 -1
- package/client/components/setting-sync/server-data-status.jsx +81 -0
- package/client/components/setting-sync/setting-sync-form.jsx +6 -0
- package/client/components/setting-sync/setting-sync.jsx +8 -5
- package/client/components/sftp/list-table-ui.jsx +13 -15
- package/client/components/sftp/sftp-entry.jsx +4 -22
- package/client/components/shortcuts/shortcut-control.jsx +10 -1
- package/client/components/sidebar/bookmark-select.jsx +3 -1
- package/client/components/tabs/tab.jsx +7 -8
- package/client/components/tabs/tabs.styl +3 -0
- package/client/components/terminal/term-search.jsx +2 -1
- package/client/components/terminal/terminal.jsx +26 -9
- package/client/components/terminal-info/base.jsx +9 -4
- package/client/components/tree-list/bookmark-toolbar.jsx +2 -3
- package/client/components/tree-list/tree-list.jsx +36 -51
- package/client/components/tree-list/tree-search.jsx +1 -0
- package/client/store/bookmark-group.js +1 -2
- package/client/store/init-state.js +4 -0
- package/client/store/item.js +1 -2
- package/client/store/load-data.js +6 -1
- package/client/store/setting.js +1 -2
- package/client/store/store.js +13 -15
- package/client/store/sync.js +42 -7
- package/client/store/terminal-theme.js +4 -4
- package/client/store/ui-theme.js +3 -10
- package/client/store/watch.js +11 -0
- package/package.json +1 -1
- package/client/components/main/loading.jsx +0 -25
package/client/store/watch.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
expandedKeysLsKey,
|
|
12
12
|
resolutionsLsKey,
|
|
13
13
|
localAddrBookmarkLsKey,
|
|
14
|
+
syncServerDataKey,
|
|
14
15
|
aiChatHistoryKey
|
|
15
16
|
} from '../common/constants'
|
|
16
17
|
import * as ls from '../common/safe-local-storage'
|
|
@@ -58,6 +59,11 @@ export default store => {
|
|
|
58
59
|
(n || []).map(d => d.id)
|
|
59
60
|
)
|
|
60
61
|
refsStatic.add('oldState-' + name, deepCopy(n) || [])
|
|
62
|
+
if (name === 'bookmarks') {
|
|
63
|
+
store.bookmarksMap = new Map(
|
|
64
|
+
n.map(d => [d.id, d])
|
|
65
|
+
)
|
|
66
|
+
}
|
|
61
67
|
await store.updateLastDataUpdateTime()
|
|
62
68
|
if (store.config.autoSync) {
|
|
63
69
|
await store.uploadSettingAll()
|
|
@@ -117,6 +123,11 @@ export default store => {
|
|
|
117
123
|
return store.checkedKeys
|
|
118
124
|
}).start()
|
|
119
125
|
|
|
126
|
+
autoRun(() => {
|
|
127
|
+
ls.setItemJSON(syncServerDataKey, store.syncServerStatus)
|
|
128
|
+
return store.syncServerStatus
|
|
129
|
+
}).start()
|
|
130
|
+
|
|
120
131
|
autoRun(() => {
|
|
121
132
|
ls.setItemJSON('history', store.history)
|
|
122
133
|
return store.history
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import LogoElem from '../common/logo-elem'
|
|
2
|
-
import { PureComponent } from 'react'
|
|
3
|
-
|
|
4
|
-
export class LoadingUI extends PureComponent {
|
|
5
|
-
state = {
|
|
6
|
-
show: true
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
hide = () => {
|
|
10
|
-
this.setState({
|
|
11
|
-
show: false
|
|
12
|
-
})
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
render () {
|
|
16
|
-
if (!this.state.show) {
|
|
17
|
-
return null
|
|
18
|
-
}
|
|
19
|
-
return (
|
|
20
|
-
<div className='loading-data'>
|
|
21
|
-
<LogoElem />
|
|
22
|
-
</div>
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
}
|