@electerm/electerm-react 3.15.68 → 3.15.76
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.
|
@@ -212,7 +212,7 @@ export const syncTokenCreateUrls = {
|
|
|
212
212
|
gitee: 'https://gitee.com/github-zxdong262/electerm/wikis/Create%20personal%20access%20token?sort_id=3028409',
|
|
213
213
|
github: 'https://github.com/electerm/electerm/wiki/Create-personal-access-token',
|
|
214
214
|
custom: 'https://github.com/electerm/electerm/wiki/Custom-sync-server',
|
|
215
|
-
cloud: 'https://electerm
|
|
215
|
+
cloud: 'https://sync.electerm.org',
|
|
216
216
|
webdav: 'https://github.com/electerm/electerm/wiki/WebDAV-sync'
|
|
217
217
|
}
|
|
218
218
|
export const settingSyncId = 'setting-sync'
|
|
@@ -57,9 +57,18 @@
|
|
|
57
57
|
&.session-batch-active
|
|
58
58
|
display block
|
|
59
59
|
|
|
60
|
+
.term-sftp-box
|
|
61
|
+
height 100%
|
|
60
62
|
.web-session-wrap
|
|
61
|
-
height
|
|
63
|
+
height 100%
|
|
62
64
|
background var(--main)
|
|
65
|
+
overflow hidden
|
|
66
|
+
display flex
|
|
67
|
+
flex-direction column
|
|
68
|
+
.web-session-content
|
|
69
|
+
flex 1
|
|
70
|
+
min-height 0
|
|
71
|
+
overflow hidden
|
|
63
72
|
.session-v-info
|
|
64
73
|
line-height 30px
|
|
65
74
|
.vnc-scroll-wrapper
|
|
@@ -66,7 +66,7 @@ export default function SyncForm (props) {
|
|
|
66
66
|
if (res.apiUrl) {
|
|
67
67
|
up[syncType + 'ApiUrl'] = res.apiUrl
|
|
68
68
|
} else if (syncType === syncTypes.cloud) {
|
|
69
|
-
up[syncType + 'ApiUrl'] = 'https://electerm
|
|
69
|
+
up[syncType + 'ApiUrl'] = 'https://sync.electerm.org/api/sync'
|
|
70
70
|
// up[syncType + 'ApiUrl'] = 'http://127.0.0.1:5678/api/sync'
|
|
71
71
|
}
|
|
72
72
|
if (res.proxy) {
|
|
@@ -187,8 +187,8 @@ export default function SyncForm (props) {
|
|
|
187
187
|
if (syncType === syncTypes.cloud) {
|
|
188
188
|
return (
|
|
189
189
|
<p>
|
|
190
|
-
<Link to='https://electerm
|
|
191
|
-
https://electerm
|
|
190
|
+
<Link to='https://sync.electerm.org'>
|
|
191
|
+
https://sync.electerm.org[Beta]
|
|
192
192
|
</Link>
|
|
193
193
|
</p>
|
|
194
194
|
)
|
|
@@ -5,8 +5,6 @@ import React, { useState, useRef, useEffect, useCallback } from 'react'
|
|
|
5
5
|
export default function WebSession (props) {
|
|
6
6
|
const {
|
|
7
7
|
tab,
|
|
8
|
-
width,
|
|
9
|
-
height,
|
|
10
8
|
reloadTab
|
|
11
9
|
} = props
|
|
12
10
|
const [zoom, setZoom] = useState(1.0)
|
|
@@ -104,13 +102,13 @@ export default function WebSession (props) {
|
|
|
104
102
|
</div>
|
|
105
103
|
)
|
|
106
104
|
}
|
|
107
|
-
const hOffset = tab.hideAddressBar ? 30 : -12
|
|
108
105
|
if (window.et.isWebApp) {
|
|
109
106
|
const iframeProps = {
|
|
110
107
|
src: url,
|
|
111
108
|
style: {
|
|
112
|
-
width:
|
|
113
|
-
height:
|
|
109
|
+
width: '100%',
|
|
110
|
+
height: '100%',
|
|
111
|
+
border: 'none'
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
return (
|
|
@@ -120,8 +118,8 @@ export default function WebSession (props) {
|
|
|
120
118
|
const viewProps = {
|
|
121
119
|
src: url,
|
|
122
120
|
style: {
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
121
|
+
width: '100%',
|
|
122
|
+
height: '100%',
|
|
125
123
|
background: '#fff'
|
|
126
124
|
},
|
|
127
125
|
disableblinkfeatures: 'true',
|
|
@@ -139,7 +137,7 @@ export default function WebSession (props) {
|
|
|
139
137
|
{!tab.hideAddressBar && (
|
|
140
138
|
<AddressBar {...addrProps} />
|
|
141
139
|
)}
|
|
142
|
-
<div className='
|
|
140
|
+
<div className='web-session-content'>
|
|
143
141
|
{renderView()}
|
|
144
142
|
</div>
|
|
145
143
|
<WebAuthModal
|