mirror of
https://github.com/CorentinTh/it-tools.git
synced 2024-09-11 13:37:53 +03:00
Compare commits
3 Commits
6be371be72
...
2bd17e94cc
Author | SHA1 | Date | |
---|---|---|---|
|
2bd17e94cc | ||
|
f19aeaf418 | ||
|
2ef2b39fbc |
@ -138,5 +138,6 @@
|
|||||||
"vitest": "^0.34.0",
|
"vitest": "^0.34.0",
|
||||||
"workbox-window": "^7.0.0",
|
"workbox-window": "^7.0.0",
|
||||||
"zx": "^7.2.1"
|
"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', () => {
|
for (const tool of _.flatten(toolsByCategory.map(category => category.components))) {
|
||||||
test.beforeEach(async ({ page }) => {
|
test.describe(`Tool - ${tool.name}`, () => {
|
||||||
await page.goto('/api-tester');
|
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 base64FileConverter } from './base64-file-converter';
|
||||||
import { tool as base64StringConverter } from './base64-string-converter';
|
import { tool as base64StringConverter } from './base64-string-converter';
|
||||||
import { tool as basicAuthGenerator } from './basic-auth-generator';
|
import { tool as basicAuthGenerator } from './basic-auth-generator';
|
||||||
|
|
||||||
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
import { tool as asciiTextDrawer } from './ascii-text-drawer';
|
||||||
|
|
||||||
import { tool as textToUnicode } from './text-to-unicode';
|
import { tool as textToUnicode } from './text-to-unicode';
|
||||||
import { tool as safelinkDecoder } from './safelink-decoder';
|
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 pdfSignatureChecker } from './pdf-signature-checker';
|
||||||
import { tool as numeronymGenerator } from './numeronym-generator';
|
import { tool as numeronymGenerator } from './numeronym-generator';
|
||||||
import { tool as macAddressGenerator } from './mac-address-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 xmlFormatter } from './xml-formatter';
|
||||||
import { tool as yamlViewer } from './yaml-viewer';
|
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[] = [
|
export const toolsByCategory: ToolCategory[] = [
|
||||||
{
|
{
|
||||||
name: 'Crypto',
|
name: 'Crypto',
|
||||||
components: [
|
components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker],
|
||||||
tokenGenerator,
|
|
||||||
hashText,
|
|
||||||
fileHasher,
|
|
||||||
bcrypt,
|
|
||||||
uuidGenerator,
|
|
||||||
ulidGenerator,
|
|
||||||
cypher,
|
|
||||||
bip39,
|
|
||||||
hmacGenerator,
|
|
||||||
rsaKeyPairGenerator,
|
|
||||||
passwordStrengthAnalyser,
|
|
||||||
pdfSignatureChecker,
|
|
||||||
// pdfEncrypt,
|
|
||||||
// pdfLinearize,
|
|
||||||
// pdfUnlock,
|
|
||||||
// pgpKeygen,
|
|
||||||
// pgpEncryption,
|
|
||||||
// rsaEncryption,
|
|
||||||
certificateKeyParser,
|
|
||||||
// ecdsaKeyPairGenerator,
|
|
||||||
rsaEcdsaSigning,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Converter',
|
name: 'Converter',
|
||||||
@ -213,15 +107,6 @@ export const toolsByCategory: ToolCategory[] = [
|
|||||||
listConverter,
|
listConverter,
|
||||||
tomlToJson,
|
tomlToJson,
|
||||||
tomlToYaml,
|
tomlToYaml,
|
||||||
excelToMd,
|
|
||||||
hddCalculator,
|
|
||||||
raidCalculator,
|
|
||||||
zpoolCalculator,
|
|
||||||
// morseConverter,
|
|
||||||
jsonToGo,
|
|
||||||
jsonToCsharp,
|
|
||||||
rmbNumbers,
|
|
||||||
markdownTocGenerator,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -243,99 +128,39 @@ export const toolsByCategory: ToolCategory[] = [
|
|||||||
httpStatusCodes,
|
httpStatusCodes,
|
||||||
jsonDiff,
|
jsonDiff,
|
||||||
safelinkDecoder,
|
safelinkDecoder,
|
||||||
folderStructureDiagram,
|
|
||||||
whatsappUrl,
|
|
||||||
rsyncGenerator,
|
|
||||||
tcpdumpGenerator,
|
|
||||||
torrentToMagnet,
|
|
||||||
apiTester,
|
|
||||||
imageToCss,
|
|
||||||
jsonToPhpArray,
|
|
||||||
phpArrayToJson,
|
|
||||||
maliciousLinksTester,
|
|
||||||
sslChecker,
|
|
||||||
jsUnobfuscator,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Images and videos',
|
name: 'Images and videos',
|
||||||
components: [
|
components: [qrCodeGenerator, wifiQrCodeGenerator, svgPlaceholderGenerator, cameraRecorder],
|
||||||
qrCodeGenerator,
|
|
||||||
wifiQrCodeGenerator,
|
|
||||||
svgPlaceholderGenerator,
|
|
||||||
cameraRecorder,
|
|
||||||
ocrImage,
|
|
||||||
// heicConverter,
|
|
||||||
barcodeReader,
|
|
||||||
barcodeGenerator,
|
|
||||||
potrace,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Development',
|
name: 'Development',
|
||||||
components: [
|
components: [
|
||||||
gitMemo,
|
gitMemo,
|
||||||
// nanoMemo,
|
|
||||||
randomPortGenerator,
|
randomPortGenerator,
|
||||||
crontabGenerator,
|
crontabGenerator,
|
||||||
jsonViewer,
|
jsonViewer,
|
||||||
jsonMinify,
|
jsonMinify,
|
||||||
// jsonLinter,
|
|
||||||
jsonSizeAnalyzer,
|
|
||||||
jsonToCsv,
|
jsonToCsv,
|
||||||
sqlPrettify,
|
sqlPrettify,
|
||||||
chmodCalculator,
|
chmodCalculator,
|
||||||
dockerRunToDockerComposeConverter,
|
dockerRunToDockerComposeConverter,
|
||||||
xmlFormatter,
|
xmlFormatter,
|
||||||
yamlViewer,
|
yamlViewer,
|
||||||
nginxReverseMaker,
|
|
||||||
traefikComposeMaker,
|
|
||||||
excelToSql,
|
|
||||||
// nginxFormatter,
|
|
||||||
// fileType,
|
|
||||||
curlGenerator,
|
|
||||||
regexTester,
|
|
||||||
jsonEditor,
|
|
||||||
commonRegexMemo,
|
|
||||||
xsltTester,
|
|
||||||
jsonToSchema,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Network',
|
name: 'Network',
|
||||||
components: [
|
components: [ipv4SubnetCalculator, ipv4AddressConverter, ipv4RangeExpander, macAddressLookup, macAddressGenerator, ipv6UlaGenerator],
|
||||||
ipv4SubnetCalculator,
|
|
||||||
// ipv6SubnetCalculator,
|
|
||||||
ipv4AddressConverter,
|
|
||||||
// ipv6AddressConverter,
|
|
||||||
// ipCIDRToRange,
|
|
||||||
ipv4RangeExpander,
|
|
||||||
macAddressLookup,
|
|
||||||
macAddressGenerator,
|
|
||||||
ipv6UlaGenerator,
|
|
||||||
// portNumbers,
|
|
||||||
harSanitizer,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Math',
|
name: 'Math',
|
||||||
components: [
|
components: [mathEvaluator, etaCalculator, percentageCalculator],
|
||||||
mathEvaluator,
|
|
||||||
etaCalculator,
|
|
||||||
ttlCalculator,
|
|
||||||
percentageCalculator,
|
|
||||||
mathFormatsConverter,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Measurement',
|
name: 'Measurement',
|
||||||
components: [
|
components: [chronometer, temperatureConverter, benchmarkBuilder],
|
||||||
chronometer,
|
|
||||||
temperatureConverter,
|
|
||||||
benchmarkBuilder,
|
|
||||||
daysCalculator,
|
|
||||||
slaCalculator,
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Text',
|
name: 'Text',
|
||||||
@ -347,19 +172,11 @@ export const toolsByCategory: ToolCategory[] = [
|
|||||||
textDiff,
|
textDiff,
|
||||||
numeronymGenerator,
|
numeronymGenerator,
|
||||||
asciiTextDrawer,
|
asciiTextDrawer,
|
||||||
unicodeFormatter,
|
|
||||||
// markdownEditor,
|
|
||||||
icalGenerator,
|
|
||||||
icalParser,
|
|
||||||
iso3166Searcher,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Data',
|
name: 'Data',
|
||||||
components: [
|
components: [phoneParserAndFormatter, ibanValidatorAndParser],
|
||||||
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