From 0ae4ff66e9ca99153c73624c92db2bdbf3f228d0 Mon Sep 17 00:00:00 2001 From: sharevb Date: Fri, 6 Sep 2024 18:50:10 +0200 Subject: [PATCH] feat(new tool): Timezone Converter Fix #429 --- src/tools/index.ts | 2 + src/tools/timezone-converter/index.ts | 12 ++ .../timezone-converter/timezone-converter.vue | 120 ++++++++++++++++++ 3 files changed, 134 insertions(+) create mode 100644 src/tools/timezone-converter/index.ts create mode 100644 src/tools/timezone-converter/timezone-converter.vue diff --git a/src/tools/index.ts b/src/tools/index.ts index 52bdf8e37..0f9cc1925 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -1,6 +1,7 @@ import { tool as base64FileConverter } from './base64-file-converter'; import { tool as base64StringConverter } from './base64-string-converter'; import { tool as basicAuthGenerator } from './basic-auth-generator'; +import { tool as timezoneConverter } from './timezone-converter'; import { tool as pdfSignatureChecker } from './pdf-signature-checker'; import { tool as numeronymGenerator } from './numeronym-generator'; import { tool as macAddressGenerator } from './mac-address-generator'; @@ -85,6 +86,7 @@ export const toolsByCategory: ToolCategory[] = [ name: 'Converter', components: [ dateTimeConverter, + timezoneConverter, baseConverter, romanNumeralConverter, base64StringConverter, diff --git a/src/tools/timezone-converter/index.ts b/src/tools/timezone-converter/index.ts new file mode 100644 index 000000000..b4d3f10c1 --- /dev/null +++ b/src/tools/timezone-converter/index.ts @@ -0,0 +1,12 @@ +import { CalendarTime } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Timezone Converter', + path: '/timezone-converter', + description: 'Convert Date-Time from a timezone to others', + keywords: ['timezone', 'tz', 'date', 'time', 'converter'], + component: () => import('./timezone-converter.vue'), + icon: CalendarTime, + createdAt: new Date('2024-08-15'), +}); diff --git a/src/tools/timezone-converter/timezone-converter.vue b/src/tools/timezone-converter/timezone-converter.vue new file mode 100644 index 000000000..85d180e94 --- /dev/null +++ b/src/tools/timezone-converter/timezone-converter.vue @@ -0,0 +1,120 @@ + + +