mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 22:19:36 +02:00
chore: translate userTypes
This commit is contained in:
@@ -246,5 +246,9 @@
|
|||||||
"copyFailed": "Failed to copy: {{error}}",
|
"copyFailed": "Failed to copy: {{error}}",
|
||||||
"loading": "Loading... This may take a moment.",
|
"loading": "Loading... This may take a moment.",
|
||||||
"result": "Result"
|
"result": "Result"
|
||||||
|
},
|
||||||
|
"userTypes": {
|
||||||
|
"generalUsers": "General users",
|
||||||
|
"developers": "Developers"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
import React from 'react';
|
||||||
import { Box, Chip, Typography } from '@mui/material';
|
import { Box, Chip } from '@mui/material';
|
||||||
import { UserType } from '@tools/defineTool';
|
import { UserType } from '@tools/defineTool';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
interface UserTypeFilterProps {
|
interface UserTypeFilterProps {
|
||||||
selectedUserTypes: UserType[];
|
selectedUserTypes: UserType[];
|
||||||
@@ -11,8 +12,9 @@ interface UserTypeFilterProps {
|
|||||||
export default function UserTypeFilter({
|
export default function UserTypeFilter({
|
||||||
selectedUserTypes,
|
selectedUserTypes,
|
||||||
onUserTypesChange,
|
onUserTypesChange,
|
||||||
userTypes = ['General Users', 'Developers', 'CyberSec']
|
userTypes = ['generalUsers', 'developers']
|
||||||
}: UserTypeFilterProps) {
|
}: UserTypeFilterProps) {
|
||||||
|
const { t } = useTranslation('translation');
|
||||||
if (userTypes.length <= 1) return null;
|
if (userTypes.length <= 1) return null;
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
@@ -28,7 +30,7 @@ export default function UserTypeFilter({
|
|||||||
{userTypes.map((userType) => (
|
{userTypes.map((userType) => (
|
||||||
<Chip
|
<Chip
|
||||||
key={userType}
|
key={userType}
|
||||||
label={userType}
|
label={t(`userTypes.${userType}`)}
|
||||||
color={selectedUserTypes.includes(userType) ? 'primary' : 'default'}
|
color={selectedUserTypes.includes(userType) ? 'primary' : 'default'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const isSelected = selectedUserTypes.includes(userType);
|
const isSelected = selectedUserTypes.includes(userType);
|
||||||
|
@@ -21,6 +21,6 @@ export const tool = defineTool('audio', {
|
|||||||
name: 'audio:changeSpeed.title',
|
name: 'audio:changeSpeed.title',
|
||||||
description: 'audio:changeSpeed.description',
|
description: 'audio:changeSpeed.description',
|
||||||
shortDescription: 'audio:changeSpeed.shortDescription',
|
shortDescription: 'audio:changeSpeed.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -22,6 +22,6 @@ export const tool = defineTool('audio', {
|
|||||||
name: 'audio:extractAudio.title',
|
name: 'audio:extractAudio.title',
|
||||||
description: 'audio:extractAudio.description',
|
description: 'audio:extractAudio.description',
|
||||||
shortDescription: 'audio:extractAudio.shortDescription',
|
shortDescription: 'audio:extractAudio.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -7,7 +7,7 @@ export const tool = defineTool('audio', {
|
|||||||
description: 'audio:mergeAudio.description',
|
description: 'audio:mergeAudio.description',
|
||||||
shortDescription: 'audio:mergeAudio.shortDescription',
|
shortDescription: 'audio:mergeAudio.shortDescription',
|
||||||
longDescription: 'audio:mergeAudio.longDescription',
|
longDescription: 'audio:mergeAudio.longDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'merge-audio',
|
path: 'merge-audio',
|
||||||
|
@@ -7,7 +7,7 @@ export const tool = defineTool('audio', {
|
|||||||
description: 'audio:trim.description',
|
description: 'audio:trim.description',
|
||||||
shortDescription: 'audio:trim.shortDescription',
|
shortDescription: 'audio:trim.shortDescription',
|
||||||
longDescription: 'audio:trim.longDescription',
|
longDescription: 'audio:trim.longDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'trim',
|
path: 'trim',
|
||||||
|
@@ -6,7 +6,7 @@ export const tool = defineTool('image-generic', {
|
|||||||
name: 'image:compress.title',
|
name: 'image:compress.title',
|
||||||
description: 'image:compress.description',
|
description: 'image:compress.description',
|
||||||
shortDescription: 'image:compress.shortDescription',
|
shortDescription: 'image:compress.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'compress',
|
path: 'compress',
|
||||||
|
@@ -6,7 +6,7 @@ export const tool = defineTool('image-generic', {
|
|||||||
name: 'image:resize.title',
|
name: 'image:resize.title',
|
||||||
description: 'image:resize.description',
|
description: 'image:resize.description',
|
||||||
shortDescription: 'image:resize.shortDescription',
|
shortDescription: 'image:resize.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'resize',
|
path: 'resize',
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:duplicate.title',
|
name: 'list:duplicate.title',
|
||||||
description: 'list:duplicate.description',
|
description: 'list:duplicate.description',
|
||||||
shortDescription: 'list:duplicate.shortDescription',
|
shortDescription: 'list:duplicate.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:findMostPopular.title',
|
name: 'list:findMostPopular.title',
|
||||||
description: 'list:findMostPopular.description',
|
description: 'list:findMostPopular.description',
|
||||||
shortDescription: 'list:findMostPopular.shortDescription',
|
shortDescription: 'list:findMostPopular.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:findUnique.title',
|
name: 'list:findUnique.title',
|
||||||
description: 'list:findUnique.description',
|
description: 'list:findUnique.description',
|
||||||
shortDescription: 'list:findUnique.shortDescription',
|
shortDescription: 'list:findUnique.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:group.title',
|
name: 'list:group.title',
|
||||||
description: 'list:group.description',
|
description: 'list:group.description',
|
||||||
shortDescription: 'list:group.shortDescription',
|
shortDescription: 'list:group.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -10,7 +10,7 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:reverse.title',
|
name: 'list:reverse.title',
|
||||||
description: 'list:reverse.description',
|
description: 'list:reverse.description',
|
||||||
shortDescription: 'list:reverse.shortDescription',
|
shortDescription: 'list:reverse.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
component: lazy(() => import('./index'))
|
component: lazy(() => import('./index'))
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:rotate.title',
|
name: 'list:rotate.title',
|
||||||
description: 'list:rotate.description',
|
description: 'list:rotate.description',
|
||||||
shortDescription: 'list:rotate.shortDescription',
|
shortDescription: 'list:rotate.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:shuffle.title',
|
name: 'list:shuffle.title',
|
||||||
description: 'list:shuffle.description',
|
description: 'list:shuffle.description',
|
||||||
shortDescription: 'list:shuffle.shortDescription',
|
shortDescription: 'list:shuffle.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:sort.title',
|
name: 'list:sort.title',
|
||||||
description: 'list:sort.description',
|
description: 'list:sort.description',
|
||||||
shortDescription: 'list:sort.shortDescription',
|
shortDescription: 'list:sort.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:truncate.title',
|
name: 'list:truncate.title',
|
||||||
description: 'list:truncate.description',
|
description: 'list:truncate.description',
|
||||||
shortDescription: 'list:truncate.shortDescription',
|
shortDescription: 'list:truncate.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:unwrap.title',
|
name: 'list:unwrap.title',
|
||||||
description: 'list:unwrap.description',
|
description: 'list:unwrap.description',
|
||||||
shortDescription: 'list:unwrap.shortDescription',
|
shortDescription: 'list:unwrap.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('list', {
|
|||||||
name: 'list:wrap.title',
|
name: 'list:wrap.title',
|
||||||
description: 'list:wrap.description',
|
description: 'list:wrap.description',
|
||||||
shortDescription: 'list:wrap.shortDescription',
|
shortDescription: 'list:wrap.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('number', {
|
|||||||
name: 'number:arithmeticSequence.title',
|
name: 'number:arithmeticSequence.title',
|
||||||
description: 'number:arithmeticSequence.description',
|
description: 'number:arithmeticSequence.description',
|
||||||
shortDescription: 'number:arithmeticSequence.shortDescription',
|
shortDescription: 'number:arithmeticSequence.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('number', {
|
|||||||
name: 'number:sum.title',
|
name: 'number:sum.title',
|
||||||
description: 'number:sum.description',
|
description: 'number:sum.description',
|
||||||
shortDescription: 'number:sum.shortDescription',
|
shortDescription: 'number:sum.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -24,6 +24,6 @@ export const tool = defineTool('pdf', {
|
|||||||
name: 'pdf:compressPdf.title',
|
name: 'pdf:compressPdf.title',
|
||||||
description: 'pdf:compressPdf.description',
|
description: 'pdf:compressPdf.description',
|
||||||
shortDescription: 'pdf:compressPdf.shortDescription',
|
shortDescription: 'pdf:compressPdf.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -6,7 +6,7 @@ export const tool = defineTool('pdf', {
|
|||||||
name: 'pdf:editor.title',
|
name: 'pdf:editor.title',
|
||||||
description: 'pdf:editor.description',
|
description: 'pdf:editor.description',
|
||||||
shortDescription: 'pdf:editor.shortDescription',
|
shortDescription: 'pdf:editor.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'editor',
|
path: 'editor',
|
||||||
|
@@ -10,6 +10,6 @@ export const meta = defineTool('pdf', {
|
|||||||
name: 'pdf:mergePdf.title',
|
name: 'pdf:mergePdf.title',
|
||||||
description: 'pdf:mergePdf.description',
|
description: 'pdf:mergePdf.description',
|
||||||
shortDescription: 'pdf:mergePdf.shortDescription',
|
shortDescription: 'pdf:mergePdf.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -10,6 +10,6 @@ export const meta = defineTool('pdf', {
|
|||||||
name: 'pdf:pdfToEpub.title',
|
name: 'pdf:pdfToEpub.title',
|
||||||
description: 'pdf:pdfToEpub.description',
|
description: 'pdf:pdfToEpub.description',
|
||||||
shortDescription: 'pdf:pdfToEpub.shortDescription',
|
shortDescription: 'pdf:pdfToEpub.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -7,7 +7,7 @@ export const tool = defineTool('pdf', {
|
|||||||
description: 'pdf:pdfToPng.description',
|
description: 'pdf:pdfToPng.description',
|
||||||
shortDescription: 'pdf:pdfToPng.shortDescription',
|
shortDescription: 'pdf:pdfToPng.shortDescription',
|
||||||
longDescription: 'pdf:pdfToPng.longDescription',
|
longDescription: 'pdf:pdfToPng.longDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'pdf-to-png',
|
path: 'pdf-to-png',
|
||||||
|
@@ -23,6 +23,6 @@ export const tool = defineTool('pdf', {
|
|||||||
name: 'pdf:protectPdf.title',
|
name: 'pdf:protectPdf.title',
|
||||||
description: 'pdf:protectPdf.description',
|
description: 'pdf:protectPdf.description',
|
||||||
shortDescription: 'pdf:protectPdf.shortDescription',
|
shortDescription: 'pdf:protectPdf.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -7,7 +7,7 @@ export const tool = defineTool('pdf', {
|
|||||||
description: 'pdf:rotatePdf.description',
|
description: 'pdf:rotatePdf.description',
|
||||||
shortDescription: 'pdf:rotatePdf.shortDescription',
|
shortDescription: 'pdf:rotatePdf.shortDescription',
|
||||||
longDescription: 'pdf:rotatePdf.longDescription',
|
longDescription: 'pdf:rotatePdf.longDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'rotate-pdf',
|
path: 'rotate-pdf',
|
||||||
|
@@ -10,6 +10,6 @@ export const meta = defineTool('pdf', {
|
|||||||
name: 'pdf:splitPdf.title',
|
name: 'pdf:splitPdf.title',
|
||||||
description: 'pdf:splitPdf.description',
|
description: 'pdf:splitPdf.description',
|
||||||
shortDescription: 'pdf:splitPdf.shortDescription',
|
shortDescription: 'pdf:splitPdf.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:base64.title',
|
name: 'string:base64.title',
|
||||||
description: 'string:base64.description',
|
description: 'string:base64.description',
|
||||||
shortDescription: 'string:base64.shortDescription',
|
shortDescription: 'string:base64.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:censor.title',
|
name: 'string:censor.title',
|
||||||
description: 'string:censor.description',
|
description: 'string:censor.description',
|
||||||
shortDescription: 'string:censor.shortDescription',
|
shortDescription: 'string:censor.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:createPalindrome.title',
|
name: 'string:createPalindrome.title',
|
||||||
description: 'string:createPalindrome.description',
|
description: 'string:createPalindrome.description',
|
||||||
shortDescription: 'string:createPalindrome.shortDescription',
|
shortDescription: 'string:createPalindrome.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:extractSubstring.title',
|
name: 'string:extractSubstring.title',
|
||||||
description: 'string:extractSubstring.description',
|
description: 'string:extractSubstring.description',
|
||||||
shortDescription: 'string:extractSubstring.shortDescription',
|
shortDescription: 'string:extractSubstring.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:join.title',
|
name: 'string:join.title',
|
||||||
description: 'string:join.description',
|
description: 'string:join.description',
|
||||||
shortDescription: 'string:join.shortDescription',
|
shortDescription: 'string:join.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:palindrome.title',
|
name: 'string:palindrome.title',
|
||||||
description: 'string:palindrome.description',
|
description: 'string:palindrome.description',
|
||||||
shortDescription: 'string:palindrome.shortDescription',
|
shortDescription: 'string:palindrome.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:quote.title',
|
name: 'string:quote.title',
|
||||||
description: 'string:quote.description',
|
description: 'string:quote.description',
|
||||||
shortDescription: 'string:quote.shortDescription',
|
shortDescription: 'string:quote.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:randomizeCase.title',
|
name: 'string:randomizeCase.title',
|
||||||
description: 'string:randomizeCase.description',
|
description: 'string:randomizeCase.description',
|
||||||
shortDescription: 'string:randomizeCase.shortDescription',
|
shortDescription: 'string:randomizeCase.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:removeDuplicateLines.title',
|
name: 'string:removeDuplicateLines.title',
|
||||||
description: 'string:removeDuplicateLines.description',
|
description: 'string:removeDuplicateLines.description',
|
||||||
shortDescription: 'string:removeDuplicateLines.shortDescription',
|
shortDescription: 'string:removeDuplicateLines.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:repeat.title',
|
name: 'string:repeat.title',
|
||||||
description: 'string:repeat.description',
|
description: 'string:repeat.description',
|
||||||
shortDescription: 'string:repeat.shortDescription',
|
shortDescription: 'string:repeat.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:reverse.title',
|
name: 'string:reverse.title',
|
||||||
description: 'string:reverse.description',
|
description: 'string:reverse.description',
|
||||||
shortDescription: 'string:reverse.shortDescription',
|
shortDescription: 'string:reverse.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -7,7 +7,7 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:rot13.title',
|
name: 'string:rot13.title',
|
||||||
description: 'string:rot13.description',
|
description: 'string:rot13.description',
|
||||||
shortDescription: 'string:rot13.shortDescription',
|
shortDescription: 'string:rot13.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'rot13',
|
path: 'rot13',
|
||||||
|
@@ -7,7 +7,7 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:rotate.title',
|
name: 'string:rotate.title',
|
||||||
description: 'string:rotate.description',
|
description: 'string:rotate.description',
|
||||||
shortDescription: 'string:rotate.shortDescription',
|
shortDescription: 'string:rotate.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'rotate',
|
path: 'rotate',
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:split.title',
|
name: 'string:split.title',
|
||||||
description: 'string:split.description',
|
description: 'string:split.description',
|
||||||
shortDescription: 'string:split.shortDescription',
|
shortDescription: 'string:split.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -12,6 +12,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:statistic.title',
|
name: 'string:statistic.title',
|
||||||
description: 'string:statistic.description',
|
description: 'string:statistic.description',
|
||||||
shortDescription: 'string:statistic.shortDescription',
|
shortDescription: 'string:statistic.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -6,7 +6,7 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:textReplacer.title',
|
name: 'string:textReplacer.title',
|
||||||
description: 'string:textReplacer.description',
|
description: 'string:textReplacer.description',
|
||||||
shortDescription: 'string:textReplacer.shortDescription',
|
shortDescription: 'string:textReplacer.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
},
|
},
|
||||||
|
|
||||||
path: 'replacer',
|
path: 'replacer',
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:toMorse.title',
|
name: 'string:toMorse.title',
|
||||||
description: 'string:toMorse.description',
|
description: 'string:toMorse.description',
|
||||||
shortDescription: 'string:toMorse.shortDescription',
|
shortDescription: 'string:toMorse.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:truncate.title',
|
name: 'string:truncate.title',
|
||||||
description: 'string:truncate.description',
|
description: 'string:truncate.description',
|
||||||
shortDescription: 'string:truncate.shortDescription',
|
shortDescription: 'string:truncate.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('string', {
|
|||||||
name: 'string:uppercase.title',
|
name: 'string:uppercase.title',
|
||||||
description: 'string:uppercase.description',
|
description: 'string:uppercase.description',
|
||||||
shortDescription: 'string:uppercase.shortDescription',
|
shortDescription: 'string:uppercase.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:checkLeapYears.title',
|
name: 'time:checkLeapYears.title',
|
||||||
description: 'time:checkLeapYears.description',
|
description: 'time:checkLeapYears.description',
|
||||||
shortDescription: 'time:checkLeapYears.shortDescription',
|
shortDescription: 'time:checkLeapYears.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:convertDaysToHours.title',
|
name: 'time:convertDaysToHours.title',
|
||||||
description: 'time:convertDaysToHours.description',
|
description: 'time:convertDaysToHours.description',
|
||||||
shortDescription: 'time:convertDaysToHours.shortDescription',
|
shortDescription: 'time:convertDaysToHours.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:convertHoursToDays.title',
|
name: 'time:convertHoursToDays.title',
|
||||||
description: 'time:convertHoursToDays.description',
|
description: 'time:convertHoursToDays.description',
|
||||||
shortDescription: 'time:convertHoursToDays.shortDescription',
|
shortDescription: 'time:convertHoursToDays.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:convertSecondsToTime.title',
|
name: 'time:convertSecondsToTime.title',
|
||||||
description: 'time:convertSecondsToTime.description',
|
description: 'time:convertSecondsToTime.description',
|
||||||
shortDescription: 'time:convertSecondsToTime.shortDescription',
|
shortDescription: 'time:convertSecondsToTime.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:convertTimeToSeconds.title',
|
name: 'time:convertTimeToSeconds.title',
|
||||||
description: 'time:convertTimeToSeconds.description',
|
description: 'time:convertTimeToSeconds.description',
|
||||||
shortDescription: 'time:convertTimeToSeconds.shortDescription',
|
shortDescription: 'time:convertTimeToSeconds.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -19,6 +19,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:crontabGuru.title',
|
name: 'time:crontabGuru.title',
|
||||||
description: 'time:crontabGuru.description',
|
description: 'time:crontabGuru.description',
|
||||||
shortDescription: 'time:crontabGuru.shortDescription',
|
shortDescription: 'time:crontabGuru.shortDescription',
|
||||||
userTypes: ['Developers']
|
userTypes: ['developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:timeBetweenDates.title',
|
name: 'time:timeBetweenDates.title',
|
||||||
description: 'time:timeBetweenDates.description',
|
description: 'time:timeBetweenDates.description',
|
||||||
shortDescription: 'time:timeBetweenDates.shortDescription',
|
shortDescription: 'time:timeBetweenDates.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('time', {
|
|||||||
name: 'time:truncateClockTime.title',
|
name: 'time:truncateClockTime.title',
|
||||||
description: 'time:truncateClockTime.description',
|
description: 'time:truncateClockTime.description',
|
||||||
shortDescription: 'time:truncateClockTime.shortDescription',
|
shortDescription: 'time:truncateClockTime.shortDescription',
|
||||||
userTypes: ['General Users', 'Developers']
|
userTypes: ['generalUsers', 'developers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:changeSpeed.title',
|
name: 'video:changeSpeed.title',
|
||||||
description: 'video:changeSpeed.description',
|
description: 'video:changeSpeed.description',
|
||||||
shortDescription: 'video:changeSpeed.shortDescription',
|
shortDescription: 'video:changeSpeed.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -22,6 +22,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:compress.title',
|
name: 'video:compress.title',
|
||||||
description: 'video:compress.description',
|
description: 'video:compress.description',
|
||||||
shortDescription: 'video:compress.shortDescription',
|
shortDescription: 'video:compress.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -19,7 +19,7 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:cropVideo.title',
|
name: 'video:cropVideo.title',
|
||||||
description: 'video:cropVideo.description',
|
description: 'video:cropVideo.description',
|
||||||
shortDescription: 'video:cropVideo.shortDescription',
|
shortDescription: 'video:cropVideo.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
},
|
},
|
||||||
component: lazy(() => import('./index'))
|
component: lazy(() => import('./index'))
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:flip.title',
|
name: 'video:flip.title',
|
||||||
description: 'video:flip.description',
|
description: 'video:flip.description',
|
||||||
shortDescription: 'video:flip.shortDescription',
|
shortDescription: 'video:flip.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:loop.title',
|
name: 'video:loop.title',
|
||||||
description: 'video:loop.description',
|
description: 'video:loop.description',
|
||||||
shortDescription: 'video:loop.shortDescription',
|
shortDescription: 'video:loop.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:rotate.title',
|
name: 'video:rotate.title',
|
||||||
description: 'video:rotate.description',
|
description: 'video:rotate.description',
|
||||||
shortDescription: 'video:rotate.shortDescription',
|
shortDescription: 'video:rotate.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -10,6 +10,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:trim.title',
|
name: 'video:trim.title',
|
||||||
description: 'video:trim.description',
|
description: 'video:trim.description',
|
||||||
shortDescription: 'video:trim.shortDescription',
|
shortDescription: 'video:trim.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -10,6 +10,6 @@ export const tool = defineTool('video', {
|
|||||||
name: 'video:videoToGif.title',
|
name: 'video:videoToGif.title',
|
||||||
description: 'video:videoToGif.description',
|
description: 'video:videoToGif.description',
|
||||||
shortDescription: 'video:videoToGif.shortDescription',
|
shortDescription: 'video:videoToGif.shortDescription',
|
||||||
userTypes: ['General Users']
|
userTypes: ['generalUsers']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -4,7 +4,7 @@ import { IconifyIcon } from '@iconify/react';
|
|||||||
import { FullI18nKey, validNamespaces } from '../i18n';
|
import { FullI18nKey, validNamespaces } from '../i18n';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export type UserType = 'General Users' | 'Developers' | 'CyberSec';
|
export type UserType = 'generalUsers' | 'developers';
|
||||||
|
|
||||||
export interface ToolMeta {
|
export interface ToolMeta {
|
||||||
path: string;
|
path: string;
|
||||||
|
@@ -138,14 +138,14 @@ const categoriesConfig: {
|
|||||||
];
|
];
|
||||||
const CATEGORIES_USER_TYPES_MAPPINGS: Partial<Record<ToolCategory, UserType>> =
|
const CATEGORIES_USER_TYPES_MAPPINGS: Partial<Record<ToolCategory, UserType>> =
|
||||||
{
|
{
|
||||||
xml: 'Developers',
|
xml: 'developers',
|
||||||
csv: 'Developers',
|
csv: 'developers',
|
||||||
json: 'Developers',
|
json: 'developers',
|
||||||
gif: 'General Users',
|
gif: 'generalUsers',
|
||||||
png: 'General Users',
|
png: 'generalUsers',
|
||||||
'image-generic': 'General Users',
|
'image-generic': 'generalUsers',
|
||||||
video: 'General Users',
|
video: 'generalUsers',
|
||||||
audio: 'General Users'
|
audio: 'generalUsers'
|
||||||
};
|
};
|
||||||
// Filter tools by user types
|
// Filter tools by user types
|
||||||
export const filterToolsByUserTypes = (
|
export const filterToolsByUserTypes = (
|
||||||
|
Reference in New Issue
Block a user