fix: import backup

This commit is contained in:
lollipopkit
2023-08-01 13:41:00 +08:00
parent 0f83d10bfa
commit 33932f7428
9 changed files with 26 additions and 34 deletions

View File

@@ -39,13 +39,13 @@ class ServerPrivateInfo {
ServerPrivateInfo.fromJson(Map<String, dynamic> json) {
name = json["name"].toString();
ip = json["ip"].toString();
port = int.tryParse(json["port"]) ?? 22;
port = json["port"] ?? 22;
user = json["user"].toString();
pwd = json["authorization"].toString();
pubKeyId = json["pubKeyId"]?.toString();
id = '$user@$ip:$port';
tags = json["tags"]?.cast<String>();
alterUrl = json["alterHost"]?.toString();
alterUrl = json["alterUrl"]?.toString();
}
Map<String, dynamic> toJson() {
@@ -57,7 +57,7 @@ class ServerPrivateInfo {
data["authorization"] = pwd;
data["pubKeyId"] = pubKeyId;
data["tags"] = tags;
data["alterHost"] = alterUrl;
data["alterUrl"] = alterUrl;
return data;
}

View File

@@ -4,15 +4,10 @@ class AppProvider extends BusyProvider {
int? _newestBuild;
int? get newestBuild => _newestBuild;
bool _moveBg = true;
bool get moveBg => _moveBg;
bool moveBg = true;
void setNewestBuild(int build) {
_newestBuild = build;
notifyListeners();
}
void setCanMoveBg(bool moveBg) {
_moveBg = moveBg;
}
}

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 397;
static const int build = 400;
static const String engine = "3.10.6";
static const String buildAt = "2023-07-28 20:51:35.807892";
static const int modifications = 6;
static const String buildAt = "2023-07-31 14:06:15.008140";
static const int modifications = 9;
}