@electerm/electerm-react 5.5.25 → 5.5.56
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/README.md +5 -5
- package/client/common/bookmark-schemas.js +4 -0
- package/client/common/constants.js +3 -0
- package/client/common/create-title.jsx +5 -1
- package/client/common/default-setting.js +2 -0
- package/client/common/parse-quick-connect.js +1 -0
- package/client/common/parse-vv.js +119 -25
- package/client/common/parse-widget-log.js +57 -0
- package/client/common/vv-to-tab.js +120 -0
- package/client/components/ai/agent-tool-call-card.jsx +26 -7
- package/client/components/ai/agent.js +205 -45
- package/client/components/ai/ai-auto-compress.js +119 -0
- package/client/components/ai/ai-chat-history-item.jsx +133 -84
- package/client/components/ai/ai-chat.jsx +135 -30
- package/client/components/ai/ai-compress.js +95 -0
- package/client/components/ai/ai-config-props.js +12 -1
- package/client/components/ai/ai-config.jsx +43 -16
- package/client/components/ai/ai-config.styl +20 -0
- package/client/components/ai/ai-context-indicator.jsx +83 -0
- package/client/components/ai/ai-context.js +272 -0
- package/client/components/ai/ai-output.jsx +5 -6
- package/client/components/ai/ai-presets.js +1 -16
- package/client/components/ai/ai.styl +105 -6
- package/client/components/ai/copy-icon.jsx +31 -0
- package/client/components/batch-op/batch-op-runner.jsx +1 -0
- package/client/components/bookmark-form/bookmark-schema.js +1 -0
- package/client/components/bookmark-form/common/ssh-agent.jsx +31 -21
- package/client/components/bookmark-form/common/vv-file-field.jsx +3 -2
- package/client/components/bookmark-form/config/spice.js +21 -0
- package/client/components/bookmark-form/config/ssh.js +1 -0
- package/client/components/bookmark-form/fix-bookmark-default.js +1 -0
- package/client/components/file-transfer/transfer.jsx +3 -119
- package/client/components/footer/cmd-history.jsx +279 -65
- package/client/components/footer/cmd-history.styl +68 -1
- package/client/components/footer/footer-entry.jsx +7 -1
- package/client/components/layout/layout.jsx +12 -19
- package/client/components/main/main.jsx +15 -1
- package/client/components/quick-commands/qm.styl +58 -0
- package/client/components/quick-commands/quick-commands-box.jsx +180 -83
- package/client/components/quick-commands/quick-commands-select.jsx +11 -0
- package/client/components/session/session-control.jsx +35 -2
- package/client/components/session/session-control.styl +5 -0
- package/client/components/session/session.jsx +13 -0
- package/client/components/setting-panel/setting-common.jsx +2 -0
- package/client/components/setting-panel/tab-widgets.jsx +27 -7
- package/client/components/sftp/file-item.jsx +0 -13
- package/client/components/side-panel-r/side-panel-r.jsx +11 -4
- package/client/components/sidebar/bookmark-select.jsx +14 -2
- package/client/components/sidebar/history-item.jsx +20 -4
- package/client/components/sidebar/history.jsx +7 -0
- package/client/components/terminal/mixins/term-touch.js +18 -0
- package/client/components/tree-list/tree-list.jsx +31 -3
- package/client/components/widgets/widget-control.jsx +4 -2
- package/client/components/widgets/widget-instance-detail.jsx +370 -0
- package/client/components/widgets/widget-instance.jsx +30 -13
- package/client/components/widgets/widget-instances.jsx +3 -1
- package/client/components/widgets/widgets-list.jsx +8 -0
- package/client/components/widgets/widgets.styl +100 -0
- package/client/store/common.js +200 -54
- package/client/store/init-state.js +15 -0
- package/client/store/load-data.js +73 -0
- package/client/store/store.js +6 -0
- package/client/store/watch.js +3 -1
- package/client/store/widgets.js +23 -5
- package/package.json +1 -1
- package/client/components/file-transfer/zip.js +0 -42
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* zip/unzip remote files
|
|
3
|
-
* should only support linux server
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { runCmd } from '../terminal/terminal-apis'
|
|
7
|
-
import { getFolderFromFilePath } from '../sftp/file-read'
|
|
8
|
-
import resolve from '../../common/resolve'
|
|
9
|
-
import generate from '../../common/uid'
|
|
10
|
-
|
|
11
|
-
const isRemote = true
|
|
12
|
-
const temp = '/tmp'
|
|
13
|
-
|
|
14
|
-
export async function zipCmd (pid, filePath) {
|
|
15
|
-
// tar -czf bin.tar bin
|
|
16
|
-
const id = generate()
|
|
17
|
-
const { path, name } = getFolderFromFilePath(filePath, isRemote)
|
|
18
|
-
const np = resolve(temp, `electerm-${id}.tar`)
|
|
19
|
-
const cmd = `tar -C "${path}" -cf "${np}" "${name}"`
|
|
20
|
-
await runCmd(pid, cmd)
|
|
21
|
-
return np
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function unzipCmd (pid, from, to) {
|
|
25
|
-
const cmd = `tar -xf "${from}" -C "${to}"`
|
|
26
|
-
return runCmd(pid, cmd)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export async function rmCmd (pid, path) {
|
|
30
|
-
const cmd = `rm -rf "${path}"`
|
|
31
|
-
return runCmd(pid, cmd)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export async function mvCmd (pid, from, to) {
|
|
35
|
-
const cmd = `mv "${from}" "${to}"`
|
|
36
|
-
return runCmd(pid, cmd)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export async function mkdirCmd (pid, p) {
|
|
40
|
-
const cmd = `mkdir "${p}"`
|
|
41
|
-
return runCmd(pid, cmd)
|
|
42
|
-
}
|