This commit is contained in:
zhu0823 2024-04-29 12:47:24 -05:00 committed by GitHub
commit f8f8fe895c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 4 deletions

View File

@ -391,3 +391,7 @@ tools:
text-to-binary: text-to-binary:
title: Text to ASCII binary title: Text to ASCII binary
description: Convert text to its ASCII binary representation and vice versa. 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.

View File

@ -380,3 +380,7 @@ tools:
text-to-binary: text-to-binary:
title: Chuyển đổi văn bản thành nhị phân ASCII 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. 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.

View File

@ -187,7 +187,7 @@ tools:
toml-to-yaml: toml-to-yaml:
title: TOML 到 YAML title: TOML 到 YAML
description: Parse and convert TOML to YAML. description: 解析TOML并将其转换为YAML。
math-evaluator: math-evaluator:
title: 数学计算器 title: 数学计算器
@ -387,3 +387,7 @@ tools:
text-to-binary: text-to-binary:
title: 文本到 ASCII 二进制 title: 文本到 ASCII 二进制
description: 将文本转换为其 ASCII 二进制表示形式,反之亦然。 description: 将文本转换为其 ASCII 二进制表示形式,反之亦然。
outlook_safelink_decoder:
title: Outlook 安全链接解码器
description: 解码 Outlook 中的安全链接,以获取原始 URL。

View File

@ -1,10 +1,11 @@
import { Mailbox } from '@vicons/tabler'; import { Mailbox } from '@vicons/tabler';
import { defineTool } from '../tool'; import { defineTool } from '../tool';
import { translate } from '@/plugins/i18n.plugin';
export const tool = defineTool({ export const tool = defineTool({
name: 'Outlook Safelink decoder', name: translate('tools.outlook_safelink_decoder.title'),
path: '/safelink-decoder', path: '/safelink-decoder',
description: 'Decode Outlook SafeLink links', description: translate('tools.outlook_safelink_decoder.description'),
keywords: ['outlook', 'safelink', 'decoder'], keywords: ['outlook', 'safelink', 'decoder'],
component: () => import('./safelink-decoder.vue'), component: () => import('./safelink-decoder.vue'),
icon: Mailbox, icon: Mailbox,

View File

@ -20,7 +20,7 @@ export function createToken({
withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '', withLowercase ? 'abcdefghijklmopqrstuvwxyz' : '',
withNumbers ? '0123456789' : '', withNumbers ? '0123456789' : '',
withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '', withSymbols ? '.,;:!?./-"\'#{([-|\\@)]=}*+' : '',
].join(''); ; ].join('');
return shuffleString(allAlphabet.repeat(length)).substring(0, length); return shuffleString(allAlphabet.repeat(length)).substring(0, length);
} }