@electerm/electerm-react 1.51.21 → 1.60.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 -0
- package/client/common/default-setting.js +12 -1
- package/client/components/ai/ai-chat-history-item.jsx +69 -0
- package/client/components/ai/ai-chat-history.jsx +31 -0
- package/client/components/ai/ai-chat.jsx +164 -0
- package/client/components/ai/ai-config.jsx +133 -0
- package/client/components/ai/ai-output.jsx +123 -0
- package/client/components/ai/ai.styl +69 -0
- package/client/components/ai/providers.js +14 -0
- package/client/components/footer/batch-input.jsx +13 -67
- package/client/components/footer/footer-entry.jsx +19 -3
- package/client/components/footer/footer.styl +4 -0
- package/client/components/footer/tab-select.jsx +9 -3
- package/client/components/layout/layout.jsx +5 -4
- package/client/components/main/main.jsx +14 -2
- package/client/components/shortcuts/shortcut-control.jsx +17 -2
- package/client/components/shortcuts/shortcut-handler.js +24 -8
- package/client/components/shortcuts/shortcuts-defaults.js +6 -0
- package/client/components/sidebar/app-running-time.jsx +35 -0
- package/client/components/sidebar/info-modal.jsx +2 -0
- package/client/components/tabs/app-drag.jsx +1 -1
- package/client/components/tabs/index.jsx +8 -17
- package/client/store/common.js +37 -2
- package/client/store/index.js +2 -290
- package/client/store/init-state.js +7 -1
- package/client/store/store.js +298 -0
- package/client/store/tab.js +54 -1
- package/client/store/watch.js +9 -2
- package/package.json +1 -1
package/client/store/watch.js
CHANGED
|
@@ -10,7 +10,8 @@ import {
|
|
|
10
10
|
checkedKeysLsKey,
|
|
11
11
|
expandedKeysLsKey,
|
|
12
12
|
resolutionsLsKey,
|
|
13
|
-
localAddrBookmarkLsKey
|
|
13
|
+
localAddrBookmarkLsKey,
|
|
14
|
+
aiChatHistoryKey
|
|
14
15
|
} from '../common/constants'
|
|
15
16
|
import * as ls from '../common/safe-local-storage'
|
|
16
17
|
import { debounce, isEmpty } from 'lodash-es'
|
|
@@ -103,6 +104,12 @@ export default store => {
|
|
|
103
104
|
}).start()
|
|
104
105
|
|
|
105
106
|
autoRun(() => {
|
|
107
|
+
ls.setItemJSON(aiChatHistoryKey, store.aiChatHistory)
|
|
108
|
+
return store.aiChatHistory
|
|
109
|
+
}).start()
|
|
110
|
+
|
|
111
|
+
autoRun(() => {
|
|
112
|
+
store.updateBatchInputSelectedTabIds()
|
|
106
113
|
const tabs = store.getTabs()
|
|
107
114
|
const { activeTabId } = store
|
|
108
115
|
const tab = tabs.find(t => t.id === activeTabId)
|
|
@@ -112,7 +119,7 @@ export default store => {
|
|
|
112
119
|
window.store.currentLayoutBatch = tab.batch
|
|
113
120
|
}
|
|
114
121
|
if (tab && store.rightPanelVisible) {
|
|
115
|
-
window.store.
|
|
122
|
+
window.store.openInfoPanelAction()
|
|
116
123
|
}
|
|
117
124
|
return store.activeTabId
|
|
118
125
|
}).start()
|