@codeexpander/plugin-text 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-CBJPh5CR.js → index-ClPZKgo-.js} +27 -27
- package/dist/index.html +1 -1
- package/dist/plugin.json +91 -13
- package/package.json +8 -7
- package/plugin.json +21 -0
package/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Text Tools</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-ClPZKgo-.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="./assets/index-bCqXJRD5.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/dist/plugin.json
CHANGED
|
@@ -5,17 +5,95 @@
|
|
|
5
5
|
"category": "text",
|
|
6
6
|
"order": 1,
|
|
7
7
|
"features": [
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
{
|
|
9
|
+
"code": "word_counter",
|
|
10
|
+
"explain": "Count words, characters, and lines in text",
|
|
11
|
+
"cmds": [
|
|
12
|
+
"word count",
|
|
13
|
+
"character count"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"code": "text_diff",
|
|
18
|
+
"explain": "Compare two texts and highlight differences",
|
|
19
|
+
"cmds": [
|
|
20
|
+
"diff",
|
|
21
|
+
"compare text"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"code": "case_convert",
|
|
26
|
+
"explain": "Convert text between uppercase, lowercase, camelCase",
|
|
27
|
+
"cmds": [
|
|
28
|
+
"case",
|
|
29
|
+
"uppercase",
|
|
30
|
+
"lowercase"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"code": "regex_tester",
|
|
35
|
+
"explain": "Test and debug regular expressions",
|
|
36
|
+
"cmds": [
|
|
37
|
+
"regex",
|
|
38
|
+
"pattern"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"code": "find_replace",
|
|
43
|
+
"explain": "Find and replace text",
|
|
44
|
+
"cmds": [
|
|
45
|
+
"find replace",
|
|
46
|
+
"search substitute"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"code": "prefix_suffix",
|
|
51
|
+
"explain": "Add prefix or suffix to each line",
|
|
52
|
+
"cmds": [
|
|
53
|
+
"prefix",
|
|
54
|
+
"suffix",
|
|
55
|
+
"lines"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"code": "line_breaks",
|
|
60
|
+
"explain": "Add or remove line breaks",
|
|
61
|
+
"cmds": [
|
|
62
|
+
"line break",
|
|
63
|
+
"wrap"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"code": "remove_duplicate_lines",
|
|
68
|
+
"explain": "Remove duplicate lines",
|
|
69
|
+
"cmds": [
|
|
70
|
+
"dedupe lines"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"code": "remove_empty_lines",
|
|
75
|
+
"explain": "Remove empty lines",
|
|
76
|
+
"cmds": [
|
|
77
|
+
"empty lines"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"code": "remove_extra_spaces",
|
|
82
|
+
"explain": "Trim and normalize whitespace",
|
|
83
|
+
"cmds": [
|
|
84
|
+
"trim",
|
|
85
|
+
"spaces"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"code": "em_dash",
|
|
90
|
+
"explain": "Replace em dashes with other punctuation",
|
|
91
|
+
"cmds": [
|
|
92
|
+
"em dash"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
19
95
|
],
|
|
20
|
-
"pluginSetting": {
|
|
21
|
-
|
|
96
|
+
"pluginSetting": {
|
|
97
|
+
"height": 520
|
|
98
|
+
}
|
|
99
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codeexpander/plugin-text",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.html",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
+
"plugin.json",
|
|
9
10
|
"README.md"
|
|
10
11
|
],
|
|
11
12
|
"publishConfig": {
|
|
@@ -25,10 +26,7 @@
|
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"lucide-react": "^0.462.0",
|
|
27
28
|
"react": "^18.3.1",
|
|
28
|
-
"react-dom": "^18.3.1"
|
|
29
|
-
"@codeexpander/dev-tools-i18n": "0.0.0",
|
|
30
|
-
"@codeexpander/plugin-types": "0.0.2",
|
|
31
|
-
"@codeexpander/dev-tools-ui": "0.0.0"
|
|
29
|
+
"react-dom": "^18.3.1"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
34
32
|
"@types/react": "^18.3.3",
|
|
@@ -39,11 +37,14 @@
|
|
|
39
37
|
"tailwindcss": "^3.4.11",
|
|
40
38
|
"tailwindcss-animate": "^1.0.7",
|
|
41
39
|
"typescript": "^5.5.3",
|
|
42
|
-
"vite": "^5.4.1"
|
|
40
|
+
"vite": "^5.4.1",
|
|
41
|
+
"@codeexpander/dev-tools-i18n": "0.0.0",
|
|
42
|
+
"@codeexpander/dev-tools-ui": "0.0.0",
|
|
43
|
+
"@codeexpander/plugin-types": "0.0.4"
|
|
43
44
|
},
|
|
44
45
|
"scripts": {
|
|
45
46
|
"dev": "vite",
|
|
46
|
-
"build": "vite build && cp plugin.json dist/",
|
|
47
|
+
"build": "vite build && cp plugin.json dist/ && node -e \"const fs=require('fs');const p=require('./dist/plugin.json');p.main='index.html';fs.writeFileSync('dist/plugin.json',JSON.stringify(p,null,2));\"",
|
|
47
48
|
"lint": "eslint . --max-warnings 0"
|
|
48
49
|
}
|
|
49
50
|
}
|
package/plugin.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "dist/index.html",
|
|
3
|
+
"title": "Text Tools",
|
|
4
|
+
"description": "Text utilities: word/character counter, text diff, case converter, regex tester, find & replace, prefix/suffix, line breaks, remove duplicate/empty/extra lines, em dash replacer. EN | 文本工具:字数统计、文本对比、大小写转换、正则、查找替换等。",
|
|
5
|
+
"category": "text",
|
|
6
|
+
"order": 1,
|
|
7
|
+
"features": [
|
|
8
|
+
{ "code": "word_counter", "explain": "Count words, characters, and lines in text", "cmds": ["word count", "character count"] },
|
|
9
|
+
{ "code": "text_diff", "explain": "Compare two texts and highlight differences", "cmds": ["diff", "compare text"] },
|
|
10
|
+
{ "code": "case_convert", "explain": "Convert text between uppercase, lowercase, camelCase", "cmds": ["case", "uppercase", "lowercase"] },
|
|
11
|
+
{ "code": "regex_tester", "explain": "Test and debug regular expressions", "cmds": ["regex", "pattern"] },
|
|
12
|
+
{ "code": "find_replace", "explain": "Find and replace text", "cmds": ["find replace", "search substitute"] },
|
|
13
|
+
{ "code": "prefix_suffix", "explain": "Add prefix or suffix to each line", "cmds": ["prefix", "suffix", "lines"] },
|
|
14
|
+
{ "code": "line_breaks", "explain": "Add or remove line breaks", "cmds": ["line break", "wrap"] },
|
|
15
|
+
{ "code": "remove_duplicate_lines", "explain": "Remove duplicate lines", "cmds": ["dedupe lines"] },
|
|
16
|
+
{ "code": "remove_empty_lines", "explain": "Remove empty lines", "cmds": ["empty lines"] },
|
|
17
|
+
{ "code": "remove_extra_spaces", "explain": "Trim and normalize whitespace", "cmds": ["trim", "spaces"] },
|
|
18
|
+
{ "code": "em_dash", "explain": "Replace em dashes with other punctuation", "cmds": ["em dash"] }
|
|
19
|
+
],
|
|
20
|
+
"pluginSetting": { "height": 520 }
|
|
21
|
+
}
|