From bf2f63cbcfcb88d386c7d45366a7ad37746459f0 Mon Sep 17 00:00:00 2001 From: sharevb Date: Sun, 12 Jan 2025 22:13:50 +0100 Subject: [PATCH] feat(new tool): My IP Address Fix #1435 --- src/tools/index.ts | 2 ++ src/tools/my-ip/index.ts | 12 ++++++++++++ src/tools/my-ip/my-ip.vue | 40 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 src/tools/my-ip/index.ts create mode 100644 src/tools/my-ip/my-ip.vue diff --git a/src/tools/index.ts b/src/tools/index.ts index 8a96a278..264c8c5a 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -25,6 +25,7 @@ import { tool as angleConverter } from './angle-converter'; import { tool as floatingPointNumberConverter } from './floating-point-number-converter'; import { tool as snowflakeIdExtractor } from './snowflake-id-extractor'; import { tool as emailNormalizer } from './email-normalizer'; +import { tool as myIp } from './my-ip'; import { tool as geoDistanceCalculator } from './geo-distance-calculator'; import { tool as xVrSpamcauseDecoder } from './x-vr-spamcause-decoder'; import { tool as bounceParser } from './bounce-parser'; @@ -491,6 +492,7 @@ export const toolsByCategory: ToolCategory[] = [ raidCalculator, sipAuth, xVrSpamcauseDecoder, + myIp, ], }, { diff --git a/src/tools/my-ip/index.ts b/src/tools/my-ip/index.ts new file mode 100644 index 00000000..8da30dfb --- /dev/null +++ b/src/tools/my-ip/index.ts @@ -0,0 +1,12 @@ +import { World } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'My IP Address', + path: '/my-ip', + description: 'Get your client IP Address (IPv4/6) using https://getjsonip.com/', + keywords: ['my', 'client', 'ip'], + component: () => import('./my-ip.vue'), + icon: World, + createdAt: new Date('2025-01-01'), +}); diff --git a/src/tools/my-ip/my-ip.vue b/src/tools/my-ip/my-ip.vue new file mode 100644 index 00000000..a4b1c8f2 --- /dev/null +++ b/src/tools/my-ip/my-ip.vue @@ -0,0 +1,40 @@ + + + + +