From 096cc7bf611f56e0ee7d3f6cdccb39e968e5d356 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 5 Dec 2022 11:43:00 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/app-status/index.vue | 6 +- frontend/src/lang/modules/en.ts | 159 ++++++++++++++++--- frontend/src/lang/modules/zh.ts | 5 + 3 files changed, 145 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index 955e97166..bf293c460 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -8,13 +8,13 @@ {{ data.app }} - +
{{ $t('app.version') }}: {{ data.version }}
- +
{{ $t('commons.table.status') }}: @@ -22,7 +22,7 @@
- +
{{ $t('website.lastBackupAt') }}: {{ data.lastBackupAt }} diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 0ed990759..bf075d01d 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -130,6 +130,16 @@ export default { changePassword: 'Change Password', logout: 'Logout', }, + status: { + running: 'running', + stopped: 'stopped', + error: 'error', + created: 'created', + restarting: 'restarting', + removing: 'removing', + paused: 'paused', + exited: 'exited', + }, }, menu: { home: 'Overview', @@ -707,37 +717,142 @@ export default { description: '1Panel, A modern open source Linux panel.', }, app: { + app: 'Application', + installName: 'installation name', installed: 'installed', all: 'all', version: 'version', - detail: 'detail', - install: 'install', - author: 'author', + detail: 'Details', + install: 'Install', + author: 'Author', source: 'source', - sync: 'sync', - supportUpType: '.tar.gz files are supported only', - zipFormat: - '.tar.gz compressed package structure: test.tar.gz compressed package must contain the website.json file', - appName: 'App Name', + sync: 'synchronous', + appName: 'Application Name', status: 'status', - container: 'Container', - restart: 'Restart', - up: 'Start', - down: 'Stop', - name: 'Name', + container: 'container', + restart: 'restart', + up: 'start', + down: 'stop', + name: 'name', description: 'Description', - delete: 'Delete', + delete: 'delete', deleteWarn: - 'Delete the operation data and delete the operation data. This operation cannot be rolled back. Do you want to continue?', - canUpdate: 'CanUpdate', + 'Delete operation will delete all data and backup together, this operation cannot be rolled back, continue?', + syncSuccess: 'Sync successfully', + canUpdate: 'can be upgraded', backup: 'Backup', - backupName: 'Filename', - backupPath: 'Filepath', - backupdate: 'Backup Date', + backupName: 'file name', + backupPath: 'file path', + backupdate: 'Backup time', restore: 'Restore', restoreWarn: - 'The rollback operation will restart the application and replace the data. This operation cannot be rolled back. Do you want to continue?', - update: 'Update', - versioneSelect: 'Please Select version', + 'The restore operation will restart the application and replace the data. This operation cannot be rolled back. Do you want to continue?', + update: 'upgrade', + versioneSelect: 'Please select a version', + operatorHelper: 'Operation {0} will be performed on the selected application, continue? ', + checkInstalledWarn: '{0} is not detected, please enter the app store and click to install!', + gotoInstalled: 'Go to install', + search: 'Search', + limitHelper: 'The application has already been installed, does not support repeated installation', + deleteHelper: 'The application has been associated with the following resources and cannot be deleted', + checkTitle: 'Prompt', + website: 'website', + database: 'database', + }, + website: { + website: 'website', + primaryDomain: 'primary domain name', + otherDomains: 'other domain names', + type: 'Type', + static: 'Static website', + deployment: 'reverse proxy', + supportUpType: 'Only support tar.gz files', + zipFormat: 'tar.gz compressed package structure: test.tar.gz compressed package must contain website.json file', + proxy: 'reverse proxy', + alias: 'Codename', + remark: 'remark', + group: 'group', + groupSetting: 'Group Management', + app: 'Application', + appNew: 'New application', + appInstalled: 'Installed application', + create: 'Create a website', + delete: 'Delete website', + deleteApp: 'Delete application', + deleteBackup: 'Delete backup', + domain: 'domain name', + domainHelper: 'One domain name per line, support * and IP address, support domain name: port', + port: 'port', + addDomain: 'Add domain name', + domainConfig: 'domain name settings', + defaultDoc: 'default document', + perserver: 'concurrency limit', + perserverHelper: 'Limit the maximum concurrency of the current site', + perip: 'Single IP limit', + peripHelper: 'Limit the maximum number of concurrent access to a single IP', + rate: 'flow limit', + rateHelper: 'Limit the flow of each request (unit: KB)', + limtHelper: 'Enable flow control', + other: 'other', + currentSSL: 'current certificate', + dnsAccount: 'DNS Account', + applySSL: 'Certificate Application', + SSLList: 'Certificate list', + createDnsAccount: 'DNS Account', + aliyun: 'Aliyun DNS', + manual: 'Manual parsing', + key: 'Key', + check: 'View', + acmeAccountManage: 'Acme Account Management', + email: 'Email', + addAccount: 'Add new account', + acmeAccount: 'Acme Account', + provider: 'Verification method', + dnsCommon: 'Manual resolution', + expireDate: 'Expiration time', + brand: 'brand', + deploySSL: 'Deployment', + deploySSLHelper: 'Are you sure to deploy the certificate? ', + ssl: 'certificate', + dnsAccountManage: 'DNS account management', + renewSSL: 'Renew', + renewHelper: 'Are you sure to renew the certificate? ', + renewSuccess: 'Renew Certificate', + config: 'Configuration', + enableHTTPS: 'Enable HTTPS', + aliasHelper: 'The code name is the folder name of the website directory', + lastBackupAt: 'last backup time', + null: 'none', + nginxConfig: 'Nginx Configuration', + websiteConfig: 'Website Settings', + basic: 'Basic', + source: 'source text', + security: 'Security', + backup: 'Backup', + log: 'log', + nginxPer: 'performance adjustment', + neverExpire: 'never expire', + protocol: 'protocol', + setDefault: 'Set as default', + default: 'Default', + deleteHelper: 'Related application status is abnormal, please check', + toApp: 'Go to the installed list', + }, + nginx: { + serverNamesHashBucketSizeHelper: 'The hash table size of the server name', + clientHeaderBufferSizeHelper: 'The header buffer size requested by the client', + clientMaxBodySizeHelper: 'Maximum upload file', + keepaliveTimeoutHelper: 'Connection timeout', + gzipMinLengthHelper: 'minimum compressed file', + gzipCompLevelHelper: 'compression rate', + gzipHelper: 'Whether to enable compressed transmission', + connections: 'Active connections', + accepts: 'Total connections (accepts)', + handled: 'Total number of handshakes (handled)', + requests: 'Total number of handshakes (requests)', + reading: 'Number of requests (Reading)', + writing: 'Number of Responses (Writing)', + waiting: 'resident process (Waiting)', + status: 'load status', }, }; diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 8616b70bb..6f3c5f6ea 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -134,6 +134,11 @@ export default { running: '已启动', stopped: '已停止', error: '失败', + created: '已创建', + restarting: '重启中', + removing: '迁移中', + paused: '暂停', + exited: '停止', }, }, menu: {