-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2605 lines (2277 loc) · 109 KB
/
index.html
File metadata and controls
2605 lines (2277 loc) · 109 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="ru" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Codembo - Конвертер файлов в промпт</title>
<link rel="icon" type="image/x-icon" href="favicon.png">
<meta name="description" content="Codembo - бесплатный онлайн-конвертер кода в промпт для AI. Объединяйте файлы проекта в структурированные промпты для ChatGPT, Claude, Gemini. Поддержка 50+ языков программирования, фильтрация, дерево проекта, разбиение на части.">
<meta name="keywords" content="конвертер кода в промпт, code to prompt, AI промпт генератор, ChatGPT код, Claude промпт, объединить файлы проекта, структура проекта, код для нейросети, prompt engineering, кодовая база в промпт, файлы в промт">
<link rel="canonical" href="https://rytp-tv.github.io/Codembo/">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://rytp-tv.github.io/Codembo/">
<meta property="og:title" content="Codembo - Конвертер кода в промпт для AI">
<meta property="og:description" content="Быстро превращайте кодовую базу в структурированный промпт для ChatGPT, Claude и других AI. Фильтрация, дерево проекта, поддержка 50+ языков.">
<meta property="og:image" content="https://rytp-tv.github.io/Codembo/og-image.png">
<meta property="og:locale" content="ru_RU">
<meta property="og:site_name" content="Codembo">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://rytp-tv.github.io/Codembo/">
<meta property="twitter:title" content="Codembo - Конвертер кода в промпт для AI">
<meta property="twitter:description" content="Быстро превращайте кодовую базу в структурированный промпт для ChatGPT, Claude и других AI.">
<meta property="twitter:image" content="https://rytp-tv.github.io/Codembo/twitter-image.png">
<!-- JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Codembo",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Any",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "RUB"
},
"description": "Онлайн-инструмент для конвертации кода в промпты для AI. Объединяйте файлы проекта, создавайте структуру, фильтруйте и форматируйте для ChatGPT, Claude, Gemini.",
"url": "https://rytp-tv.github.io/Codembo/",
"featureList": "Объединение файлов проекта, Дерево структуры проекта, Фильтрация по расширениям и именам, Поддержка 50+ языков программирования, Разбиение на части по размеру, Нумерация строк, Нормализация кода",
"softwareVersion": "1.0",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"ratingCount": "150"
}
}
</script>
<style>
:root {
--bg-primary: #1e1e1e;
--bg-secondary: #252526;
--bg-tertiary: #2d2d30;
--bg-hover: #3c3c3c;
--bg-active: #094771;
--text-primary: #cccccc;
--text-secondary: #858585;
--text-muted: #6e6e6e;
--border-color: #3c3c3c;
--accent-color: #0e639c;
--accent-hover: #1177bb;
--success-color: #4ec9b0;
--warning-color: #dcdcaa;
--error-color: #f14c4c;
--scrollbar-bg: #1e1e1e;
--scrollbar-thumb: #424242;
--input-bg: #3c3c3c;
--code-bg: #1e1e1e;
--sidebar-width: 48px;
--panel-width: 300px;
}
[data-theme="light"] {
--bg-primary: #ffffff;
--bg-secondary: #f3f3f3;
--bg-tertiary: #ececec;
--bg-hover: #e8e8e8;
--bg-active: #0060c0;
--text-primary: #333333;
--text-secondary: #616161;
--text-muted: #999999;
--border-color: #e0e0e0;
--accent-color: #0066b8;
--accent-hover: #0055a0;
--success-color: #008000;
--warning-color: #795e26;
--error-color: #d32f2f;
--scrollbar-bg: #f3f3f3;
--scrollbar-thumb: #c1c1c1;
--input-bg: #ffffff;
--code-bg: #f5f5f5;
}
/* -- БАЗОВЫЕ СТИЛИ -- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-secondary);
}
/* -- LAYOUT -- */
.app-container {
display: flex;
height: 100vh;
}
/* -- SIDEBAR -- */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.sidebar-top {
flex: 1;
}
.sidebar-bottom {
border-top: 1px solid var(--border-color);
}
.sidebar-btn {
width: 100%;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
position: relative;
transition: color 0.15s;
}
.sidebar-btn:hover {
color: var(--text-primary);
}
.sidebar-btn.active {
color: var(--text-primary);
}
.sidebar-btn.active::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 2px;
background: var(--accent-color);
}
.sidebar-btn svg {
width: 24px;
height: 24px;
}
.sidebar-btn .badge {
position: absolute;
top: 8px;
right: 8px;
background: var(--accent-color);
color: white;
font-size: 10px;
padding: 1px 5px;
border-radius: 10px;
min-width: 18px;
text-align: center;
}
/* -- PANELS -- */
.panel {
width: var(--panel-width);
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: none;
flex-direction: column;
flex-shrink: 0;
}
.panel.active {
display: flex;
}
.panel-header {
padding: 10px 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-secondary);
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-content {
flex: 1;
overflow-y: auto;
padding: 8px;
}
.panel-section {
margin-bottom: 16px;
}
.panel-section-title {
font-size: 11px;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
user-select: none;
}
.panel-section-title:hover {
color: var(--text-primary);
}
.panel-section-title .chevron {
transition: transform 0.15s;
}
.panel-section.collapsed .chevron {
transform: rotate(-90deg);
}
.panel-section.collapsed .panel-section-content {
display: none;
}
/* -- FORM ELEMENTS -- */
.form-group {
margin-bottom: 12px;
}
.form-label {
display: block;
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 4px;
}
.form-input, .form-select, .form-textarea {
width: 100%;
padding: 6px 8px;
background: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-primary);
font-size: 13px;
font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
outline: none;
border-color: var(--accent-color);
}
.form-checkbox {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--text-primary);
cursor: pointer;
margin-bottom: 6px;
}
.form-checkbox input {
width: 14px;
height: 14px;
accent-color: var(--accent-color);
}
.btn {
padding: 6px 12px;
background: var(--accent-color);
border: none;
border-radius: 4px;
color: white;
font-size: 12px;
cursor: pointer;
transition: background 0.15s;
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn:hover {
background: var(--accent-hover);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-secondary:hover {
background: var(--bg-hover);
}
.btn-danger {
background: var(--error-color);
}
.btn-success {
background: var(--success-color);
color: #000;
}
.btn-sm {
padding: 4px 8px;
font-size: 11px;
}
.btn-group {
display: flex;
gap: 4px;
}
/* -- DROPZONE -- */
.dropzone {
border: 2px dashed var(--border-color);
border-radius: 8px;
padding: 24px;
text-align: center;
cursor: pointer;
transition: all 0.2s;
margin-bottom: 12px;
}
.dropzone:hover, .dropzone.dragover {
border-color: var(--accent-color);
background: var(--bg-tertiary);
}
.dropzone-icon {
font-size: 32px;
margin-bottom: 8px;
opacity: 0.7;
}
.dropzone-text {
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 12px;
}
.dropzone-buttons {
display: flex;
gap: 8px;
justify-content: center;
flex-wrap: wrap;
}
/* -- FILE LIST -- */
.file-search {
position: relative;
margin-bottom: 8px;
}
.file-search-input {
width: 100%;
padding: 6px 8px 6px 28px;
background: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-primary);
font-size: 12px;
}
.file-search-icon {
position: absolute;
left: 8px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
width: 14px;
height: 14px;
}
.file-list-container {
flex: 1;
overflow: hidden;
position: relative;
}
.file-list {
height: 100%;
overflow-y: auto;
}
.file-item {
display: flex;
align-items: center;
padding: 4px 8px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
gap: 6px;
}
.file-item:hover {
background: var(--bg-hover);
}
.file-item.selected {
background: var(--bg-active);
}
.file-item-icon {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.file-item-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-item-path {
font-size: 10px;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-item-actions {
display: none;
gap: 2px;
}
.file-item:hover .file-item-actions {
display: flex;
}
.file-item-btn {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
border-radius: 3px;
}
.file-item-btn:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.file-item-btn svg {
width: 14px;
height: 14px;
}
.folder-item {
font-weight: 500;
color: var(--warning-color);
}
.folder-toggle {
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.folder-toggle svg {
width: 10px;
height: 10px;
transition: transform 0.15s;
}
.folder-item.collapsed .folder-toggle svg {
transform: rotate(-90deg);
}
.file-stats {
padding: 8px;
font-size: 11px;
color: var(--text-muted);
border-top: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
}
/* -- RESIZER -- */
.resizer {
width: 6px;
background: var(--border-color);
cursor: col-resize;
user-select: none;
transition: background 0.15s;
flex-shrink: 0;
}
.resizer:hover {
background: var(--accent-color);
}
.resizer.active {
background: var(--accent-color);
}
/* -- MAIN AREA -- */
.main-area {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.main-header {
height: 35px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
padding: 0 12px;
gap: 12px;
}
.main-title {
font-size: 13px;
font-weight: 500;
}
.main-tabs {
display: flex;
gap: 2px;
margin-left: auto;
}
.main-tab {
padding: 6px 12px;
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 12px;
cursor: pointer;
border-radius: 4px 4px 0 0;
}
.main-tab:hover {
color: var(--text-primary);
}
.main-tab.active {
background: var(--bg-primary);
color: var(--text-primary);
}
.main-content {
flex: 1;
display: flex;
overflow: hidden;
}
/* -- OUTPUT AREA -- */
.output-container {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
}
.output-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-color);
}
.output-textarea {
flex: 1;
width: 100%;
padding: 12px;
background: var(--code-bg);
border: none;
color: var(--text-primary);
font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
font-size: 13px;
line-height: 1.5;
resize: none;
}
.output-textarea:focus {
outline: none;
}
.output-preview {
flex: 1;
overflow-y: auto;
padding: 12px;
background: var(--bg-primary);
}
.output-statusbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 12px;
background: var(--bg-tertiary);
border-top: 1px solid var(--border-color);
font-size: 11px;
color: var(--text-muted);
}
.status-group {
display: flex;
gap: 16px;
}
/* -- CHUNKS -- */
.chunks-panel {
width: 250px;
background: var(--bg-secondary);
border-left: 1px solid var(--border-color);
display: none;
flex-direction: column;
}
.chunks-panel.active {
display: flex;
}
.chunk-item {
padding: 8px 12px;
border-bottom: 1px solid var(--border-color);
cursor: pointer;
}
.chunk-item:hover {
background: var(--bg-hover);
}
.chunk-item.active {
background: var(--bg-active);
}
.chunk-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.chunk-title {
font-size: 12px;
font-weight: 500;
}
.chunk-size {
font-size: 10px;
color: var(--text-muted);
}
.chunk-files {
font-size: 10px;
color: var(--text-secondary);
}
.chunk-actions {
display: flex;
gap: 4px;
margin-top: 6px;
}
/* -- PREVIEW STYLES -- */
.preview-file {
margin-bottom: 16px;
border: 1px solid var(--border-color);
border-radius: 6px;
overflow: hidden;
}
.preview-file-header {
background: var(--bg-tertiary);
padding: 8px 12px;
font-size: 13px;
font-weight: 500;
border-bottom: 1px solid var(--border-color);
}
.preview-file-comment {
background: var(--warning-color);
color: #000;
padding: 6px 12px;
font-size: 12px;
font-style: italic;
}
.preview-code-wrapper {
background: var(--bg-hover);
padding: 4px 12px;
font-family: monospace;
font-size: 11px;
color: var(--text-secondary);
}
.preview-code {
background: var(--code-bg);
padding: 12px;
overflow-x: auto;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 12px;
line-height: 1.5;
}
/* -- TREE OUTPUT -- */
.tree-output {
background: var(--code-bg);
padding: 12px;
border-radius: 4px;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 12px;
line-height: 1.4;
white-space: pre;
overflow-x: auto;
color: var(--success-color);
max-height: 200px;
overflow-y: auto;
}
/* -- MODAL -- */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-overlay.active {
display: flex;
}
.modal {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 8px;
width: 90%;
max-width: 600px;
max-height: 80vh;
display: flex;
flex-direction: column;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--border-color);
}
.modal-title {
font-size: 14px;
font-weight: 600;
}
.modal-close {
background: transparent;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 4px;
}
.modal-close:hover {
color: var(--text-primary);
}
.modal-body {
flex: 1;
overflow-y: auto;
padding: 16px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid var(--border-color);
}
/* -- ASSOCIATIONS TABLE -- */
.assoc-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.assoc-table th, .assoc-table td {
padding: 8px;
text-align: left;
border-bottom: 1px solid var(--border-color);
}
.assoc-table th {
color: var(--text-secondary);
font-weight: 500;
}
.assoc-table input {
width: 100%;
padding: 4px 6px;
background: var(--input-bg);
border: 1px solid var(--border-color);
border-radius: 3px;
color: var(--text-primary);
font-size: 12px;
}
/* -- TOAST -- */
.toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: var(--bg-tertiary);
color: var(--text-primary);
padding: 10px 20px;
border-radius: 6px;
border: 1px solid var(--border-color);
font-size: 13px;
opacity: 0;
transition: all 0.3s;
z-index: 2000;
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
/* -- FILTERS -- */
.filter-tag {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
background: var(--accent-color);
color: white;
border-radius: 12px;
font-size: 11px;
margin: 2px;
}
.filter-tag-remove {
cursor: pointer;
opacity: 0.7;
}
.filter-tag-remove:hover {
opacity: 1;
}
.filters-active {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 8px;
}
/* -- RESPONSIVE -- */
@media (max-width: 1024px) {
.panel {
--panel-width: 260px;
}
.chunks-panel {
width: 200px;
}
}
@media (max-width: 768px) {
.panel {
position: fixed;
left: var(--sidebar-width);
top: 0;
bottom: 0;
z-index: 100;
}
.chunks-panel {
position: fixed;
right: 0;
top: 0;
bottom: 0;
z-index: 100;
}
.file-item-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-item {
min-width: 0;
}
.folder-children {
border-left: 1px solid var(--border-color);
margin-left: 12px;
}
}
</style>
</head>
<body>
<div class="app-container">
<!-- SIDEBAR -->
<aside class="sidebar">
<div class="sidebar-top">
<button class="sidebar-btn active" data-panel="files" title="Файлы (Ctrl+Shift+E)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/>
<polyline points="13 2 13 9 20 9"/>
</svg>
<span class="badge" id="fileCountBadge" style="display: none;">0</span>
</button>
<button class="sidebar-btn" data-panel="filter" title="Фильтры">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>
</svg>
</button>
<button class="sidebar-btn" data-panel="tree" title="Структура">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/>
</svg>
</button>
<button class="sidebar-btn" data-panel="template" title="Шаблон">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="16 18 22 12 16 6"/>
<polyline points="8 6 2 12 8 18"/>
</svg>
</button>
<button class="sidebar-btn" data-panel="settings" title="Настройки">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="0">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 8.25C9.92894 8.25 8.25 9.92893 8.25 12C8.25 14.0711 9.92894 15.75 12 15.75C14.0711 15.75 15.75 14.0711 15.75 12C15.75 9.92893 14.0711 8.25 12 8.25ZM9.75 12C9.75 10.7574 10.7574 9.75 12 9.75C13.2426 9.75 14.25 10.7574 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12Z" fill="currentColor"></path>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9747 1.25C11.5303 1.24999 11.1592 1.24999 10.8546 1.27077C10.5375 1.29241 10.238 1.33905 9.94761 1.45933C9.27379 1.73844 8.73843 2.27379 8.45932 2.94762C8.31402 3.29842 8.27467 3.66812 8.25964 4.06996C8.24756 4.39299 8.08454 4.66251 7.84395 4.80141C7.60337 4.94031 7.28845 4.94673 7.00266 4.79568C6.64714 4.60777 6.30729 4.45699 5.93083 4.40743C5.20773 4.31223 4.47642 4.50819 3.89779 4.95219C3.64843 5.14353 3.45827 5.3796 3.28099 5.6434C3.11068 5.89681 2.92517 6.21815 2.70294 6.60307L2.67769 6.64681C2.45545 7.03172 2.26993 7.35304 2.13562 7.62723C1.99581 7.91267 1.88644 8.19539 1.84541 8.50701C1.75021 9.23012 1.94617 9.96142 2.39016 10.5401C2.62128 10.8412 2.92173 11.0602 3.26217 11.2741C3.53595 11.4461 3.68788 11.7221 3.68786 12C3.68785 12.2778 3.53592 12.5538 3.26217 12.7258C2.92169 12.9397 2.62121 13.1587 2.39007 13.4599C1.94607 14.0385 1.75012 14.7698 1.84531 15.4929C1.88634 15.8045 1.99571 16.0873 2.13552 16.3727C2.26983 16.6469 2.45535 16.9682 2.67758 17.3531L2.70284 17.3969C2.92507 17.7818 3.11058 18.1031 3.28089 18.3565C3.45817 18.6203 3.64833 18.8564 3.89769 19.0477C4.47632 19.4917 5.20763 19.6877 5.93073 19.5925C6.30717 19.5429 6.647 19.3922 7.0025 19.2043C7.28833 19.0532 7.60329 19.0596 7.8439 19.1986C8.08452 19.3375 8.24756 19.607 8.25964 19.9301C8.27467 20.3319 8.31403 20.7016 8.45932 21.0524C8.73843 21.7262 9.27379 22.2616 9.94761 22.5407C10.238 22.661 10.5375 22.7076 10.8546 22.7292C11.1592 22.75 11.5303 22.75 11.9747 22.75H12.0252C12.4697 22.75 12.8407 22.75 13.1454 22.7292C13.4625 22.7076 13.762 22.661 14.0524 22.5407C14.7262 22.2616 15.2616 21.7262 15.5407 21.0524C15.686 20.7016 15.7253 20.3319 15.7403 19.93C15.7524 19.607 15.9154 19.3375 16.156 19.1985C16.3966 19.0596 16.7116 19.0532 16.9974 19.2042C17.3529 19.3921 17.6927 19.5429 18.0692 19.5924C18.7923 19.6876 19.5236 19.4917 20.1022 19.0477C20.3516 18.8563 20.5417 18.6203 20.719 18.3565C20.8893 18.1031 21.0748 17.7818 21.297 17.3969L21.3223 17.3531C21.5445 16.9682 21.7301 16.6468 21.8644 16.3726C22.0042 16.0872 22.1135 15.8045 22.1546 15.4929C22.2498 14.7697 22.0538 14.0384 21.6098 13.4598C21.3787 13.1586 21.0782 12.9397 20.7378 12.7258C20.464 12.5538 20.3121 12.2778 20.3121 11.9999C20.3121 11.7221 20.464 11.4462 20.7377 11.2742C21.0783 11.0603 21.3788 10.8414 21.6099 10.5401C22.0539 9.96149 22.2499 9.23019 22.1547 8.50708C22.1136 8.19546 22.0043 7.91274 21.8645 7.6273C21.7302 7.35313 21.5447 7.03183 21.3224 6.64695L21.2972 6.60318C21.0749 6.21825 20.8894 5.89688 20.7191 5.64347C20.5418 5.37967 20.3517 5.1436 20.1023 4.95225C19.5237 4.50826 18.7924 4.3123 18.0692 4.4075C17.6928 4.45706 17.353 4.60782 16.9975 4.79572C16.7117 4.94679 16.3967 4.94036 16.1561 4.80144C15.9155 4.66253 15.7524 4.39297 15.7403 4.06991C15.7253 3.66808 15.686 3.2984 15.5407 2.94762C15.2616 2.27379 14.7262 1.73844 14.0524 1.45933C13.762 1.33905 13.4625 1.29241 13.1454 1.27077C12.8407 1.24999 12.4697 1.24999 12.0252 1.25H11.9747ZM10.5216 2.84515C10.5988 2.81319 10.716 2.78372 10.9567 2.76729C11.2042 2.75041 11.5238 2.75 12 2.75C12.4762 2.75 12.7958 2.75041 13.0432 2.76729C13.284 2.78372 13.4012 2.81319 13.4783 2.84515C13.7846 2.97202 14.028 3.21536 14.1548 3.52165C14.1949 3.61826 14.228 3.76887 14.2414 4.12597C14.271 4.91835 14.68 5.68129 15.4061 6.10048C16.1321 6.51968 16.9974 6.4924 17.6984 6.12188C18.0143 5.9549 18.1614 5.90832 18.265 5.89467C18.5937 5.8514 18.9261 5.94047 19.1891 6.14228C19.2554 6.19312 19.3395 6.27989 19.4741 6.48016C19.6125 6.68603 19.7726 6.9626 20.0107 7.375C20.2488 7.78741 20.4083 8.06438 20.5174 8.28713C20.6235 8.50382 20.6566 8.62007 20.6675 8.70287C20.7108 9.03155 20.6217 9.36397 20.4199 9.62698C20.3562 9.70995 20.2424 9.81399 19.9397 10.0041C19.2684 10.426 18.8122 11.1616 18.8121 11.9999C18.8121 12.8383 19.2683 13.574 19.9397 13.9959C20.2423 14.186 20.3561 14.29 20.4198 14.373C20.6216 14.636 20.7107 14.9684 20.6674 15.2971C20.6565 15.3799 20.6234 15.4961 20.5173 15.7128C20.4082 15.9355 20.2487 16.2125 20.0106 16.6249C19.7725 17.0373 19.6124 17.3139 19.474 17.5198C19.3394 17.72 19.2553 17.8068 19.189 17.8576C18.926 18.0595 18.5936 18.1485 18.2649 18.1053C18.1613 18.0916 18.0142 18.045 17.6983 17.8781C16.9973 17.5075 16.132 17.4803 15.4059 17.8995C14.68 18.3187 14.271 19.0816 14.2414 19.874C14.228 20.2311 14.1949 20.3817 14.1548 20.4784C14.028 20.7846 13.7846 21.028 13.4783 21.1549C13.4012 21.1868 13.284 21.2163 13.0432 21.2327C12.7958 21.2496 12.4762 21.25 12 21.25C11.5238 21.25 11.2042 21.2496 10.9567 21.2327C10.716 21.2163 10.5988 21.1868 10.5216 21.1549C10.2154 21.028 9.97201 20.7846 9.84514 20.4784C9.80512 20.3817 9.77195 20.2311 9.75859 19.874C9.72896 19.0817 9.31997 18.3187 8.5939 17.8995C7.86784 17.4803 7.00262 17.5076 6.30158 17.8781C5.98565 18.0451 5.83863 18.0917 5.73495 18.1053C5.40626 18.1486 5.07385 18.0595 4.81084 17.8577C4.74458 17.8069 4.66045 17.7201 4.52586 17.5198C4.38751 17.314 4.22736 17.0374 3.98926 16.625C3.75115 16.2126 3.59171 15.9356 3.4826 15.7129C3.37646 15.4962 3.34338 15.3799 3.33248 15.2971C3.28921 14.9684 3.37828 14.636 3.5801 14.373C3.64376 14.2901 3.75761 14.186 4.0602 13.9959C4.73158 13.5741 5.18782 12.8384 5.18786 12.0001C5.18791 11.1616 4.73165 10.4259 4.06021 10.004C3.75769 9.81389 3.64385 9.70987 3.58019 9.62691C3.37838 9.3639 3.28931 9.03149 3.33258 8.7028C3.34348 8.62001 3.37656 8.50375 3.4827 8.28707C3.59181 8.06431 3.75125 7.78734 3.98935 7.37493C4.22746 6.96253 4.3876 6.68596 4.52596 6.48009C4.66055 6.27983 4.74468 6.19305 4.81093 6.14222C5.07395 5.9404 5.40636 5.85133 5.73504 5.8946C5.83873 5.90825 5.98576 5.95483 6.30173 6.12184C7.00273 6.49235 7.86791 6.51962 8.59394 6.10045C9.31998 5.68128 9.72896 4.91837 9.75859 4.12602C9.77195 3.76889 9.80512 3.61827 9.84514 3.52165C9.97201 3.21536 10.2154 2.97202 10.5216 2.84515Z" fill="currentColor"></path>
</svg>