text_space_stripper 文本去空格换行
This commit is contained in:
@@ -22,6 +22,7 @@ export const en = {
|
||||
jwt_decoder: tools.jwt_decoder.en,
|
||||
qrcode_generator: tools.qrcode_generator.en,
|
||||
text_counter: tools.text_counter.en,
|
||||
text_space_stripper: tools.text_space_stripper.en,
|
||||
timezone_converter: tools.timezone_converter.en,
|
||||
unicode_converter: tools.unicode_converter.en,
|
||||
url_encoder: tools.url_encoder.en
|
||||
|
||||
@@ -16,6 +16,7 @@ import jsonEditor from './json_editor';
|
||||
import jwtDecoder from './jwt_decoder';
|
||||
import qrcodeGenerator from './qrcode_generator';
|
||||
import textCounter from './text_counter';
|
||||
import textSpaceStripper from './text_space_stripper';
|
||||
import timezoneConverter from './timezone_converter';
|
||||
import unicodeConverter from './unicode_converter';
|
||||
import urlEncoder from './url_encoder';
|
||||
@@ -39,9 +40,10 @@ export const tools = {
|
||||
jwt_decoder: jwtDecoder,
|
||||
qrcode_generator: qrcodeGenerator,
|
||||
text_counter: textCounter,
|
||||
text_space_stripper: textSpaceStripper,
|
||||
timezone_converter: timezoneConverter,
|
||||
unicode_converter: unicodeConverter,
|
||||
url_encoder: urlEncoder
|
||||
};
|
||||
|
||||
export default tools;
|
||||
export default tools;
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
export const textSpaceStripperEn = {
|
||||
title: 'Text Space Stripper',
|
||||
description: 'Remove spaces and line breaks from text with various modes',
|
||||
input_text: 'Input Text',
|
||||
input_placeholder: 'Enter or paste text to process here...',
|
||||
output_text: 'Output Result',
|
||||
output_placeholder: 'Processed text will appear here...',
|
||||
tool_options: 'Processing Options',
|
||||
strip_mode: 'Strip Mode',
|
||||
strip_mode_both: 'Both Sides',
|
||||
strip_mode_start: 'Leading Spaces',
|
||||
strip_mode_end: 'Trailing Spaces',
|
||||
strip_mode_all: 'All Spaces',
|
||||
strip_mode_newlines: 'All Line Breaks',
|
||||
strip_mode_all_and_newlines: 'All Spaces and Line Breaks',
|
||||
copy_result: 'Copy Result',
|
||||
copied: 'Copied',
|
||||
copy_failed: 'Copy failed',
|
||||
clear: 'Clear',
|
||||
process: 'Process',
|
||||
load_example: 'Load Example'
|
||||
};
|
||||
|
||||
export default textSpaceStripperEn;
|
||||
@@ -0,0 +1,9 @@
|
||||
import textSpaceStripperZh from './zh';
|
||||
import textSpaceStripperEn from './en';
|
||||
|
||||
export const textSpaceStripper = {
|
||||
zh: textSpaceStripperZh,
|
||||
en: textSpaceStripperEn
|
||||
};
|
||||
|
||||
export default textSpaceStripper;
|
||||
@@ -0,0 +1,24 @@
|
||||
export const textSpaceStripperZh = {
|
||||
title: '文本去空格换行',
|
||||
description: '去除文本中的空格和换行符,支持多种模式',
|
||||
input_text: '输入文本',
|
||||
input_placeholder: '在此输入或粘贴需要处理的文本...',
|
||||
output_text: '输出结果',
|
||||
output_placeholder: '处理后的文本将显示在这里...',
|
||||
tool_options: '处理选项',
|
||||
strip_mode: '去除方式',
|
||||
strip_mode_both: '两边空格',
|
||||
strip_mode_start: '左边空格',
|
||||
strip_mode_end: '右边空格',
|
||||
strip_mode_all: '全部空格',
|
||||
strip_mode_newlines: '所有换行符',
|
||||
strip_mode_all_and_newlines: '所有空格和换行符',
|
||||
copy_result: '复制结果',
|
||||
copied: '已复制',
|
||||
copy_failed: '复制失败',
|
||||
clear: '清空',
|
||||
process: '处理',
|
||||
load_example: '加载示例'
|
||||
};
|
||||
|
||||
export default textSpaceStripperZh;
|
||||
@@ -22,6 +22,7 @@ export const zh = {
|
||||
jwt_decoder: tools.jwt_decoder.zh,
|
||||
qrcode_generator: tools.qrcode_generator.zh,
|
||||
text_counter: tools.text_counter.zh,
|
||||
text_space_stripper: tools.text_space_stripper.zh,
|
||||
timezone_converter: tools.timezone_converter.zh,
|
||||
unicode_converter: tools.unicode_converter.zh,
|
||||
url_encoder: tools.url_encoder.zh
|
||||
|
||||
+8
-1
@@ -1,7 +1,8 @@
|
||||
import {
|
||||
faCode, faExchangeAlt, faClock, faGlobe, faLink, faLock,
|
||||
faImage, faCogs, faFileCode, faKey, faFont,
|
||||
faCalendarAlt, faPalette, faEdit, faRuler, faNetworkWired
|
||||
faCalendarAlt, faPalette, faEdit, faRuler, faNetworkWired,
|
||||
faEraser
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import { Tool } from '@/types/tools';
|
||||
|
||||
@@ -111,6 +112,12 @@ const tools: Tool[] = [
|
||||
category: ['text'],
|
||||
keywords: ['字数统计', '字符统计', '字数', '词数', '行数', '计数', 'word count', 'character count', 'zishu', 'zs', 'tongji', 'tj']
|
||||
},
|
||||
{
|
||||
code: 'text_space_stripper',
|
||||
icon: faEraser,
|
||||
category: ['text'],
|
||||
keywords: ['去空格', '去换行', '去空白', '字符串处理', '文本处理', '空格删除', '换行符', 'trim', 'strip', 'space', 'whitespace', 'newline']
|
||||
},
|
||||
{
|
||||
code: 'html_markdown_converter',
|
||||
icon: faFileCode,
|
||||
|
||||
Reference in New Issue
Block a user