support docker image management

This commit is contained in:
lollipopkit
2022-12-11 15:03:02 +08:00
parent 78b46998d1
commit 7e01c4cbb3
8 changed files with 238 additions and 105 deletions

View File

@@ -22,37 +22,39 @@ class MessageLookup extends MessageLookupByLibrary {
static String m0(fileName) => "Download [${fileName}] to local?";
static String m1(runningCount, stoppedCount) =>
static String m1(count) => "${count} images";
static String m2(runningCount, stoppedCount) =>
"${runningCount} running, ${stoppedCount} container stopped.";
static String m2(count) => "${count} container running.";
static String m3(count) => "${count} container running.";
static String m3(percent, size) => "${percent}% of ${size}";
static String m4(percent, size) => "${percent}% of ${size}";
static String m4(count) => "Found ${count} update";
static String m5(count) => "Found ${count} update";
static String m5(code) => "request failed, status code: ${code}";
static String m6(code) => "request failed, status code: ${code}";
static String m6(url) =>
static String m7(url) =>
"Please make sure that docker is installed correctly, or that you are using a non-self-compiled version. If you don\'t have the above issues, please submit an issue on ${url}.";
static String m7(myGithub) => "\nMade with ❤️ by ${myGithub}";
static String m8(myGithub) => "\nMade with ❤️ by ${myGithub}";
static String m8(url) => "Please report bugs on ${url}";
static String m9(url) => "Please report bugs on ${url}";
static String m9(date) => "Are you sure to restore from ${date} ?";
static String m10(date) => "Are you sure to restore from ${date} ?";
static String m10(time) => "Spent time: ${time}";
static String m11(time) => "Spent time: ${time}";
static String m11(name) => "Are you sure to delete [${name}]?";
static String m12(name) => "Are you sure to delete [${name}]?";
static String m12(server) => "Are you sure to delete server [${server}]?";
static String m13(server) => "Are you sure to delete server [${server}]?";
static String m13(build) => "Found: v1.0.${build}, click to update";
static String m14(build) => "Found: v1.0.${build}, click to update";
static String m14(build) => "Current: v1.0.${build}";
static String m15(build) => "Current: v1.0.${build}";
static String m15(build) => "Current: v1.0.${build}, is up to date";
static String m16(build) => "Current: v1.0.${build}, is up to date";
final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
@@ -102,14 +104,15 @@ class MessageLookup extends MessageLookupByLibrary {
"dockerEmptyRunningItems": MessageLookupByLibrary.simpleMessage(
"No running container. \nIt may be that the env DOCKER_HOST is not read correctly. You can found it by running `echo \$DOCKER_HOST` in terminal."),
"dockerImage": MessageLookupByLibrary.simpleMessage("Image"),
"dockerImagesFmt": m1,
"dockerNotInstalled":
MessageLookupByLibrary.simpleMessage("Docker not installed"),
"dockerStatusRunningAndStoppedFmt": m1,
"dockerStatusRunningFmt": m2,
"dockerStatusRunningAndStoppedFmt": m2,
"dockerStatusRunningFmt": m3,
"download": MessageLookupByLibrary.simpleMessage("Download"),
"downloadFinished":
MessageLookupByLibrary.simpleMessage("Download finished"),
"downloadStatus": m3,
"downloadStatus": m4,
"edit": MessageLookupByLibrary.simpleMessage("Edit"),
"encode": MessageLookupByLibrary.simpleMessage("Encode"),
"error": MessageLookupByLibrary.simpleMessage("Error"),
@@ -124,12 +127,13 @@ class MessageLookup extends MessageLookupByLibrary {
"fieldMustNotEmpty": MessageLookupByLibrary.simpleMessage(
"These fields must not be empty."),
"files": MessageLookupByLibrary.simpleMessage("Files"),
"foundNUpdate": m4,
"foundNUpdate": m5,
"go": MessageLookupByLibrary.simpleMessage("Go"),
"goSftpDlPage":
MessageLookupByLibrary.simpleMessage("Go to SFTP download page?"),
"host": MessageLookupByLibrary.simpleMessage("Host"),
"httpFailedWithCode": m5,
"httpFailedWithCode": m6,
"imagesList": MessageLookupByLibrary.simpleMessage("Images list"),
"import": MessageLookupByLibrary.simpleMessage("Import"),
"importAndExport":
MessageLookupByLibrary.simpleMessage("Import and Export"),
@@ -141,7 +145,7 @@ class MessageLookup extends MessageLookupByLibrary {
"invalidJson": MessageLookupByLibrary.simpleMessage("Invalid JSON"),
"invalidVersion":
MessageLookupByLibrary.simpleMessage("Invalid version"),
"invalidVersionHelp": m6,
"invalidVersionHelp": m7,
"isBusy": MessageLookupByLibrary.simpleMessage("Is busy now"),
"keepForeground":
MessageLookupByLibrary.simpleMessage("Keep app foreground!"),
@@ -152,7 +156,7 @@ class MessageLookup extends MessageLookupByLibrary {
"loadingFiles":
MessageLookupByLibrary.simpleMessage("Loading files..."),
"loss": MessageLookupByLibrary.simpleMessage("loss"),
"madeWithLove": m7,
"madeWithLove": m8,
"max": MessageLookupByLibrary.simpleMessage("max"),
"min": MessageLookupByLibrary.simpleMessage("min"),
"ms": MessageLookupByLibrary.simpleMessage("ms"),
@@ -188,11 +192,11 @@ class MessageLookup extends MessageLookupByLibrary {
"privateKey": MessageLookupByLibrary.simpleMessage("Private Key"),
"pwd": MessageLookupByLibrary.simpleMessage("Password"),
"rename": MessageLookupByLibrary.simpleMessage("Rename"),
"reportBugsOnGithubIssue": m8,
"reportBugsOnGithubIssue": m9,
"restore": MessageLookupByLibrary.simpleMessage("Restore"),
"restoreSuccess": MessageLookupByLibrary.simpleMessage(
"Restore success. Restart app to apply."),
"restoreSureWithDate": m9,
"restoreSureWithDate": m10,
"result": MessageLookupByLibrary.simpleMessage("Result"),
"run": MessageLookupByLibrary.simpleMessage("Run"),
"save": MessageLookupByLibrary.simpleMessage("Save"),
@@ -216,13 +220,13 @@ class MessageLookup extends MessageLookupByLibrary {
"sftpSSHConnected":
MessageLookupByLibrary.simpleMessage("SFTP Connected"),
"snippet": MessageLookupByLibrary.simpleMessage("Snippet"),
"spentTime": m10,
"spentTime": m11,
"start": MessageLookupByLibrary.simpleMessage("Start"),
"stop": MessageLookupByLibrary.simpleMessage("Stop"),
"sureDelete": m11,
"sureDelete": m12,
"sureNoPwd": MessageLookupByLibrary.simpleMessage(
"Are you sure to use no password?"),
"sureToDeleteServer": m12,
"sureToDeleteServer": m13,
"ttl": MessageLookupByLibrary.simpleMessage("ttl"),
"unknown": MessageLookupByLibrary.simpleMessage("unknown"),
"unknownError": MessageLookupByLibrary.simpleMessage("Unknown error"),
@@ -237,9 +241,9 @@ class MessageLookup extends MessageLookupByLibrary {
"upsideDown": MessageLookupByLibrary.simpleMessage("Upside Down"),
"urlOrJson": MessageLookupByLibrary.simpleMessage("URL or JSON"),
"user": MessageLookupByLibrary.simpleMessage("User"),
"versionHaveUpdate": m13,
"versionUnknownUpdate": m14,
"versionUpdated": m15,
"versionHaveUpdate": m14,
"versionUnknownUpdate": m15,
"versionUpdated": m16,
"waitConnection": MessageLookupByLibrary.simpleMessage(
"Please wait for the connection to be established."),
"willTakEeffectImmediately":