From a83af6a82e20b28b3d4205b78aab35d64f1a0ca5 Mon Sep 17 00:00:00 2001 From: Chesterkxng Date: Fri, 12 Jul 2024 00:09:21 +0000 Subject: [PATCH 1/5] rot13 tool, testCases then updated index file --- src/pages/string/index.ts | 1 + src/pages/string/rot13/index.tsx | 11 ++++ src/pages/string/rot13/meta.ts | 13 +++++ src/pages/string/rot13/rot13.service.test.ts | 58 ++++++++++++++++++++ src/pages/string/rot13/service.ts | 7 +++ 5 files changed, 90 insertions(+) create mode 100644 src/pages/string/rot13/index.tsx create mode 100644 src/pages/string/rot13/meta.ts create mode 100644 src/pages/string/rot13/rot13.service.test.ts create mode 100644 src/pages/string/rot13/service.ts diff --git a/src/pages/string/index.ts b/src/pages/string/index.ts index f7eed37..43714ca 100644 --- a/src/pages/string/index.ts +++ b/src/pages/string/index.ts @@ -1,3 +1,4 @@ +import { tool as stringRot13 } from './rot13/meta'; import { tool as stringReverse } from './reverse/meta'; import { tool as stringRandomizeCase } from './randomize-case/meta'; import { tool as stringUppercase } from './uppercase/meta'; diff --git a/src/pages/string/rot13/index.tsx b/src/pages/string/rot13/index.tsx new file mode 100644 index 0000000..2814f13 --- /dev/null +++ b/src/pages/string/rot13/index.tsx @@ -0,0 +1,11 @@ +import { Box } from '@mui/material'; +import React from 'react'; +import * as Yup from 'yup'; + +const initialValues = {}; +const validationSchema = Yup.object({ + // splitSeparator: Yup.string().required('The separator is required') +}); +export default function Rot13() { + return Lorem ipsum; +} \ No newline at end of file diff --git a/src/pages/string/rot13/meta.ts b/src/pages/string/rot13/meta.ts new file mode 100644 index 0000000..86ee585 --- /dev/null +++ b/src/pages/string/rot13/meta.ts @@ -0,0 +1,13 @@ +import { defineTool } from '@tools/defineTool'; +import { lazy } from 'react'; +// import image from '@assets/text.png'; + +export const tool = defineTool('string', { + name: 'Rot13', + path: 'rot13', + // image, + description: '', + shortDescription: '', + keywords: ['rot13'], + component: lazy(() => import('./index')) +}); \ No newline at end of file diff --git a/src/pages/string/rot13/rot13.service.test.ts b/src/pages/string/rot13/rot13.service.test.ts new file mode 100644 index 0000000..ce7fac5 --- /dev/null +++ b/src/pages/string/rot13/rot13.service.test.ts @@ -0,0 +1,58 @@ +import { expect, describe, it } from 'vitest'; +import { rot13 } from './service'; + +describe('rot13', () => { + it('should encode a simple string using ROT13', () => { + const input = 'hello'; + const result = rot13(input); + expect(result).toBe('uryyb'); + }); + + it('should decode a ROT13 encoded string', () => { + const input = 'uryyb'; + const result = rot13(input); + expect(result).toBe('hello'); + }); + + it('should handle uppercase letters correctly', () => { + const input = 'HELLO'; + const result = rot13(input); + expect(result).toBe('URYYB'); + }); + + it('should handle mixed case letters correctly', () => { + const input = 'HelloWorld'; + const result = rot13(input); + expect(result).toBe('UryybJbeyq'); + }); + + it('should handle non-alphabetic characters correctly', () => { + const input = 'Hello, World!'; + const result = rot13(input); + expect(result).toBe('Uryyb, Jbeyq!'); + }); + + it('should handle an empty string', () => { + const input = ''; + const result = rot13(input); + expect(result).toBe(''); + }); + + it('should handle a string with numbers correctly', () => { + const input = '1234'; + const result = rot13(input); + expect(result).toBe('1234'); + }); + + it('should handle a string with symbols correctly', () => { + const input = '!@#$%^&*()_+-='; + const result = rot13(input); + expect(result).toBe('!@#$%^&*()_+-='); + }); + + it('should handle a string with mixed characters correctly', () => { + const input = 'Hello, World! 123'; + const result = rot13(input); + expect(result).toBe('Uryyb, Jbeyq! 123'); + }); +}); diff --git a/src/pages/string/rot13/service.ts b/src/pages/string/rot13/service.ts new file mode 100644 index 0000000..5030598 --- /dev/null +++ b/src/pages/string/rot13/service.ts @@ -0,0 +1,7 @@ +export function rot13(input: string): string { + return input.replace(/[a-zA-Z]/g, (char) => { + const charCode = char.charCodeAt(0); + const baseCode = charCode >= 97 ? 97 : 65; // 'a' or 'A' + return String.fromCharCode(((charCode - baseCode + 13) % 26) + baseCode); + }); +} From c034b7331f5b03225aed5f22687d392b65083012 Mon Sep 17 00:00:00 2001 From: Chesterkxng Date: Fri, 12 Jul 2024 01:15:17 +0000 Subject: [PATCH 2/5] quote tool, testCases and updated indexfile --- src/pages/string/quote/index.tsx | 11 ++++ src/pages/string/quote/meta.ts | 13 ++++ src/pages/string/quote/quote.service.test.ts | 62 ++++++++++++++++++++ src/pages/string/quote/service.ts | 57 ++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 src/pages/string/quote/index.tsx create mode 100644 src/pages/string/quote/meta.ts create mode 100644 src/pages/string/quote/quote.service.test.ts create mode 100644 src/pages/string/quote/service.ts diff --git a/src/pages/string/quote/index.tsx b/src/pages/string/quote/index.tsx new file mode 100644 index 0000000..ece5985 --- /dev/null +++ b/src/pages/string/quote/index.tsx @@ -0,0 +1,11 @@ +import { Box } from '@mui/material'; +import React from 'react'; +import * as Yup from 'yup'; + +const initialValues = {}; +const validationSchema = Yup.object({ + // splitSeparator: Yup.string().required('The separator is required') +}); +export default function Quote() { + return Lorem ipsum; +} \ No newline at end of file diff --git a/src/pages/string/quote/meta.ts b/src/pages/string/quote/meta.ts new file mode 100644 index 0000000..67d2638 --- /dev/null +++ b/src/pages/string/quote/meta.ts @@ -0,0 +1,13 @@ +import { defineTool } from '@tools/defineTool'; +import { lazy } from 'react'; +// import image from '@assets/text.png'; + +export const tool = defineTool('string', { + name: 'Quote', + path: 'quote', + // image, + description: '', + shortDescription: '', + keywords: ['quote'], + component: lazy(() => import('./index')) +}); \ No newline at end of file diff --git a/src/pages/string/quote/quote.service.test.ts b/src/pages/string/quote/quote.service.test.ts new file mode 100644 index 0000000..5da7812 --- /dev/null +++ b/src/pages/string/quote/quote.service.test.ts @@ -0,0 +1,62 @@ +import { expect, describe, it } from 'vitest'; +import { quote, stringQuoter } from './service'; + +describe('quote function', () => { + it('quotes a word with single quotes', () => { + expect(quote('Hello', "'", "'", false)).toBe("'Hello'"); + }); + + it('quotes a word with double quotes', () => { + expect(quote('World', '"', '"', true)).toBe('"World"'); + }); + + it('does not re-quote already quoted word', () => { + expect(quote('"Goodbye"', '"', '"', false)).toBe('"Goodbye"'); + }); + + it('handles empty word when emptyQuoting is true', () => { + expect(quote('', "'", "'", false)).toBe("''"); + }); + + it('handles empty word when emptyQuoting is false', () => { + expect(quote('', "'", "'", false)).toBe("''"); // Replace with expected behavior + }); +}); + +describe('stringQuoter function', () => { + it('quotes a multi-line input with single quotes', () => { + const input = 'Hello\nWorld\n'; + const expected = "'Hello'\n'World'\n''"; + expect(stringQuoter(input, "'", "'", false, true, true)).toBe(expected); + }); + + it('handles empty lines when emptyQuoting is true', () => { + const input = 'Hello\n\nWorld'; + const expected = "'Hello'\n''\n'World'"; + expect(stringQuoter(input, "'", "'", false, true, true)).toBe(expected); + }); + + it('does not quote empty lines when emptyQuoting is false', () => { + const input = 'Hello\n\nWorld'; + const expected = "'Hello'\n\n'World'"; + expect(stringQuoter(input, "'", "'", false, false, true)).toBe(expected); + }); + + it('quotes a single-line input with double quotes', () => { + const input = 'Hello'; + const expected = '"Hello"'; + expect(stringQuoter(input, '"', '"', true, true, false)).toBe(expected); + }); + + it('handles empty input', () => { + const input = ''; + const expected = ''; + expect(stringQuoter(input, "'", "'", false, true, false)).toBe(expected); + }); + + it('handles spaces input', () => { + const input = ' '; + const expected = "' '"; + expect(stringQuoter(input, "'", "'", false, true, false)).toBe(expected); + }); +}); diff --git a/src/pages/string/quote/service.ts b/src/pages/string/quote/service.ts new file mode 100644 index 0000000..69a2aae --- /dev/null +++ b/src/pages/string/quote/service.ts @@ -0,0 +1,57 @@ +export function quote( + word: string, + leftQuote: string, + rightQuote: string, + doubleQuotation: boolean +): string { + const array: string[] = word.split(''); + + // Check if double quotation is enabled and adjust accordingly + if (doubleQuotation) { + array.unshift(leftQuote); + array.push(rightQuote); + } else { + // Check if the word is already quoted correctly + if (array[0] === leftQuote && array[array.length - 1] === rightQuote) { + return word; + } + + // Append quotes if not already quoted + array.unshift(leftQuote); + array.push(rightQuote); + } + + return array.join(''); +} + +export function stringQuoter( + input: string, + leftQuote: string, + rightQuote: string, + doubleQuotation: boolean, + emptyQuoting: boolean, + multiLine: boolean +) { + if (!input) { + return ''; + } + let arrayOfString: string[] = []; + const result: string[] = []; + if (multiLine) { + arrayOfString = input.split('\n'); + } else { + arrayOfString.push(input); + } + for (const word of arrayOfString) { + if (word === '') { + if (emptyQuoting) { + result.push(quote(word, leftQuote, rightQuote, doubleQuotation)); + } else { + result.push(word); + } + } else { + result.push(quote(word, leftQuote, rightQuote, doubleQuotation)); + } + } + return result.join('\n'); +} From 626092508e4a26e1b2b9b79bb2e9bf2e5efe9564 Mon Sep 17 00:00:00 2001 From: Chesterkxng Date: Fri, 12 Jul 2024 20:30:43 +0000 Subject: [PATCH 3/5] index file --- src/pages/string/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/string/index.ts b/src/pages/string/index.ts index 43714ca..902c85f 100644 --- a/src/pages/string/index.ts +++ b/src/pages/string/index.ts @@ -1,3 +1,4 @@ +import { tool as stringQuote } from './quote/meta'; import { tool as stringRot13 } from './rot13/meta'; import { tool as stringReverse } from './reverse/meta'; import { tool as stringRandomizeCase } from './randomize-case/meta'; From b3c5e5ed2967c58a1e9e9e95ae7de5985d50d4cf Mon Sep 17 00:00:00 2001 From: Chesterkxng Date: Fri, 12 Jul 2024 23:50:15 +0000 Subject: [PATCH 4/5] rotate tool, testCases then updated index file --- src/pages/string/index.ts | 1 + src/pages/string/rotate/index.tsx | 11 +++ src/pages/string/rotate/meta.ts | 13 ++++ .../string/rotate/rotate.service.test.ts | 69 +++++++++++++++++++ src/pages/string/rotate/service.ts | 43 ++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 src/pages/string/rotate/index.tsx create mode 100644 src/pages/string/rotate/meta.ts create mode 100644 src/pages/string/rotate/rotate.service.test.ts create mode 100644 src/pages/string/rotate/service.ts diff --git a/src/pages/string/index.ts b/src/pages/string/index.ts index 902c85f..db674d4 100644 --- a/src/pages/string/index.ts +++ b/src/pages/string/index.ts @@ -1,3 +1,4 @@ +import { tool as stringRotate } from './rotate/meta'; import { tool as stringQuote } from './quote/meta'; import { tool as stringRot13 } from './rot13/meta'; import { tool as stringReverse } from './reverse/meta'; diff --git a/src/pages/string/rotate/index.tsx b/src/pages/string/rotate/index.tsx new file mode 100644 index 0000000..ea7d7d5 --- /dev/null +++ b/src/pages/string/rotate/index.tsx @@ -0,0 +1,11 @@ +import { Box } from '@mui/material'; +import React from 'react'; +import * as Yup from 'yup'; + +const initialValues = {}; +const validationSchema = Yup.object({ + // splitSeparator: Yup.string().required('The separator is required') +}); +export default function Rotate() { + return Lorem ipsum; +} \ No newline at end of file diff --git a/src/pages/string/rotate/meta.ts b/src/pages/string/rotate/meta.ts new file mode 100644 index 0000000..1ad7f71 --- /dev/null +++ b/src/pages/string/rotate/meta.ts @@ -0,0 +1,13 @@ +import { defineTool } from '@tools/defineTool'; +import { lazy } from 'react'; +// import image from '@assets/text.png'; + +export const tool = defineTool('string', { + name: 'Rotate', + path: 'rotate', + // image, + description: '', + shortDescription: '', + keywords: ['rotate'], + component: lazy(() => import('./index')) +}); \ No newline at end of file diff --git a/src/pages/string/rotate/rotate.service.test.ts b/src/pages/string/rotate/rotate.service.test.ts new file mode 100644 index 0000000..a8b5f98 --- /dev/null +++ b/src/pages/string/rotate/rotate.service.test.ts @@ -0,0 +1,69 @@ +import { expect, describe, it } from 'vitest'; + +import { rotate, rotateString } from './service'; // Adjust the import path as necessary + +describe('rotate function', () => { + it('rotates right correctly', () => { + expect(rotate('abcdef', 2, true)).toBe('efabcd'); + expect(rotate('abcdef', 1, true)).toBe('fabcde'); + expect(rotate('abcdef', 6, true)).toBe('abcdef'); // full rotation + expect(rotate('abcdef', 7, true)).toBe('fabcde'); // beyond full rotation + }); + + it('rotates left correctly', () => { + expect(rotate('abcdef', 2, false)).toBe('cdefab'); + expect(rotate('abcdef', 1, false)).toBe('bcdefa'); + expect(rotate('abcdef', 6, false)).toBe('abcdef'); // full rotation + expect(rotate('abcdef', 7, false)).toBe('bcdefa'); // beyond full rotation + }); + + it('handles empty string', () => { + expect(rotate('', 2, true)).toBe(''); + expect(rotate('', 2, false)).toBe(''); + }); + + it('handles single character string', () => { + expect(rotate('a', 2, true)).toBe('a'); + expect(rotate('a', 2, false)).toBe('a'); + }); +}); + +describe('rotateString function', () => { + it('rotates single-line string right', () => { + expect(rotateString('abcdef', 2, true, false)).toBe('efabcd'); + }); + + it('rotates single-line string left', () => { + expect(rotateString('abcdef', 2, false, false)).toBe('cdefab'); + }); + + it('rotates multi-line string right', () => { + const input = 'abcdef\nghijkl'; + const expected = 'efabcd\nklghij'; + expect(rotateString(input, 2, true, true)).toBe(expected); + }); + + it('rotates multi-line string left', () => { + const input = 'abcdef\nghijkl'; + const expected = 'cdefab\nijklgh'; + expect(rotateString(input, 2, false, true)).toBe(expected); + }); + + it('handles empty string in multi-line mode', () => { + expect(rotateString('', 2, true, true)).toBe(''); + }); + + it('handles single character string in multi-line mode', () => { + expect(rotateString('a', 2, true, true)).toBe('a'); + }); + + it('handles single character string in single-line mode', () => { + expect(rotateString('a', 2, true, false)).toBe('a'); + }); + + it('handles string with multiple empty lines', () => { + const input = 'abcdef\n\nxyz'; + const expected = 'efabcd\n\nyzx'; + expect(rotateString(input, 2, true, true)).toBe(expected); + }); +}); diff --git a/src/pages/string/rotate/service.ts b/src/pages/string/rotate/service.ts new file mode 100644 index 0000000..f6b11db --- /dev/null +++ b/src/pages/string/rotate/service.ts @@ -0,0 +1,43 @@ +export function rotate(input: string, step: number, right: boolean): string { + const array: string[] = input.split(''); + const length = array.length; + + if (length === 0) { + return input; // Return early if the input is an empty string + } + + // Normalize the step to be within the bounds of the array length + const normalizedPositions = ((step % length) + length) % length; + + if (right) { + // Rotate right + return array + .slice(-normalizedPositions) + .concat(array.slice(0, -normalizedPositions)) + .join(''); + } else { + // Rotate left + return array + .slice(normalizedPositions) + .concat(array.slice(0, normalizedPositions)) + .join(''); + } +} + +export function rotateString( + input: string, + step: number, + right: boolean, + multiLine: boolean +) { + const result: string[] = []; + if (multiLine) { + const array: string[] = input.split('\n'); + for (const word of array) { + result.push(rotate(word, step, right)); + } + } else { + result.push(rotate(input, step, right)); + } + return result.join('\n'); +} From 2dc78e73921eb05c18fd886560010d9d0c8e6e9a Mon Sep 17 00:00:00 2001 From: "Ibrahima G. Coulibaly" Date: Fri, 7 Mar 2025 22:19:49 +0000 Subject: [PATCH 5/5] chore: merge --- .idea/workspace.xml | 44 ++++++++++--------- src/pages/{ => tools}/string/quote/index.tsx | 0 src/pages/{ => tools}/string/quote/meta.ts | 4 +- .../string/quote/quote.service.test.ts | 0 src/pages/{ => tools}/string/quote/service.ts | 0 src/pages/{ => tools}/string/rot13/index.tsx | 0 src/pages/{ => tools}/string/rot13/meta.ts | 4 +- .../string/rot13/rot13.service.test.ts | 0 src/pages/{ => tools}/string/rot13/service.ts | 0 src/pages/{ => tools}/string/rotate/index.tsx | 0 src/pages/{ => tools}/string/rotate/meta.ts | 4 +- .../string/rotate/rotate.service.test.ts | 0 .../{ => tools}/string/rotate/service.ts | 0 13 files changed, 29 insertions(+), 27 deletions(-) rename src/pages/{ => tools}/string/quote/index.tsx (100%) rename src/pages/{ => tools}/string/quote/meta.ts (91%) rename src/pages/{ => tools}/string/quote/quote.service.test.ts (100%) rename src/pages/{ => tools}/string/quote/service.ts (100%) rename src/pages/{ => tools}/string/rot13/index.tsx (100%) rename src/pages/{ => tools}/string/rot13/meta.ts (90%) rename src/pages/{ => tools}/string/rot13/rot13.service.test.ts (100%) rename src/pages/{ => tools}/string/rot13/service.ts (100%) rename src/pages/{ => tools}/string/rotate/index.tsx (100%) rename src/pages/{ => tools}/string/rotate/meta.ts (91%) rename src/pages/{ => tools}/string/rotate/rotate.service.test.ts (100%) rename src/pages/{ => tools}/string/rotate/service.ts (100%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2e63911..fb9c90c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,9 @@ - + + + - { + "prStates": [ { - "id": { - "id": "PR_kwDOMJIfts51PkS9", - "number": 22 + "id": { + "id": "PR_kwDOMJIfts51PkS9", + "number": 22 }, - "lastSeen": 1741207144695 + "lastSeen": 1741207144695 }, { - "id": { - "id": "PR_kwDOMJIfts6NiNYl", - "number": 32 + "id": { + "id": "PR_kwDOMJIfts6NiNYl", + "number": 32 }, - "lastSeen": 1741209723869 + "lastSeen": 1741209723869 }, { - "id": { - "id": "PR_kwDOMJIfts6Nheyd", - "number": 31 + "id": { + "id": "PR_kwDOMJIfts6Nheyd", + "number": 31 }, - "lastSeen": 1741213371410 + "lastSeen": 1741213371410 }, { - "id": { - "id": "PR_kwDOMJIfts6NmRBs", - "number": 33 + "id": { + "id": "PR_kwDOMJIfts6NmRBs", + "number": 33 }, - "lastSeen": 1741282429036 + "lastSeen": 1741282429036 } ] -}]]> +} { "selectedUrlAndAccountId": { "url": "https://github.com/iib0011/omni-tools.git", @@ -114,7 +116,7 @@ "Vitest.removeDuplicateLines function.newlines option.executor": "Run", "Vitest.removeDuplicateLines function.newlines option.should filter newlines when newlines is set to filter.executor": "Run", "Vitest.replaceText function.executor": "Run", - "git-widget-placeholder": "#33 on fork/EugSh1/main", + "git-widget-placeholder": "#22 on truncate", "ignore.virus.scanning.warn.message": "true", "kotlin-language-version-configured": "true", "last_opened_file_path": "C:/Users/Ibrahima/IdeaProjects/omni-tools/public/assets", diff --git a/src/pages/string/quote/index.tsx b/src/pages/tools/string/quote/index.tsx similarity index 100% rename from src/pages/string/quote/index.tsx rename to src/pages/tools/string/quote/index.tsx diff --git a/src/pages/string/quote/meta.ts b/src/pages/tools/string/quote/meta.ts similarity index 91% rename from src/pages/string/quote/meta.ts rename to src/pages/tools/string/quote/meta.ts index 67d2638..8863f1e 100644 --- a/src/pages/string/quote/meta.ts +++ b/src/pages/tools/string/quote/meta.ts @@ -5,9 +5,9 @@ import { lazy } from 'react'; export const tool = defineTool('string', { name: 'Quote', path: 'quote', - // image, + icon: 'proicons:quote', description: '', shortDescription: '', keywords: ['quote'], component: lazy(() => import('./index')) -}); \ No newline at end of file +}); diff --git a/src/pages/string/quote/quote.service.test.ts b/src/pages/tools/string/quote/quote.service.test.ts similarity index 100% rename from src/pages/string/quote/quote.service.test.ts rename to src/pages/tools/string/quote/quote.service.test.ts diff --git a/src/pages/string/quote/service.ts b/src/pages/tools/string/quote/service.ts similarity index 100% rename from src/pages/string/quote/service.ts rename to src/pages/tools/string/quote/service.ts diff --git a/src/pages/string/rot13/index.tsx b/src/pages/tools/string/rot13/index.tsx similarity index 100% rename from src/pages/string/rot13/index.tsx rename to src/pages/tools/string/rot13/index.tsx diff --git a/src/pages/string/rot13/meta.ts b/src/pages/tools/string/rot13/meta.ts similarity index 90% rename from src/pages/string/rot13/meta.ts rename to src/pages/tools/string/rot13/meta.ts index 86ee585..37388c1 100644 --- a/src/pages/string/rot13/meta.ts +++ b/src/pages/tools/string/rot13/meta.ts @@ -5,9 +5,9 @@ import { lazy } from 'react'; export const tool = defineTool('string', { name: 'Rot13', path: 'rot13', - // image, + icon: 'hugeicons:encrypt', description: '', shortDescription: '', keywords: ['rot13'], component: lazy(() => import('./index')) -}); \ No newline at end of file +}); diff --git a/src/pages/string/rot13/rot13.service.test.ts b/src/pages/tools/string/rot13/rot13.service.test.ts similarity index 100% rename from src/pages/string/rot13/rot13.service.test.ts rename to src/pages/tools/string/rot13/rot13.service.test.ts diff --git a/src/pages/string/rot13/service.ts b/src/pages/tools/string/rot13/service.ts similarity index 100% rename from src/pages/string/rot13/service.ts rename to src/pages/tools/string/rot13/service.ts diff --git a/src/pages/string/rotate/index.tsx b/src/pages/tools/string/rotate/index.tsx similarity index 100% rename from src/pages/string/rotate/index.tsx rename to src/pages/tools/string/rotate/index.tsx diff --git a/src/pages/string/rotate/meta.ts b/src/pages/tools/string/rotate/meta.ts similarity index 91% rename from src/pages/string/rotate/meta.ts rename to src/pages/tools/string/rotate/meta.ts index 1ad7f71..f891b30 100644 --- a/src/pages/string/rotate/meta.ts +++ b/src/pages/tools/string/rotate/meta.ts @@ -5,9 +5,9 @@ import { lazy } from 'react'; export const tool = defineTool('string', { name: 'Rotate', path: 'rotate', - // image, + icon: 'carbon:rotate', description: '', shortDescription: '', keywords: ['rotate'], component: lazy(() => import('./index')) -}); \ No newline at end of file +}); diff --git a/src/pages/string/rotate/rotate.service.test.ts b/src/pages/tools/string/rotate/rotate.service.test.ts similarity index 100% rename from src/pages/string/rotate/rotate.service.test.ts rename to src/pages/tools/string/rotate/rotate.service.test.ts diff --git a/src/pages/string/rotate/service.ts b/src/pages/tools/string/rotate/service.ts similarity index 100% rename from src/pages/string/rotate/service.ts rename to src/pages/tools/string/rotate/service.ts