it-tools/src/tools/index.ts

27 lines
1,002 B
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-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 01:43:49 +02:00
components: [dateTimeConverter, romanNumeralConverter],
},
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 })));