From 95f6f3b8c9d347700e1cd3957346c436baea5970 Mon Sep 17 00:00:00 2001 From: RainSun Date: Sat, 7 Mar 2020 20:43:26 +0800 Subject: [PATCH] add copy feature --- src/utils/language.js | 24 +- src/views/Add/Add.vue | 711 ++++++++++++++++++++++-------------------- 2 files changed, 403 insertions(+), 332 deletions(-) diff --git a/src/utils/language.js b/src/utils/language.js index 6521db9..cbae240 100644 --- a/src/utils/language.js +++ b/src/utils/language.js @@ -128,8 +128,10 @@ export function lang() { options:['6 位', '12 位', '18 位', '24 位', '32 位'] }, settings:['包含大写', '包含小写', '包含数字', '包含符号'], - actions: ['生成','关闭'], + actions: ['生成', '复制', '关闭'], code_res_empty: '未生成', + copy_successful: '(复制成功)', + copy_failed: '(复制失败)', } }, EN: { @@ -145,8 +147,10 @@ export function lang() { options:['6 Digit', '12 Digit', '18 Digit', '24 Digit', '32 Digit'] }, settings:['Contain Uppercase', 'Contain Lowercase', 'Contain Number', 'Contain Symbol'], - actions: ['Generate','Close'], + actions: ['Generate', 'Copy','Close'], code_res_empty: 'Not generated', + copy_successful: '(Copy successful)', + copy_failed: '(Failed to copy)', } } }, @@ -278,6 +282,14 @@ export function lang() { CHS:{ title: '更新日志', timeline: [ + { + label: '新建密码记录生成的密码支持复制', + tag:'功能更新', + content: [ + '在新建密码页生成密码支持一键复制', + '2020-03-07' + ] + }, { label: '修复云端最后修改时间不更新的问题', tag:'bug修复', @@ -363,6 +375,14 @@ export function lang() { EN:{ title: 'Update Log', timeline: [ + { + label: 'Generated passwords support replication', + tag:'Feature update', + content: [ + 'Generate a password on the new password page', + '2020-03-07' + ] + }, { label: 'Fix the problem that the last modification time of the cloud is not updated', tag:'Bug fix', diff --git a/src/views/Add/Add.vue b/src/views/Add/Add.vue index 254f20e..53d9779 100644 --- a/src/views/Add/Add.vue +++ b/src/views/Add/Add.vue @@ -1,357 +1,408 @@