mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt.: custom diskIgnorePath
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import '../../../core/extension/stringx.dart';
|
||||
import '../../res/misc.dart';
|
||||
|
||||
///
|
||||
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
|
||||
///
|
||||
class ConnStatus {
|
||||
/*
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ enum Dist {
|
||||
alpine,
|
||||
rocky;
|
||||
|
||||
String? get iconPath {
|
||||
String get iconPath {
|
||||
return 'assets/linux/$name.png';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,10 @@ import 'package:toolbox/core/persistant_store.dart';
|
||||
import 'package:toolbox/core/utils/platform.dart';
|
||||
|
||||
class SettingStore extends PersistentStore {
|
||||
StoreProperty<int> get primaryColor =>
|
||||
property('primaryColor', defaultValue: Colors.pink.value);
|
||||
StoreProperty<int> get primaryColor => property(
|
||||
'primaryColor',
|
||||
defaultValue: const Color.fromARGB(255, 145, 58, 31).value,
|
||||
);
|
||||
|
||||
StoreProperty<int> get serverStatusUpdateInterval =>
|
||||
property('serverStatusUpdateInterval', defaultValue: 3);
|
||||
@@ -47,4 +49,15 @@ class SettingStore extends PersistentStore {
|
||||
// SSH term font size
|
||||
StoreProperty<double> get termFontSize =>
|
||||
property('termFontSize', defaultValue: 13);
|
||||
|
||||
/// Server detail disk ignore path
|
||||
StoreProperty<List<String>> get diskIgnorePath =>
|
||||
property('diskIgnorePath', defaultValue: [
|
||||
'udev',
|
||||
'tmpfs',
|
||||
'devtmpfs',
|
||||
'overlay',
|
||||
'run',
|
||||
'none',
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user