diff --git a/package.json b/package.json index 08cd6b92..8b965fea 100644 --- a/package.json +++ b/package.json @@ -104,6 +104,7 @@ "@zxing/library": "^0.21.0", "arr-diff": "^4.0.0", "@xmldom/xmldom": "^0.8.10", + "aircodes": "^1.3.16", "bcryptjs": "^2.4.3", "big.js": "^6.2.2", "change-case": "^4.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a08d1f58..eb2e1e7f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -158,6 +158,9 @@ dependencies: '@zxing/library': specifier: ^0.21.0 version: 0.21.3 + aircodes: + specifier: ^1.3.16 + version: 1.3.16 arr-diff: specifier: ^4.0.0 version: 4.0.0 @@ -6350,7 +6353,7 @@ packages: /@vueuse/shared@10.0.0(vue@3.3.4): resolution: {integrity: sha512-Zh3LgJqvUBWVY3SiMvXanTcfAneGbt63QPczBRDNgQ6jd/ehodO9a1lCFzaA6SWJJoI+ugVTjHFYJdoR656DVQ==} dependencies: - vue-demi: 0.14.5(vue@3.3.4) + vue-demi: 0.14.10(vue@3.3.4) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -6455,6 +6458,10 @@ packages: - supports-color dev: true + /aircodes@1.3.16: + resolution: {integrity: sha512-ysPgP4iifjazWJfnfkywqpJMS+wVGzd9Z1t9oEeMjjbktavlxaJsFgmLl2OLdZru44sefc9/cCRUeeB7xKjxxQ==} + dev: false + /ajv-errors@3.0.0(ajv@8.12.0): resolution: {integrity: sha512-V3wD15YHfHz6y0KdhYFjyy9vWtEVALT9UrxfN3zqlI6dMioHnJrqOYfyPKol3oqrnCM9uwkcdCwkJ0WUcbLMTQ==} peerDependencies: @@ -15916,6 +15923,7 @@ packages: /yamljs@0.3.0: resolution: {integrity: sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ==} + hasBin: true dependencies: argparse: 1.0.10 glob: 7.2.3 diff --git a/src/tools/air-codes/air-codes.vue b/src/tools/air-codes/air-codes.vue new file mode 100644 index 00000000..e5b05cf6 --- /dev/null +++ b/src/tools/air-codes/air-codes.vue @@ -0,0 +1,69 @@ + + + diff --git a/src/tools/air-codes/index.ts b/src/tools/air-codes/index.ts new file mode 100644 index 00000000..9447bcfc --- /dev/null +++ b/src/tools/air-codes/index.ts @@ -0,0 +1,12 @@ +import { Plane } from '@vicons/tabler'; +import { defineTool } from '../tool'; + +export const tool = defineTool({ + name: 'Air Codes', + path: '/air-codes', + description: 'Get Airport and Airline info from name, ICAO code or IATA code', + keywords: ['airport', 'airline', 'air', 'plane', 'icao', 'iata'], + component: () => import('./air-codes.vue'), + icon: Plane, + createdAt: new Date('2024-04-20'), +}); diff --git a/src/tools/index.ts b/src/tools/index.ts index f017a385..7dac2b8d 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -108,6 +108,7 @@ import { tool as ulidGenerator } from './ulid-generator'; import { tool as ibanValidatorAndParser } from './iban-validator-and-parser'; import { tool as stringObfuscator } from './string-obfuscator'; import { tool as textDiff } from './text-diff'; +import { tool as airCodes } from './air-codes'; import { tool as emojiPicker } from './emoji-picker'; import { tool as passwordStrengthAnalyser } from './password-strength-analyser'; import { tool as yamlToToml } from './yaml-to-toml'; @@ -446,6 +447,7 @@ export const toolsByCategory: ToolCategory[] = [ ibanValidatorAndParser, luhnValidator, vatValidator, + airCodes, ], }, ];