This commit is contained in:
PaperCube
2024-02-15 11:13:34 +00:00
16 changed files with 245 additions and 617 deletions

View File

@@ -26,9 +26,7 @@ class ContainerdClient {
final String version;
final String goVersion;
final String gitCommit;
final String? builtTime;
final int? built; // more fields should be marked nullable
final String? osArch;
final String builtTime;
final String os;
ContainerdClient({
@@ -37,8 +35,6 @@ class ContainerdClient {
required this.goVersion,
required this.gitCommit,
required this.builtTime,
required this.built,
required this.osArch,
required this.os,
});
@@ -49,13 +45,11 @@ class ContainerdClient {
factory ContainerdClient.fromJson(Map<String, dynamic> json) =>
ContainerdClient(
apiVersion: json["ApiVersion"],
apiVersion: json["ApiVersion"],
version: json["Version"],
goVersion: json["GoVersion"],
gitCommit: json["GitCommit"],
builtTime: json["BuildTime"],
built: json["Built"], // should be Build?
osArch: json["OsArch"],
os: json["Os"],
);
@@ -65,8 +59,6 @@ class ContainerdClient {
"GoVersion": goVersion,
"GitCommit": gitCommit,
"BuildTime": builtTime,
"Built": built,
"OsArch": osArch,
"Os": os,
};
}

View File

@@ -139,7 +139,6 @@ class ContainerProvider extends ChangeNotifier {
try {
final imgLines = imageRaw.split('\n');
imgLines.removeWhere((element) => element.isEmpty);
if (imgLines.isNotEmpty) imgLines.removeAt(0);
images = imgLines.map((e) => ContainerImg.fromRawJson(e, type)).toList();
} catch (e, trace) {
error = ContainerErr(

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 738;
static const int build = 740;
static const String engine = "3.16.9";
static const String buildAt = "2024-02-02 19:59:49";
static const int modifications = 6;
static const String buildAt = "2024-02-02 22:52:02";
static const int modifications = 2;
static const int script = 37;
}

View File

@@ -4,6 +4,7 @@ abstract final class GithubIds {
// Thanks
// If you want to change your Github ID, please open an issue.
static const contributors = <GhId>{
'PaperCube',
'its-tom',
'azkadev',
'kalashnikov',
@@ -57,5 +58,6 @@ abstract final class GithubIds {
'bxoooooo',
'KatharsisKing',
'mervinniu',
'L-Super',
};
}

View File

@@ -100,7 +100,7 @@ class SettingStore extends PersistentStore {
late final termFontSize = property('termFontSize', 13.0);
// Locale
late final locale = property<String>('locale', '');
late final locale = property('locale', '');
// SSH virtual key (ctrl | alt) auto turn off
late final sshVirtualKeyAutoOff = property('sshVirtualKeyAutoOff', true);
@@ -118,20 +118,20 @@ class SettingStore extends PersistentStore {
Defaults.editorDarkTheme,
);
late final fullScreen = property(
'fullScreen',
false,
);
// late final fullScreen = property(
// 'fullScreen',
// false,
// );
late final fullScreenJitter = property(
'fullScreenJitter',
true,
);
// late final fullScreenJitter = property(
// 'fullScreenJitter',
// true,
// );
late final fullScreenRotateQuarter = property(
'fullScreenRotateQuarter',
1,
);
// late final fullScreenRotateQuarter = property(
// 'fullScreenRotateQuarter',
// 1,
// );
late final keyboardType = property(
'keyboardType',