-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy pathindex.html
More file actions
2099 lines (1849 loc) · 75 KB
/
index.html
File metadata and controls
2099 lines (1849 loc) · 75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>专业JSON/接口处理工具 - 增强编辑器全屏功能</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
rel="stylesheet"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
500: '#3b82f6',
600: '#2563eb',
},
dark: {
800: '#1e293b',
900: '#0f172a',
}
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, #0f172a, #1e293b);
color: #e2e8f0;
margin: 0;
overflow-x: hidden;
}
.glass-card {
background: rgba(30, 41, 59, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-gradient {
background: linear-gradient(90deg, #1e40af, #3b82f6);
}
.footer-gradient {
background: linear-gradient(90deg, rgba(30, 64, 175, 0.8), rgba(59, 130, 246, 0.8));
}
.tech-button {
background: linear-gradient(to right, #4f46e5, #7c3aed);
color: white;
transition: all 0.3s ease;
border: none;
}
.tech-button:hover {
background: linear-gradient(to right, #7c3aed, #4f46e5);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-primary {
background: linear-gradient(to right, #3b82f6, #2563eb);
color: white;
transition: all 0.3s ease;
border: none;
}
.btn-primary:hover {
background: linear-gradient(to right, #2563eb, #3b82f6);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.tech-input, .tech-select {
background: rgba(30, 41, 59, 0.8);
border: 1px solid rgba(74, 85, 104, 0.5);
color: #e2e8f0;
padding: 0.75rem;
border-radius: 12px;
transition: all 0.3s ease;
}
.tech-input:focus, .tech-select:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.tech-checkbox:checked {
background-color: #3b82f6;
border-color: #3b82f6;
}
.editor-tab {
padding: 0.75rem 1.5rem;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
font-weight: 500;
}
.editor-tab.active {
background: rgba(59, 130, 246, 0.2);
color: #3b82f6;
}
.file-drop-area {
border: 2px dashed rgba(59, 130, 246, 0.5);
transition: all 0.3s ease;
}
.file-drop-area:hover, .file-drop-area.dragover {
border-color: #3b82f6;
background: rgba(59, 130, 246, 0.1);
}
.toast {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 25px;
border-radius: 12px;
background: rgba(30, 41, 59, 0.95);
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
z-index: 1000;
opacity: 0;
transform: translateX(100%);
transition: all 0.4s ease;
border-left: 4px solid #3b82f6;
}
.toast.show {
opacity: 1;
transform: translateX(0);
}
.toast.toast-success {
border-left-color: #10b981;
}
.toast.toast-error {
border-left-color: #ef4444;
}
.footer-divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
margin: 1rem 0;
}
.security-overlay {
display: none;
}
.security-honeypot {
display: none;
}
.tech-title {
text-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
position: relative;
}
.tech-title:after {
content: '';
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 3px;
background: linear-gradient(to right, transparent, #3b82f6, transparent);
border-radius: 50%;
}
.priority-item {
transition: all 0.3s ease;
}
.priority-item:hover {
background: rgba(59, 130, 246, 0.15);
border-color: rgba(59, 130, 246, 0.5);
}
.priority-btn {
transition: all 0.2s ease;
}
.priority-btn:hover {
transform: scale(1.1);
}
.priority-btn.disabled {
opacity: 0.5;
cursor: not-allowed;
}
#clearEditorBtn.clearing {
animation: pulse 1s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
/* 新增的鼠标特效样式 */
#mouseCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
/* 新增导航栏样式 */
.top-navbar {
background: linear-gradient(90deg, #1e40af, #3b82f6);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.nav-container {
display: flex;
justify-content: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.nav-item {
padding: 0.5rem 1.5rem;
margin: 0 0.5rem;
border-radius: 50px;
color: #e2e8f0;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
background: rgba(255, 255, 255, 0.1);
}
.nav-item:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.nav-item.active {
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nav-item.active::after {
content: '';
position: absolute;
bottom: -8px;
left: 50%;
transform: translateX(-50%);
width: 80%;
height: 3px;
background: #fff;
border-radius: 3px;
}
.nav-icon {
margin-right: 8px;
}
/* 响应式调整 */
@media (max-width: 768px) {
.nav-container {
flex-wrap: wrap;
justify-content: center;
}
.nav-item {
padding: 0.4rem 1rem;
margin: 0.3rem;
font-size: 0.9rem;
}
.nav-item.active::after {
bottom: -6px;
height: 2px;
}
}
/* 调整标题位置 */
.header-gradient {
padding-top: 1.5rem;
}
/* 全屏模式样式 */
.fullscreen-mode {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
background: #0f172a;
padding: 20px;
display: flex;
flex-direction: column;
}
.editor-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 15px;
}
/* 移动端优化 */
@media (max-width: 768px) {
.mobile-fullscreen-btn {
display: block;
}
.desktop-fullscreen-btn {
display: none;
}
.editor-container .ace_editor {
font-size: 14px;
}
}
@media (min-width: 769px) {
.mobile-fullscreen-btn {
display: none;
}
.desktop-fullscreen-btn {
display: block;
}
}
.mobile-fullscreen-btn {
background: rgba(30, 41, 59, 0.8);
border: 1px solid rgba(74, 85, 104, 0.5);
color: #e2e8f0;
border-radius: 8px;
padding: 8px 12px;
cursor: pointer;
transition: all 0.3s ease;
}
.mobile-fullscreen-btn:hover {
background: rgba(30, 41, 59, 1);
border-color: #3b82f6;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.15.0/ace.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.15.0/mode-json.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.15.0/theme-dracula.min.js"></script>
</head>
<body class="flex flex-col min-h-screen">
<!-- 鼠标特效画布 -->
<canvas id="mouseCanvas"></canvas>
<!-- 安全防护蜜罐 -->
<div class="security-honeypot" id="securityHoneypot">
<input type="hidden" id="honeypotField" name="honeypot" value=""/>
</div>
<!-- 安全警告弹层 -->
<div
class="security-overlay fixed inset-0 bg-black bg-opacity-80 flex items-center justify-center z-50 hidden"
id="securityOverlay"
>
<div class="glass-card p-8 max-w-md w-full">
<div class="text-center">
<div class="text-yellow-400 text-4xl mb-4">
<i class="fas fa-shield-alt"></i>
</div>
<div class="text-xl font-bold text-white mb-2">
安全防护系统已激活
</div>
<div class="text-gray-300 mb-4">
<p>检测到非法访问行为,页面操作已被阻止</p>
<p>请关闭开发者工具并刷新页面继续使用</p>
</div>
<p class="text-sm text-gray-400">
错误代码: SEC-<span id="errorCode">0x0000</span>
</p>
</div>
</div>
<div id="closeSecurityOverlay">X</div>
<div id="securityShield">X</div>
</div>
<!-- Toast通知 -->
<div id="toast" class="toast"></div>
<!-- 页头 -->
<header class="header-gradient text-white shadow-xl">
<div class="container mx-auto px-4 py-10 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-4 tech-title">
DrpyS接口JSON/文本处理工具
</h1>
<p class="text-blue-200 max-w-3xl mx-auto text-lg">
DrpyS源配置编辑器 - 强大数据处理工具,支持JSON排序、清理和美化操作
</p>
</div>
</header> <!--
<div class="top-navbar">
<div class="nav-container">
<a href="./" class="nav-item active">
<i class="fas fa-sort-amount-down-alt nav-icon"></i>接口排序
</a>
<a href="./jx" class="nav-item">
<i class="fas fa-code nav-icon"></i>接口解析
</a>
<a href="./dq" class="nav-item">
<i class="fas fa-list nav-icon"></i>接口大全
</a>
<a href="./qt" class="nav-item">
<i class="fas fa-ellipsis-h nav-icon"></i>其他
</a>
</div>
</div> -->
<!-- 主应用区 -->
<section class="container mx-auto px-4 py-8 flex-grow w-full">
<!-- 卡片1: 编辑器 -->
<div class="glass-card p-3">
<!-- 编辑器标题和操作 -->
<div class="flex flex-wrap justify-between items-center mb-5 gap-3">
<h2 class="text-2xl font-bold">
<i class="fas fa-code text-blue-400 mr-2"></i>DrpyS源配置编辑器
</h2>
<div class="flex flex-wrap gap-2">
<button id="formatBtn" class="tech-button px-4 py-2 rounded-lg">
<i class="fas fa-indent mr-2"></i>格式化JSON
</button>
<button
id="validateBtn"
class="tech-button px-4 py-2 rounded-lg"
>
<i class="fas fa-check-circle mr-2"></i>验证JSON
</button>
<button
id="compressBtn"
class="tech-button px-4 py-2 rounded-lg"
>
<i class="fas fa-compress mr-2"></i>压缩JSON
</button>
<button
id="clearEditorBtn"
class="tech-button px-4 py-2 rounded-lg"
>
<i class="fas fa-trash mr-2"></i>清空输入
</button>
</div>
</div>
<!-- 编辑器标签切换 -->
<div class="editor-tabs flex mb-5 bg-gray-800 rounded-lg p-1">
<div class="editor-tab active" data-tab="input">输入编辑器</div>
<div class="editor-tab" data-tab="output">输出结果</div>
</div>
<!-- 编辑器容器 -->
<div
class="editor-container rounded-lg overflow-hidden"
id="editorContainer"
>
<!-- 修改后的高度示例 -->
<div id="inputEditor" class="h-96"></div>
<!-- h-96 = 24rem(384px) -->
<div id="outputEditor" class="h-96 hidden"></div>
</div>
<!-- 状态栏 -->
<div
class="flex justify-between items-center mt-4 text-sm text-gray-400"
>
<div class="flex items-center space-x-4">
<div class="flex items-center">
<i class="fas fa-align-left text-blue-400 mr-1"></i>
<span id="lineCount">0</span> 行
</div>
<div class="flex items-center">
<i class="fas fa-font text-blue-400 mr-1"></i>
<span id="charCount">0</span> 字符
</div>
</div>
<div id="processingIndicator" class="hidden items-center">
<i class="fas fa-spinner fa-spin text-blue-400 mr-2"></i>
处理中...
</div>
<!-- 新增移动端全屏按钮 -->
<div>
<button
id="enterFullscreenMobile"
class="mobile-fullscreen-btn"
title="全屏编辑"
>
<i class="fas fa-expand"></i>
</button>
</div>
</div>
<!-- 分隔线 -->
<div class="footer-divider"></div>
<!-- 输出操作按钮 -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<button
id="copyBtn"
class="tech-button py-2.5 text-gray-200 rounded-lg"
>
<i class="fas fa-copy mr-2"></i>复制内容
</button>
<button
id="downloadBtn"
class="tech-button py-2.5 text-gray-200 rounded-lg"
>
<i class="fas fa-download mr-2"></i>下载文件
</button>
<button
id="newProcessBtn"
class="tech-button py-2.5 text-gray-200 rounded-lg"
>
<i class="fas fa-redo mr-2"></i>处理新文件
</button>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-5 gap-8">
<!-- 左侧面板 -->
<div class="lg:col-span-2 flex flex-col gap-8">
<!-- 文件上传卡片 -->
<div class="glass-card p-3">
<h2 class="text-xl font-bold text-gray-200 mb-4 flex items-center">
<i class="fas fa-file-upload text-blue-400 mr-2"></i>文件上传
</h2>
<div
class="file-drop-area flex flex-col items-center justify-center p-3 border-2 border-dashed border-gray-600 rounded-xl cursor-pointer transition-all"
id="fileDropArea"
>
<input type="file" id="file" name="file" class="hidden"/>
<i
class="fas fa-cloud-upload-alt text-4xl text-blue-400 mb-4"
></i>
<p class="text-center font-medium text-gray-200 text-lg">
拖放文件或点击上传
</p>
<p class="text-sm text-gray-400 mt-2">支持 JSON/TXT 格式</p>
</div>
<div id="fileInfo" class="hidden mt-3">
<div class="flex items-center">
<i class="fas fa-file text-blue-400 mr-2"></i>
<span
id="fileNameDisplay"
class="font-medium text-gray-200 truncate"
></span>
</div>
</div>
<button
type="button"
id="clearFile"
class="mt-3 w-full py-2.5 bg-gray-700 hover:bg-gray-600 rounded-lg text-sm transition-colors tech-button hidden"
>
<i class="fas fa-times mr-2"></i>清除文件
</button>
</div>
<!-- 卡片2: 操作按钮 -->
<div class="glass-card p-3">
<div class="grid grid-cols-2 gap-4">
<button
id="processBtn"
class="btn-primary py-2.5 text-white rounded-lg font-medium"
>
<i class="fas fa-cogs mr-2"></i>处理数据
</button>
<button
id="resetForm"
class="tech-button py-2.5 rounded-lg font-medium"
>
<i class="fas fa-redo mr-2"></i>重置选项
</button>
</div>
<div class="flex items-center mt-4">
<input
type="checkbox"
name="autoDownload"
id="autoDownload"
value="1"
class="tech-checkbox rounded"
/>
<label for="autoDownload" class="ml-3 text-gray-300"
>处理后自动下载</label
>
</div>
</div>
<!-- 卡片3: 排序选项 -->
<div class="glass-card p-3">
<h2 class="text-xl font-bold text-gray-200 mb-4">排序选项</h2>
<!-- 默认排序方式 -->
<div class="mb-6">
<label class="block text-gray-200 font-medium mb-3"
>默认排序方式</label
>
<select
name="nameSortType"
class="tech-select w-full tech-input py-2 px-3 rounded-lg"
>
<option value="none" selected>初始顺序</option>
<!-- 新增选项 -->
<option value="chinese">中文排序</option>
<option value="abc">字母排序</option>
<option value="number">数字排序</option>
</select>
</div>
<!-- 关键词排序 -->
<div class="mb-6">
<div
class="priority-sort-option flex justify-between items-center mb-3"
>
<label class="flex items-center">
<input
type="checkbox"
id="enablePrioritySort"
name="enablePrioritySort"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300">启用关键词排序</span>
</label>
<button
type="button"
id="addPriority"
class="tech-button px-3 py-1 rounded-lg text-sm"
>
<i class="fas fa-plus mr-1"></i>添加规则
</button>
</div>
<!-- 排序优先级列表 -->
<div id="priorityList" class="space-y-3">
<div
class="priority-item flex items-center p-3 bg-gray-800 border border-gray-700 rounded-lg"
>
<input type="hidden" name="sortPriority[]" value="APP"/>
<span class="flex-grow text-gray-200">"APP"</span>
<div class="priority-actions flex gap-2">
<button
type="button"
class="priority-btn move-up disabled px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="上移"
>
<i class="fas fa-arrow-up"></i>
</button>
<button
type="button"
class="priority-btn move-down px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="下移"
>
<i class="fas fa-arrow-down"></i>
</button>
<button
type="button"
class="priority-btn remove-priority-btn px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="删除"
>
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div
class="priority-item flex items-center p-3 bg-gray-800 border border-gray-700 rounded-lg"
>
<input type="hidden" name="sortPriority[]" value="4K"/>
<span class="flex-grow text-gray-200">"4K"</span>
<div class="priority-actions flex gap-2">
<button
type="button"
class="priority-btn move-up px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="上移"
>
<i class="fas fa-arrow-up"></i>
</button>
<button
type="button"
class="priority-btn move-down px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="下移"
>
<i class="fas fa-arrow-down"></i>
</button>
<button
type="button"
class="priority-btn remove-priority-btn px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="删除"
>
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div
class="priority-item flex items-center p-3 bg-gray-800 border border-gray-700 rounded-lg"
>
<input type="hidden" name="sortPriority[]" value="动漫"/>
<span class="flex-grow text-gray-200">"动漫"</span>
<div class="priority-actions flex gap-2">
<button
type="button"
class="priority-btn move-up px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="上移"
>
<i class="fas fa-arrow-up"></i>
</button>
<button
type="button"
class="priority-btn move-down px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="下移"
>
<i class="fas fa-arrow-down"></i>
</button>
<button
type="button"
class="priority-btn remove-priority-btn px-3 py-1 bg-gray-700 rounded text-sm tech-button"
title="删除"
>
<i class="fas fa-times"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧面板 -->
<div class="lg:col-span-3 flex flex-col gap-3">
<!-- 卡片4: 文本处理 -->
<div class="glass-card p-3">
<h2 class="text-xl font-bold text-gray-200 mb-4">NAME文本处理</h2>
<div class="space-y-4">
<div>
<label class="flex items-center">
<input
type="checkbox"
name="removeSpecialChars"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300"
>移除特殊字符、空格和表情符号</span
>
</label>
<p class="text-xs text-gray-500 ml-7 mt-1">
只保留汉字、数字和英文字母
</p>
</div>
<div>
<label class="flex items-center">
<input
type="checkbox"
name="removeCustomChars"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300">移除自定义文字/符号</span>
</label>
<div class="mt-2">
<input
type="text"
name="customChars"
value=""
class="tech-input w-full py-2 px-3 rounded-lg"
placeholder="输入要移除的文字或符号(多个用 / 分隔)"
/>
<p class="text-xs text-gray-500 ml-1 mt-1">
例如: ★/测试/【】等(多个用 / 分隔)
</p>
</div>
</div>
<div>
<label class="flex items-center">
<input
type="checkbox"
name="addPrefixSuffix"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300"
>在name前后添加字符/符号/表情</span
>
</label>
<div class="grid grid-cols-2 gap-3 mt-2">
<input
type="text"
name="prefix"
value=""
class="tech-input py-2 px-3 rounded-lg"
placeholder="前缀"
/>
<input
type="text"
name="suffix"
value=""
class="tech-input py-2 px-3 rounded-lg"
placeholder="后缀"
/>
</div>
</div>
<!-- 增强的字符添加选项 -->
<div class="space-y-4 mt-5">
<label class="flex items-center">
<input
type="checkbox"
name="addBetweenCnEn"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300">中文与英文之间添加字符</span>
</label>
<input
type="text"
name="betweenCnEn"
value=""
class="tech-input w-full py-2 px-3 rounded-lg"
placeholder="例如: |"
/>
<label class="flex items-center">
<input
type="checkbox"
name="addBetweenCnNum"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300">中文与数字之间添加字符</span>
</label>
<input
type="text"
name="betweenCnNum"
value=""
class="tech-input w-full py-2 px-3 rounded-lg"
placeholder="例如: |"
/>
<label class="flex items-center">
<input
type="checkbox"
name="addBetweenEnNum"
class="tech-checkbox rounded"
/>
<span class="ml-3 text-gray-300">英文与数字之间添加字符</span>
</label>
<input
type="text"
name="betweenEnNum"
value=""
class="tech-input w-full py-2 px-3 rounded-lg"
placeholder="例如: |"
/>
</div>
</div>
</div>
<!-- 使用说明卡片 -->
<div class="glass-card p-5">
<h2 class="text-xl font-bold text-gray-200 mb-4 flex items-center">
<i class="fas fa-info-circle text-blue-400 mr-2"></i>使用说明
</h2>
<div class="space-y-3">
<div class="flex items-start">
<span
class="bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs mr-2 flex-shrink-0"
>1</span
>
<p>
<span class="font-bold text-blue-300">输入内容:</span
>在编辑器粘贴JSON/TXT内容或上传文件
</p>
</div>
<div class="flex items-start">
<span
class="bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs mr-2 flex-shrink-0"
>2</span
>
<p>
<span class="font-bold text-blue-300">编辑操作:</span
>使用编辑器上方按钮格式化、压缩或验证JSON
</p>
</div>
<div class="flex items-start">
<span
class="bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs mr-2 flex-shrink-0"
>3</span
>
<p>
<span class="font-bold text-blue-300">处理设置:</span
>配置排序规则、文本清理等选项
</p>
</div>
<div class="flex items-start">
<span
class="bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs mr-2 flex-shrink-0"
>4</span
>
<p>
<span class="font-bold text-blue-300">处理数据:</span
>应用处理规则并查看结果
</p>
</div>
<div class="flex items-start">
<span
class="bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-xs mr-2 flex-shrink-0"
>5</span
>
<p>
<span class="font-bold text-blue-300">输出结果:</span
>复制、下载或保存处理后的内容
</p>
</div>
</div>
</div>
</div>
</div>
<!-- 功能说明卡片 -->
<div class="glass-card p-3">
<h2 class="text-xl font-bold text-gray-200 mb-4 flex items-center">
<i class="fas fa-lightbulb text-yellow-400 mr-2"></i>功能说明
</h2>
<div class="space-y-4">
<div class="flex items-start">
<div
class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center mr-3 flex-shrink-0"
>
<i class="fas fa-sort-amount-down text-white text-sm"></i>
</div>
<div>
<h3 class="font-bold text-gray-200">JSON处理</h3>
<p class="text-sm text-gray-400">
支持对JSON数据中的"sites"数组进行排序、清理和美化操作
</p>
</div>
</div>
<div class="flex items-start">
<div
class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center mr-3 flex-shrink-0"
>
<i class="fas fa-sort-alpha-down text-white text-sm"></i>
</div>
<div>
<h3 class="font-bold text-gray-200">排序功能</h3>
<p class="text-sm text-gray-400">
支持关键词排序(按优先级分组)和默认排序(中文/字母/数字排序)两种方式
</p>
</div>
</div>
<div class="flex items-start">
<div
class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center mr-3 flex-shrink-0"
>
<i class="fas fa-broom text-white text-sm"></i>
</div>
<div>
<h3 class="font-bold text-gray-200">文本清理</h3>
<p class="text-sm text-gray-400">
移除特殊字符、空格和表情符号,只保留汉字、数字和英文字母
</p>