Compare commits

..
Author SHA1 Message Date
ShareVB 28472157e9 fix: update queryParams 2024-07-14 23:29:42 +02:00
ShareVB 6285453f6d Merge remote-tracking branch 'origin/main' into feat/crc-calculator 2024-07-14 23:29:27 +02:00
sharevb 76a19d218d fix(emoji-picker): debounced search input (#1181)
* fix(Emoji picker): fix lags

Fix #1176 using debounced ref

* chore: fix strange corepack message

Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
2024-07-11 17:06:17 +02:00
ShareVB fd6db9e305 chore: fix strange corepack message
Fix corepack claiming strange thing : UsageError: This project is configured to use yarn because /home/runner/work/it-tools/it-tools/package.json has a "packageManager" field
2024-06-09 14:10:34 +02:00
ShareVB b4f41994db chore: fix pnpm lock 2024-06-09 14:10:12 +02:00
sharevb a69e159986 Merge branch 'main' into feat/crc-calculator 2024-06-09 14:07:36 +02:00
ShareVB 3d91a295b9 Merge branch 'main' into feat/crc-calculator 2024-06-09 14:04:26 +02:00
sharevb e419ed38f4 feat(new tool): CRC calculator
Fix #815
2024-06-09 13:57:22 +02:00
54 changed files with 291 additions and 105 deletions

No files matched your search

+6 -1
View File
@@ -55,6 +55,7 @@ declare module '@vue/runtime-core' {
ColoredCard: typeof import('./src/components/ColoredCard.vue')['default']
CommandPalette: typeof import('./src/modules/command-palette/command-palette.vue')['default']
CommandPaletteOption: typeof import('./src/modules/command-palette/components/command-palette-option.vue')['default']
CrcCalculator: typeof import('./src/tools/crc-calculator/crc-calculator.vue')['default']
CrontabGenerator: typeof import('./src/tools/crontab-generator/crontab-generator.vue')['default']
CSelect: typeof import('./src/ui/c-select/c-select.vue')['default']
'CSelect.demo': typeof import('./src/ui/c-select/c-select.demo.vue')['default']
@@ -132,7 +133,6 @@ declare module '@vue/runtime-core' {
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
NDivider: typeof import('naive-ui')['NDivider']
NEllipsis: typeof import('naive-ui')['NEllipsis']
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NGi: typeof import('naive-ui')['NGi']
NGrid: typeof import('naive-ui')['NGrid']
@@ -145,7 +145,12 @@ declare module '@vue/runtime-core' {
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
NMenu: typeof import('naive-ui')['NMenu']
NScrollbar: typeof import('naive-ui')['NScrollbar']
NSlider: typeof import('naive-ui')['NSlider']
NSpin: typeof import('naive-ui')['NSpin']
NStatistic: typeof import('naive-ui')['NStatistic']
NSwitch: typeof import('naive-ui')['NSwitch']
NTable: typeof import('naive-ui')['NTable']
NTag: typeof import('naive-ui')['NTag']
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']
+3 -2
View File
@@ -52,6 +52,7 @@
"colord": "^2.9.3",
"composerize-ts": "^0.6.2",
"country-code-lookup": "^0.1.0",
"crc": "^4.3.2",
"cron-validator": "^1.3.1",
"cronstrue": "^2.26.0",
"crypto-js": "^4.1.1",
@@ -89,7 +90,6 @@
"uuid": "^9.0.0",
"vue": "^3.3.4",
"vue-i18n": "^9.9.1",
"vue-markdown-render": "^2.2.1",
"vue-router": "^4.1.6",
"vue-tsc": "^1.8.1",
"xml-formatter": "^3.3.2",
@@ -139,5 +139,6 @@
"vitest": "^0.34.0",
"workbox-window": "^7.0.0",
"zx": "^7.2.1"
}
},
"packageManager": "pnpm@8.15.3"
}
+20 -19
View File
@@ -56,6 +56,9 @@ dependencies:
country-code-lookup:
specifier: ^0.1.0
version: 0.1.0
crc:
specifier: ^4.3.2
version: 4.3.2
cron-validator:
specifier: ^1.3.1
version: 1.3.1
@@ -167,9 +170,6 @@ dependencies:
vue-i18n:
specifier: ^9.9.1
version: 9.9.1(vue@3.3.4)
vue-markdown-render:
specifier: ^2.2.1
version: 2.2.1(vue@3.3.4)
vue-router:
specifier: ^4.1.6
version: 4.1.6(vue@3.3.4)
@@ -3357,7 +3357,7 @@ packages:
dependencies:
'@unhead/dom': 0.5.1
'@unhead/schema': 0.5.1
'@vueuse/shared': 10.11.0(vue@3.3.4)
'@vueuse/shared': 10.10.0(vue@3.3.4)
unhead: 0.5.1
vue: 3.3.4
transitivePeerDependencies:
@@ -3990,10 +3990,10 @@ packages:
- vue
dev: false
/@vueuse/shared@10.11.0(vue@3.3.4):
resolution: {integrity: sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==}
/@vueuse/shared@10.10.0(vue@3.3.4):
resolution: {integrity: sha512-2aW33Ac0Uk0U+9yo3Ypg9s5KcR42cuehRWl7vnUHadQyFvCktseyxxEPBi1Eiq4D2yBGACOnqLZpx1eMc7g5Og==}
dependencies:
vue-demi: 0.14.8(vue@3.3.4)
vue-demi: 0.14.7(vue@3.3.4)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
@@ -4002,7 +4002,7 @@ packages:
/@vueuse/shared@10.3.0(vue@3.3.4):
resolution: {integrity: sha512-kGqCTEuFPMK4+fNWy6dUOiYmxGcUbtznMwBZLC1PubidF4VZY05B+Oht7Jh7/6x4VOWGpvu3R37WHi81cKpiqg==}
dependencies:
vue-demi: 0.14.5(vue@3.3.4)
vue-demi: 0.14.7(vue@3.3.4)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
@@ -4623,6 +4623,16 @@ packages:
resolution: {integrity: sha512-IOI66HEG+8bXfWPy+sTzuN7161vmDZOHg1wgIPFf3WfD73FeLajnn6C+fnxOIa9RL1WRBDMXQQWW/FOaOYaQ3w==}
dev: false
/crc@4.3.2:
resolution: {integrity: sha512-uGDHf4KLLh2zsHa8D8hIQ1H/HtFQhyHrc0uhHBcoKGol/Xnb+MPYfUMw7cvON6ze/GUESTudKayDcJC5HnJv1A==}
engines: {node: '>=12'}
peerDependencies:
buffer: '>=6.0.3'
peerDependenciesMeta:
buffer:
optional: true
dev: false
/crelt@1.0.6:
resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==}
dev: false
@@ -9161,8 +9171,8 @@ packages:
vue: 3.3.4
dev: false
/vue-demi@0.14.8(vue@3.3.4):
resolution: {integrity: sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==}
/vue-demi@0.14.7(vue@3.3.4):
resolution: {integrity: sha512-EOG8KXDQNwkJILkx/gPcoL/7vH+hORoBaKgGe+6W7VFMvCYJfmF2dGbvgDroVnI8LU7/kTu8mbjRZGBU1z9NTA==}
engines: {node: '>=12'}
hasBin: true
requiresBuild: true
@@ -9205,15 +9215,6 @@ packages:
'@vue/devtools-api': 6.5.0
vue: 3.3.4
/vue-markdown-render@2.2.1(vue@3.3.4):
resolution: {integrity: sha512-XkYnC0PMdbs6Vy6j/gZXSvCuOS0787Se5COwXlepRqiqPiunyCIeTPQAO2XnB4Yl04EOHXwLx5y6IuszMWSgyQ==}
peerDependencies:
vue: ^3.3.4
dependencies:
markdown-it: 13.0.2
vue: 3.3.4
dev: false
/vue-router@4.1.6(vue@3.3.4):
resolution: {integrity: sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==}
peerDependencies:
+21
View File
@@ -0,0 +1,21 @@
import _ from 'lodash';
function useDebouncedRef<T>(initialValue: T, delay: number, immediate: boolean = false) {
const state = ref(initialValue);
const debouncedRef = customRef((track, trigger) => ({
get() {
track();
return state.value;
},
set: _.debounce(
(value) => {
state.value = value;
trigger();
},
delay,
{ leading: immediate },
),
}));
return debouncedRef;
}
export default useDebouncedRef;
+32 -1
View File
@@ -1,7 +1,8 @@
import { useRouteQuery } from '@vueuse/router';
import { computed } from 'vue';
import { useStorage } from '@vueuse/core';
export { useQueryParam };
export { useQueryParam, useQueryParamOrStorage };
const transformers = {
number: {
@@ -16,6 +17,12 @@ const transformers = {
fromQuery: (value: string) => value.toLowerCase() === 'true',
toQuery: (value: boolean) => (value ? 'true' : 'false'),
},
object: {
fromQuery: (value: string) => {
return JSON.parse(value);
},
toQuery: (value: object) => JSON.stringify(value),
},
};
function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue: T }) {
@@ -33,3 +40,27 @@ function useQueryParam<T>({ name, defaultValue }: { name: string; defaultValue:
},
});
}
function useQueryParamOrStorage<T>({ name, storageName, defaultValue }: { name: string; storageName: string; defaultValue: T }) {
const type = typeof defaultValue;
const transformer = transformers[type as keyof typeof transformers] ?? transformers.string;
const storageRef = useStorage(storageName, defaultValue);
const proxyDefaultValue = transformer.toQuery(defaultValue as never);
const proxy = useRouteQuery(name, proxyDefaultValue);
const r = ref(defaultValue);
watch(r,
(value) => {
proxy.value = transformer.toQuery(value as never);
storageRef.value = value as never;
},
{ deep: true });
r.value = (proxy.value && proxy.value !== proxyDefaultValue
? transformer.fromQuery(proxy.value) as unknown as T
: storageRef.value as T) as never;
return r;
}
-35
View File
@@ -2,9 +2,7 @@
import { useRoute } from 'vue-router';
import { useHead } from '@vueuse/head';
import type { HeadObject } from '@vueuse/head';
import VueMarkdown from 'vue-markdown-render';
import { useThemeVars } from 'naive-ui';
import BaseLayout from './base.layout.vue';
import FavoriteButton from '@/components/FavoriteButton.vue';
import type { Tool } from '@/tools/tools.types';
@@ -30,23 +28,6 @@ const { t } = useI18n();
const i18nKey = computed<string>(() => route.path.trim().replace('/', ''));
const toolTitle = computed<string>(() => t(`tools.${i18nKey.value}.title`, String(route.meta.name)));
const toolDescription = computed<string>(() => t(`tools.${i18nKey.value}.description`, String(route.meta.description)));
const toolFooter = computed<string>(() => {
const createLink = (linkText: string, url: string) => {
return `[${linkText.replace('[', '\\[').replace(']', '\\]')}](${url.replace('(', '%28').replace(')', '%29')})`;
};
let footer = t(`tools.${i18nKey.value}.footer`, String(route.meta.footer));
if (footer === 'undefined') {
footer = '';
}
const npmPackages = (route.meta.npmPackages as string[] || [])
.map(
packageName => createLink(
packageName,
packageName.includes('://') ? packageName : `https://www.npmjs.com/package/${packageName}`),
);
return ((npmPackages.length > 0 ? `Made with ${npmPackages.join(', ')}\n` : '') + footer).trim();
});
const themeVars = useThemeVars();
</script>
<template>
@@ -74,10 +55,6 @@ const themeVars = useThemeVars();
<div class="tool-content">
<slot />
</div>
<div class="tool-footer">
<VueMarkdown :source="toolFooter" />
</div>
</BaseLayout>
</template>
@@ -89,11 +66,9 @@ const themeVars = useThemeVars();
align-items: flex-start;
flex-wrap: wrap;
gap: 16px;
overflow-x: auto;
::v-deep(& > *) {
flex: 0 1 600px;
min-width:0;
}
}
@@ -130,14 +105,4 @@ const themeVars = useThemeVars();
}
}
}
.tool-footer {
opacity: 0.7;
font-size: 12px;
text-align: center;
::v-deep(a) {
color: v-bind('themeVars.textColor1');
font-style: italic;
}
}
</style>
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
component: () => import('./ascii-text-drawer.vue'),
icon: Artboard,
createdAt: new Date('2024-03-03'),
npmPackages: ['figlet'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['base64', 'converter', 'upload', 'image', 'file', 'conversion', 'web', 'data', 'format'],
component: () => import('./base64-file-converter.vue'),
icon: FileDigit,
npmPackages: ['js-base64'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./base64-string-converter.vue'),
icon: FileDigit,
redirectFrom: ['/file-to-base64', '/base64-converter'],
npmPackages: ['js-base64'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['bcrypt', 'hash', 'compare', 'password', 'salt', 'round', 'storage', 'crypto'],
component: () => import('./bcrypt.vue'),
icon: LockSquare,
npmPackages: ['bcryptjs'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['BIP39', 'passphrase', 'generator', 'mnemonic', 'entropy'],
component: () => import('./bip39-generator.vue'),
icon: AlignJustified,
npmPackages: ['@it-tools/bip39'],
});
-1
View File
@@ -23,5 +23,4 @@ export const tool = defineTool({
],
component: () => import('./case-converter.vue'),
icon: LetterCaseToggle,
npmPackages: ['change-case'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./color-converter.vue'),
icon: Palette,
redirectFrom: ['/color-picker-converter'],
npmPackages: ['colord'],
});
+168
View File
@@ -0,0 +1,168 @@
<script setup lang="ts">
import type { lib } from 'crypto-js';
import { enc } from 'crypto-js';
import crc from 'crc';
import InputCopyable from '../../components/InputCopyable.vue';
import { convertHexToBin } from '../hash-text/hash-text.service';
import { useQueryParamOrStorage } from '@/composable/queryParams';
import { withDefaultOnError } from '@/utils/defaults';
const status = ref<'idle' | 'done' | 'error' | 'processing'>('idle');
const text = ref('');
const file = ref<File | null>(null);
const defaultCRCValues = {
crc1: '',
crc8: '',
crc81wire: '',
crc8dvbs2: '',
crc16: '',
crc16ccitt: '',
crc16modbus: '',
crc16kermit: '',
crc16xmodem: '',
crc24: '',
crc32: '',
crc32mpeg: '',
crcjam: '',
};
type AlgoNames = keyof typeof defaultCRCValues;
function getCRCs(content: Uint8Array | string) {
return {
crc1: crc.crc1(content).toString(16),
crc8: crc.crc8(content).toString(16),
crc81wire: crc.crc81wire(content).toString(16),
crc8dvbs2: crc.crc8dvbs2(content).toString(16),
crc16: crc.crc16(content).toString(16),
crc16ccitt: crc.crc16ccitt(content).toString(16),
crc16modbus: crc.crc16modbus(content).toString(16),
crc16kermit: crc.crc16kermit(content).toString(16),
crc16xmodem: crc.crc16xmodem(content).toString(16),
crc24: crc.crc24(content).toString(16),
crc32: crc.crc32(content).toString(16),
crc32mpeg: crc.crc32mpeg2(content).toString(16),
crcjam: crc.crcjam(content).toString(16),
};
}
const hashes = ref(defaultCRCValues);
async function onUpload(uploadedFile: File) {
status.value = 'processing';
file.value = uploadedFile;
const buffer = await uploadedFile.arrayBuffer();
text.value = '';
try {
hashes.value = getCRCs(new Uint8Array(buffer));
status.value = 'done';
}
catch (e) {
status.value = 'error';
}
}
const algoWasmNames = Object.keys(defaultCRCValues) as AlgoNames[];
type Encoding = keyof typeof enc | 'Bin';
const encoding = useQueryParamOrStorage<Encoding>({ defaultValue: 'Hex', storageName: 'hash-text:encoding', name: 'encoding' });
function formatWithEncoding(words: lib.WordArray, encoding: Encoding) {
if (encoding === 'Bin') {
return convertHexToBin(words.toString(enc.Hex));
}
return words.toString(enc[encoding]);
}
const CRCValues = computed(() => withDefaultOnError(() => {
const encodingValue = encoding.value;
const hashesValue = hashes.value;
const ret = defaultCRCValues;
for (const algo of algoWasmNames) {
ret[algo] = formatWithEncoding(enc.Hex.parse(hashesValue[algo]), encodingValue);
}
return ret;
}, defaultCRCValues));
watch(text,
(_, newValue) => {
if (newValue === '') {
return;
}
file.value = null;
hashes.value = getCRCs(newValue);
status.value = 'done';
},
);
</script>
<template>
<div>
<c-card>
<c-file-upload
title="Drag and drop a file here, or click to select a file"
@file-upload="onUpload"
/>
<p>OR</p>
<c-input-text
v-model:value="text"
multiline raw-text
placeholder="Paste string to CRC..." rows="3"
autosize autofocus label="Your text to CRC:"
/>
<n-divider />
<c-select
v-model:value="encoding"
mb-4
label="Digest encoding"
:options="[
{
label: 'Binary (base 2)',
value: 'Bin',
},
{
label: 'Hexadecimal (base 16)',
value: 'Hex',
},
{
label: 'Base64 (base 64)',
value: 'Base64',
},
{
label: 'Base64url (base 64 with url safe chars)',
value: 'Base64url',
},
]"
/>
</c-card>
<div mt-3 flex justify-center>
<c-alert v-if="status === 'error'" type="error">
An error occured hashing file.
</c-alert>
<n-spin
v-if="status === 'processing'"
size="small"
/>
</div>
<c-card v-if="status === 'done'" :title="file === null ? 'CRC of text' : `CRC of ${file?.name}`">
<div v-for="algo in algoWasmNames" :key="algo" style="margin: 5px 0">
<n-input-group>
<n-input-group-label style="flex: 0 0 120px">
{{ algo.toUpperCase() }}
</n-input-group-label>
<InputCopyable :value="CRCValues[algo]" readonly />
</n-input-group>
</div>
</c-card>
</div>
</template>
+24
View File
@@ -0,0 +1,24 @@
import { EyeOff } from '@vicons/tabler';
import { defineTool } from '../tool';
export const tool = defineTool({
name: 'CRC calculator',
path: '/crc-calculator',
description: 'Compute text or file CRC (CRC1, CRC8, CRC8 1-Wire, CRC8 DVB-S2, CRC16, CRC16 CCITT, CRC16 Modbus, CRC16 Kermit, CRC16 XModem, CRC24, CRC32, CRC32 MPEG-2, CRCJAM)',
keywords: ['crc', 'checksum', 'crc1',
'crc8',
'crc8 1-wire',
'crc8 dvb-s2',
'crc16',
'crc16 ccitt',
'crc16 modbus',
'crc16 kermit',
'crc16 xmodem',
'crc24',
'crc32',
'crc32 mpeg-2',
'crcjam'],
component: () => import('./crc-calculator.vue'),
icon: EyeOff,
createdAt: new Date('2024-05-11'),
});
-1
View File
@@ -23,5 +23,4 @@ export const tool = defineTool({
],
component: () => import('./crontab-generator.vue'),
icon: Alarm,
npmPackages: ['cronstrue'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'month', 'day', 'minute', 'seconde'],
component: () => import('./date-time-converter.vue'),
icon: Calendar,
npmPackages: ['date-fns'],
});
+2 -1
View File
@@ -4,6 +4,7 @@ import emojiKeywords from 'emojilib';
import _ from 'lodash';
import type { EmojiInfo } from './emoji.types';
import { useFuzzySearch } from '@/composable/fuzzySearch';
import useDebouncedRef from '@/composable/debouncedref';
const escapeUnicode = ({ emoji }: { emoji: string }) => emoji.split('').map(unit => `\\u${unit.charCodeAt(0).toString(16).padStart(4, '0')}`).join('');
const getEmojiCodePoints = ({ emoji }: { emoji: string }) => emoji.codePointAt(0) ? `0x${emoji.codePointAt(0)?.toString(16)}` : undefined;
@@ -23,7 +24,7 @@ const emojisGroups: { emojiInfos: EmojiInfo[]; group: string }[] = _
.map((emojiInfos, group) => ({ group, emojiInfos }))
.value();
const searchQuery = ref('');
const searchQuery = useDebouncedRef('', 500);
const { searchResult } = useFuzzySearch({
search: searchQuery,
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./emoji-picker.vue'),
icon: MoodSmile,
createdAt: new Date('2023-08-07'),
npmPackages: ['unicode-emoji-json', 'emojilib'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./encryption.vue'),
icon: Lock,
redirectFrom: ['/cypher'],
npmPackages: ['crypto-s'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['hmac', 'generator', 'MD5', 'SHA1', 'SHA256', 'SHA224', 'SHA512', 'SHA384', 'SHA3', 'RIPEMD160'],
component: () => import('./hmac-generator.vue'),
icon: ShortTextRound,
npmPackages: ['crypto-js'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['html', 'wysiwyg', 'editor', 'p', 'ul', 'ol', 'converter', 'live'],
component: () => import('./html-wysiwyg-editor.vue'),
icon: Edit,
npmPackages: ['monaco', 'prettier'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./iban-validator-and-parser.vue'),
icon: Bank,
createdAt: new Date('2023-08-26'),
npmPackages: ['ibantools'],
});
+15 -1
View File
@@ -5,6 +5,7 @@ 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 crcCalculator } from './crc-calculator';
import { tool as safelinkDecoder } from './safelink-decoder';
import { tool as pdfSignatureChecker } from './pdf-signature-checker';
import { tool as numeronymGenerator } from './numeronym-generator';
@@ -85,7 +86,20 @@ import { tool as yamlViewer } from './yaml-viewer';
export const toolsByCategory: ToolCategory[] = [
{
name: 'Crypto',
components: [tokenGenerator, hashText, bcrypt, uuidGenerator, ulidGenerator, cypher, bip39, hmacGenerator, rsaKeyPairGenerator, passwordStrengthAnalyser, pdfSignatureChecker],
components: [
tokenGenerator,
hashText,
crcCalculator,
bcrypt,
uuidGenerator,
ulidGenerator,
cypher,
bip39,
hmacGenerator,
rsaKeyPairGenerator,
passwordStrengthAnalyser,
pdfSignatureChecker,
],
},
{
name: 'Converter',
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./ipv6-ula-generator.vue'),
icon: BuildingFactory,
createdAt: new Date('2023-04-09'),
npmPackages: ['crypto-js'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-diff.vue'),
icon: CompareArrowsRound,
createdAt: new Date('2023-04-20'),
npmPackages: ['json5'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['json', 'minify', 'format'],
component: () => import('./json-minify.vue'),
icon: Braces,
npmPackages: ['json5'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-to-csv.vue'),
icon: List,
createdAt: new Date('2023-06-18'),
npmPackages: ['json5'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-to-toml.vue'),
icon: Braces,
createdAt: new Date('2023-06-23'),
npmPackages: ['json5', 'iarna-toml-esm'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-to-yaml.vue'),
icon: Braces,
createdAt: new Date('2023-04-10'),
npmPackages: ['yaml', 'json5'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./json-viewer.vue'),
icon: Braces,
redirectFrom: ['/json-viewer'],
npmPackages: ['json5'],
});
-1
View File
@@ -25,5 +25,4 @@ export const tool = defineTool({
],
component: () => import('./jwt-parser.vue'),
icon: Key,
npmPackages: ['jwt-decode'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./mac-address-lookup.vue'),
icon: Devices,
createdAt: new Date('2023-04-06'),
npmPackages: ['oui-data'],
});
-1
View File
@@ -41,5 +41,4 @@ export const tool = defineTool({
],
component: () => import('./math-evaluator.vue'),
icon: Math,
npmPackages: ['mathjs'],
});
-1
View File
@@ -23,5 +23,4 @@ export const tool = defineTool({
],
component: () => import('./meta-tag-generator.vue'),
icon: Tags,
npmPackages: ['@it-tools/oggen'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['mime', 'types', 'extension', 'content', 'type'],
component: () => import('./mime-types.vue'),
icon: World,
npmPackages: ['mime-types'],
});
@@ -25,5 +25,4 @@ export const tool = defineTool({
],
component: () => import('./otp-code-generator-and-validator.vue'),
icon: DeviceMobile,
npmPackages: ['crypto-js'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./pdf-signature-checker.vue'),
icon: FileCertIcon,
createdAt: new Date('2023-12-09'),
npmPackages: ['pdf-signature-reader'],
});
@@ -22,5 +22,4 @@ export const tool = defineTool({
component: () => import('./phone-parser-and-formatter.vue'),
icon: Phone,
createdAt: new Date('2023-05-01'),
npmPackages: ['libphonenumber-js', 'country-code-lookup'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['qr', 'code', 'generator', 'square', 'color', 'link', 'low', 'medium', 'quartile', 'high', 'transparent'],
component: () => import('./qr-code-generator.vue'),
icon: Qrcode,
npmPackages: ['qrcode'],
});
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['rsa', 'key', 'pair', 'generator', 'public', 'private', 'secret', 'ssh', 'pem'],
component: () => import('./rsa-key-pair-generator.vue'),
icon: Certificate,
npmPackages: ['node-forge'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['slugify', 'string', 'escape', 'emoji', 'special', 'character', 'space', 'trim'],
component: () => import('./slugify-string.vue'),
icon: AbcRound,
npmPackages: ['@sindresorhus/slugify'],
});
-1
View File
@@ -24,5 +24,4 @@ export const tool = defineTool({
],
component: () => import('./sql-prettify.vue'),
icon: Database,
npmPackages: ['sql-formatter'],
});
-1
View File
@@ -11,5 +11,4 @@ export const tool = defineTool({
component: () => import('./toml-to-json.vue'),
icon: BracketIcon,
createdAt: new Date('2023-06-23'),
npmPackages: ['yaml', 'iarna-toml-esm'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./toml-to-yaml.vue'),
icon: BracketIcon,
createdAt: new Date('2023-06-23'),
npmPackages: ['yaml', 'iarna-toml-esm'],
});
-2
View File
@@ -10,8 +10,6 @@ export interface Tool {
redirectFrom?: string[]
isNew: boolean
createdAt?: Date
npmPackages?: string[]
footer?: string
}
export interface ToolCategory {
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./ulid-generator.vue'),
icon: SortDescendingNumbers,
createdAt: new Date('2023-09-11'),
npmPackages: ['ulid'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./user-agent-parser.vue'),
icon: Browser,
createdAt: new Date('2023-04-06'),
npmPackages: ['ua-parser-js'],
});
-1
View File
@@ -9,5 +9,4 @@ export const tool = defineTool({
keywords: ['uuid', 'v4', 'random', 'id', 'alphanumeric', 'identity', 'token', 'string', 'identifier', 'unique', 'v1', 'v3', 'v5', 'nil'],
component: () => import('./uuid-generator.vue'),
icon: Fingerprint,
npmPackages: ['uuid'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./wifi-qr-code-generator.vue'),
icon: Qrcode,
createdAt: new Date('2023-09-06'),
npmPackages: ['qrcode'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./xml-formatter.vue'),
icon: Code,
createdAt: new Date('2023-06-17'),
npmPackages: ['xml-formatter'],
});
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./yaml-to-json.vue'),
icon: AlignJustified,
createdAt: new Date('2023-04-10'),
npmPackages: ['yaml'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./yaml-to-toml.vue'),
icon: AlignJustified,
createdAt: new Date('2023-06-23'),
npmPackages: ['yaml', 'iarna-toml-esm'],
});
-1
View File
@@ -10,5 +10,4 @@ export const tool = defineTool({
component: () => import('./yaml-viewer.vue'),
icon: AlignJustified,
createdAt: new Date('2024-01-31'),
npmPackages: ['yaml'],
});