mirror of
https://github.com/CorentinTh/it-tools.git
synced 2024-08-16 08:40:44 +03:00
Compare commits
3 Commits
6be371be72
...
2bd17e94cc
Author | SHA1 | Date | |
---|---|---|---|
|
2bd17e94cc | ||
|
f19aeaf418 | ||
|
2ef2b39fbc |
@ -138,5 +138,6 @@
|
||||
"vitest": "^0.34.0",
|
||||
"workbox-window": "^7.0.0",
|
||||
"zx": "^7.2.1"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@8.15.3"
|
||||
}
|
||||
|
@ -1,15 +1,15 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { expect, test } from '@playwright/test';
|
||||
import _ from 'lodash';
|
||||
import { toolsByCategory } from './index';
|
||||
|
||||
test.describe('Tool - Api tester', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto('/api-tester');
|
||||
for (const tool of _.flatten(toolsByCategory.map(category => category.components))) {
|
||||
test.describe(`Tool - ${tool.name}`, () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto(tool.path);
|
||||
});
|
||||
|
||||
test('Loads correctly (has correct title)', async ({ page }) => {
|
||||
await expect(page).toHaveTitle(`${tool.name} - IT Tools`);
|
||||
});
|
||||
});
|
||||
|
||||
test('Has correct title', async ({ page }) => {
|
||||
await expect(page).toHaveTitle('Api tester - IT Tools');
|
||||
});
|
||||
|
||||
test('', async ({ page }) => {
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -1,87 +1,11 @@
|
||||
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 asciiTextDrawer } from './ascii-text-drawer';
|
||||
|
||||
import { tool as textToUnicode } from './text-to-unicode';
|
||||
import { tool as safelinkDecoder } from './safelink-decoder';
|
||||
import { tool as sensitiveDataMasker } from './sensitive-data-masker';
|
||||
import { tool as textToUnicodeNames } from './text-to-unicode-names';
|
||||
import { tool as stringEscaper } from './string-escaper';
|
||||
import { tool as youtubeInfo } from './youtube-info';
|
||||
import { tool as crcCalculator } from './crc-calculator';
|
||||
import { tool as jsonEditorFromSchema } from './json-editor-from-schema';
|
||||
import { tool as jsonSchemaToJsdoc } from './json-schema-to-jsdoc';
|
||||
import { tool as jsonSchemaToTs } from './json-schema-to-ts';
|
||||
import { tool as tsToJsonSchema } from './ts-to-json-schema';
|
||||
import { tool as jsonToSchema } from './json-to-schema';
|
||||
import { tool as jsUnobfuscator } from './js-unobfuscator';
|
||||
import { tool as potrace } from './potrace';
|
||||
import { tool as rsaEcdsaSigning } from './rsa-ecdsa-signing';
|
||||
import { tool as apiTester } from './api-tester';
|
||||
import { tool as jsonSizeAnalyzer } from './json-size-analyzer';
|
||||
import { tool as imageToCss } from './image-to-css';
|
||||
import { tool as markdownTocGenerator } from './markdown-toc-generator';
|
||||
import { tool as jsonToPhpArray } from './json-to-php-array';
|
||||
import { tool as phpArrayToJson } from './php-array-to-json';
|
||||
import { tool as fileHasher } from './file-hasher';
|
||||
import { tool as jsonToCsharp } from './json-to-csharp';
|
||||
import { tool as jsonEditor } from './json-editor';
|
||||
import { tool as commonRegexMemo } from './common-regex-memo';
|
||||
import { tool as maliciousLinksTester } from './malicious-links-tester';
|
||||
import { tool as xsltTester } from './xslt-tester';
|
||||
import { tool as sslChecker } from './ssl-checker';
|
||||
import { tool as mathFormatsConverter } from './math-formats-converter';
|
||||
import { tool as slaCalculator } from './sla-calculator';
|
||||
|
||||
// import { tool as durationCalculator } from './duration-calculator';
|
||||
// import { tool as htmlToInnerText } from './html-to-inner-text';
|
||||
// import { tool as airCodes } from './air-codes';
|
||||
// import { tool as portNumbers } from './port-numbers';
|
||||
import { tool as whatsappUrl } from './whatsapp-url';
|
||||
import { tool as jsonToGo } from './json-to-go';
|
||||
|
||||
// import { tool as nanoMemo } from './nano-memo';
|
||||
import { tool as harSanitizer } from './har-sanitizer';
|
||||
import { tool as curlGenerator } from './curl-generator';
|
||||
import { tool as iso3166Searcher } from './iso-3166-searcher';
|
||||
import { tool as barcodeReader } from './barcode-reader';
|
||||
import { tool as barcodeGenerator } from './barcode-generator';
|
||||
import { tool as regexTester } from './regex-tester';
|
||||
import { tool as rmbNumbers } from './rmb-numbers';
|
||||
import { tool as rsyncGenerator } from './rsync-generator';
|
||||
import { tool as tcpdumpGenerator } from './tcpdump-generator';
|
||||
import { tool as torrentToMagnet } from './torrent-to-magnet';
|
||||
|
||||
// import { tool as ecdsaKeyPairGenerator } from './ecdsa-key-pair-generator';
|
||||
import { tool as ttlCalculator } from './ttl-calculator';
|
||||
import { tool as certificateKeyParser } from './certificate-key-parser';
|
||||
import { tool as icalParser } from './ical-parser';
|
||||
import { tool as icalGenerator } from './ical-generator';
|
||||
|
||||
// import { tool as morseConverter } from './morse-converter';
|
||||
// import { tool as pgpKeygen } from './pgp-keygen';
|
||||
// import { tool as pgpEncryption } from './pgp-encryption';
|
||||
// import { tool as rsaEncryption } from './rsa-encryption';
|
||||
// import { tool as fileType } from './file-type';
|
||||
// import { tool as heicConverter } from './heic-converter';
|
||||
import { tool as unicodeFormatter } from './unicode-formatter';
|
||||
import { tool as hddCalculator } from './hdd-calculator';
|
||||
|
||||
// import { tool as markdownEditor } from './markdown-editor';
|
||||
import { tool as daysCalculator } from './days-calculator';
|
||||
import { tool as zpoolCalculator } from './zpool-calculator';
|
||||
import { tool as raidCalculator } from './raid-calculator';
|
||||
import { tool as excelToMd } from './excel-to-md';
|
||||
|
||||
// import { tool as jsonLinter } from './json-linter';
|
||||
// import { tool as nginxFormatter } from './nginx-formatter';
|
||||
import { tool as folderStructureDiagram } from './folder-structure-diagram';
|
||||
|
||||
// import { tool as ipv6SubnetCalculator } from './ipv6-subnet-calculator';
|
||||
import { tool as nginxReverseMaker } from './nginx-reverse-maker';
|
||||
import { tool as traefikComposeMaker } from './traefik-compose-maker';
|
||||
import { tool as excelToSql } from './excel-to-sql';
|
||||
import { tool as ocrImage } from './ocr-image';
|
||||
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
|
||||
import { tool as numeronymGenerator } from './numeronym-generator';
|
||||
import { tool as macAddressGenerator } from './mac-address-generator';
|
||||
@ -158,40 +82,10 @@ import { tool as macAddressLookup } from './mac-address-lookup';
|
||||
import { tool as xmlFormatter } from './xml-formatter';
|
||||
import { tool as yamlViewer } from './yaml-viewer';
|
||||
|
||||
// import { tool as pdfEncrypt } from './pdf-encrypt';
|
||||
// import { tool as pdfLinearize } from './pdf-linearize';
|
||||
// import { tool as pdfUnlock } from './pdf-unlock';
|
||||
import { tool as yamlViewer } from './yaml-viewer';
|
||||
|
||||
// import { tool as ipv6AddressConverter } from './ipv6-address-converter';
|
||||
// import { tool as ipCIDRToRange } from './ip-cidr-to-range';
|
||||
|
||||
export const toolsByCategory: ToolCategory[] = [
|
||||
{
|
||||
name: 'Crypto',
|
||||
components: [
|
||||
tokenGenerator,
|
||||
hashText,
|
||||
fileHasher,
|
||||
bcrypt,
|
||||
uuidGenerator,
|
||||
ulidGenerator,
|
||||
cypher,
|
||||
bip39,
|
||||
hmacGenerator,
|
||||
rsaKeyPairGenerator,
|
||||
passwordStrengthAnalyser,
|
||||
pdfSignatureChecker,
|
||||
// pdfEncrypt,
|
||||
// pdfLinearize,
|
||||
// pdfUnlock,
|
||||
// pgpKeygen,
|
||||
// pgpEncryption,
|
||||
// rsaEncryption,
|
||||
certificateKeyParser,
|
||||
// ecdsaKeyPairGenerator,
|
||||
rsaEcdsaSigning,
|
||||
],
|
||||
components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker],
|
||||
},
|
||||
{
|
||||
name: 'Converter',
|
||||
@ -213,15 +107,6 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
listConverter,
|
||||
tomlToJson,
|
||||
tomlToYaml,
|
||||
excelToMd,
|
||||
hddCalculator,
|
||||
raidCalculator,
|
||||
zpoolCalculator,
|
||||
// morseConverter,
|
||||
jsonToGo,
|
||||
jsonToCsharp,
|
||||
rmbNumbers,
|
||||
markdownTocGenerator,
|
||||
],
|
||||
},
|
||||
{
|
||||
@ -243,99 +128,39 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
httpStatusCodes,
|
||||
jsonDiff,
|
||||
safelinkDecoder,
|
||||
folderStructureDiagram,
|
||||
whatsappUrl,
|
||||
rsyncGenerator,
|
||||
tcpdumpGenerator,
|
||||
torrentToMagnet,
|
||||
apiTester,
|
||||
imageToCss,
|
||||
jsonToPhpArray,
|
||||
phpArrayToJson,
|
||||
maliciousLinksTester,
|
||||
sslChecker,
|
||||
jsUnobfuscator,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Images and videos',
|
||||
components: [
|
||||
qrCodeGenerator,
|
||||
wifiQrCodeGenerator,
|
||||
svgPlaceholderGenerator,
|
||||
cameraRecorder,
|
||||
ocrImage,
|
||||
// heicConverter,
|
||||
barcodeReader,
|
||||
barcodeGenerator,
|
||||
potrace,
|
||||
],
|
||||
components: [qrCodeGenerator, wifiQrCodeGenerator, svgPlaceholderGenerator, cameraRecorder],
|
||||
},
|
||||
{
|
||||
name: 'Development',
|
||||
components: [
|
||||
gitMemo,
|
||||
// nanoMemo,
|
||||
randomPortGenerator,
|
||||
crontabGenerator,
|
||||
jsonViewer,
|
||||
jsonMinify,
|
||||
// jsonLinter,
|
||||
jsonSizeAnalyzer,
|
||||
jsonToCsv,
|
||||
sqlPrettify,
|
||||
chmodCalculator,
|
||||
dockerRunToDockerComposeConverter,
|
||||
xmlFormatter,
|
||||
yamlViewer,
|
||||
nginxReverseMaker,
|
||||
traefikComposeMaker,
|
||||
excelToSql,
|
||||
// nginxFormatter,
|
||||
// fileType,
|
||||
curlGenerator,
|
||||
regexTester,
|
||||
jsonEditor,
|
||||
commonRegexMemo,
|
||||
xsltTester,
|
||||
jsonToSchema,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Network',
|
||||
components: [
|
||||
ipv4SubnetCalculator,
|
||||
// ipv6SubnetCalculator,
|
||||
ipv4AddressConverter,
|
||||
// ipv6AddressConverter,
|
||||
// ipCIDRToRange,
|
||||
ipv4RangeExpander,
|
||||
macAddressLookup,
|
||||
macAddressGenerator,
|
||||
ipv6UlaGenerator,
|
||||
// portNumbers,
|
||||
harSanitizer,
|
||||
],
|
||||
components: [ipv4SubnetCalculator, ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, ipv6UlaGenerator],
|
||||
},
|
||||
{
|
||||
name: 'Math',
|
||||
components: [
|
||||
mathEvaluator,
|
||||
etaCalculator,
|
||||
ttlCalculator,
|
||||
percentageCalculator,
|
||||
mathFormatsConverter,
|
||||
],
|
||||
components: [mathEvaluator, etaCalculator, percentageCalculator],
|
||||
},
|
||||
{
|
||||
name: 'Measurement',
|
||||
components: [
|
||||
chronometer,
|
||||
temperatureConverter,
|
||||
benchmarkBuilder,
|
||||
daysCalculator,
|
||||
slaCalculator,
|
||||
],
|
||||
components: [chronometer, temperatureConverter, benchmarkBuilder],
|
||||
},
|
||||
{
|
||||
name: 'Text',
|
||||
@ -347,19 +172,11 @@ export const toolsByCategory: ToolCategory[] = [
|
||||
textDiff,
|
||||
numeronymGenerator,
|
||||
asciiTextDrawer,
|
||||
unicodeFormatter,
|
||||
// markdownEditor,
|
||||
icalGenerator,
|
||||
icalParser,
|
||||
iso3166Searcher,
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Data',
|
||||
components: [
|
||||
phoneParserAndFormatter,
|
||||
ibanValidatorAndParser,
|
||||
],
|
||||
components: [phoneParserAndFormatter, ibanValidatorAndParser],
|
||||
},
|
||||
];
|
||||
|
||||
|
8
src/tsconfig.json
Normal file
8
src/tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user