From 33ed396146594147edae8d148e610fe3063df6b5 Mon Sep 17 00:00:00 2001 From: zhu0823 Date: Fri, 19 Apr 2024 10:59:38 +0800 Subject: [PATCH 1/3] remove unnecessary semicolon --- src/tools/token-generator/token-generator.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/token-generator/token-generator.service.ts b/src/tools/token-generator/token-generator.service.ts index 3733a884..f928a415 100644 --- a/src/tools/token-generator/token-generator.service.ts +++ b/src/tools/token-generator/token-generator.service.ts @@ -20,7 +20,7 @@ export function createToken({ withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '', withNumbers ? '0123456789' : '', withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '', - ].join(''); ; + ].join(''); return shuffleString(allAlphabet.repeat(length)).substring(0, length); } From 2cba8eab588b39623985cc56aed92fe2ad9861b0 Mon Sep 17 00:00:00 2001 From: zhu0823 Date: Fri, 19 Apr 2024 11:44:56 +0800 Subject: [PATCH 2/3] feat(i18n): add outlook_safelink_decoder --- locales/en.yml | 4 ++++ locales/vi.yml | 4 ++++ locales/zh.yml | 6 +++++- src/tools/safelink-decoder/index.ts | 5 +++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 50d48af9..8d0e0a43 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -391,3 +391,7 @@ tools: text-to-binary: title: Text to ASCII binary description: Convert text to its ASCII binary representation and vice versa. + + outlook_safelink_decoder: + title: Outlook safe links decoder + description: Decode safe links in Outlook to retrieve the original URLs. diff --git a/locales/vi.yml b/locales/vi.yml index 9eb16bf0..373c4410 100644 --- a/locales/vi.yml +++ b/locales/vi.yml @@ -380,3 +380,7 @@ tools: text-to-binary: title: Chuyển đổi văn bản thành nhị phân ASCII description: Chuyển đổi văn bản thành biểu diễn nhị phân ASCII của nó và ngược lại. + + outlook_safelink_decoder: + title: Giải mã liên kết an toàn Outlook + description: Giải mã các liên kết an toàn trong Outlook để lấy lại URL gốc. diff --git a/locales/zh.yml b/locales/zh.yml index 160fe1fa..0d833285 100644 --- a/locales/zh.yml +++ b/locales/zh.yml @@ -187,7 +187,7 @@ tools: toml-to-yaml: title: TOML 到 YAML - description: Parse and convert TOML to YAML. + description: 解析TOML并将其转换为YAML。 math-evaluator: title: 数学计算器 @@ -387,3 +387,7 @@ tools: text-to-binary: title: 文本到 ASCII 二进制 description: 将文本转换为其 ASCII 二进制表示形式,反之亦然。 + + outlook_safelink_decoder: + title: Outlook 安全链接解码器 + description: 解码 Outlook 中的安全链接,以获取原始 URL。 diff --git a/src/tools/safelink-decoder/index.ts b/src/tools/safelink-decoder/index.ts index ef865108..c3a5811c 100644 --- a/src/tools/safelink-decoder/index.ts +++ b/src/tools/safelink-decoder/index.ts @@ -1,10 +1,11 @@ import { Mailbox } from '@vicons/tabler'; import { defineTool } from '../tool'; +import { translate } from "@/plugins/i18n.plugin"; export const tool = defineTool({ - name: 'Outlook Safelink decoder', + name: translate('tools.outlook_safelink_decoder.title'), path: '/safelink-decoder', - description: 'Decode Outlook SafeLink links', + description: translate('tools.outlook_safelink_decoder.description'), keywords: ['outlook', 'safelink', 'decoder'], component: () => import('./safelink-decoder.vue'), icon: Mailbox, From ce99ac4db1d301da5ed9b528b19fd21e1c75c2b1 Mon Sep 17 00:00:00 2001 From: zhu0823 Date: Fri, 19 Apr 2024 15:01:00 +0800 Subject: [PATCH 3/3] fix(eslint): Replace double quotes with single quotes --- src/tools/safelink-decoder/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/safelink-decoder/index.ts b/src/tools/safelink-decoder/index.ts index c3a5811c..907a005e 100644 --- a/src/tools/safelink-decoder/index.ts +++ b/src/tools/safelink-decoder/index.ts @@ -1,6 +1,6 @@ import { Mailbox } from '@vicons/tabler'; import { defineTool } from '../tool'; -import { translate } from "@/plugins/i18n.plugin"; +import { translate } from '@/plugins/i18n.plugin'; export const tool = defineTool({ name: translate('tools.outlook_safelink_decoder.title'),