-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathindex.html
More file actions
2477 lines (2262 loc) · 133 KB
/
index.html
File metadata and controls
2477 lines (2262 loc) · 133 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>红狼 Claude Code 夺舍平台</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/dragula@3.7.3/dist/dragula.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dragula@3.7.3/dist/dragula.min.css">
<style>
.json-viewer {
font-family: 'Courier New', monospace;
white-space: pre-wrap;
word-break: break-word;
}
/* JSON语法高亮样式 */
.json-container {
position: relative;
background: #ffffff;
border: 1px solid #e1e8ed;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.json-header {
background: #f8f9fa;
color: #374151;
padding: 8px 16px;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
font-weight: 500;
}
.json-content {
padding: 16px;
max-height: 500px;
overflow-y: auto;
font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
font-size: 13px;
line-height: 1.6;
background: #ffffff;
}
/* 增强的JSON语法高亮 */
.json-string {
color: #032f62;
}
.json-number {
color: #d73a49;
font-weight: 600;
}
.json-boolean {
color: #6f42c1;
font-weight: 600;
}
.json-null {
color: #6a737d;
font-style: italic;
}
.json-key {
color: #005cc5;
font-weight: 600;
}
.json-punctuation {
color: #24292e;
font-weight: 500;
}
/* 树状显示样式 */
.json-tree {
font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
font-size: 13px;
line-height: 1.6;
}
.json-tree-item {
margin: 2px 0;
}
.json-tree-toggle {
cursor: pointer;
user-select: none;
display: inline-flex;
align-items: center;
padding: 2px 4px;
border-radius: 3px;
transition: background-color 0.15s ease;
}
.json-tree-toggle:hover {
background-color: rgba(0, 123, 255, 0.1);
}
.json-tree-icon {
display: inline-block;
width: 12px;
height: 12px;
margin-right: 6px;
transition: transform 0.15s ease;
color: #666;
transform: rotate(90deg);
}
.json-tree-collapsed .json-tree-icon {
transform: rotate(0deg);
}
.json-tree-children {
margin-left: 20px;
border-left: 1px solid #e1e8ed;
padding-left: 12px;
margin-top: 4px;
}
.json-tree-leaf {
margin-left: 12px;
display: flex;
align-items: flex-start;
}
/* 移除彩色圆点,直接用key颜色表示类型 */
.json-key.key-object { color: #007bff; font-weight: 600; }
.json-key.key-array { color: #28a745; font-weight: 600; }
.json-key.key-string { color: #6f42c1; font-weight: 600; }
.json-key.key-number { color: #dc3545; font-weight: 600; }
.json-key.key-boolean { color: #fd7e14; font-weight: 600; }
.json-key.key-null { color: #6c757d; font-weight: 600; }
/* JSON树状值的交互样式 */
.json-tree-value {
cursor: pointer;
padding: 2px 4px;
border-radius: 3px;
transition: background-color 0.15s ease;
user-select: none;
}
.json-tree-value:hover {
background-color: rgba(59, 130, 246, 0.1);
box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.json-tree-value:active {
background-color: rgba(59, 130, 246, 0.2);
}
/* 复制成功提示 */
.json-tree-value.copied {
background-color: rgba(16, 185, 129, 0.1);
box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}
.json-mode-toggle {
display: flex;
gap: 2px;
}
.json-mode-btn {
padding: 3px 6px;
background: #e5e7eb;
color: #374151;
border: 1px solid #d1d5db;
border-radius: 3px;
font-size: 10px;
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
}
.json-mode-btn:hover {
background: #d1d5db;
}
.json-mode-btn.active {
background: #3b82f6;
color: white;
border-color: #3b82f6;
}
.copy-btn {
padding: 3px 6px;
background: #3b82f6;
color: white;
border: none;
border-radius: 3px;
font-size: 11px;
cursor: pointer;
transition: background-color 0.2s;
display: flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
}
.copy-btn:hover {
background: #2563eb;
}
.copy-btn.copied {
background: #059669;
}
.record-item:hover {
background-color: #f8fafc;
}
.record-item.selected {
background-color: #e2e8f0;
border-left: 4px solid #3b82f6;
}
/* 分割线样式 */
.resizer {
width: 4px;
background: #e5e7eb;
cursor: col-resize;
position: relative;
transition: background-color 0.2s ease;
}
.resizer:hover {
background: #9ca3af;
}
.resizer:active {
background: #6b7280;
}
/* 筛选按钮样式 */
.filter-btn {
padding: 4px 8px;
font-size: 11px;
font-weight: 500;
border: 1px solid #d1d5db;
background: white;
color: #6b7280;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}
.filter-btn:hover {
background: #f3f4f6;
border-color: #9ca3af;
}
.filter-btn.active {
background: #3b82f6;
color: white;
border-color: #3b82f6;
}
.resizer::before {
content: '';
position: absolute;
top: 0;
left: -2px;
right: -2px;
bottom: 0;
background: transparent;
}
/* 全屏模态框样式 */
.fullscreen-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 1000;
display: none;
padding: 20px;
}
.fullscreen-content {
background: white;
border-radius: 8px;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
}
.fullscreen-header {
background: #f8f9fa;
padding: 16px 20px;
border-bottom: 1px solid #e5e7eb;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.fullscreen-actions {
display: flex;
align-items: center;
gap: 12px;
}
.fullscreen-body .json-container {
border: none !important;
box-shadow: none !important;
background: transparent !important;
height: 100% !important;
display: flex !important;
flex-direction: column !important;
}
.fullscreen-body .json-content {
flex: 1 !important;
max-height: none !important;
height: 100% !important;
border: none !important;
}
/* 全屏模式下的Grid布局样式 */
.fullscreen-body .sse-table-view > div {
height: calc(100vh - 150px) !important;
max-height: none !important;
display: flex !important;
flex-direction: column !important;
}
.fullscreen-body .sse-table-view > div > div:first-child {
flex-shrink: 0 !important;
}
.fullscreen-body .sse-table-view > div > div:last-child {
flex: 1 !important;
height: auto !important;
max-height: none !important;
}
/* 全屏模式下的其他视图样式 */
.fullscreen-body .sse-lines-view,
.fullscreen-body .sse-json-view,
.fullscreen-body .sse-tree-view {
height: calc(100vh - 200px) !important;
max-height: none !important;
overflow-y: auto !important;
}
.fullscreen-body {
flex: 1;
overflow-y: auto;
padding: 20px;
font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
font-size: 14px;
line-height: 1.6;
}
.fullscreen-close {
background: #f3f4f6;
color: #374151;
border: none;
width: 32px;
height: 32px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s;
}
.fullscreen-close:hover {
background: #e5e7eb;
}
/* 全屏模式下的容器样式 */
.fullscreen-clone {
width: 100%;
max-width: none;
border: none;
box-shadow: none;
background: #fff;
}
.fullscreen-clone .json-header {
position: sticky;
top: 0;
z-index: 10;
background: #fff !important;
border-bottom: 2px solid #e5e7eb !important;
padding: 8px 16px !important;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 0 !important;
}
.fullscreen-clone .json-header .flex {
gap: 8px;
}
.fullscreen-clone .json-mode-toggle {
gap: 6px;
}
.fullscreen-clone .json-mode-btn {
padding: 6px 12px;
font-size: 12px;
border-radius: 6px;
font-weight: 500;
}
.fullscreen-clone .copy-btn {
padding: 6px 8px;
min-width: 32px;
height: 32px;
}
/* 全屏模式下的内容区域 */
.fullscreen-clone .json-content {
padding: 12px 16px;
font-size: 13px;
line-height: 1.6;
}
/* 全屏模式下的树状视图优化 */
.fullscreen-clone .json-tree-leaf {
margin: 3px 0;
margin-left: 12px;
}
.fullscreen-clone .json-tree-children {
margin-left: 20px;
padding-left: 12px;
}
/* SSE表格样式优化 */
.sse-table-view table {
border: 1px solid #e9ecef;
border-radius: 6px;
overflow: hidden;
}
.sse-table-view th {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
position: sticky;
top: 0;
z-index: 5;
}
.sse-table-view tr:nth-child(even) {
background: #f8f9fa;
}
.sse-table-view tr:hover {
background: #e3f2fd;
}
.sse-table-view td {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sse-table-view td:last-child {
white-space: normal;
word-break: break-word;
}
/* 配置面板样式 */
.config-tab {
cursor: pointer;
transition: all 0.2s ease;
}
.config-tab.active {
color: #3b82f6 !important;
border-color: #3b82f6 !important;
}
.config-panel {
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* KEY 管理面板样式 */
.key-tab {
cursor: pointer;
transition: all 0.2s ease;
}
.key-tab.active {
color: #9333ea !important;
border-color: #9333ea !important;
}
.key-panel {
animation: fadeIn 0.3s ease-in-out;
}
.platform-enabled:checked + span {
color: #059669;
font-weight: 500;
}
.model-item {
cursor: pointer;
transition: all 0.2s ease;
padding: 8px;
border-radius: 4px;
border: 1px solid #e5e7eb;
margin-bottom: 4px;
user-select: none;
}
.model-item:hover {
background: #f3f4f6;
border-color: #d1d5db;
}
.model-item.selected {
background: #eff6ff;
border-color: #3b82f6;
color: #1d4ed8;
}
.model-item.priority {
border-color: #0ea5e9;
}
.drag-over {
background: #dbeafe !important;
border-color: #3b82f6 !important;
}
.scene-item {
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 16px;
background: #f9fafb;
}
.scene-item:hover {
background: #f3f4f6;
}
.drag-over {
border: 2px solid #3b82f6 !important;
background: #dbeafe !important;
}
.model-item.priority {
transition: all 0.2s ease;
}
.model-item.priority:hover {
transform: scale(1.02);
}
.model-item.dragging {
opacity: 0.5;
}
.drag-placeholder {
border: 2px dashed #3b82f6 !important;
background: #dbeafe !important;
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 0.8; }
}
.cursor-grab {
cursor: grab;
}
.cursor-grab:active {
cursor: grabbing;
}
/* 开屏提示样式 */
.welcome-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(5px);
animation: fadeIn 0.3s ease-in-out;
}
.welcome-modal {
background: white;
border-radius: 16px;
max-width: 800px;
width: 95%;
max-height: 85vh;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
animation: slideIn 0.3s ease-in-out;
display: flex;
flex-direction: column;
overflow: hidden;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-20px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.welcome-header {
text-align: center;
padding: 40px 48px 0 48px;
}
.welcome-title {
font-size: 28px;
font-weight: bold;
color: #1f2937;
margin-bottom: 12px;
}
.welcome-subtitle {
color: #6b7280;
font-size: 18px;
}
.welcome-content {
line-height: 1.7;
color: #374151;
padding: 40px 48px;
flex: 1;
overflow-y: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
.welcome-content::-webkit-scrollbar {
display: none; /* Chrome/Safari/Webkit */
}
.welcome-content h2 {
font-size: 20px;
font-weight: 600;
color: #1f2937;
margin: 24px 0 16px 0;
}
.welcome-content p {
margin-bottom: 16px;
font-size: 15px;
}
.welcome-highlight {
background: #fef3c7;
padding: 20px;
border-radius: 10px;
border-left: 4px solid #f59e0b;
margin: 24px 0;
font-size: 15px;
}
.welcome-buttons {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 24px 48px 40px 48px;
border-top: 1px solid #f3f4f6;
background: white;
border-radius: 0 0 16px 16px;
}
.btn-primary {
background: #3b82f6;
color: white;
padding: 14px 28px;
border-radius: 10px;
border: none;
cursor: pointer;
font-weight: 500;
font-size: 15px;
transition: all 0.2s;
}
.btn-primary:hover {
background: #2563eb;
transform: translateY(-1px);
}
.btn-secondary {
background: #f3f4f6;
color: #374151;
padding: 14px 28px;
border-radius: 10px;
border: none;
cursor: pointer;
font-weight: 500;
font-size: 15px;
transition: all 0.2s;
}
.btn-secondary:hover {
background: #e5e7eb;
transform: translateY(-1px);
}
.checkbox-container {
display: flex;
align-items: center;
gap: 10px;
}
.checkbox-container input[type="checkbox"] {
transform: scale(1.3);
margin: 0;
}
.checkbox-container label {
color: #6b7280;
font-size: 15px;
cursor: pointer;
}
/* Dragula自定义样式 */
.dragula-handle {
cursor: move;
display: inline-block;
width: 16px;
height: 32px;
border-radius: 4px;
margin-right: 12px;
position: relative;
}
.dragula-handle::before {
content: "⋮⋮";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #718096;
font-size: 12px;
line-height: 1;
}
.gu-mirror {
position: fixed !important;
margin: 0 !important;
z-index: 9999 !important;
opacity: 0.8;
list-style-type: none;
pointer-events: none;
}
.gu-hide {
display: none !important;
}
.gu-unselectable {
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
user-select: none !important;
}
.gu-transit {
opacity: 0.2;
}
.no-drag {
pointer-events: none;
}
.model-item-dragula {
margin-bottom: 8px;
background: white;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 12px;
transition: all 0.2s ease;
}
.model-item-dragula:hover {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* 工作模式选择高亮样式 */
/* Claude Code模式选中时的高亮 */
#label-claude-code:has(input:checked) {
background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
border: 2px solid #3b82f6;
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
transform: translateY(-1px);
}
#label-claude-code:has(input:checked) .text-gray-900 {
color: #1e40af !important;
font-weight: 600 !important;
}
#label-claude-code:has(input:checked) .text-gray-500 {
color: #3b82f6 !important;
font-weight: 500 !important;
}
/* 多平台转发模式选中时的高亮 */
#label-global-direct:has(input:checked) {
background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
border: 2px solid #10b981;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
transform: translateY(-1px);
}
#label-global-direct:has(input:checked) .text-gray-900 {
color: #065f46 !important;
font-weight: 600 !important;
}
#label-global-direct:has(input:checked) .text-gray-500 {
color: #10b981 !important;
font-weight: 500 !important;
}
/* 小模型路由模式选中时的高亮 */
#label-smart-routing:has(input:checked) {
background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
border: 2px solid #8b5cf6;
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
transform: translateY(-1px);
}
#label-smart-routing:has(input:checked) .text-gray-900 {
color: #581c87 !important;
font-weight: 600 !important;
}
#label-smart-routing:has(input:checked) .text-gray-500 {
color: #8b5cf6 !important;
font-weight: 500 !important;
}
</style>
</head>
<body class="bg-gray-100 h-screen flex flex-col">
<!-- 开屏欢迎提示 -->
<div id="welcome-overlay" class="welcome-overlay" style="display: none;">
<div class="welcome-modal">
<div class="welcome-header">
<div class="welcome-title">🎉 欢迎使用红狼 Claude Code 夺舍平台</div>
</div>
<div class="welcome-content">
<p>请你尽快在右上角创建一个你自己的 <strong>KEY</strong>,然后点击<strong>配置</strong>,选择对应的转发模式,并配置好对应 KEY。</p>
<h5 class="text-base font-medium text-gray-900 mb-4 flex items-center mt-6">
<div class="text-xl mr-3">⚙️</div>
快速夺舍命令
</h5>
<p class="text-sm text-gray-600 mb-4">在您的项目目录中执行以下命令:</p>
<div class="bg-gray-900 rounded-lg p-4 relative mb-6">
<button id="copy-welcome-commands" class="absolute top-2 right-2 px-2 py-1 text-xs bg-gray-700 hover:bg-gray-600 text-white rounded transition-colors" title="复制命令" onclick="copyWelcomeCommands()">
复制
</button>
<code class="block text-sm text-green-400 font-mono leading-relaxed">
<div>cd 对应目录</div>
<div>export ANTHROPIC_BASE_URL=http://127.0.0.1:8000/api/v1/claude-code</div>
<div>export ANTHROPIC_AUTH_TOKEN=your_key_here</div>
<div>claude</div>
</code>
</div>
<div class="welcome-highlight">
<strong>⚠️ 重要提示:</strong><br>
• 你必须使用 <code style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #e11d48; font-weight: 600;">lxs_</code> 开头的 Key 使用 Claude Code<br>
• 不能使用 <code style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #6b7280;">sk-</code> 开头的 key,
<code style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #6b7280;">sk-</code> 开头的 key 应该要配置到系统里
</div>
<p>如果有疑问,请公众号搜索 <strong>"洛小山"</strong> 获取技术支持。</p>
</div>
<div class="welcome-buttons">
<div class="checkbox-container">
<input type="checkbox" id="dont-show-again">
<label for="dont-show-again">不再显示此提示</label>
</div>
<div>
<button class="btn-secondary" onclick="closeWelcome()">稍后再说</button>
<button class="btn-primary" onclick="closeWelcomeAndOpenConfig()">立即配置</button>
</div>
</div>
</div>
</div>
<!-- 头部控制区域 -->
<div class="bg-white shadow-sm border-b">
<div class="px-6 py-5">
<div class="flex items-start justify-between">
<div class="flex-1">
<h1 class="text-2xl font-bold text-gray-900 mb-3">红狼 Claude Code 夺舍平台</h1>
<p class="text-sm text-gray-600 leading-relaxed max-w-2xl">
使用上有任何疑问,欢迎公众号搜索 "洛小山"留言。<br>
产品仅做学习交流之用,请勿用于违法用途。
</p>
</div>
<div class="flex items-center space-x-4 ml-6">
<!-- 状态显示 -->
<div class="flex items-center space-x-4 px-3 py-2 bg-gradient-to-r from-blue-50 to-green-50 border border-blue-200 rounded-lg">
<div class="flex items-center">
<div class="w-2 h-2 bg-blue-500 rounded-full mr-2 animate-pulse"></div>
<span class="text-xs font-medium text-gray-700">模式:</span>
<span id="current-work-mode" class="ml-1 px-2 py-1 bg-blue-100 text-blue-800 text-xs font-medium rounded">Claude Code模式</span>
</div>
<div class="flex items-center">
<div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
<span class="text-xs font-medium text-gray-700">状态:</span>
<span id="current-platform-status" class="ml-1 px-2 py-1 bg-green-100 text-green-800 text-xs font-medium rounded">正常运行</span>
</div>
</div>
<!-- 操作按钮 -->
<button id="config-btn" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg font-medium transition-colors">
配置
</button>
<button id="key-management-btn" class="bg-purple-500 hover:bg-purple-600 text-white px-4 py-2 rounded-lg font-medium transition-colors">
KEY
</button>
<button id="clear-btn" class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded-lg font-medium transition-colors">
清空记录
</button>
<button id="logout-btn" class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg font-medium transition-colors">
登出
</button>
</div>
</div>
</div>
</div>
<!-- 主内容区域 -->
<div class="flex-1 flex overflow-hidden" id="main-container">
<!-- 左侧API调用列表 -->
<div class="bg-white flex flex-col" id="left-panel" style="width: 33.333%">
<div class="p-4 border-b bg-gray-50">
<div class="flex justify-between items-center">
<h2 class="text-lg font-semibold text-gray-800">API 调用记录</h2>
<div class="flex items-center space-x-4">
<p class="text-sm text-gray-600">共 <span id="total-count">0</span> 条记录</p>
<!-- HTTP方法筛选 -->
<div class="flex items-center space-x-1">
<span class="text-xs text-gray-500 mr-2">筛选:</span>
<button class="filter-btn active" data-method="all" onclick="monitor.filterByMethod('all')">
全部
</button>
<button class="filter-btn" data-method="GET" onclick="monitor.filterByMethod('GET')">
GET
</button>
<button class="filter-btn" data-method="POST" onclick="monitor.filterByMethod('POST')">
POST
</button>
</div>
</div>
</div>
</div>
<div id="records-list" class="flex-1 overflow-y-auto">
<div id="no-records" class="p-8 text-center text-gray-500">
暂无API调用记录
</div>
</div>
</div>
<!-- 分割线 -->
<div class="resizer" id="resizer"></div>
<!-- 右侧详情面板 -->
<div class="bg-white flex flex-col" id="right-panel" style="flex: 1">
<div class="p-4 border-b bg-gray-50">
<h2 class="text-lg font-semibold text-gray-800">调用详情</h2>
</div>
<div id="detail-content" class="flex-1 overflow-y-auto p-6">
<div class="text-center text-gray-500 mt-20">
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
</svg>
<p class="mt-2">选择一个API调用查看详细信息</p>