@electerm/electerm-react 1.39.31 → 1.39.35

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.
@@ -26,7 +26,7 @@ export default function createTitle (res, hide = true) {
26
26
  host, port, username, title, type,
27
27
  path, connectionHoppings, sshTunnels
28
28
  } = res
29
- const h = hide ? maskHost(host) : host
29
+ const h = hide && window.store.config.hideIP ? maskHost(host) : host
30
30
  const fixTitle = `${username || ''}@${h}:${port}`
31
31
  const extra = host || path ? (path || fixTitle) : ''
32
32
  let f = title
@@ -57,5 +57,6 @@ export default {
57
57
  'name',
58
58
  'size',
59
59
  'modifyTime'
60
- ]
60
+ ],
61
+ hideIP: false
61
62
  }
@@ -644,6 +644,7 @@ export default class SettingCommon extends Component {
644
644
  'checkUpdateOnStart',
645
645
  'useSystemTitleBar',
646
646
  'confirmBeforeExit',
647
+ 'hideIP',
647
648
  'debug'
648
649
  ].map(this.renderToggle)
649
650
  }
@@ -21,7 +21,7 @@ const { prefix } = window
21
21
  const m = prefix('common')
22
22
  const t = prefix('terminalThemes')
23
23
  const q = prefix('quickCommands')
24
- const f = prefix('profiles')
24
+ const f = prefix('form')
25
25
 
26
26
  export default class SettingModalWrap extends Component {
27
27
  selectItem = (item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "1.39.31",
3
+ "version": "1.39.35",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",