@electerm/electerm-react 3.15.58 → 3.15.66
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/bookmark-schemas.js +1 -0
- package/client/components/bookmark-form/bookmark-schema.js +1 -0
- package/client/components/bookmark-form/common/x11.jsx +21 -0
- package/client/components/bookmark-form/config/ssh.js +1 -0
- package/client/components/common/logo.styl +2 -1
- package/client/components/sys-menu/menu-btn.jsx +5 -3
- package/client/components/sys-menu/sys-menu.styl +13 -7
- package/package.json +1 -1
|
@@ -64,6 +64,7 @@ export const sshBookmarkSchema = {
|
|
|
64
64
|
sshAgent: z.string().optional().describe('SSH agent path'),
|
|
65
65
|
serverHostKey: z.array(z.string()).optional().describe('Server host key algorithms'),
|
|
66
66
|
cipher: z.array(z.string()).optional().describe('Cipher list'),
|
|
67
|
+
compress: z.array(z.string()).optional().describe('Compression algorithms'),
|
|
67
68
|
quickCommands: z.array(quickCommandSchema).optional().describe('Quick commands'),
|
|
68
69
|
x11: z.boolean().optional().describe('Enable x11 forwarding, default is false'),
|
|
69
70
|
term: z.string().optional().describe('Terminal type, default is xterm-256color'),
|
|
@@ -22,6 +22,7 @@ const bookmarkSchema = {
|
|
|
22
22
|
sshAgent: 'string - ssh agent path',
|
|
23
23
|
serverHostKey: 'array - server host key algorithms',
|
|
24
24
|
cipher: 'array - cipher list',
|
|
25
|
+
compress: 'array - compression algorithms (zlib@openssh.com, zlib, none)',
|
|
25
26
|
runScripts: 'array - run scripts after connected ({delay,script})',
|
|
26
27
|
quickCommands: 'array - quick commands ({name,command})',
|
|
27
28
|
proxy: 'string - proxy address (socks5://...)',
|
|
@@ -35,6 +35,13 @@ const cipherOptions = [
|
|
|
35
35
|
'curve25519-sha256@libssh.org'
|
|
36
36
|
]
|
|
37
37
|
|
|
38
|
+
// Available compress options
|
|
39
|
+
const compressOptions = [
|
|
40
|
+
'zlib@openssh.com',
|
|
41
|
+
'zlib',
|
|
42
|
+
'none'
|
|
43
|
+
]
|
|
44
|
+
|
|
38
45
|
// Available serverHostKey options from ssh2-alg.js
|
|
39
46
|
const serverHostKeyOptions = [
|
|
40
47
|
'ssh-rsa',
|
|
@@ -98,6 +105,20 @@ export default function renderX11 ({ form }) {
|
|
|
98
105
|
))}
|
|
99
106
|
</Select>
|
|
100
107
|
</FormItem>
|
|
108
|
+
<FormItem
|
|
109
|
+
{...formItemLayout}
|
|
110
|
+
label='compress'
|
|
111
|
+
name='compress'
|
|
112
|
+
>
|
|
113
|
+
<Select
|
|
114
|
+
mode='tags'
|
|
115
|
+
style={{ width: '100%' }}
|
|
116
|
+
>
|
|
117
|
+
{compressOptions.map(c => (
|
|
118
|
+
<Option key={c} value={c}>{c}</Option>
|
|
119
|
+
))}
|
|
120
|
+
</Select>
|
|
121
|
+
</FormItem>
|
|
101
122
|
<FormItem
|
|
102
123
|
{...formItemLayout}
|
|
103
124
|
label='serverHostKey'
|
|
@@ -6,13 +6,12 @@ import { PureComponent } from 'react'
|
|
|
6
6
|
import {
|
|
7
7
|
Popover
|
|
8
8
|
} from 'antd'
|
|
9
|
-
import
|
|
9
|
+
import logoSvg from '@electerm/electerm-resource/res/imgs/electerm.svg?raw'
|
|
10
10
|
import { shortcutDescExtend } from '../shortcuts/shortcut-handler.js'
|
|
11
11
|
import MenuRender from './sys-menu.jsx'
|
|
12
12
|
import { refsStatic } from '../common/ref.js'
|
|
13
13
|
|
|
14
14
|
const e = window.translate
|
|
15
|
-
const logo = logoRef.replace(/^\//, '')
|
|
16
15
|
|
|
17
16
|
class MenuBtn extends PureComponent {
|
|
18
17
|
componentDidMount () {
|
|
@@ -202,7 +201,10 @@ class MenuBtn extends PureComponent {
|
|
|
202
201
|
<div
|
|
203
202
|
{...pops}
|
|
204
203
|
>
|
|
205
|
-
<
|
|
204
|
+
<span
|
|
205
|
+
className='menu-logo'
|
|
206
|
+
dangerouslySetInnerHTML={{ __html: logoSvg }}
|
|
207
|
+
/>
|
|
206
208
|
</div>
|
|
207
209
|
</Popover>
|
|
208
210
|
)
|
|
@@ -68,17 +68,23 @@
|
|
|
68
68
|
width 28px
|
|
69
69
|
height 28px
|
|
70
70
|
border-radius 30px
|
|
71
|
-
color var(--text
|
|
71
|
+
color var(--text)
|
|
72
72
|
font-size 16px
|
|
73
73
|
text-align center
|
|
74
74
|
display inline-block
|
|
75
75
|
line-height 28px
|
|
76
76
|
cursor pointer
|
|
77
|
+
color var(--text)
|
|
78
|
+
|
|
79
|
+
.menu-logo
|
|
80
|
+
display inline-block
|
|
81
|
+
width 28px
|
|
82
|
+
height 28px
|
|
83
|
+
vertical-align middle
|
|
84
|
+
color var(--text-disabled)
|
|
77
85
|
&:hover
|
|
78
86
|
color var(--text)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
border-radius 28px
|
|
84
|
-
background #000
|
|
87
|
+
svg
|
|
88
|
+
fill currentColor
|
|
89
|
+
width 100%
|
|
90
|
+
height 100%
|