@electerm/electerm-react 1.34.42 → 1.34.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/common/constants.js +1 -1
- package/client/components/context-menu/context-menu.styl +1 -2
- package/client/components/sftp/file-item.jsx +3 -5
- package/client/components/sidebar/transfer-history-modal.jsx +11 -6
- package/client/components/sidebar/transfer.styl +0 -1
- package/client/components/terminal/index.jsx +0 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ export const splitDraggerWidth = 5
|
|
|
33
33
|
export const minTerminalWidth = 90
|
|
34
34
|
export const filePropMinWidth = 1
|
|
35
35
|
export const contextMenuHeight = 28
|
|
36
|
-
export const contextMenuWidth =
|
|
36
|
+
export const contextMenuWidth = 280
|
|
37
37
|
export const contextMenuPaddingTop = 10
|
|
38
38
|
export const sftpControlHeight = 28 + 42 + 33 + 56
|
|
39
39
|
export const sidebarWidth = 43
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@require '../../css/includes/theme-default'
|
|
2
2
|
.context-menu
|
|
3
3
|
position: absolute
|
|
4
|
-
width
|
|
4
|
+
width 280px
|
|
5
5
|
background main-dark
|
|
6
6
|
box-shadow 0px 0px 3px 3px alpha(main-dark, .35)
|
|
7
|
-
// border 1px solid #222
|
|
8
7
|
padding 10px 0
|
|
9
8
|
z-index 999
|
|
10
9
|
-webkit-app-region no-drag
|
|
@@ -871,7 +871,7 @@ export default class FileSection extends React.Component {
|
|
|
871
871
|
|
|
872
872
|
newItem = (isDirectory) => {
|
|
873
873
|
const { type } = this.state.file
|
|
874
|
-
const list = this.props[type]
|
|
874
|
+
const list = copy(this.props[type])
|
|
875
875
|
list.unshift({
|
|
876
876
|
name: '',
|
|
877
877
|
nameTemp: '',
|
|
@@ -1031,14 +1031,12 @@ export default class FileSection extends React.Component {
|
|
|
1031
1031
|
res.push({
|
|
1032
1032
|
func: 'newFile',
|
|
1033
1033
|
icon: 'FileAddOutlined',
|
|
1034
|
-
text: e('newFile')
|
|
1035
|
-
subText: `${ctrlOrCmd}+v`
|
|
1034
|
+
text: e('newFile')
|
|
1036
1035
|
})
|
|
1037
1036
|
res.push({
|
|
1038
1037
|
func: 'newDirectory',
|
|
1039
1038
|
icon: 'FolderAddOutlined',
|
|
1040
|
-
text: e('newFolder')
|
|
1041
|
-
subText: `${ctrlOrCmd}+v`
|
|
1039
|
+
text: e('newFolder')
|
|
1042
1040
|
})
|
|
1043
1041
|
res.push({
|
|
1044
1042
|
func: 'selectAll',
|
|
@@ -83,6 +83,16 @@ export default class TransferHistoryModal extends Component {
|
|
|
83
83
|
key: 'speed',
|
|
84
84
|
sorter: sorterFactory('speed')
|
|
85
85
|
}]
|
|
86
|
+
const tabConf = {
|
|
87
|
+
dataSource: transferHistory,
|
|
88
|
+
columns,
|
|
89
|
+
bordered: true,
|
|
90
|
+
pagination: {
|
|
91
|
+
pageSize: 10
|
|
92
|
+
},
|
|
93
|
+
size: 'small',
|
|
94
|
+
rowKey: 'id'
|
|
95
|
+
}
|
|
86
96
|
return (
|
|
87
97
|
<div className='pd2'>
|
|
88
98
|
<div>
|
|
@@ -96,12 +106,7 @@ export default class TransferHistoryModal extends Component {
|
|
|
96
106
|
</div>
|
|
97
107
|
<div className='table-scroll-wrap'>
|
|
98
108
|
<Table
|
|
99
|
-
|
|
100
|
-
columns={columns}
|
|
101
|
-
bordered
|
|
102
|
-
pagination={false}
|
|
103
|
-
size='small'
|
|
104
|
-
rowKey='id'
|
|
109
|
+
{...tabConf}
|
|
105
110
|
/>
|
|
106
111
|
</div>
|
|
107
112
|
</div>
|