fix: batch import

This commit is contained in:
lollipopkit
2024-06-04 19:57:56 +08:00
parent 76c4bf56fa
commit 6dc5536c48
3 changed files with 8 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ class ServerPrivateInfo {
final port = json["port"] as int? ?? 22;
final user = json["user"] as String? ?? 'root';
final name = json["name"] as String? ?? '';
final pwd = json["authorization"] as String?;
final pwd = json["pwd"] as String? ?? json["authorization"] as String?;
final keyId = json["pubKeyId"] as String?;
final tags = (json["tags"] as List?)?.cast<String>();
final alterUrl = json["alterUrl"] as String?;
@@ -100,7 +100,7 @@ class ServerPrivateInfo {
data["port"] = port;
data["user"] = user;
if (pwd != null) {
data["authorization"] = pwd;
data["pwd"] = pwd;
}
if (keyId != null) {
data["pubKeyId"] = keyId;

View File

@@ -401,8 +401,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "v1.0.29"
resolved-ref: "674d5b3fccd1ae29c2739f119e34719874186587"
ref: "v1.0.31"
resolved-ref: f6322c5c2fad5230d1a882e79d52d1a0d246b8f4
url: "https://github.com/lppcg/fl_lib"
source: git
version: "0.0.1"

View File

@@ -36,24 +36,24 @@ dependencies:
extended_image: ^8.2.1
dartssh2:
git:
ref: dev
url: https://github.com/lollipopkit/dartssh2
ref: dev
circle_chart:
git:
url: https://github.com/lollipopkit/circle_chart
ref: main
xterm:
git:
ref: master
url: https://github.com/lollipopkit/xterm.dart
ref: master
computer:
git:
ref: master
url: https://github.com/lollipopkit/dart_computer
ref: master
fl_lib:
git:
url: https://github.com/lppcg/fl_lib
ref: v1.0.29
ref: v1.0.31
dependency_overrides:
# dartssh2: