it-tools/src/tools/index.ts

41 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-04-04 00:25:29 +02:00
import { LockOpen } from '@vicons/tabler';
2022-04-04 00:24:45 +02:00
import type { ToolCategory } from './Tool';
2022-03-31 00:33:29 +02:00
2022-04-04 00:25:29 +02:00
import { tool as tokenGenerator } from './token-generator';
2022-04-04 00:25:53 +02:00
import { tool as hashText } from './hash-text';
2022-04-04 21:46:35 +02:00
import { tool as uuidGenerator } from './uuid-generator';
import { tool as romanNumeralConverter } from './roman-numeral-converter';
2022-04-07 22:13:09 +02:00
import { tool as cypher } from './encryption';
2022-04-09 15:17:59 +02:00
import { tool as bip39 } from './bip39-generator';
2022-04-12 01:43:49 +02:00
import { tool as dateTimeConverter } from './date-time-converter';
2022-04-12 13:24:14 +02:00
import { tool as gitMemo } from './git-memo';
2022-04-12 14:27:52 +02:00
import { tool as baseConverter } from './integer-base-converter';
2022-04-13 13:29:44 +02:00
import { tool as urlEncoder } from './url-encoder';
2022-04-13 13:55:41 +02:00
import { tool as randomPortGenerator } from './random-port-generator';
2022-04-04 00:25:29 +02:00
export const toolsByCategory: ToolCategory[] = [
{
name: 'Crypto',
icon: LockOpen,
2022-04-09 15:17:59 +02:00
components: [tokenGenerator, hashText, uuidGenerator, cypher, bip39],
2022-04-04 00:25:29 +02:00
},
{
name: 'Converter',
icon: LockOpen,
2022-04-12 14:27:52 +02:00
components: [dateTimeConverter, baseConverter, romanNumeralConverter],
},
2022-04-13 13:29:44 +02:00
{
name: 'Web',
icon: LockOpen,
components: [urlEncoder],
},
2022-04-12 13:24:14 +02:00
{
name: 'Development',
icon: LockOpen,
2022-04-13 13:55:41 +02:00
components: [gitMemo, randomPortGenerator],
2022-04-12 13:24:14 +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-05 23:23:08 +02:00
export const toolsWithCategory = toolsByCategory.flatMap(({ components, name }) => components.map((tool) => ({ category: name, ...tool })));