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

View File

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

View File

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