* refactor(sftp): Optimize file download logic and SSH command execution handling Replace manual chunked downloads with a more concise `sftp.download` method Consistently use `utf8.decode` to process SSH command output Remove redundant code and comments, and simplify the logic * chore: Update `dartssh2` submodule * feat (Temperature Display): Added an option to switch between degrees Celsius and millicelsius Allows users to switch temperature units in server settings, resolving the issue of incorrect temperature display on some devices * chore: Add a participnt * fix(sftp): Fixed a resource leak issue during file downloads and SSH command execution Ensured that remote and local file handles are properly closed during file downloads to prevent resource leaks. Additionally, improved error handling during SSH command execution to ensure that all streams are either successfully completed or properly handled in the event of an error.
250 lines
3.8 KiB
YAML
250 lines
3.8 KiB
YAML
# Generated by Hive CE
|
|
# Manual modifications may be necessary for certain migrations
|
|
# Check in to version control
|
|
nextTypeId: 11
|
|
types:
|
|
PrivateKeyInfo:
|
|
typeId: 1
|
|
nextIndex: 2
|
|
fields:
|
|
id:
|
|
index: 0
|
|
key:
|
|
index: 1
|
|
Snippet:
|
|
typeId: 2
|
|
nextIndex: 5
|
|
fields:
|
|
name:
|
|
index: 0
|
|
script:
|
|
index: 1
|
|
tags:
|
|
index: 2
|
|
note:
|
|
index: 3
|
|
autoRunOn:
|
|
index: 4
|
|
Spi:
|
|
typeId: 3
|
|
nextIndex: 16
|
|
fields:
|
|
name:
|
|
index: 0
|
|
ip:
|
|
index: 1
|
|
port:
|
|
index: 2
|
|
user:
|
|
index: 3
|
|
pwd:
|
|
index: 4
|
|
keyId:
|
|
index: 5
|
|
tags:
|
|
index: 6
|
|
alterUrl:
|
|
index: 7
|
|
autoConnect:
|
|
index: 8
|
|
jumpId:
|
|
index: 9
|
|
custom:
|
|
index: 10
|
|
wolCfg:
|
|
index: 11
|
|
envs:
|
|
index: 12
|
|
id:
|
|
index: 13
|
|
customSystemType:
|
|
index: 14
|
|
disabledCmdTypes:
|
|
index: 15
|
|
VirtKey:
|
|
typeId: 4
|
|
nextIndex: 45
|
|
fields:
|
|
esc:
|
|
index: 0
|
|
alt:
|
|
index: 1
|
|
home:
|
|
index: 2
|
|
up:
|
|
index: 3
|
|
end:
|
|
index: 4
|
|
sftp:
|
|
index: 5
|
|
snippet:
|
|
index: 6
|
|
tab:
|
|
index: 7
|
|
ctrl:
|
|
index: 8
|
|
left:
|
|
index: 9
|
|
down:
|
|
index: 10
|
|
right:
|
|
index: 11
|
|
clipboard:
|
|
index: 12
|
|
ime:
|
|
index: 13
|
|
pgup:
|
|
index: 14
|
|
pgdn:
|
|
index: 15
|
|
slash:
|
|
index: 16
|
|
backSlash:
|
|
index: 17
|
|
underscore:
|
|
index: 18
|
|
plus:
|
|
index: 19
|
|
equal:
|
|
index: 20
|
|
minus:
|
|
index: 21
|
|
parenLeft:
|
|
index: 22
|
|
parenRight:
|
|
index: 23
|
|
bracketLeft:
|
|
index: 24
|
|
bracketRight:
|
|
index: 25
|
|
braceLeft:
|
|
index: 26
|
|
braceRight:
|
|
index: 27
|
|
chevronLeft:
|
|
index: 28
|
|
chevronRight:
|
|
index: 29
|
|
colon:
|
|
index: 30
|
|
semicolon:
|
|
index: 31
|
|
f1:
|
|
index: 32
|
|
f2:
|
|
index: 33
|
|
f3:
|
|
index: 34
|
|
f4:
|
|
index: 35
|
|
f5:
|
|
index: 36
|
|
f6:
|
|
index: 37
|
|
f7:
|
|
index: 38
|
|
f8:
|
|
index: 39
|
|
f9:
|
|
index: 40
|
|
f10:
|
|
index: 41
|
|
f11:
|
|
index: 42
|
|
f12:
|
|
index: 43
|
|
shift:
|
|
index: 44
|
|
NetViewType:
|
|
typeId: 5
|
|
nextIndex: 3
|
|
fields:
|
|
conn:
|
|
index: 0
|
|
speed:
|
|
index: 1
|
|
traffic:
|
|
index: 2
|
|
ServerFuncBtn:
|
|
typeId: 6
|
|
nextIndex: 10
|
|
fields:
|
|
terminal:
|
|
index: 0
|
|
sftp:
|
|
index: 1
|
|
container:
|
|
index: 2
|
|
process:
|
|
index: 3
|
|
snippet:
|
|
index: 5
|
|
iperf:
|
|
index: 6
|
|
systemd:
|
|
index: 8
|
|
portForward:
|
|
index: 9
|
|
ServerCustom:
|
|
typeId: 7
|
|
nextIndex: 10
|
|
fields:
|
|
pveAddr:
|
|
index: 1
|
|
pveIgnoreCert:
|
|
index: 2
|
|
cmds:
|
|
index: 3
|
|
preferTempDev:
|
|
index: 4
|
|
logoUrl:
|
|
index: 5
|
|
netDev:
|
|
index: 6
|
|
scriptDir:
|
|
index: 7
|
|
pvePwd:
|
|
index: 8
|
|
tempIsCelsius:
|
|
index: 9
|
|
WakeOnLanCfg:
|
|
typeId: 8
|
|
nextIndex: 3
|
|
fields:
|
|
mac:
|
|
index: 0
|
|
ip:
|
|
index: 1
|
|
pwd:
|
|
index: 2
|
|
SystemType:
|
|
typeId: 9
|
|
nextIndex: 3
|
|
fields:
|
|
linux:
|
|
index: 0
|
|
bsd:
|
|
index: 1
|
|
windows:
|
|
index: 2
|
|
PortForwardConfig:
|
|
typeId: 10
|
|
nextIndex: 8
|
|
fields:
|
|
id:
|
|
index: 0
|
|
name:
|
|
index: 1
|
|
localHost:
|
|
index: 2
|
|
localPort:
|
|
index: 3
|
|
remoteHost:
|
|
index: 4
|
|
remotePort:
|
|
index: 5
|
|
description:
|
|
index: 6
|
|
serverId:
|
|
index: 7
|