-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
980 lines (942 loc) · 40.1 KB
/
index.html
File metadata and controls
980 lines (942 loc) · 40.1 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>@knighted/develop</title>
<link rel="icon" type="image/svg+xml" href="favicon.svg" sizes="any" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="app-header">
<div>
<h1>
<a
class="brand-link"
href="https://github.com/knightedcodemonkey/develop"
target="_blank"
rel="noopener noreferrer"
><img
class="brand-logo"
src="logo.svg"
alt=""
aria-hidden="true"
width="24"
height="24"
/><span class="brand-text">@knighted/develop</span></a
>
</h1>
<p>UI component workbench with compiler-as-a-service.</p>
</div>
<div class="status" id="status" role="status" aria-label="App status">Idle</div>
</header>
<main class="app-grid">
<div class="app-grid-layout-controls" role="group" aria-label="App grid layout">
<div
class="app-grid-ai-controls"
id="github-ai-controls"
role="group"
aria-label="GitHub controls"
hidden
>
<div class="github-token-control-wrap">
<button
class="github-token-info"
id="github-token-info"
type="button"
aria-label="About GitHub token features and privacy"
aria-expanded="false"
aria-controls="github-token-info-panel"
>
<svg
class="github-token-info__icon github-token-info__icon--missing"
viewBox="0 0 24 24"
aria-hidden="true"
>
<path
d="M13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-2.517-7.665c.112-.223.268-.424.488-.57C11.186 8.12 11.506 8 12 8c.384 0 .766.118 1.034.319a.953.953 0 0 1 .403.806c0 .48-.218.81-.62 1.186a9.293 9.293 0 0 1-.409.354 19.8 19.8 0 0 0-.294.249c-.246.213-.524.474-.738.795l-.126.19V13.5a.75.75 0 0 0 1.5 0v-1.12c.09-.1.203-.208.347-.333.063-.055.14-.119.222-.187.166-.14.358-.3.52-.452.536-.5 1.098-1.2 1.098-2.283a2.45 2.45 0 0 0-1.003-2.006C13.37 6.695 12.658 6.5 12 6.5c-.756 0-1.373.191-1.861.517a2.944 2.944 0 0 0-.997 1.148.75.75 0 0 0 1.341.67Z"
></path>
<path
d="M9.864 1.2a3.61 3.61 0 0 1 4.272 0l1.375 1.01c.274.2.593.333.929.384l1.686.259a3.61 3.61 0 0 1 3.021 3.02l.259 1.687c.051.336.183.655.384.929l1.01 1.375a3.61 3.61 0 0 1 0 4.272l-1.01 1.375a2.106 2.106 0 0 0-.384.929l-.259 1.686a3.61 3.61 0 0 1-3.02 3.021l-1.687.259a2.106 2.106 0 0 0-.929.384l-1.375 1.01a3.61 3.61 0 0 1-4.272 0l-1.375-1.01a2.106 2.106 0 0 0-.929-.384l-1.686-.259a3.61 3.61 0 0 1-3.021-3.02l-.259-1.687a2.106 2.106 0 0 0-.384-.929L1.2 14.136a3.61 3.61 0 0 1 0-4.272l1.01-1.375c.201-.274.333-.593.384-.929l.259-1.686a3.61 3.61 0 0 1 3.02-3.021l1.687-.259c.336-.051.655-.183.929-.384Zm3.384 1.209a2.11 2.11 0 0 0-2.496 0l-1.376 1.01a3.61 3.61 0 0 1-1.589.658l-1.686.258a2.111 2.111 0 0 0-1.766 1.766l-.258 1.686a3.614 3.614 0 0 1-.658 1.59l-1.01 1.375a2.11 2.11 0 0 0 0 2.496l1.01 1.376a3.61 3.61 0 0 1 .658 1.589l.258 1.686a2.11 2.11 0 0 0 1.766 1.765l1.686.26a3.613 3.613 0 0 1 1.59.657l1.375 1.01a2.11 2.11 0 0 0 2.496 0l1.376-1.01a3.61 3.61 0 0 1 1.589-.658l1.686-.258a2.11 2.11 0 0 0 1.765-1.766l.26-1.686a3.613 3.613 0 0 1 .657-1.59l1.01-1.375a2.11 2.11 0 0 0 0-2.496l-1.01-1.376a3.61 3.61 0 0 1-.658-1.589l-.258-1.686a2.111 2.111 0 0 0-1.766-1.766l-1.686-.258a3.614 3.614 0 0 1-1.59-.658Z"
></path>
</svg>
<svg
class="github-token-info__icon github-token-info__icon--present"
viewBox="0 0 24 24"
aria-hidden="true"
>
<path
d="M17.03 9.78a.75.75 0 0 0-1.06-1.06l-5.47 5.47-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6-6Z"
></path>
<path
d="m14.136 1.2 1.375 1.01c.274.201.593.333.929.384l1.687.259a3.61 3.61 0 0 1 3.02 3.021l.259 1.686c.051.336.183.655.384.929l1.01 1.375a3.61 3.61 0 0 1 0 4.272l-1.01 1.375a2.106 2.106 0 0 0-.384.929l-.259 1.687a3.61 3.61 0 0 1-3.021 3.02l-1.686.259a2.106 2.106 0 0 0-.929.384l-1.375 1.01a3.61 3.61 0 0 1-4.272 0l-1.375-1.01a2.106 2.106 0 0 0-.929-.384l-1.687-.259a3.61 3.61 0 0 1-3.02-3.021l-.259-1.686a2.117 2.117 0 0 0-.384-.929L1.2 14.136a3.61 3.61 0 0 1 0-4.272l1.01-1.375c.201-.274.333-.593.384-.929l.259-1.687a3.61 3.61 0 0 1 3.021-3.02l1.686-.259c.336-.051.655-.183.929-.384L9.864 1.2a3.61 3.61 0 0 1 4.272 0Zm-3.384 1.209-1.375 1.01a3.614 3.614 0 0 1-1.59.658l-1.686.258a2.111 2.111 0 0 0-1.766 1.766l-.258 1.686a3.61 3.61 0 0 1-.658 1.589l-1.01 1.376a2.11 2.11 0 0 0 0 2.496l1.01 1.375c.344.469.57 1.015.658 1.59l.258 1.686c.14.911.855 1.626 1.766 1.766l1.686.258a3.61 3.61 0 0 1 1.589.658l1.376 1.01a2.11 2.11 0 0 0 2.496 0l1.375-1.01a3.613 3.613 0 0 1 1.59-.657l1.686-.26a2.11 2.11 0 0 0 1.766-1.765l.258-1.686a3.61 3.61 0 0 1 .658-1.589l1.01-1.376a2.11 2.11 0 0 0 0-2.496l-1.01-1.375a3.613 3.613 0 0 1-.657-1.59l-.26-1.686a2.11 2.11 0 0 0-1.765-1.766l-1.686-.258a3.61 3.61 0 0 1-1.589-.658l-1.376-1.01a2.11 2.11 0 0 0-2.496 0Z"
></path>
</svg>
</button>
<div class="github-token-info-panel" id="github-token-info-panel" hidden>
<p
class="github-token-info-message github-token-info-message--missing-token"
>
Provide a GitHub PAT to open pull requests against your repos or chat with
GitHub models. Read more about it in the
<a
href="https://github.com/knightedcodemonkey/develop/blob/main/docs/byot.md"
target="_blank"
rel="noreferrer noopener"
>docs</a
>.
</p>
<p class="github-token-info-message github-token-info-message--has-token">
This token is stored only in your browser and is sent only to GitHub APIs
you invoke. Use the trash icon to remove it from storage.
</p>
</div>
<label class="sr-only" for="github-token-input">GitHub token</label>
<input
class="github-token-input"
id="github-token-input"
type="text"
autocomplete="off"
autocapitalize="off"
spellcheck="false"
placeholder="GitHub PAT"
aria-label="GitHub token"
aria-describedby="github-token-privacy-note"
/>
<span class="sr-only" id="github-token-privacy-note"
>This token is stored only in your browser and is sent only to GitHub APIs
you invoke.</span
>
<button
class="layout-toggle github-token-add"
id="github-token-add"
type="button"
aria-label="Add GitHub token"
title="Add GitHub token"
>
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"
></path>
</svg>
</button>
<button
class="layout-toggle github-token-delete"
id="github-token-delete"
type="button"
aria-label="Delete GitHub token"
title="Delete GitHub token"
hidden
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M4 7h16"></path>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12"></path>
<path d="M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"></path>
</svg>
</button>
</div>
<button
class="diagnostics-toggle github-pr-toggle"
id="github-pr-toggle"
type="button"
aria-expanded="false"
aria-controls="github-pr-drawer"
title="Open pull request"
disabled
>
<svg id="github-pr-toggle-icon" viewBox="0 0 16 16" aria-hidden="true">
<path
id="github-pr-toggle-icon-path"
d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"
></path>
</svg>
<span id="github-pr-toggle-label">Open PR</span>
</button>
<button
class="diagnostics-toggle github-pr-context-close"
id="github-pr-context-close"
type="button"
aria-label="Close active pull request context"
title="Close active pull request context"
hidden
>
<svg
class="github-pr-context-close__icon"
viewBox="0 0 24 24"
aria-hidden="true"
>
<path
d="M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"
></path>
</svg>
<span class="github-pr-context-close__label">Close</span>
</button>
<button
class="diagnostics-toggle github-pr-context-disconnect"
id="github-pr-context-disconnect"
type="button"
aria-label="Disconnect active pull request context"
title="Disconnect active pull request context"
hidden
>
<svg
class="github-pr-context-disconnect__icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
aria-hidden="true"
>
<path
d="M9.036 7.976a.75.75 0 0 0-1.06 1.06L10.939 12l-2.963 2.963a.75.75 0 1 0 1.06 1.06L12 13.06l2.963 2.964a.75.75 0 0 0 1.061-1.06L13.061 12l2.963-2.964a.75.75 0 1 0-1.06-1.06L12 10.939 9.036 7.976Z"
></path>
<path
d="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"
></path>
</svg>
<span class="github-pr-context-disconnect__label">Disconnect</span>
</button>
<button
class="diagnostics-toggle ai-chat-toggle"
id="ai-chat-toggle"
type="button"
aria-expanded="false"
aria-controls="ai-chat-drawer"
hidden
>
<svg
class="ai-chat-toggle__icon"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
aria-hidden="true"
>
<path
d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"
></path>
<path
d="M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"
></path>
</svg>
<span>Chat</span>
</button>
</div>
<div class="app-grid-layout-top-controls" role="group" aria-label="Rail controls">
<div
class="app-grid-diagnostics-controls"
role="group"
aria-label="Diagnostics"
>
<button
class="diagnostics-toggle"
id="diagnostics-toggle"
type="button"
aria-expanded="false"
aria-controls="diagnostics-drawer"
>
Diagnostics
</button>
</div>
<button
class="diagnostics-toggle app-grid-view-toggle"
id="view-controls-toggle"
type="button"
aria-expanded="false"
aria-controls="view-controls-drawer"
>
View
</button>
<button
class="diagnostics-toggle app-grid-ai-toggle"
id="ai-controls-toggle"
type="button"
aria-expanded="false"
aria-controls="github-ai-controls"
hidden
>
<span>GitHub</span>
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
d="M6.766 11.328c-2.063-.25-3.516-1.734-3.516-3.656 0-.781.281-1.625.75-2.188-.203-.515-.172-1.609.063-2.062.625-.078 1.468.25 1.968.703.594-.187 1.219-.281 1.985-.281.765 0 1.39.094 1.953.265.484-.437 1.344-.765 1.969-.687.218.422.25 1.515.046 2.047.5.593.766 1.39.766 2.203 0 1.922-1.453 3.375-3.547 3.64.531.344.89 1.094.89 1.954v1.625c0 .468.391.734.86.547C13.781 14.359 16 11.53 16 8.03 16 3.61 12.406 0 7.984 0 3.563 0 0 3.61 0 8.031a7.88 7.88 0 0 0 5.172 7.422c.422.156.828-.125.828-.547v-1.25c-.219.094-.5.156-.75.156-1.031 0-1.64-.562-2.078-1.609-.172-.422-.36-.672-.719-.719-.187-.015-.25-.093-.25-.187 0-.188.313-.328.625-.328.453 0 .844.281 1.25.86.313.452.64.655 1.031.655s.641-.14 1-.5c.266-.265.47-.5.657-.656"
></path>
</svg>
</button>
</div>
<div
class="app-grid-view-controls"
id="view-controls-drawer"
role="group"
aria-label="Layout and theme controls"
hidden
>
<div class="app-grid-layout-toggle-controls" role="group" aria-label="Layout">
<button
class="layout-toggle"
id="layout-default"
type="button"
data-app-grid-layout="default"
aria-pressed="true"
title="Component + Styles on top, Preview below"
aria-label="Use stacked preview layout"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="3" y="3" width="8" height="7" rx="1"></rect>
<rect x="13" y="3" width="8" height="7" rx="1"></rect>
<rect x="3" y="12" width="18" height="9" rx="1"></rect>
</svg>
</button>
<button
class="layout-toggle"
id="layout-preview-right"
type="button"
data-app-grid-layout="preview-right"
aria-pressed="false"
title="Component + Styles on left, Preview on right"
aria-label="Use side preview layout"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="3" y="3" width="8" height="8" rx="1"></rect>
<rect x="3" y="13" width="8" height="8" rx="1"></rect>
<rect x="13" y="3" width="8" height="18" rx="1"></rect>
</svg>
</button>
<button
class="layout-toggle"
id="layout-preview-left"
type="button"
data-app-grid-layout="preview-left"
aria-pressed="false"
title="Preview on left, Component + Styles on right"
aria-label="Use left preview layout"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="3" y="3" width="8" height="18" rx="1"></rect>
<rect x="13" y="3" width="8" height="8" rx="1"></rect>
<rect x="13" y="13" width="8" height="8" rx="1"></rect>
</svg>
</button>
</div>
<div class="app-grid-theme-controls" role="group" aria-label="Theme">
<button
class="layout-toggle"
id="theme-dark"
type="button"
data-app-theme="dark"
aria-pressed="true"
title="Use dark theme"
aria-label="Use dark theme"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M21 13.5A8.5 8.5 0 1 1 10.5 3 6.8 6.8 0 0 0 21 13.5z"></path>
</svg>
</button>
<button
class="layout-toggle"
id="theme-light"
type="button"
data-app-theme="light"
aria-pressed="false"
title="Use light theme"
aria-label="Use light theme"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="12" r="4"></circle>
<path d="M12 2v3"></path>
<path d="M12 19v3"></path>
<path d="M2 12h3"></path>
<path d="M19 12h3"></path>
<path d="m4.93 4.93 2.12 2.12"></path>
<path d="m16.95 16.95 2.12 2.12"></path>
<path d="m19.07 4.93-2.12 2.12"></path>
<path d="m7.05 16.95-2.12 2.12"></path>
</svg>
</button>
</div>
</div>
</div>
<div class="panels-stack panels-stack--editors">
<section
class="panel component-panel panel--tools-hidden"
id="component-panel"
aria-labelledby="component-header"
>
<div class="panel-header panel-header--grid">
<h2 id="component-header" class="panel-header__title-with-status">
<span>Component</span>
<svg
class="panel-header__sync-icon"
id="component-pr-sync-icon"
viewBox="0 0 16 16"
aria-hidden="true"
title="Synced from active pull request context"
hidden
>
<path id="component-pr-sync-icon-path"></path>
</svg>
</h2>
<div class="controls controls--quick-actions panel-header-quick-actions">
<button
class="panel-collapse-toggle"
id="collapse-component"
type="button"
data-panel-collapse="component"
data-collapse-axis="vertical"
data-collapsed="false"
aria-expanded="true"
aria-controls="component-panel-content"
aria-label="Collapse component panel"
title="Collapse component panel"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="m6 9 6 6 6-6"></path>
</svg>
<span class="panel-collapse-toggle__label">Collapse</span>
</button>
<button
class="icon-button editor-tools-toggle"
id="tools-component"
type="button"
data-editor-tools-toggle="component"
aria-pressed="false"
title="Show component tools"
aria-label="Show component tools"
>
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"
></path>
</svg>
</button>
<button
class="icon-button"
id="copy-component"
type="button"
title="Copy component source"
aria-label="Copy component source"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="9" y="9" width="10" height="10" rx="2"></rect>
<path
d="M6 15H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1"
></path>
</svg>
</button>
<button
class="icon-button"
id="clear-component"
type="button"
title="Clear component source"
aria-label="Clear component source"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M4 7h16"></path>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12"></path>
<path d="M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"></path>
</svg>
</button>
</div>
<div class="panel-header-main-actions">
<div class="controls controls--actions">
<label class="toggle">
<input id="auto-render" type="checkbox" checked />
Auto render
</label>
<button class="render-button" id="render-button" type="button">
Render
</button>
<button class="render-button" id="typecheck-button" type="button">
Typecheck
</button>
<button
class="render-button"
id="lint-component-button"
type="button"
aria-label="Component lint"
>
Lint
</button>
<label>
<span class="sr-only">Render mode</span>
<select id="render-mode">
<option value="dom" selected>DOM</option>
<option value="react">React</option>
</select>
</label>
</div>
</div>
</div>
<div class="panel-content" id="component-panel-content">
<textarea
id="jsx-editor"
spellcheck="false"
aria-label="Component source editor fallback"
aria-multiline="true"
></textarea>
</div>
</section>
<section
class="panel styles-panel panel--tools-hidden"
id="styles-panel"
aria-labelledby="styles-header"
>
<div class="panel-header panel-header--grid">
<h2 id="styles-header" class="panel-header__title-with-status">
<span>Styles</span>
<svg
class="panel-header__sync-icon"
id="styles-pr-sync-icon"
viewBox="0 0 16 16"
aria-hidden="true"
title="Synced from active pull request context"
hidden
>
<path id="styles-pr-sync-icon-path"></path>
</svg>
</h2>
<div class="controls controls--quick-actions panel-header-quick-actions">
<button
class="panel-collapse-toggle"
id="collapse-styles"
type="button"
data-panel-collapse="styles"
data-collapse-axis="vertical"
data-collapsed="false"
aria-expanded="true"
aria-controls="styles-panel-content"
aria-label="Collapse styles panel"
title="Collapse styles panel"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="m6 9 6 6 6-6"></path>
</svg>
<span class="panel-collapse-toggle__label">Collapse</span>
</button>
<button
class="icon-button editor-tools-toggle"
id="tools-styles"
type="button"
data-editor-tools-toggle="styles"
aria-pressed="false"
title="Show styles tools"
aria-label="Show styles tools"
>
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"
></path>
</svg>
</button>
<button
class="icon-button"
id="copy-styles"
type="button"
title="Copy styles source"
aria-label="Copy styles source"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="9" y="9" width="10" height="10" rx="2"></rect>
<path
d="M6 15H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1"
></path>
</svg>
</button>
<button
class="icon-button"
id="clear-styles"
type="button"
title="Clear styles source"
aria-label="Clear styles source"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M4 7h16"></path>
<path d="M10 11v6"></path>
<path d="M14 11v6"></path>
<path d="M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12"></path>
<path d="M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"></path>
</svg>
</button>
</div>
<div class="panel-header-main-actions">
<div class="controls controls--actions">
<button
class="render-button"
id="lint-styles-button"
type="button"
aria-label="Styles lint"
>
Lint
</button>
<label>
<span class="sr-only">Style mode</span>
<select id="style-mode">
<option value="css" selected>Native CSS</option>
<option value="module">CSS Modules</option>
<option value="less">Less</option>
<option value="sass">Sass</option>
</select>
</label>
</div>
</div>
</div>
<div class="panel-content" id="styles-panel-content">
<textarea
id="css-editor"
spellcheck="false"
aria-label="Styles source editor fallback"
aria-multiline="true"
></textarea>
</div>
</section>
</div>
<section
class="panel preview preview-panel"
id="preview-panel"
aria-labelledby="preview-header"
>
<div class="panel-header">
<h2 id="preview-header">Preview</h2>
<div class="controls">
<label class="color-control" for="preview-bg-color">
<span class="preview-bg-label">Background</span>
<input id="preview-bg-color" type="color" value="#12141c" />
</label>
<label class="toggle">
<input id="shadow-toggle" type="checkbox" checked />
ShadowRoot
</label>
<button
class="hint-icon shadow-hint"
type="button"
aria-label="About preview isolation mode"
data-tooltip="Turning ShadowRoot off renders the preview in light DOM, so @knighted/develop styles can affect preview output."
>
i
</button>
<button
class="panel-collapse-toggle"
id="collapse-preview"
type="button"
data-panel-collapse="preview"
data-collapse-axis="vertical"
data-collapsed="false"
aria-expanded="true"
aria-controls="preview-panel-content"
aria-label="Collapse preview panel"
title="Collapse preview panel"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="m6 9 6 6 6-6"></path>
</svg>
<span class="panel-collapse-toggle__label">Collapse</span>
</button>
</div>
</div>
<div class="panel-content" id="preview-panel-content">
<div
class="preview-host"
id="preview-host"
role="region"
aria-label="Preview output"
></div>
</div>
</section>
<aside
class="diagnostics-drawer"
id="diagnostics-drawer"
aria-labelledby="diagnostics-title"
hidden
>
<div class="diagnostics-drawer__header">
<h2 id="diagnostics-title">Diagnostics</h2>
<button
class="icon-button"
id="diagnostics-close"
type="button"
aria-label="Close diagnostics drawer"
title="Close diagnostics drawer"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M6 6 18 18"></path>
<path d="M18 6 6 18"></path>
</svg>
</button>
</div>
<div class="diagnostics-drawer__actions">
<button class="render-button" id="diagnostics-clear-component" type="button">
Reset component
</button>
<button class="render-button" id="diagnostics-clear-styles" type="button">
Reset styles
</button>
<button class="render-button" id="diagnostics-clear-all" type="button">
Reset all
</button>
</div>
<section class="diagnostics-group" data-diagnostics-scope="component">
<h3>Component</h3>
<div class="diagnostics-scope" id="diagnostics-component"></div>
</section>
<section class="diagnostics-group" data-diagnostics-scope="styles">
<h3>Styles</h3>
<div class="diagnostics-scope" id="diagnostics-styles"></div>
</section>
</aside>
<aside
class="ai-chat-drawer"
id="ai-chat-drawer"
aria-labelledby="ai-chat-title"
hidden
>
<div class="ai-chat-drawer__header">
<h2 id="ai-chat-title" class="ai-chat-title">
<span>AI Chat</span>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
aria-hidden="true"
>
<path
d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 14.25 14H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 15.543V14H1.75A1.75 1.75 0 0 1 0 12.25v-9.5C0 1.784.784 1 1.75 1ZM1.5 2.75v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"
></path>
<path
d="M22.5 8.75a.25.25 0 0 0-.25-.25h-3.5a.75.75 0 0 1 0-1.5h3.5c.966 0 1.75.784 1.75 1.75v9.5A1.75 1.75 0 0 1 22.25 20H21v1.543a1.457 1.457 0 0 1-2.487 1.03L15.939 20H10.75A1.75 1.75 0 0 1 9 18.25v-1.465a.75.75 0 0 1 1.5 0v1.465c0 .138.112.25.25.25h5.5a.75.75 0 0 1 .53.22l2.72 2.72v-2.19a.75.75 0 0 1 .75-.75h2a.25.25 0 0 0 .25-.25v-9.5Z"
></path>
</svg>
</h2>
<button
class="icon-button"
id="ai-chat-close"
type="button"
aria-label="Close AI chat drawer"
title="Close AI chat drawer"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M6 6 18 18"></path>
<path d="M18 6 6 18"></path>
</svg>
</button>
</div>
<div class="ai-chat-drawer__meta">
<p class="ai-chat-drawer__status" id="ai-chat-status" data-level="neutral">
Idle
</p>
</div>
<div class="ai-chat-messages" id="ai-chat-messages" aria-live="polite"></div>
<label class="sr-only" for="ai-chat-prompt">Ask AI assistant</label>
<textarea
class="ai-chat-prompt"
id="ai-chat-prompt"
rows="4"
placeholder="Ask for help developing your component and styles"
></textarea>
<label class="ai-chat-model-picker" for="ai-chat-model">
<span class="sr-only">Model</span>
<select id="ai-chat-model" aria-label="Chat model" disabled>
<option value="openai/gpt-4.1-mini" selected>openai/gpt-4.1-mini</option>
</select>
</label>
<label class="ai-chat-context-toggle" for="ai-chat-include-editors">
<input type="checkbox" id="ai-chat-include-editors" checked />
Send JSX + CSS editor context
</label>
<div class="ai-chat-drawer__actions">
<button class="render-button" id="ai-chat-send" type="button">Send</button>
<button class="render-button" id="ai-chat-clear" type="button">Clear</button>
</div>
</aside>
<aside
class="github-pr-drawer"
id="github-pr-drawer"
aria-labelledby="open-pr-title"
hidden
>
<div class="github-pr-drawer__header">
<h2 id="open-pr-title">Open Pull Request</h2>
<button
class="icon-button"
id="github-pr-close"
type="button"
aria-label="Close open pull request drawer"
title="Close open pull request drawer"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M6 6 18 18"></path>
<path d="M18 6 6 18"></path>
</svg>
</button>
</div>
<p
class="github-pr-drawer__status"
id="github-pr-status"
role="status"
aria-label="Open pull request status"
data-level="neutral"
>
Configure repository, file paths, and branch details.
</p>
<div class="github-pr-drawer__form-grid" role="group" aria-label="Open PR form">
<label
class="github-pr-field github-pr-field--repo"
for="github-pr-repo-select"
>
<span>Repository</span>
<select
id="github-pr-repo-select"
aria-label="Pull request repository"
disabled
>
<option selected>Connect a token to load repositories</option>
</select>
</label>
<label
class="github-pr-field github-pr-field--base"
for="github-pr-base-branch"
>
<span>Base</span>
<select
id="github-pr-base-branch"
aria-label="Pull request base branch"
disabled
>
<option value="main" selected>main</option>
</select>
</label>
<label
class="github-pr-field github-pr-field--head"
for="github-pr-head-branch"
>
<span>Head</span>
<input
id="github-pr-head-branch"
type="text"
autocomplete="off"
spellcheck="false"
placeholder="feat/component-ab12"
/>
</label>
<label
class="github-pr-field github-pr-field--component-filename"
for="github-pr-component-path"
>
<span>Component filename</span>
<input
id="github-pr-component-path"
type="text"
autocomplete="off"
spellcheck="false"
placeholder="src/components/App.jsx"
/>
</label>
<label
class="github-pr-field github-pr-field--styles-filename"
for="github-pr-styles-path"
>
<span>Styles filename</span>
<input
id="github-pr-styles-path"
type="text"
autocomplete="off"
spellcheck="false"
placeholder="src/styles/app.css"
/>
</label>
<label
class="github-pr-field github-pr-field--full github-pr-field--checkbox"
for="github-pr-include-app-wrapper"
>
<input id="github-pr-include-app-wrapper" type="checkbox" />
<span>Include App wrapper in committed component source</span>
</label>
<label class="github-pr-field github-pr-field--full" for="github-pr-title">
<span>PR title</span>
<input
id="github-pr-title"
type="text"
autocomplete="off"
spellcheck="false"
placeholder="Apply editor updates"
/>
</label>
<label class="github-pr-field github-pr-field--full" for="github-pr-body">
<span>PR description</span>
<textarea
id="github-pr-body"
rows="5"
placeholder="Describe the generated editor updates."
></textarea>
</label>
<label
class="github-pr-field github-pr-field--full"
for="github-pr-commit-message"
>
<span>Commit message</span>
<input
id="github-pr-commit-message"
type="text"
autocomplete="off"
spellcheck="false"
placeholder="chore: sync editor updates from @knighted/develop"
/>
</label>
</div>
<div class="github-pr-drawer__actions">
<button class="render-button" id="github-pr-submit" type="button">
Open PR
</button>
</div>
</aside>
</main>
<footer class="app-footer">
<div>
Powered by
<a href="https://github.com/knightedcodemonkey/jsx">@knighted/jsx</a>,
<a href="https://github.com/knightedcodemonkey/css">@knighted/css</a>, and
CDN-delivered runtimes and compilers.
</div>
</footer>
<div class="app-toast" id="app-toast" role="status" aria-live="polite" hidden></div>
<div class="cdn-loading" id="cdn-loading" role="status" aria-live="polite">
<div class="cdn-loading-card">
<div class="cdn-loading-spinner" aria-hidden="true"></div>
<p class="cdn-loading-title">Loading workbench assets…</p>
<p class="cdn-loading-copy">
Fetching runtimes and compilers from CDN. This can take a moment.
</p>
</div>
</div>
<dialog
id="clear-confirm-dialog"
class="confirm-dialog"
aria-labelledby="clear-confirm-title"
aria-describedby="clear-confirm-copy"
>
<form method="dialog" class="confirm-dialog__form">
<h3 id="clear-confirm-title">Clear source?</h3>
<ul id="clear-confirm-copy">
<li>This action will remove all text from the editor.</li>
</ul>
<menu class="confirm-dialog__actions">
<button
class="confirm-dialog__button confirm-dialog__button--secondary"
type="submit"
value="cancel"
autofocus
>
Cancel
</button>
<button
class="confirm-dialog__button confirm-dialog__button--danger"
type="submit"
value="confirm"
>
Clear
</button>
</menu>
</form>
</dialog>
<script type="module" src="bootstrap.js"></script>
</body>
</html>