it-tools/src/tools/index.ts

91 lines
3.2 KiB
TypeScript
Raw Normal View History

2022-04-04 00:25:29 +02:00
import { LockOpen } from '@vicons/tabler';
2022-05-25 23:20:51 +02:00
import type { ToolCategory } from './tool';
2022-03-31 00:33:29 +02:00
import { tool as base64FileConverter } from './base64-file-converter';
import { tool as base64StringConverter } from './base64-string-converter';
import { tool as basicAuthGenerator } from './basic-auth-generator';
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';
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';
2022-04-14 00:00:29 +02:00
import { tool as loremIpsumGenerator } from './lorem-ipsum-generator';
import { tool as mathEvaluator } from './math-evaluator';
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';
import { tool as textStatistics } from './text-statistics';
import { tool as tokenGenerator } from './token-generator';
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',
icon: LockOpen,
2022-08-03 13:59:45 +02:00
components: [tokenGenerator, hashText, bcrypt, uuidGenerator, cypher, bip39, hmacGenerator],
2022-04-04 00:25:29 +02:00
},
{
name: 'Converter',
icon: LockOpen,
2022-04-22 23:31:40 +02:00
components: [
dateTimeConverter,
baseConverter,
romanNumeralConverter,
base64StringConverter,
base64FileConverter,
2022-04-22 23:31:40 +02:00
colorConverter,
caseConverter,
],
},
2022-04-13 13:29:44 +02:00
{
name: 'Web',
icon: LockOpen,
components: [urlEncoder, htmlEntities, urlParser, deviceInformation, basicAuthGenerator],
},
{
name: 'Images',
icon: LockOpen,
components: [qrCodeGenerator, svgPlaceholderGenerator],
2022-04-13 13:29:44 +02:00
},
2022-04-12 13:24:14 +02:00
{
name: 'Development',
icon: LockOpen,
components: [gitMemo, randomPortGenerator, crontabGenerator, jsonViewer, sqlPrettify],
2022-04-12 13:24:14 +02:00
},
2022-06-02 00:10:03 +02:00
{
name: 'Math',
icon: LockOpen,
components: [mathEvaluator, etaCalculator],
2022-06-02 00:10:03 +02:00
},
2022-07-24 00:58:18 +02:00
{
name: 'Measurement',
icon: LockOpen,
components: [chronometer],
},
2022-04-14 00:00:29 +02:00
{
name: 'Text',
icon: LockOpen,
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 })),
);