@electerm/electerm-react 1.39.46 → 1.39.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.
@@ -81,9 +81,11 @@ export default class Index extends Component {
81
81
  } = store
82
82
  const cls = classnames({
83
83
  loaded: configLoaded,
84
+ 'not-webapp': !window.et.isWebApp,
84
85
  'system-ui': store.config.useSystemTitleBar,
85
86
  'not-system-ui': !store.config.useSystemTitleBar,
86
- 'is-mac': isMac && !window.et.isWebApp,
87
+ 'is-mac': isMac,
88
+ 'not-mac': !isMac,
87
89
  'is-win': isWin,
88
90
  pinned,
89
91
  'qm-pinned': pinnedQuickCommandBar,
@@ -34,3 +34,6 @@
34
34
  .list-item-edit
35
35
  .list-item-remove
36
36
  display block
37
+ .list-item-edit
38
+ .list-item-apply
39
+ right 20px
@@ -7,9 +7,10 @@
7
7
  ::-webkit-scrollbar
8
8
  width 0
9
9
  display none
10
- .not-system-ui.is-mac
10
+ .not-system-ui.is-mac.not-webapp
11
11
  .tabs-inner
12
12
  margin-left 72px
13
+ .not-system-ui.not-mac.not-webapp
13
14
  .tabs-extra
14
15
  right 96px
15
16
  .tabs-inner
@@ -1044,7 +1044,8 @@ class Term extends Component {
1044
1044
  this.attachAddon._sendData(obj.script + '\r')
1045
1045
  }
1046
1046
  if (delayedScripts.length > 0) {
1047
- this.timers.timerDelay = setTimeout(this.runDelayedScripts, this.delayedScripts[0].delay || 0)
1047
+ const nextDelay = delayedScripts[0].delay || 0
1048
+ this.timers.timerDelay = setTimeout(this.runDelayedScripts, nextDelay)
1048
1049
  }
1049
1050
  }
1050
1051
  }
@@ -51,7 +51,7 @@ export default class ThemeList extends List {
51
51
  renderItem = (item, i) => {
52
52
  const { activeItemId } = this.props
53
53
  const { theme } = this.props
54
- const { name, id } = item
54
+ const { name, id, type } = item
55
55
  const cls = classnames(
56
56
  'item-list-unit theme-item',
57
57
  {
@@ -83,7 +83,7 @@ export default class ThemeList extends List {
83
83
  {title}
84
84
  </div>
85
85
  {
86
- id === defaultTheme.id
86
+ id === defaultTheme.id || type === 'iterm'
87
87
  ? null
88
88
  : this.renderDelBtn(item)
89
89
  }
@@ -163,7 +163,6 @@ export default memo(function TreeListItem (props) {
163
163
  const renderGroupBtns = () => {
164
164
  return [
165
165
  renderAddNewSubGroupBtn(),
166
- renderEditBtn(),
167
166
  renderOpenAll()
168
167
  ]
169
168
  }
@@ -506,7 +506,7 @@ export default class ItemListTree extends Component {
506
506
  }
507
507
 
508
508
  openAll = (item) => {
509
- this.props.store.openAllBookmarkInCategory(this.props.item)
509
+ window.store.openAllBookmarkInCategory(item)
510
510
  }
511
511
 
512
512
  onDragStart = e => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "1.39.46",
3
+ "version": "1.39.56",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",