@electerm/electerm-react 1.37.20 → 1.37.36
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/resolve.js +1 -1
- package/client/components/main/upgrade.jsx +7 -5
- package/client/components/tabs/app-drag.jsx +1 -1
- package/client/components/terminal/terminal-interactive.jsx +6 -1
- package/client/store/app-upgrade.js +3 -2
- package/client/store/load-data.js +1 -1
- package/package.json +1 -1
package/client/common/resolve.js
CHANGED
|
@@ -60,7 +60,7 @@ export default class Upgrade extends PureComponent {
|
|
|
60
60
|
showCount: old.showCount + 1
|
|
61
61
|
}
|
|
62
62
|
})
|
|
63
|
-
this.getLatestRelease(
|
|
63
|
+
this.getLatestRelease(e.data.noSkip)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -90,7 +90,7 @@ export default class Upgrade extends PureComponent {
|
|
|
90
90
|
clearTimeout(this.downloadTimer)
|
|
91
91
|
if (upgradePercent >= 100) {
|
|
92
92
|
this.update && this.update.destroy()
|
|
93
|
-
return this.
|
|
93
|
+
return this.handleClose()
|
|
94
94
|
}
|
|
95
95
|
this.changeProps({
|
|
96
96
|
upgradePercent
|
|
@@ -126,7 +126,7 @@ export default class Upgrade extends PureComponent {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
onEnd = () => {
|
|
129
|
-
this.
|
|
129
|
+
this.handleClose()
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
doUpgrade = async () => {
|
|
@@ -154,8 +154,10 @@ export default class Upgrade extends PureComponent {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
handleSkipVersion = () => {
|
|
157
|
-
window.store.
|
|
158
|
-
|
|
157
|
+
window.store.setConfig({
|
|
158
|
+
skipVersion: this.props.upgradeInfo.remoteVersion
|
|
159
|
+
})
|
|
160
|
+
this.handleClose()
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
getLatestRelease = async (noSkipVersion = false) => {
|
|
@@ -6,7 +6,7 @@ export default function AppDrag (props) {
|
|
|
6
6
|
if (
|
|
7
7
|
target instanceof window.SVGElement ||
|
|
8
8
|
target.classList.contains('tab-title') ||
|
|
9
|
-
target.classList.contains('
|
|
9
|
+
target.classList.contains('ant-tooltip-inner')
|
|
10
10
|
) {
|
|
11
11
|
window.pre.runSync('windowMove', false)
|
|
12
12
|
return false
|
|
@@ -17,7 +17,12 @@ export default function TermInteractive () {
|
|
|
17
17
|
const [opts, setter] = useState(null)
|
|
18
18
|
const [form] = Form.useForm()
|
|
19
19
|
function onMsg (e) {
|
|
20
|
-
if (
|
|
20
|
+
if (
|
|
21
|
+
e &&
|
|
22
|
+
e.data &&
|
|
23
|
+
typeof e.data === 'string' &&
|
|
24
|
+
e.data.includes('session-interactive')
|
|
25
|
+
) {
|
|
21
26
|
setter(JSON.parse(e.data))
|
|
22
27
|
}
|
|
23
28
|
}
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
import { commonActions } from '../common/constants'
|
|
6
6
|
|
|
7
7
|
export default Store => {
|
|
8
|
-
Store.prototype.onCheckUpdate = () => {
|
|
8
|
+
Store.prototype.onCheckUpdate = (noSkip = true) => {
|
|
9
9
|
window.postMessage({
|
|
10
|
-
action: commonActions.appUpdateCheck
|
|
10
|
+
action: commonActions.appUpdateCheck,
|
|
11
|
+
noSkip
|
|
11
12
|
}, '*')
|
|
12
13
|
}
|
|
13
14
|
Store.prototype.getProxySetting = function () {
|
|
@@ -185,7 +185,7 @@ export default (Store) => {
|
|
|
185
185
|
}
|
|
186
186
|
store.initCommandLine().catch(store.onError)
|
|
187
187
|
if (store.config.checkUpdateOnStart) {
|
|
188
|
-
store.onCheckUpdate()
|
|
188
|
+
store.onCheckUpdate(false)
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
Store.prototype.initCommandLine = async function () {
|