feat: minor improvements and refactoring in Text Replacer Tool

- Changed the replaceText method to take all options as arguments.
- Removed compute from SimpleRadio component.
- Moved InitialValuesType type and initialValues object to a separate file to avoid Fast Refresh error.
- Used ToolContent and added usage examples.
This commit is contained in:
EugSh
2025-03-06 10:34:44 +03:00
parent 6278ddf8f9
commit 52ccfec60f
6 changed files with 392 additions and 1 deletions

View File

@@ -8,12 +8,14 @@ import { tool as stringPalindrome } from './palindrome/meta';
import { tool as stringToMorse } from './to-morse/meta';
import { tool as stringSplit } from './split/meta';
import { tool as stringJoin } from './join/meta';
import { tool as stringReplace } from './text-replacer/meta';
export const stringTools = [
stringSplit,
stringJoin,
stringRemoveDuplicateLines,
stringToMorse
stringToMorse,
stringReplace
// stringReverse,
// stringRandomizeCase,
// stringUppercase,