mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-08 01:05:08 +01:00
fix: import backup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user