opt.: custom diskIgnorePath

This commit is contained in:
lollipopkit
2023-05-26 12:46:47 +08:00
parent 46350b7522
commit c4594559a2
13 changed files with 90 additions and 25 deletions

View File

@@ -1,3 +1,5 @@
final _seperator = RegExp(' +');
class DockerPsItem {
late String containerId;
late String image;
@@ -7,11 +9,18 @@ class DockerPsItem {
late String ports;
late String name;
DockerPsItem(this.containerId, this.image, this.command, this.created,
this.status, this.ports, this.name);
DockerPsItem(
this.containerId,
this.image,
this.command,
this.created,
this.status,
this.ports,
this.name,
);
DockerPsItem.fromRawString(String rawString) {
List<String> parts = rawString.split(RegExp(' +'));
List<String> parts = rawString.split(_seperator);
parts = parts.map((e) => e.trim()).toList();
containerId = parts[0];

View File

@@ -1,9 +1,6 @@
import '../../../core/extension/stringx.dart';
import '../../res/misc.dart';
///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
class ConnStatus {
/*
{

View File

@@ -11,7 +11,7 @@ enum Dist {
alpine,
rocky;
String? get iconPath {
String get iconPath {
return 'assets/linux/$name.png';
}
}