@electerm/electerm-react 1.39.35 → 1.39.46
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/components/bookmark-form/bookmark-group-tree-format.js +25 -24
- package/client/components/bookmark-form/form-ssh-common.jsx +10 -0
- package/client/components/bookmark-form/render-connection-hopping.jsx +21 -20
- package/client/components/bookmark-form/render-ssh-tunnel.jsx +4 -3
- package/client/components/bookmark-form/ssh-form.jsx +2 -1
- package/client/components/bookmark-form/vnc-form-ui.jsx +42 -3
- package/client/components/main/main.jsx +1 -1
- package/client/components/profile/profile-form-elem.jsx +0 -1
- package/client/components/quick-commands/quick-command-transport-mod.jsx +1 -1
- package/client/components/setting-panel/bookmark-tree-list.jsx +1 -1
- package/client/components/setting-panel/start-session-select.jsx +4 -3
- package/client/components/sftp/file-item.jsx +3 -3
- package/client/components/sidebar/bookmark-select.jsx +1 -1
- package/client/components/tabs/index.jsx +1 -1
- package/client/components/tabs/tabs.styl +2 -2
- package/client/components/terminal/index.jsx +1 -1
- package/client/components/tree-list/tree-expander.jsx +36 -0
- package/client/components/tree-list/tree-list-item.jsx +263 -0
- package/client/components/{setting-panel → tree-list}/tree-list.jsx +397 -324
- package/client/components/{setting-panel → tree-list}/tree-list.styl +26 -6
- package/client/store/common.js +15 -1
- package/client/store/index.js +24 -0
- package/package.json +1 -1
- /package/client/components/{setting-panel → tree-list}/bookmark-transport.jsx +0 -0
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
.tree-list
|
|
2
|
-
.ant-tree-child-tree
|
|
3
|
-
span.ant-tree-switcher.ant-tree-switcher-noop
|
|
4
|
-
display none
|
|
5
1
|
|
|
6
2
|
.tree-control-btn
|
|
7
3
|
display none
|
|
@@ -11,20 +7,33 @@
|
|
|
11
7
|
height 20px
|
|
12
8
|
.tree-item
|
|
13
9
|
display flex
|
|
10
|
+
line-height 26px
|
|
11
|
+
padding-left 5px
|
|
12
|
+
border-radius 3px
|
|
14
13
|
&.is-category
|
|
15
14
|
.tree-item-title
|
|
16
15
|
font-weight bold
|
|
16
|
+
font-size 14px
|
|
17
|
+
&.selected
|
|
18
|
+
&.item-dragover
|
|
19
|
+
&:hover
|
|
20
|
+
background #000
|
|
21
|
+
color #eee
|
|
22
|
+
cursor pointer
|
|
17
23
|
&:hover
|
|
18
24
|
.tree-control-btn
|
|
19
25
|
display inline-block
|
|
20
26
|
vertical-align middle
|
|
27
|
+
&.item-dragover-top
|
|
28
|
+
border-top 1px solid #18d551
|
|
21
29
|
.tree-item-title
|
|
22
30
|
flex-grow 1
|
|
23
|
-
height
|
|
31
|
+
line-height 26px
|
|
24
32
|
max-width 300px
|
|
25
33
|
overflow hidden
|
|
26
34
|
white-space nowrap
|
|
27
35
|
text-overflow ellipsis
|
|
36
|
+
|
|
28
37
|
.sidebar-panel .tree-item-title
|
|
29
38
|
max-width 180px
|
|
30
39
|
.with-plus
|
|
@@ -46,4 +55,15 @@
|
|
|
46
55
|
right 0
|
|
47
56
|
top 0
|
|
48
57
|
.open-all-icon.tree-control-btn
|
|
49
|
-
right 20px
|
|
58
|
+
right 20px
|
|
59
|
+
.group-container
|
|
60
|
+
padding-left 12px
|
|
61
|
+
position relative
|
|
62
|
+
line-height 30px
|
|
63
|
+
.tree-expander
|
|
64
|
+
position absolute
|
|
65
|
+
left 0
|
|
66
|
+
top 0
|
|
67
|
+
width 12px
|
|
68
|
+
font-size 11px
|
|
69
|
+
line-height 30px
|
package/client/store/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import handleError from '../common/error-handler'
|
|
6
6
|
import { Modal } from 'antd'
|
|
7
|
-
import { debounce } from 'lodash-es'
|
|
7
|
+
import { debounce, some } from 'lodash-es'
|
|
8
8
|
import postMessage from '../common/post-msg'
|
|
9
9
|
import {
|
|
10
10
|
commonActions,
|
|
@@ -227,9 +227,23 @@ export default Store => {
|
|
|
227
227
|
// delete tab.password
|
|
228
228
|
// delete tab.privateKey
|
|
229
229
|
// delete tab.passphrase
|
|
230
|
+
delete p.name
|
|
231
|
+
delete p.id
|
|
230
232
|
return {
|
|
231
233
|
...tab,
|
|
232
234
|
...p
|
|
233
235
|
}
|
|
234
236
|
}
|
|
237
|
+
Store.prototype.applyProfileToTabs = function (tab) {
|
|
238
|
+
if (
|
|
239
|
+
tab.connectionHoppings &&
|
|
240
|
+
tab.connectionHoppings.length &&
|
|
241
|
+
some(tab.connectionHoppings, s => s.profile)
|
|
242
|
+
) {
|
|
243
|
+
tab.connectionHoppings = tab.connectionHoppings.map(s => {
|
|
244
|
+
return window.store.applyProfile(s)
|
|
245
|
+
})
|
|
246
|
+
}
|
|
247
|
+
return window.store.applyProfile(tab)
|
|
248
|
+
}
|
|
235
249
|
}
|
package/client/store/index.js
CHANGED
|
@@ -270,6 +270,30 @@ class Store {
|
|
|
270
270
|
algorithm: isColorDark(themeConf.main) ? theme.darkAlgorithm : theme.defaultAlgorithm
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
+
|
|
274
|
+
get bookmarkTree () {
|
|
275
|
+
const {
|
|
276
|
+
bookmarks
|
|
277
|
+
} = window.store
|
|
278
|
+
return bookmarks.reduce((p, v) => {
|
|
279
|
+
return {
|
|
280
|
+
...p,
|
|
281
|
+
[v.id]: v
|
|
282
|
+
}
|
|
283
|
+
}, {})
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
get bookmarkGroupTree () {
|
|
287
|
+
const {
|
|
288
|
+
bookmarkGroups
|
|
289
|
+
} = window.store
|
|
290
|
+
return bookmarkGroups.reduce((p, v) => {
|
|
291
|
+
return {
|
|
292
|
+
...p,
|
|
293
|
+
[v.id]: v
|
|
294
|
+
}
|
|
295
|
+
}, {})
|
|
296
|
+
}
|
|
273
297
|
}
|
|
274
298
|
|
|
275
299
|
const getterProps = [
|
package/package.json
CHANGED
|
File without changes
|