it-tools/src/tools/index.ts

125 lines
4.6 KiB
TypeScript
Raw Normal View History

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 benchmarkBuilder } from './benchmark-builder';
import { tool as userAgentParser } from './user-agent-parser';
2023-03-28 23:31:11 +02:00
import { tool as ipv4SubnetCalculator } from './ipv4-subnet-calculator';
import { tool as dockerRunToDockerComposeConverter } from './docker-run-to-docker-compose-converter';
2023-03-26 19:04:42 +02:00
import { tool as htmlWysiwygEditor } from './html-wysiwyg-editor';
2023-03-10 18:16:55 +01:00
import { tool as rsaKeyPairGenerator } from './rsa-key-pair-generator';
import { tool as textToNatoAlphabet } from './text-to-nato-alphabet';
2023-02-10 22:06:32 +01:00
import { tool as slugifyString } from './slugify-string';
2023-02-06 23:11:22 +01:00
import { tool as keycodeInfo } from './keycode-info';
import { tool as jsonMinify } from './json-minify';
2022-04-18 10:16:59 +02:00
import { tool as bcrypt } from './bcrypt';
import { tool as bip39 } from './bip39-generator';
2022-04-16 00:03:31 +02:00
import { tool as caseConverter } from './case-converter';
2023-01-13 18:26:28 +01:00
import { tool as chmodCalculator } from './chmod-calculator';
2022-07-24 00:58:18 +02:00
import { tool as chronometer } from './chronometer';
2022-04-15 18:50:07 +02:00
import { tool as colorConverter } from './color-converter';
2022-04-14 02:02:05 +02:00
import { tool as crontabGenerator } from './crontab-generator';
2022-04-12 01:43:49 +02:00
import { tool as dateTimeConverter } from './date-time-converter';
import { tool as deviceInformation } from './device-information';
import { tool as cypher } from './encryption';
import { tool as etaCalculator } from './eta-calculator';
2022-04-12 13:24:14 +02:00
import { tool as gitMemo } from './git-memo';
import { tool as hashText } from './hash-text';
2022-08-03 13:59:45 +02:00
import { tool as hmacGenerator } from './hmac-generator';
import { tool as htmlEntities } from './html-entities';
2022-04-12 14:27:52 +02:00
import { tool as baseConverter } from './integer-base-converter';
import { tool as jsonViewer } from './json-viewer';
2023-01-13 18:26:28 +01:00
import { tool as jwtParser } from './jwt-parser';
2022-04-14 00:00:29 +02:00
import { tool as loremIpsumGenerator } from './lorem-ipsum-generator';
import { tool as mathEvaluator } from './math-evaluator';
2022-08-17 14:36:52 +02:00
import { tool as metaTagGenerator } from './meta-tag-generator';
2023-01-13 18:26:28 +01:00
import { tool as mimeTypes } from './mime-types';
import { tool as otpCodeGeneratorAndValidator } from './otp-code-generator-and-validator';
import { tool as qrCodeGenerator } from './qr-code-generator';
import { tool as randomPortGenerator } from './random-port-generator';
import { tool as romanNumeralConverter } from './roman-numeral-converter';
import { tool as sqlPrettify } from './sql-prettify';
import { tool as svgPlaceholderGenerator } from './svg-placeholder-generator';
2023-01-13 18:26:28 +01:00
import { tool as temperatureConverter } from './temperature-converter';
import { tool as textStatistics } from './text-statistics';
import { tool as tokenGenerator } from './token-generator';
2023-01-13 18:26:28 +01:00
import type { ToolCategory } from './tools.types';
import { tool as urlEncoder } from './url-encoder';
import { tool as urlParser } from './url-parser';
import { tool as uuidGenerator } from './uuid-generator';
2022-04-04 00:25:29 +02:00
export const toolsByCategory: ToolCategory[] = [
{
name: 'Crypto',
2023-03-10 18:16:55 +01:00
components: [tokenGenerator, hashText, bcrypt, uuidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator],
2022-04-04 00:25:29 +02:00
},
{
name: 'Converter',
2022-04-22 23:31:40 +02:00
components: [
dateTimeConverter,
baseConverter,
romanNumeralConverter,
base64StringConverter,
base64FileConverter,
2022-04-22 23:31:40 +02:00
colorConverter,
caseConverter,
textToNatoAlphabet,
2022-04-22 23:31:40 +02:00
],
},
2022-04-13 13:29:44 +02:00
{
name: 'Web',
2022-08-24 00:10:53 +02:00
components: [
urlEncoder,
htmlEntities,
urlParser,
deviceInformation,
basicAuthGenerator,
metaTagGenerator,
otpCodeGeneratorAndValidator,
mimeTypes,
jwtParser,
2023-02-06 23:11:22 +01:00
keycodeInfo,
2023-02-10 22:06:32 +01:00
slugifyString,
2023-03-26 19:04:42 +02:00
htmlWysiwygEditor,
userAgentParser,
2022-08-24 00:10:53 +02:00
],
},
{
name: 'Images',
components: [qrCodeGenerator, svgPlaceholderGenerator],
2022-04-13 13:29:44 +02:00
},
2022-04-12 13:24:14 +02:00
{
name: 'Development',
components: [
gitMemo,
randomPortGenerator,
crontabGenerator,
jsonViewer,
jsonMinify,
sqlPrettify,
chmodCalculator,
dockerRunToDockerComposeConverter,
],
2022-04-12 13:24:14 +02:00
},
2023-03-28 23:31:11 +02:00
{
name: 'Network',
components: [ipv4SubnetCalculator],
},
2022-06-02 00:10:03 +02:00
{
name: 'Math',
components: [mathEvaluator, etaCalculator],
2022-06-02 00:10:03 +02:00
},
2022-07-24 00:58:18 +02:00
{
name: 'Measurement',
components: [chronometer, temperatureConverter, benchmarkBuilder],
2022-07-24 00:58:18 +02:00
},
2022-04-14 00:00:29 +02:00
{
name: 'Text',
2022-04-14 01:06:06 +02:00
components: [loremIpsumGenerator, textStatistics],
2022-04-14 00:00:29 +02:00
},
2022-04-04 00:25:29 +02:00
];
2022-04-04 00:24:45 +02:00
export const tools = toolsByCategory.flatMap(({ components }) => components);
2022-04-22 23:31:40 +02:00
export const toolsWithCategory = toolsByCategory.flatMap(({ components, name }) =>
components.map((tool) => ({ category: name, ...tool })),
);