This commit is contained in:
lollipopkit
2023-01-29 17:51:23 +08:00
parent 7c0e01d0d5
commit 7e8600ab6d
8 changed files with 1553 additions and 1546 deletions

View File

@@ -2,9 +2,9 @@
class BuildData { class BuildData {
static const String name = "ServerBox"; static const String name = "ServerBox";
static const int build = 193; static const int build = 198;
static const String engine = static const String engine =
"Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (5 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n"; "Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (5 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n";
static const String buildAt = "2023-01-28 23:51:19.423469"; static const String buildAt = "2023-01-29 17:51:06.250008";
static const int modifications = 2; static const int modifications = 8;
} }

View File

@@ -28,7 +28,7 @@ String getDropdownBtnText(S s, String text) {
case 'Snippet': case 'Snippet':
return s.snippet; return s.snippet;
case 'Pkg': case 'Pkg':
return s.pkgManage; return s.pkg;
case 'Remove': case 'Remove':
return s.delete; return s.delete;
case 'Start': case 'Start':

View File

@@ -192,7 +192,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Please input a target IP/domain."), "Please input a target IP/domain."),
"pingNoServer": MessageLookupByLibrary.simpleMessage( "pingNoServer": MessageLookupByLibrary.simpleMessage(
"No server to ping.\nPlease add a server in server tab."), "No server to ping.\nPlease add a server in server tab."),
"pkgManager": MessageLookupByLibrary.simpleMessage("Pkg mgr"), "pkg": MessageLookupByLibrary.simpleMessage("Pkg"),
"platformNotSupportUpdate": MessageLookupByLibrary.simpleMessage( "platformNotSupportUpdate": MessageLookupByLibrary.simpleMessage(
"Current platform does not support in app update.\nPlease build from source and install it."), "Current platform does not support in app update.\nPlease build from source and install it."),
"plzEnterHost": "plzEnterHost":

View File

@@ -168,7 +168,7 @@ class MessageLookup extends MessageLookupByLibrary {
"pingInputIP": MessageLookupByLibrary.simpleMessage("请输入目标IP或域名"), "pingInputIP": MessageLookupByLibrary.simpleMessage("请输入目标IP或域名"),
"pingNoServer": MessageLookupByLibrary.simpleMessage( "pingNoServer": MessageLookupByLibrary.simpleMessage(
"没有服务器可用于Ping\n请在服务器tab添加服务器后再试"), "没有服务器可用于Ping\n请在服务器tab添加服务器后再试"),
"pkgManager": MessageLookupByLibrary.simpleMessage("包管理"), "pkg": MessageLookupByLibrary.simpleMessage("包管理"),
"platformNotSupportUpdate": "platformNotSupportUpdate":
MessageLookupByLibrary.simpleMessage("当前平台不支持更新,请编译最新源码后手动安装"), MessageLookupByLibrary.simpleMessage("当前平台不支持更新,请编译最新源码后手动安装"),
"plzEnterHost": MessageLookupByLibrary.simpleMessage("请输入主机"), "plzEnterHost": MessageLookupByLibrary.simpleMessage("请输入主机"),

File diff suppressed because it is too large Load Diff

View File

@@ -1,153 +1,153 @@
{ {
"server": "Server", "aboutThanks": "\nAll rights reserved.\n\nThanks to the following people who participated in the test.",
"convert": "Convert", "addAServer": "add a server",
"ping": "Ping", "addOne": "Add one",
"debug": "Debug", "addPrivateKey": "Add private key",
"addAServer": "add a server", "alreadyLastDir": "Already in last directory.",
"setting": "Setting", "appPrimaryColor": "App primary color",
"license": "License", "attention": "Attention",
"snippet": "Snippet", "backDir": "Back",
"privateKey": "Private Key", "backup": "Backup",
"madeWithLove": "\nMade with ❤️ by {myGithub}", "backupTip": "The exported data is simply encrypted. \nPlease keep it safe.\nRestoring will not overwrite existing data (except setting).",
"aboutThanks": "\nAll rights reserved.\n\nThanks to the following people who participated in the test.", "backupVersionNotMatch": "Backup version is not match.",
"serverTabEmpty": "There is no server.\nClick the fab to add one.", "cancel": "Cancel",
"serverTabLoading": "Loading...", "choose": "Choose",
"serverTabPlzSave": "Please 'save' this private key again.", "chooseDestination": "Choose destination",
"serverTabFailed": "Failed", "choosePrivateKey": "Choose private key",
"serverTabUnkown": "Unknown state", "clear": "Clear",
"serverTabConnecting": "Connecting...", "clickSee": "Click here",
"decode": "Decode", "close": "Close",
"encode": "Encode", "cmd": "Command",
"currentMode": "Current Mode", "containerStatus": "Container status",
"unkownConvertMode": "Unknown convert mode", "convert": "Convert",
"copy": "Copy", "copy": "Copy",
"upsideDown": "Upside Down", "copyPath": "Copy path",
"pingAvg": "Avg:", "createFile": "Create file",
"unknown": "unknown", "createFolder": "Create folder",
"min": "min", "currentMode": "Current Mode",
"max": "max", "debug": "Debug",
"ms": "ms", "decode": "Decode",
"ttl": "ttl", "delete": "Delete",
"loss": "loss", "disconnected": "Disconnected",
"noResult": "No result", "dl2Local": "Download [{fileName}] to local?",
"pingInputIP": "Please input a target IP/domain.", "dockerContainerName": "Container name",
"clear": "Clear", "dockerEditHost": "Edit DOCKER_HOST",
"start": "Start", "dockerEmptyRunningItems": "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.",
"appPrimaryColor": "App primary color", "dockerImage": "Image",
"updateServerStatusInterval": "Server status update interval", "dockerImagesFmt": "{count} images",
"willTakEeffectImmediately": "Will take effect immediately", "dockerNotInstalled": "Docker not installed",
"launchPage": "Launch page", "dockerStatusRunningAndStoppedFmt": "{runningCount} running, {stoppedCount} container stopped.",
"versionUpdated": "Current: v1.0.{build}, is up to date", "dockerStatusRunningFmt": "{count} container running.",
"versionUnknownUpdate": "Current: v1.0.{build}", "download": "Download",
"versionHaveUpdate": "Found: v1.0.{build}, click to update", "downloadFinished": "Download finished",
"second": "s", "downloadStatus": "{percent}% of {size}",
"updateIntervalEqual0": "You set to 0, will not update automatically.\nCan't calculate CPU status.", "edit": "Edit",
"edit": "Edit", "encode": "Encode",
"noSavedPrivateKey": "No saved private keys.", "error": "Error",
"name": "Name", "exampleName": "Example name",
"pwd": "Password", "experimentalFeature": "Experimental feature",
"save": "Save", "export": "Export",
"delete": "Delete", "extraArgs": "Extra args",
"fieldMustNotEmpty": "These fields must not be empty.", "feedback": "Feedback",
"importAndExport": "Import and Export", "feedbackOnGithub": "If you have any questions, please feedback on Github.",
"choose": "Choose", "fieldMustNotEmpty": "These fields must not be empty.",
"import": "Import", "files": "Files",
"export": "Export", "foundNUpdate": "Found {count} update",
"ok": "OK", "go": "Go",
"cancel": "Cancel", "goto": "Go to",
"urlOrJson": "URL or JSON", "host": "Host",
"go": "Go", "httpFailedWithCode": "request failed, status code: {code}",
"httpFailedWithCode": "request failed, status code: {code}", "imagesList": "Images list",
"run": "Run", "import": "Import",
"noSavedSnippet": "No saved snippets.", "importAndExport": "Import and Export",
"chooseDestination": "Choose destination", "inputDomainHere": "Input Domain here",
"noServerAvailable": "No server available.", "install": "install",
"result": "Result", "installDockerWithUrl": "Please https://docs.docker.com/engine/install docker first.",
"close": "Close", "invalidJson": "Invalid JSON",
"attention": "Attention", "invalidVersion": "Invalid version",
"sureToDeleteServer": "Are you sure to delete server [{server}]?", "invalidVersionHelp": "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}.",
"host": "Host", "isBusy": "Is busy now",
"port": "Port", "keepForeground": "Keep app foreground!",
"user": "User", "keyAuth": "Key Auth",
"keyAuth": "Key Auth", "lastTry": "Last try!",
"addPrivateKey": "Add private key", "launchPage": "Launch page",
"choosePrivateKey": "Choose private key", "license": "License",
"plzEnterHost": "Please enter host.", "loadingFiles": "Loading files...",
"sureNoPwd": "Are you sure to use no password?", "loss": "loss",
"plzSelectKey": "Please select a key.", "madeWithLove": "\nMade with ❤️ by {myGithub}",
"exampleName": "Example name", "max": "max",
"stop": "Stop", "min": "min",
"download": "Download", "ms": "ms",
"copyPath": "Copy path", "name": "Name",
"keepForeground": "Keep app foreground!", "newContainer": "New container",
"downloadFinished": "Download finished", "noClient": "No client",
"downloadStatus": "{percent}% of {size}", "noInterface": "No interface",
"sftpDlPrepare": "Preparing to connect...", "noResult": "No result",
"sftpSSHConnected": "SFTP Connected", "noSavedPrivateKey": "No saved private keys.",
"spentTime": "Spent time: {time}", "noSavedSnippet": "No saved snippets.",
"backDir": "Back", "noServerAvailable": "No server available.",
"alreadyLastDir": "Already in last directory.", "noUpdateAvailable": "No update available",
"open": "Open", "ok": "OK",
"sureDelete": "Are you sure to delete [{name}]?", "onServerDetailPage": "On server detail page",
"containerStatus": "Container status", "open": "Open",
"noClient": "No client", "path": "Path",
"installDockerWithUrl": "Please https://docs.docker.com/engine/install docker first.", "ping": "Ping",
"waitConnection": "Please wait for the connection to be established.", "pingAvg": "Avg:",
"unknownError": "Unknown error", "pingInputIP": "Please input a target IP/domain.",
"dockerStatusRunningFmt": "{count} container running.", "pingNoServer": "No server to ping.\nPlease add a server in server tab.",
"dockerStatusRunningAndStoppedFmt": "{runningCount} running, {stoppedCount} container stopped.", "pkg": "Pkg",
"install": "install", "platformNotSupportUpdate": "Current platform does not support in app update.\nPlease build from source and install it.",
"loadingFiles": "Loading files...", "plzEnterHost": "Please enter host.",
"sftpNoDownloadTask": "No download task.", "plzSelectKey": "Please select a key.",
"createFolder": "Create folder", "port": "Port",
"createFile": "Create file", "preview": "Preview",
"rename": "Rename", "privateKey": "Private Key",
"dl2Local": "Download [{fileName}] to local?", "pwd": "Password",
"error": "Error", "rename": "Rename",
"disconnected": "Disconnected", "reportBugsOnGithubIssue": "Please report bugs on {url}",
"files": "Files", "restore": "Restore",
"experimentalFeature": "Experimental feature", "restoreSuccess": "Restore success. Restart app to apply.",
"reportBugsOnGithubIssue": "Please report bugs on {url}", "restoreSureWithDate": "Are you sure to restore from {date} ?",
"noUpdateAvailable": "No update available", "result": "Result",
"foundNUpdate": "Found {count} update", "run": "Run",
"updateAll": "Update all", "save": "Save",
"platformNotSupportUpdate": "Current platform does not support in app update.\nPlease build from source and install it.", "second": "s",
"invalidVersionHelp": "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}.", "server": "Server",
"noInterface": "No interface", "serverTabConnecting": "Connecting...",
"lastTry": "Last try!", "serverTabEmpty": "There is no server.\nClick the fab to add one.",
"pingNoServer": "No server to ping.\nPlease add a server in server tab.", "serverTabFailed": "Failed",
"backupTip": "The exported data is simply encrypted. \nPlease keep it safe.\nRestoring will not overwrite existing data (except setting).", "serverTabLoading": "Loading...",
"backup": "Backup", "serverTabPlzSave": "Please 'save' this private key again.",
"restore": "Restore", "serverTabUnkown": "Unknown state",
"restoreSureWithDate": "Are you sure to restore from {date} ?", "setting": "Setting",
"backupVersionNotMatch": "Backup version is not match.", "sftpDlPrepare": "Preparing to connect...",
"invalidJson": "Invalid JSON", "sftpNoDownloadTask": "No download task.",
"restoreSuccess": "Restore success. Restart app to apply.", "sftpSSHConnected": "SFTP Connected",
"clickSee": "Click here", "showDistLogo": "Show distribution logo",
"feedback": "Feedback", "snippet": "Snippet",
"feedbackOnGithub": "If you have any questions, please feedback on Github.", "spentTime": "Spent time: {time}",
"update": "Update", "sshTip": "This function is now in the experimental stage. \nPlease report bugs on {url} or join our development.",
"inputDomainHere": "Input Domain here", "start": "Start",
"dockerNotInstalled": "Docker not installed", "stop": "Stop",
"invalidVersion": "Invalid version", "sureDelete": "Are you sure to delete [{name}]?",
"cmd": "Command", "sureNoPwd": "Are you sure to use no password?",
"dockerEmptyRunningItems": "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.", "sureToDeleteServer": "Are you sure to delete server [{server}]?",
"dockerEditHost": "Edit DOCKER_HOST", "ttl": "ttl",
"newContainer": "New container", "unknown": "unknown",
"dockerImage": "Image", "unknownError": "Unknown error",
"dockerContainerName": "Container name", "unkownConvertMode": "Unknown convert mode",
"extraArgs": "Extra args", "update": "Update",
"preview": "Preview", "updateAll": "Update all",
"isBusy": "Is busy now", "updateIntervalEqual0": "You set to 0, will not update automatically.\nCan't calculate CPU status.",
"imagesList": "Images list", "updateServerStatusInterval": "Server status update interval",
"dockerImagesFmt": "{count} images", "updateTip": "Update: v1.0.{newest}",
"path": "Path", "updateTipTooLow": "Current version is too low, please update to v1.0.{newest}",
"goto": "Go to", "upsideDown": "Upside Down",
"showDistLogo": "Show distribution logo", "urlOrJson": "URL or JSON",
"onServerDetailPage": "On server detail page", "user": "User",
"addOne": "Add one", "versionHaveUpdate": "Found: v1.0.{build}, click to update",
"sshTip": "This function is now in the experimental stage. \nPlease report bugs on {url} or join our development.", "versionUnknownUpdate": "Current: v1.0.{build}",
"updateTip": "Update: v1.0.{newest}", "versionUpdated": "Current: v1.0.{build}, is up to date",
"updateTipTooLow": "Current version is too low, please update to v1.0.{newest}", "waitConnection": "Please wait for the connection to be established.",
"pkgManager": "Pkg mgr" "willTakEeffectImmediately": "Will take effect immediately"
} }

View File

@@ -1,153 +1,153 @@
{ {
"server": "服务器", "aboutThanks": "\n保留所有权利。\n\n感谢以下参与软件测试的各位。",
"convert": "转换", "addAServer": "添加服务器",
"ping": "Ping", "addOne": "前去新增",
"debug": "调试", "addPrivateKey": "添加一个私钥",
"addAServer": "添加服务器", "alreadyLastDir": "已经是最上层目录了",
"setting": "设置", "appPrimaryColor": "App主要色",
"license": "开源证书", "attention": "注意",
"snippet": "代码片段", "backDir": "返回上一级",
"privateKey": "私钥", "backup": "备份",
"madeWithLove": "\n用❤制作 by {myGithub}", "backupTip": "导出的数据仅进行了简单加密,请妥善保管。\n除了设置项恢复的数据不会覆盖现有数据。",
"aboutThanks": "\n保留所有权利。\n\n感谢以下参与软件测试的各位。", "backupVersionNotMatch": "备份版本不匹配,无法恢复",
"serverTabEmpty": "现在没有服务器。\n点击右下方按钮来添加。", "cancel": "取消",
"serverTabLoading": "加载中...", "choose": "选择",
"serverTabPlzSave": "请再次保存该私钥", "chooseDestination": "选择目标",
"serverTabFailed": "失败", "choosePrivateKey": "选择私钥",
"serverTabUnkown": "未知状态", "clear": "清除",
"serverTabConnecting": "连接中...", "clickSee": "点击查看",
"decode": "解码", "close": "关闭",
"encode": "编码", "cmd": "命令",
"currentMode": "当前模式", "containerStatus": "容器状态",
"unkownConvertMode": "未知转换模式", "convert": "转换",
"copy": "复制到剪切板", "copy": "复制到剪切板",
"upsideDown": "上下交换", "copyPath": "复制路径",
"pingAvg": "平均:", "createFile": "创建文件",
"unknown": "未知", "createFolder": "创建文件夹",
"min": "最小", "currentMode": "当前模式",
"max": "最大", "debug": "调试",
"ms": "毫秒", "decode": "解码",
"ttl": "缓存时间", "delete": "删除",
"loss": "丢包率", "disconnected": "连接断开",
"noResult": "无结果", "dl2Local": "下载 [{fileName}] 到本地?",
"pingInputIP": "请输入目标IP或域名", "dockerContainerName": "容器名",
"clear": "清除", "dockerEditHost": "编辑 DOCKER_HOST",
"start": "开始", "dockerEmptyRunningItems": "没有正在运行的容器。\n这可能是因为环境变量 DOCKER_HOST 没有被正确读取。你可以通过在终端内运行 `echo $DOCKER_HOST` 来获取。",
"appPrimaryColor": "App主要色", "dockerImage": "镜像",
"updateServerStatusInterval": "服务器状态刷新间隔", "dockerImagesFmt": "共 {count} 个镜像",
"willTakEeffectImmediately": "更改将会立即生效", "dockerNotInstalled": "Docker未安装",
"launchPage": "启动页", "dockerStatusRunningAndStoppedFmt": "{runningCount}个正在运行, {stoppedCount}个已停止",
"versionUpdated": "当前v1.0.{build}, 已是最新版本", "dockerStatusRunningFmt": "{count}个容器正在运行",
"versionUnknownUpdate": "当前v1.0.{build}", "download": "下载",
"versionHaveUpdate": "找到新版本v1.0.{build}, 点击更新", "downloadFinished": "下载完成!",
"second": "秒", "downloadStatus": "{size} 的 {percent}%",
"updateIntervalEqual0": "你设置为0服务器状态不会自动刷新。\n且不能计算CPU使用情况。", "edit": "编辑",
"edit": "编", "encode": "编",
"noSavedPrivateKey": "没有已保存的私钥。", "error": "出错了",
"name": "名称", "exampleName": "名称示例",
"pwd": "密码", "experimentalFeature": "实验性功能",
"save": "保存", "export": "导出",
"delete": "删除", "extraArgs": "额外参数",
"fieldMustNotEmpty": "这些输入框不能为空。", "feedback": "反馈",
"importAndExport": "导入或导出", "feedbackOnGithub": "如果你有任何问题请在GitHub反馈",
"choose": "选择", "fieldMustNotEmpty": "这些输入框不能为空。",
"import": "导入", "files": "文件",
"export": "导出", "foundNUpdate": "找到 {count} 个更新",
"ok": "", "go": "开始",
"cancel": "取消", "goto": "前往",
"urlOrJson": "链接或JSON", "host": "主机",
"go": "开始", "httpFailedWithCode": "请求失败, 状态码: {code}",
"httpFailedWithCode": "请求失败, 状态码: {code}", "imagesList": "镜像列表",
"run": "运行", "import": "导入",
"noSavedSnippet": "没有已保存的代码片段。", "importAndExport": "导入或导出",
"chooseDestination": "选择目标", "inputDomainHere": "在这里输入域名",
"noServerAvailable": "没有可用的服务器。", "install": "安装",
"result": "结果", "installDockerWithUrl": "请先 https://docs.docker.com/engine/install docker",
"close": "关闭", "invalidJson": "无效的json存在格式问题",
"attention": "注意", "invalidVersion": "不支持的版本",
"sureToDeleteServer": "你确定要删除服务器 [{server}] 吗?", "invalidVersionHelp": "请确保正确安装了docker或者使用的非自编译版本。如果没有以上问题请在 {url} 提交问题。",
"host": "主机", "isBusy": "当前正忙",
"port": "端口", "keepForeground": "请保持应用处于前台!",
"user": "用户", "keyAuth": "公钥认证",
"keyAuth": "公钥认证", "lastTry": "最后尝试",
"addPrivateKey": "添加一个私钥", "launchPage": "启动页",
"choosePrivateKey": "选择私钥", "license": "开源证书",
"plzEnterHost": "请输入主机", "loadingFiles": "正在加载目录。。。",
"sureNoPwd": "确认使用无密码?", "loss": "丢包率",
"plzSelectKey": "请选择私钥", "madeWithLove": "\n用❤制作 by {myGithub}",
"exampleName": "名称示例", "max": "最大",
"stop": "停止", "min": "最小",
"download": "下载", "ms": "毫秒",
"copyPath": "复制路径", "name": "名称",
"keepForeground": "请保持应用处于前台!", "newContainer": "新建容器",
"downloadFinished": "下载完成!", "noClient": "没有SSH连接",
"downloadStatus": "{size} 的 {percent}%", "noInterface": "没有可用的接口",
"sftpDlPrepare": "准备连接至服务器...", "noResult": "无结果",
"sftpSSHConnected": "SFTP 已连接,即将开始下载...", "noSavedPrivateKey": "没有已保存的私钥。",
"spentTime": "耗时: {time}", "noSavedSnippet": "没有已保存的代码片段。",
"backDir": "返回上一级", "noServerAvailable": "没有可用的服务器。",
"alreadyLastDir": "已经是最上层目录了", "noUpdateAvailable": "没有可用更新",
"open": "打开", "ok": "",
"sureDelete": "确定删除[{name}]", "onServerDetailPage": "在服务器详情页",
"containerStatus": "容器状态", "open": "打开",
"noClient": "没有SSH连接", "path": "路径",
"installDockerWithUrl": "请先 https://docs.docker.com/engine/install docker", "ping": "Ping",
"waitConnection": "请等待连接建立", "pingAvg": "平均:",
"unknownError": "未知错误", "pingInputIP": "请输入目标IP或域名",
"dockerStatusRunningFmt": "{count}个容器正在运行", "pingNoServer": "没有服务器可用于Ping\n请在服务器tab添加服务器后再试",
"dockerStatusRunningAndStoppedFmt": "{runningCount}个正在运行, {stoppedCount}个已停止", "pkg": "包管理",
"install": "安装", "platformNotSupportUpdate": "当前平台不支持更新,请编译最新源码后手动安装",
"loadingFiles": "正在加载目录。。。", "plzEnterHost": "请输入主机",
"sftpNoDownloadTask": "没有下载任务", "plzSelectKey": "请选择私钥",
"createFolder": "创建文件夹", "port": "端口",
"createFile": "创建文件", "preview": "预览",
"rename": "重命名", "privateKey": "私钥",
"dl2Local": "下载 [{fileName}] 到本地?", "pwd": "密码",
"error": "出错了", "rename": "重命名",
"disconnected": "连接断开", "reportBugsOnGithubIssue": "请到 {url} 提交问题",
"files": "文件", "restore": "恢复",
"experimentalFeature": "实验性功能", "restoreSuccess": "恢复成功需要重启App来应用更改",
"reportBugsOnGithubIssue": "请到 {url} 提交问题", "restoreSureWithDate": "确定恢复 {date} 的备份吗?",
"noUpdateAvailable": "没有可用更新", "result": "结果",
"foundNUpdate": "找到 {count} 个更新", "run": "运行",
"updateAll": "更新全部", "save": "保存",
"platformNotSupportUpdate": "当前平台不支持更新,请编译最新源码后手动安装", "second": "秒",
"invalidVersionHelp": "请确保正确安装了docker或者使用的非自编译版本。如果没有以上问题请在 {url} 提交问题。", "server": "服务器",
"noInterface": "没有可用的接口", "serverTabConnecting": "连接中...",
"lastTry": "最后尝试", "serverTabEmpty": "现在没有服务器。\n点击右下方按钮来添加。",
"pingNoServer": "没有服务器可用于Ping\n请在服务器tab添加服务器后再试", "serverTabFailed": "失败",
"backupTip": "导出的数据仅进行了简单加密,请妥善保管。\n除了设置项恢复的数据不会覆盖现有数据。", "serverTabLoading": "加载中...",
"backup": "备份", "serverTabPlzSave": "请再次保存该私钥",
"restore": "恢复", "serverTabUnkown": "未知状态",
"restoreSureWithDate": "确定恢复 {date} 的备份吗?", "setting": "设置",
"backupVersionNotMatch": "备份版本不匹配,无法恢复", "sftpDlPrepare": "准备连接至服务器...",
"invalidJson": "无效的json存在格式问题", "sftpNoDownloadTask": "没有下载任务",
"restoreSuccess": "恢复成功需要重启App来应用更改", "sftpSSHConnected": "SFTP 已连接,即将开始下载...",
"clickSee": "点击查看", "showDistLogo": "显示发行版 Logo",
"feedback": "反馈", "snippet": "代码片段",
"feedbackOnGithub": "如果你有任何问题请在GitHub反馈", "spentTime": "耗时: {time}",
"update": "更新", "sshTip": "该功能目前处于测试阶段,请在 {url} 反馈问题,或者加入我们开发。",
"inputDomainHere": "在这里输入域名", "start": "开始",
"dockerNotInstalled": "Docker未安装", "stop": "停止",
"invalidVersion": "不支持的版本", "sureDelete": "确定删除[{name}]",
"cmd": "命令", "sureNoPwd": "确认使用无密码?",
"dockerEmptyRunningItems": "没有正在运行的容器。\n这可能是因为环境变量 DOCKER_HOST 没有被正确读取。你可以通过在终端内运行 `echo $DOCKER_HOST` 来获取。", "sureToDeleteServer": "你确定要删除服务器 [{server}] 吗?",
"dockerEditHost": "编辑 DOCKER_HOST", "ttl": "缓存时间",
"newContainer": "新建容器", "unknown": "未知",
"dockerImage": "镜像", "unknownError": "未知错误",
"dockerContainerName": "容器名", "unkownConvertMode": "未知转换模式",
"extraArgs": "额外参数", "update": "更新",
"preview": "预览", "updateAll": "更新全部",
"isBusy": "当前正忙", "updateIntervalEqual0": "你设置为0服务器状态不会自动刷新。\n且不能计算CPU使用情况。",
"imagesList": "镜像列表", "updateServerStatusInterval": "服务器状态刷新间隔",
"dockerImagesFmt": "共 {count} 个镜像", "updateTip": "新版本: v1.0.{newest}",
"path": "路径", "updateTipTooLow": "当前版本过低,请升级至 v1.0.{newest}",
"goto": "前往", "upsideDown": "上下交换",
"showDistLogo": "显示发行版 Logo", "urlOrJson": "链接或JSON",
"onServerDetailPage": "在服务器详情页", "user": "用户",
"addOne": "前去新增", "versionHaveUpdate": "找到新版本v1.0.{build}, 点击更新",
"sshTip": "该功能目前处于测试阶段,请在 {url} 反馈问题,或者加入我们开发。", "versionUnknownUpdate": "当前v1.0.{build}",
"updateTip": "新版本: v1.0.{newest}", "versionUpdated": "当前:v1.0.{build}, 已是最新版本",
"updateTipTooLow": "当前版本过低,请升级至 v1.0.{newest}", "waitConnection": "请等待连接建立",
"pkgManager": "包管理" "willTakEeffectImmediately": "更改将会立即生效"
} }

View File

@@ -441,7 +441,7 @@ class _DockerManagePageState extends State<DockerManagePage> {
(item) { (item) {
return ListTile( return ListTile(
title: Text(item.name), title: Text(item.name),
subtitle: Text('${item.image} ${item.status}'), subtitle: Text('${item.image}\n${item.status}'),
trailing: _buildMoreBtn(item, docker.isBusy), trailing: _buildMoreBtn(item, docker.isBusy),
); );
}, },
@@ -474,9 +474,16 @@ class _DockerManagePageState extends State<DockerManagePage> {
context, context,
_s.attention, _s.attention,
Text(_s.sureDelete(dItem.name)), Text(_s.sureDelete(dItem.name)),
[], [
TextButton(
onPressed: () {
Navigator.of(context).pop();
_docker.delete(dItem.containerId);
},
child: Text(_s.ok),
)
],
); );
_docker.delete(dItem.containerId);
break; break;
case DockerMenuItems.start: case DockerMenuItems.start:
_docker.start(dItem.containerId); _docker.start(dItem.containerId);