From 5effcb3ebe74b3173eba9f86059c075b82d4ba0e Mon Sep 17 00:00:00 2001 From: sharevb Date: Sun, 12 Jan 2025 22:16:52 +0100 Subject: [PATCH] feat(new tool): Geo Distance Computer Fix part of #1416 --- .../geo-distance-calculator.vue | 72 +++++++++++++++++++ src/tools/geo-distance-calculator/index.ts | 12 ++++ src/tools/index.ts | 8 ++- 3 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 src/tools/geo-distance-calculator/geo-distance-calculator.vue create mode 100644 src/tools/geo-distance-calculator/index.ts diff --git a/src/tools/geo-distance-calculator/geo-distance-calculator.vue b/src/tools/geo-distance-calculator/geo-distance-calculator.vue new file mode 100644 index 000000000..b2daf070d --- /dev/null +++ b/src/tools/geo-distance-calculator/geo-distance-calculator.vue @@ -0,0 +1,72 @@ + + + diff --git a/src/tools/geo-distance-calculator/index.ts b/src/tools/geo-distance-calculator/index.ts new file mode 100644 index 000000000..0babbb4eb --- /dev/null +++ b/src/tools/geo-distance-calculator/index.ts @@ -0,0 +1,12 @@ +import { WorldLatitude } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Geo distance calculator', + path: '/geo-distance-calculator', + description: 'Compute distance between two geo location (and display current user location information)', + keywords: ['geo', 'distance', 'calculator'], + component: () => import('./geo-distance-calculator.vue'), + icon: WorldLatitude, + createdAt: new Date('2025-01-01'), +}); diff --git a/src/tools/index.ts b/src/tools/index.ts index 388cfaf49..4636ea1e6 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -2,6 +2,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 emailNormalizer } from './email-normalizer'; +import { tool as geoDistanceCalculator } from './geo-distance-calculator'; import { tool as asciiTextDrawer } from './ascii-text-drawer'; @@ -172,7 +173,12 @@ export const toolsByCategory: ToolCategory[] = [ }, { name: 'Measurement', - components: [chronometer, temperatureConverter, benchmarkBuilder], + components: [ + chronometer, + temperatureConverter, + benchmarkBuilder, + geoDistanceCalculator, + ], }, { name: 'Text',