@electerm/electerm-react 2.1.26 → 2.2.0

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.
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import React from 'react'
6
- import './animate-text.styl'
7
6
 
8
7
  export default class AnimateText extends React.PureComponent {
9
8
  constructor (props) {
@@ -13,7 +12,7 @@ export default class AnimateText extends React.PureComponent {
13
12
 
14
13
  componentDidUpdate () {
15
14
  const dom = this.textRef.current
16
- dom.className = (this.props.className || 'animate-text-wrap') + ' animated bounceIn'
15
+ dom.className = (this.props.className || 'animate-text-wrap')
17
16
  this.timer = setTimeout(() => {
18
17
  if (dom) {
19
18
  dom.className = this.props.className || 'animate-text-wrap'
@@ -90,7 +90,6 @@ function renderHistory (props, type) {
90
90
  }
91
91
  const cls = classnames(
92
92
  'sftp-history',
93
- 'animated',
94
93
  `sftp-history-${type}`,
95
94
  { focused }
96
95
  )
@@ -2,7 +2,7 @@
2
2
  * file/folder icon by ext or name
3
3
  */
4
4
 
5
- import { getIconForFile, getIconForFolder } from 'vscode-icons-js'
5
+ import { getIconForFile, getIconForFolder } from 'electerm-icons'
6
6
  // import Icon from '@ant-design/icons'
7
7
 
8
8
  export default function FileIcon ({ file, ...extra }) {
@@ -1064,7 +1064,6 @@ export default class Sftp extends Component {
1064
1064
  }
1065
1065
  const cls = classnames(
1066
1066
  'sftp-history',
1067
- 'animated',
1068
1067
  `sftp-history-${type}`,
1069
1068
  { focused }
1070
1069
  )
@@ -189,7 +189,7 @@ export default memo(function Sidebar (props) {
189
189
  className='control-icon-wrap'
190
190
  >
191
191
  <UpCircleOutlined
192
- className='iblock font18 control-icon hvr-bob upgrade-icon'
192
+ className='iblock font18 control-icon upgrade-icon'
193
193
  onClick={handleShowUpgrade}
194
194
  />
195
195
  </div>
@@ -95,44 +95,6 @@
95
95
  &:hover
96
96
  color text-light
97
97
 
98
- // Hover.css (http://ianlunn.github.io/Hover/)
99
- // Version: 2.3.2
100
- // Author: Ian Lunn @IanLunn
101
- // Author URL: http://ianlunn.co.uk/
102
- // Github: https://github.com/IanLunn/Hover
103
- // Hover.css Copyright Ian Lunn 2017. Generated with Sass.
104
-
105
- // Bob
106
- @keyframes hvr-bob
107
- 0%
108
- transform translateY(-8px)
109
-
110
- 50%
111
- transform translateY(-4px)
112
-
113
- 100%
114
- transform translateY(-8px)
115
-
116
- @keyframes hvr-bob-float
117
- 100%
118
- transform translateY(-8px)
119
-
120
- .hvr-bob
121
- transform perspective(1px) translateZ(0)
122
- box-shadow 0 0 1px rgba(0, 0, 0, 0)
123
- animation-name hvr-bob-float, hvr-bob
124
- animation-duration .3s, 1.5s
125
- animation-delay 0s, .3s
126
- animation-timing-function ease-out, ease-in-out
127
- animation-iteration-count 1, infinite
128
- animation-fill-mode forwards
129
- animation-direction normal, alternate
130
-
131
- .hvr-bob-fast
132
- transform perspective(2px) translateZ(0)
133
- animation-duration .15s, .3s
134
- animation-delay 0s, .15s
135
-
136
98
  .btns .upgrade-icon
137
99
  color success
138
100
  .close-info-modal
@@ -23,7 +23,6 @@ export default memo(function TransferList (props) {
23
23
  }
24
24
  const color = fileTransfers.some(item => item.error) ? 'red' : 'green'
25
25
  const bdProps = {
26
- className: len ? 'hvr-bob hvr-bob-fast' : '',
27
26
  count: len,
28
27
  size: 'small',
29
28
  offset: [-10, -5],
@@ -35,16 +34,19 @@ export default memo(function TransferList (props) {
35
34
  transferHistory,
36
35
  transferTab
37
36
  }
37
+ const popProps = {
38
+ placement: 'right',
39
+ destroyOnHidden: true,
40
+ overlayClassName: 'transfer-list-card',
41
+ content: <TransferModal {...transferModalProps} />
42
+ }
38
43
  return (
39
44
  <div
40
45
  className='control-icon-wrap'
41
46
  title={e('fileTransfers')}
42
47
  >
43
48
  <Popover
44
- placement='right'
45
- destroyTooltipOnHide
46
- overlayClassName='transfer-list-card'
47
- content={<TransferModal {...transferModalProps} />}
49
+ {...popProps}
48
50
  >
49
51
  <Badge
50
52
  {...bdProps}
@@ -71,6 +71,12 @@ export class CommandTrackerAddon {
71
71
  }
72
72
  }
73
73
 
74
+ clearCommand () {
75
+ this.activeCommand = ''
76
+ this.currentCommand = ''
77
+ this.cursorPosition = 0
78
+ }
79
+
74
80
  getCurrentCommand () {
75
81
  return this.activeCommand || this.currentCommand
76
82
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "2.1.26",
3
+ "version": "2.2.0",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",
@@ -1,39 +0,0 @@
1
- // animate.css -http://daneden.me/animate
2
- // Version - 3.5.2
3
- // Licensed under the MIT license - http://opensource.org/licenses/MIT
4
- // Copyright (c) 2017 Daniel Eden
5
-
6
- .animated
7
- animation-duration 1s
8
- animation-fill-mode both
9
-
10
- .animated.bounceIn
11
- animation-duration .45s
12
-
13
- @keyframes bounceIn
14
- from, 20%, 40%, 60%, 80%, to
15
- animation-timing-function cubic-bezier(0.215, 0.610, 0.355, 1.000)
16
-
17
- 0%
18
- opacity 0
19
- transform scale3d(.3, .3, .3)
20
-
21
- 20%
22
- transform scale3d(1.1, 1.1, 1.1)
23
-
24
- 40%
25
- transform scale3d(.9, .9, .9)
26
-
27
- 60%
28
- opacity 1
29
- transform scale3d(1.03, 1.03, 1.03)
30
-
31
- 80%
32
- transform scale3d(.97, .97, .97)
33
-
34
- to
35
- opacity 1
36
- transform scale3d(1, 1, 1)
37
-
38
- .bounceIn
39
- animation-name bounceIn