archsight 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +5 -4
  3. data/README.md +17 -65
  4. data/chart/archsight/README.md +1 -158
  5. data/docs/architecture.md +39 -0
  6. data/docs/docker.md +49 -0
  7. data/{lib/archsight/web/doc → docs}/index.md.erb +3 -1
  8. data/docs/kubernetes.md +149 -0
  9. data/docs/licenses.md +307 -0
  10. data/lib/archsight/annotations/annotation.rb +13 -1
  11. data/lib/archsight/cli.rb +1 -1
  12. data/lib/archsight/graph.rb +1 -51
  13. data/lib/archsight/helpers.rb +0 -20
  14. data/lib/archsight/import/handlers/github.rb +3 -1
  15. data/lib/archsight/import/handlers/gitlab.rb +15 -5
  16. data/lib/archsight/import/handlers/repository.rb +53 -5
  17. data/lib/archsight/import/handlers/rest_api.rb +13 -1
  18. data/lib/archsight/import/license_analyzer.rb +658 -0
  19. data/lib/archsight/linter.rb +1 -1
  20. data/lib/archsight/mcp/base.rb +11 -0
  21. data/lib/archsight/renderer.rb +4 -4
  22. data/lib/archsight/resources/base.rb +2 -2
  23. data/lib/archsight/resources/business_actor.rb +17 -2
  24. data/lib/archsight/resources/technology_artifact.rb +52 -0
  25. data/lib/archsight/version.rb +1 -1
  26. data/lib/archsight/web/api/docs.rb +37 -2
  27. data/lib/archsight/web/api/json_helpers.rb +79 -13
  28. data/lib/archsight/web/api/openapi/spec.yaml +699 -0
  29. data/lib/archsight/web/api/routes.rb +23 -0
  30. data/lib/archsight/web/application.rb +40 -128
  31. data/lib/archsight/web/editor/helpers.rb +150 -0
  32. data/lib/archsight/web/editor/routes.rb +85 -212
  33. data/lib/archsight/web/public/vue/ApiDocsPage-B1RqTNqh.js +1 -0
  34. data/lib/archsight/web/public/vue/ApiDocsPage-DhNTOH4o.css +1 -0
  35. data/lib/archsight/web/public/vue/DocPage-DzwBgBd4.js +1 -0
  36. data/lib/archsight/web/public/vue/EditorPage-D_miHSv4.js +34 -0
  37. data/lib/archsight/web/public/vue/EditorPage-Dq0MuTnp.css +1 -0
  38. data/lib/archsight/web/public/vue/ErrorPage-CQQtPey3.js +2 -0
  39. data/lib/archsight/web/public/vue/ErrorPage-CwPT3JUr.css +1 -0
  40. data/lib/archsight/web/public/vue/GraphView-DRcIqAiR.css +1 -0
  41. data/lib/archsight/web/public/vue/GraphView-T9jFH_qg.js +1 -0
  42. data/lib/archsight/web/public/vue/InstanceRouter-1Sm-CRhf.js +2 -0
  43. data/lib/archsight/web/public/vue/InstanceRouter-BJkDRXZY.css +1 -0
  44. data/lib/archsight/web/public/vue/KindList-JA_L_-Cz.js +1 -0
  45. data/lib/archsight/web/public/vue/ResourceList-8iqavWdg.js +1 -0
  46. data/lib/archsight/web/public/vue/ResourceList-DP-z-j71.css +1 -0
  47. data/lib/archsight/web/public/vue/SearchResults-BGHbg48-.css +1 -0
  48. data/lib/archsight/web/public/vue/SearchResults-BdgFeHcm.js +1 -0
  49. data/lib/archsight/web/public/vue/_basePickBy-CVgieyx-.js +1 -0
  50. data/lib/archsight/web/public/vue/_baseUniq-BNfrOSaP.js +1 -0
  51. data/lib/archsight/web/public/vue/architectureDiagram-VXUJARFQ-CJXNpTr5.js +36 -0
  52. data/lib/archsight/web/public/vue/blockDiagram-VD42YOAC-B5488Hes.js +122 -0
  53. data/lib/archsight/web/public/vue/c4Diagram-YG6GDRKO-eYY3hprM.js +10 -0
  54. data/lib/archsight/web/public/vue/chunk-4BX2VUAB-ZoXeL4D1.js +1 -0
  55. data/lib/archsight/web/public/vue/chunk-55IACEB6-rNtQYnu_.js +1 -0
  56. data/lib/archsight/web/public/vue/chunk-B4BG7PRW-DolAeVV9.js +165 -0
  57. data/lib/archsight/web/public/vue/chunk-DI55MBZ5-DnN0f_hj.js +220 -0
  58. data/lib/archsight/web/public/vue/chunk-FMBD7UC4-BQWOCMuR.js +15 -0
  59. data/lib/archsight/web/public/vue/chunk-QN33PNHL-DId301Kb.js +1 -0
  60. data/lib/archsight/web/public/vue/chunk-QZHKN3VN-xbY0NLgv.js +1 -0
  61. data/lib/archsight/web/public/vue/chunk-TZMSLE5B-CgF9_37b.js +1 -0
  62. data/lib/archsight/web/public/vue/classDiagram-2ON5EDUG-jGlvI-Za.js +1 -0
  63. data/lib/archsight/web/public/vue/classDiagram-v2-WZHVMYZB-jGlvI-Za.js +1 -0
  64. data/lib/archsight/web/public/vue/clone-6iRPe1-W.js +1 -0
  65. data/lib/archsight/web/public/vue/cose-bilkent-S5V4N54A-CB9Zfu50.js +1 -0
  66. data/lib/archsight/web/public/vue/cytoscape.esm-5J0xJHOV.js +321 -0
  67. data/lib/archsight/web/public/vue/dagre-6UL2VRFP-BqkmE-LI.js +4 -0
  68. data/lib/archsight/web/public/vue/diagram-PSM6KHXK-CKBfqtw3.js +24 -0
  69. data/lib/archsight/web/public/vue/diagram-QEK2KX5R-B78rOlvK.js +43 -0
  70. data/lib/archsight/web/public/vue/diagram-S2PKOQOG-BlXC6Cia.js +24 -0
  71. data/lib/archsight/web/public/vue/erDiagram-Q2GNP2WA-BnliyziJ.js +60 -0
  72. data/lib/archsight/web/public/vue/flowDiagram-NV44I4VS-wuqPowTd.js +162 -0
  73. data/lib/archsight/web/public/vue/ganttDiagram-JELNMOA3-GSffAIH3.js +267 -0
  74. data/lib/archsight/web/public/vue/gitGraphDiagram-V2S2FVAM-OA7VyugW.js +65 -0
  75. data/lib/archsight/web/public/vue/graph-BXHAtA0S.js +1 -0
  76. data/lib/archsight/web/public/vue/graphviz-CJms5bxZ.js +13 -0
  77. data/lib/archsight/web/public/vue/index-DsEsN0_K.js +2 -0
  78. data/lib/archsight/web/public/vue/index-Tiu4C-Sb.css +1 -0
  79. data/lib/archsight/web/public/vue/infoDiagram-HS3SLOUP-nlVe2qgv.js +2 -0
  80. data/lib/archsight/web/public/vue/journeyDiagram-XKPGCS4Q-CtTIcKwf.js +139 -0
  81. data/lib/archsight/web/public/vue/kanban-definition-3W4ZIXB7-837KX0sW.js +89 -0
  82. data/lib/archsight/web/public/vue/katex-C-M49wc6.js +261 -0
  83. data/lib/archsight/web/public/vue/layout-DtE0QdL6.js +1 -0
  84. data/lib/archsight/web/public/vue/mermaid-DpPHPFQh.js +250 -0
  85. data/lib/archsight/web/public/vue/mindmap-definition-VGOIOE7T-9gLF2AoY.js +68 -0
  86. data/lib/archsight/web/public/vue/pieDiagram-ADFJNKIX-CyCNgw3u.js +30 -0
  87. data/lib/archsight/web/public/vue/quadrantDiagram-AYHSOK5B-CkPh8g02.js +7 -0
  88. data/lib/archsight/web/public/vue/requirementDiagram-UZGBJVZJ-Dkt6OSlY.js +64 -0
  89. data/lib/archsight/web/public/vue/sankeyDiagram-TZEHDZUN-BqprTk8x.js +10 -0
  90. data/lib/archsight/web/public/vue/sequenceDiagram-WL72ISMW-CTmTe1FQ.js +145 -0
  91. data/lib/archsight/web/public/vue/stateDiagram-FKZM4ZOC-CphqmkEU.js +1 -0
  92. data/lib/archsight/web/public/vue/stateDiagram-v2-4FDKWEC3-CxaDW5sW.js +1 -0
  93. data/lib/archsight/web/public/vue/timeline-definition-IT6M3QCI-CSQUZkyE.js +61 -0
  94. data/lib/archsight/web/public/vue/treemap-GDKQZRPO-DTojm7Yr.js +162 -0
  95. data/lib/archsight/web/public/{css/graph.css → vue/useGraphviz-A5s4h76R.js} +2 -1
  96. data/lib/archsight/web/public/vue/useHighlight-C6Kb5G3l.js +10 -0
  97. data/lib/archsight/web/public/vue/useMermaid-DqxTrLRB.js +1 -0
  98. data/lib/archsight/web/public/vue/usePanZoom-BybZ_rfh.js +11 -0
  99. data/lib/archsight/web/public/vue/xychartDiagram-PRI3JC2R-B1ZJZtDC.js +7 -0
  100. data/lib/archsight/web/public/vue.html +15 -0
  101. data/media/artifact.jpg +0 -0
  102. data/media/service.jpg +0 -0
  103. metadata +100 -84
  104. data/lib/archsight/web/public/css/artifact.css +0 -995
  105. data/lib/archsight/web/public/css/base.css +0 -201
  106. data/lib/archsight/web/public/css/editor.css +0 -863
  107. data/lib/archsight/web/public/css/highlight.min.css +0 -10
  108. data/lib/archsight/web/public/css/iconoir.css +0 -22
  109. data/lib/archsight/web/public/css/instance.css +0 -824
  110. data/lib/archsight/web/public/css/layout.css +0 -421
  111. data/lib/archsight/web/public/css/mermaid-layers.css +0 -188
  112. data/lib/archsight/web/public/css/pico.min.css +0 -4
  113. data/lib/archsight/web/public/img/archimate.png +0 -0
  114. data/lib/archsight/web/public/img/togaf-high-level.png +0 -0
  115. data/lib/archsight/web/public/js/editor.js +0 -421
  116. data/lib/archsight/web/public/js/graph-zoom.js +0 -18
  117. data/lib/archsight/web/public/js/highlight.min.js +0 -3899
  118. data/lib/archsight/web/public/js/htmx.min.js +0 -1
  119. data/lib/archsight/web/public/js/lexical-editor.js +0 -308
  120. data/lib/archsight/web/public/js/mermaid-init.js +0 -88
  121. data/lib/archsight/web/public/js/mermaid.min.js +0 -2811
  122. data/lib/archsight/web/public/js/sparkline.js +0 -42
  123. data/lib/archsight/web/public/js/svg-pan-zoom.min.js +0 -3
  124. data/lib/archsight/web/public/js/svg-zoom-controls.js +0 -93
  125. data/lib/archsight/web/views/api_docs.erb +0 -19
  126. data/lib/archsight/web/views/index.haml +0 -12
  127. data/lib/archsight/web/views/partials/artifact/_activity.haml +0 -55
  128. data/lib/archsight/web/views/partials/artifact/_agentic.haml +0 -25
  129. data/lib/archsight/web/views/partials/artifact/_deployment.haml +0 -29
  130. data/lib/archsight/web/views/partials/artifact/_git_info.haml +0 -16
  131. data/lib/archsight/web/views/partials/artifact/_language_stats.haml +0 -53
  132. data/lib/archsight/web/views/partials/artifact/_links.haml +0 -24
  133. data/lib/archsight/web/views/partials/artifact/_project_estimate.haml +0 -32
  134. data/lib/archsight/web/views/partials/artifact/_repositories.haml +0 -55
  135. data/lib/archsight/web/views/partials/artifact/_team.haml +0 -83
  136. data/lib/archsight/web/views/partials/artifact/_workflow.haml +0 -69
  137. data/lib/archsight/web/views/partials/components/_activity.haml +0 -37
  138. data/lib/archsight/web/views/partials/components/_git.haml +0 -17
  139. data/lib/archsight/web/views/partials/components/_jira.haml +0 -18
  140. data/lib/archsight/web/views/partials/components/_languages.haml +0 -29
  141. data/lib/archsight/web/views/partials/components/_owner.haml +0 -15
  142. data/lib/archsight/web/views/partials/components/_repositories.haml +0 -37
  143. data/lib/archsight/web/views/partials/components/_status.haml +0 -23
  144. data/lib/archsight/web/views/partials/editor/_field.haml +0 -80
  145. data/lib/archsight/web/views/partials/editor/_form.haml +0 -131
  146. data/lib/archsight/web/views/partials/editor/_relations.haml +0 -39
  147. data/lib/archsight/web/views/partials/editor/_yaml_output.haml +0 -33
  148. data/lib/archsight/web/views/partials/instance/_analysis_detail.haml +0 -67
  149. data/lib/archsight/web/views/partials/instance/_analysis_result.haml +0 -64
  150. data/lib/archsight/web/views/partials/instance/_detail.haml +0 -107
  151. data/lib/archsight/web/views/partials/instance/_graph.haml +0 -6
  152. data/lib/archsight/web/views/partials/instance/_import_detail.haml +0 -87
  153. data/lib/archsight/web/views/partials/instance/_list.haml +0 -84
  154. data/lib/archsight/web/views/partials/instance/_relations.haml +0 -43
  155. data/lib/archsight/web/views/partials/instance/_requirements.haml +0 -41
  156. data/lib/archsight/web/views/partials/instance/_view_detail.haml +0 -57
  157. data/lib/archsight/web/views/partials/layout/_content.haml +0 -50
  158. data/lib/archsight/web/views/partials/layout/_error.haml +0 -22
  159. data/lib/archsight/web/views/partials/layout/_head.haml +0 -26
  160. data/lib/archsight/web/views/partials/layout/_navigation.haml +0 -21
  161. data/lib/archsight/web/views/partials/layout/_sidebar.haml +0 -27
  162. data/lib/archsight/web/views/search.haml +0 -53
  163. /data/{lib/archsight/web/doc → docs}/archimate.md +0 -0
  164. /data/{lib/archsight/web/doc → docs}/computed_annotations.md +0 -0
  165. /data/{lib/archsight/web/doc → docs}/icons.md +0 -0
  166. /data/{lib/archsight/web/doc → docs}/import.md +0 -0
  167. /data/{lib/archsight/web/doc → docs}/modeling.md +0 -0
  168. /data/{lib/archsight/web/doc → docs}/search.md +0 -0
  169. /data/{lib/archsight/web/doc → docs}/togaf.md +0 -0
  170. /data/{lib/archsight/web/doc → docs}/tool.md +0 -0
@@ -1,863 +0,0 @@
1
- /* Editor Styles - Layout only, form styling from Pico CSS */
2
-
3
- /* Editor container */
4
- .editor-container {
5
- width: 100%;
6
- }
7
-
8
- .editor-header {
9
- display: flex;
10
- justify-content: space-between;
11
- align-items: center;
12
- margin-bottom: 1.5rem;
13
- padding-bottom: 1rem;
14
- border-bottom: 1px solid var(--muted-border-color);
15
- }
16
-
17
- .editor-header h2 {
18
- display: flex;
19
- align-items: center;
20
- gap: 0.75rem;
21
- margin: 0;
22
- }
23
-
24
- /* Editor form layout */
25
- .editor-form {
26
- display: flex;
27
- flex-direction: column;
28
- gap: 1rem;
29
- }
30
-
31
- /* Article header with back button */
32
- .editor-form article:first-child > header {
33
- display: flex;
34
- align-items: center;
35
- justify-content: space-between;
36
- }
37
-
38
- .editor-form article:first-child > header h3 {
39
- display: flex;
40
- align-items: center;
41
- gap: 0.5rem;
42
- margin: 0;
43
- }
44
-
45
- /* Back button in article header - matches .btn-header style */
46
- .btn-back {
47
- display: inline-flex;
48
- align-items: center;
49
- gap: 0.35rem;
50
- padding: 0.4rem 0.75rem;
51
- font-size: 0.9rem;
52
- color: var(--muted-color);
53
- background: transparent;
54
- border: 1px solid transparent;
55
- border-radius: var(--border-radius);
56
- text-decoration: none;
57
- cursor: pointer;
58
- transition: all 0.15s ease;
59
- }
60
-
61
- .btn-back:hover {
62
- color: var(--primary);
63
- border-color: var(--primary);
64
- }
65
-
66
- /* Two-column grid for annotations */
67
- .annotations-grid {
68
- display: grid;
69
- grid-template-columns: repeat(2, 1fr);
70
- gap: 1rem;
71
- }
72
-
73
- /* Field groups - remove Pico's default margin */
74
- .field-group {
75
- margin-bottom: 0;
76
- }
77
-
78
- .field-group label {
79
- margin-bottom: 0.25rem;
80
- }
81
-
82
- .field-group label .required {
83
- color: var(--del-color);
84
- margin-left: 0.15rem;
85
- }
86
-
87
- .field-group input,
88
- .field-group select,
89
- .field-group textarea {
90
- margin-bottom: 0;
91
- }
92
-
93
- .field-description {
94
- font-size: 0.8rem;
95
- color: var(--muted-color);
96
- margin-top: 0.25rem;
97
- }
98
-
99
- .field-error {
100
- color: var(--del-color);
101
- font-size: 0.8rem;
102
- margin-top: 0.25rem;
103
- }
104
-
105
- /* Full-width fields span both columns */
106
- .field-full-width {
107
- grid-column: 1 / -1;
108
- }
109
-
110
- /* Markdown textarea - monospace font */
111
- .markdown-field textarea {
112
- font-family: var(--font-family-monospace);
113
- min-height: 200px;
114
- resize: vertical;
115
- }
116
-
117
- /* Code field - monospace font, larger height */
118
- .code-field textarea {
119
- font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
120
- font-size: 0.9em;
121
- line-height: 1.5;
122
- min-height: 600px;
123
- resize: vertical;
124
- tab-size: 2;
125
- white-space: pre;
126
- overflow-wrap: normal;
127
- overflow-x: auto;
128
- }
129
-
130
- .future-hint {
131
- display: flex;
132
- align-items: center;
133
- gap: 0.35rem;
134
- color: var(--muted-color);
135
- font-size: 0.8rem;
136
- margin-top: 0.5rem;
137
- }
138
-
139
- /* Relations editor */
140
- .relations-editor {
141
- display: flex;
142
- flex-direction: column;
143
- gap: 0.75rem;
144
- }
145
-
146
- #relations-list {
147
- display: flex;
148
- flex-direction: column;
149
- background-color: var(--background-color);
150
- border: 1px solid var(--muted-border-color);
151
- border-radius: 4px;
152
- }
153
-
154
- #relations-list:empty {
155
- display: none;
156
- }
157
-
158
- /* Individual relation item - compact display */
159
- .relation-item {
160
- display: flex;
161
- align-items: center;
162
- justify-content: space-between;
163
- gap: 0.5rem;
164
- padding: 0.35rem 0.5rem;
165
- font-size: 0.9rem;
166
- border-bottom: 1px solid var(--muted-border-color);
167
- }
168
-
169
- .relation-item:last-child {
170
- border-bottom: none;
171
- }
172
-
173
- .relation-text {
174
- flex: 1;
175
- white-space: nowrap;
176
- overflow: hidden;
177
- text-overflow: ellipsis;
178
- }
179
-
180
- .relation-text strong {
181
- font-weight: 600;
182
- }
183
-
184
- .relation-text em {
185
- font-style: normal;
186
- color: var(--muted-color);
187
- }
188
-
189
- /* Compact remove button */
190
- .btn-remove {
191
- display: inline-flex;
192
- align-items: center;
193
- justify-content: center;
194
- width: 1.5rem;
195
- height: 1.5rem;
196
- padding: 0;
197
- margin: 0;
198
- background: transparent;
199
- border: none;
200
- border-radius: 3px;
201
- color: var(--muted-color);
202
- cursor: pointer;
203
- flex-shrink: 0;
204
- }
205
-
206
- .btn-remove:hover {
207
- background-color: var(--del-color);
208
- color: white;
209
- }
210
-
211
- .btn-remove i {
212
- font-size: 0.85rem;
213
- }
214
-
215
- /* Add relation row - inline form */
216
- .add-relation-row {
217
- display: flex;
218
- gap: 0.5rem;
219
- align-items: center;
220
- }
221
-
222
- .add-relation-row select {
223
- margin: 0;
224
- flex: 1;
225
- }
226
-
227
- .add-relation-row select:first-child {
228
- flex: 1.2;
229
- }
230
-
231
- .btn-add {
232
- margin: 0;
233
- white-space: nowrap;
234
- flex-shrink: 0;
235
- }
236
-
237
- .no-relations {
238
- color: var(--muted-color);
239
- font-style: italic;
240
- margin: 0;
241
- }
242
-
243
- /* Form actions */
244
- .form-actions {
245
- display: flex;
246
- gap: 0.75rem;
247
- padding-top: 1.25rem;
248
- border-top: 1px solid var(--muted-border-color);
249
- }
250
-
251
- .form-actions button,
252
- .form-actions [role="button"] {
253
- width: auto;
254
- margin: 0;
255
- }
256
-
257
- /* ==================== */
258
- /* YAML Output Section */
259
- /* ==================== */
260
-
261
- .yaml-output > header {
262
- display: flex;
263
- align-items: center;
264
- justify-content: space-between;
265
- }
266
-
267
- .yaml-output > header h3 {
268
- display: flex;
269
- align-items: center;
270
- gap: 0.5rem;
271
- margin: 0;
272
- }
273
-
274
- .yaml-success {
275
- display: flex;
276
- align-items: center;
277
- gap: 0.5rem;
278
- margin: 0 0 1rem 0;
279
- color: var(--ins-color);
280
- font-weight: 500;
281
- }
282
-
283
- #yaml-content {
284
- margin: 0 calc(var(--block-spacing-horizontal) * -1);
285
- padding: var(--block-spacing-horizontal);
286
- background-color: var(--code-background-color);
287
- border-radius: 0;
288
- overflow-x: auto;
289
- }
290
-
291
- #yaml-content code {
292
- font-size: 0.9em;
293
- white-space: pre;
294
- line-height: 1.5;
295
- padding: 0;
296
- }
297
-
298
- .yaml-output > footer {
299
- display: flex;
300
- justify-content: space-between;
301
- align-items: center;
302
- gap: 1rem;
303
- }
304
-
305
- .yaml-file-info,
306
- .yaml-instructions {
307
- display: flex;
308
- gap: 0.5rem;
309
- margin: 0;
310
- font-size: 0.9em;
311
- color: var(--muted-color);
312
- flex: 1;
313
- min-width: 0;
314
- line-height: 1.5;
315
- }
316
-
317
- .yaml-file-info {
318
- align-items: center;
319
- }
320
-
321
- .yaml-instructions {
322
- align-items: flex-start;
323
- }
324
-
325
- .yaml-file-info > span,
326
- .yaml-instructions > span {
327
- overflow: hidden;
328
- text-overflow: ellipsis;
329
- white-space: nowrap;
330
- }
331
-
332
- .yaml-file-info > i,
333
- .yaml-instructions > i {
334
- flex-shrink: 0;
335
- }
336
-
337
- .yaml-actions {
338
- display: flex;
339
- gap: 0.5rem;
340
- flex-shrink: 0;
341
- }
342
-
343
- .yaml-actions button,
344
- .yaml-actions [role="button"] {
345
- width: auto;
346
- margin: 0;
347
- }
348
-
349
- /* Conflict error banner */
350
- .conflict-error {
351
- display: flex;
352
- align-items: center;
353
- gap: 0.5rem;
354
- padding: 1rem;
355
- margin-bottom: 1rem;
356
- background-color: var(--pico-mark-background-color);
357
- color: var(--pico-del-color);
358
- border-radius: var(--pico-border-radius);
359
- }
360
-
361
- .conflict-error i {
362
- flex-shrink: 0;
363
- }
364
-
365
- /* Header action buttons - ghost style */
366
- .btn-header {
367
- display: inline-flex;
368
- align-items: center;
369
- gap: 0.35rem;
370
- padding: 0.4rem 0.75rem;
371
- font-size: 0.9rem;
372
- color: var(--muted-color);
373
- background: transparent;
374
- border: 1px solid transparent;
375
- border-radius: var(--border-radius);
376
- text-decoration: none;
377
- cursor: pointer;
378
- transition: all 0.15s ease;
379
- }
380
-
381
- .btn-header:hover {
382
- color: var(--primary);
383
- border-color: var(--primary);
384
- }
385
-
386
- /* Header actions container */
387
- .header-actions {
388
- display: flex;
389
- align-items: center;
390
- gap: 0.5rem;
391
- }
392
-
393
- /* ==================== */
394
- /* Markdown Editor Dialog */
395
- /* ==================== */
396
-
397
- /* Markdown Editor Overlay */
398
- #markdown-editor-overlay {
399
- position: fixed;
400
- top: 0;
401
- right: 0;
402
- bottom: 0;
403
- left: 0;
404
- z-index: 1000;
405
- }
406
-
407
- #markdown-editor-overlay.hidden {
408
- display: none;
409
- }
410
-
411
- .markdown-editor-backdrop {
412
- position: absolute;
413
- top: 0;
414
- right: 0;
415
- bottom: 0;
416
- left: 0;
417
- background-color: rgba(0, 0, 0, 0.5);
418
- }
419
-
420
- .markdown-editor-panel {
421
- position: absolute;
422
- top: 20px;
423
- right: 20px;
424
- bottom: 20px;
425
- left: 20px;
426
- display: flex;
427
- flex-direction: column;
428
- border-radius: 12px;
429
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
430
- background-color: var(--card-background-color, #fff);
431
- overflow: hidden;
432
- }
433
-
434
-
435
- /* Lexical toolbar */
436
- .lexical-toolbar {
437
- display: flex;
438
- align-items: center;
439
- gap: 0.25rem;
440
- padding: 0.5rem 1rem;
441
- background-color: var(--card-background-color, #fff);
442
- flex-wrap: wrap;
443
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
444
- z-index: 1;
445
- }
446
-
447
- .toolbar-btn {
448
- display: inline-flex;
449
- align-items: center;
450
- justify-content: center;
451
- min-width: 2rem;
452
- height: 2rem;
453
- padding: 0 0.5rem;
454
- margin: 0;
455
- background: transparent;
456
- border: 1px solid transparent;
457
- border-radius: var(--border-radius);
458
- color: var(--color);
459
- font-size: 0.85rem;
460
- font-weight: 600;
461
- cursor: pointer;
462
- transition: all 0.15s ease;
463
- }
464
-
465
- .toolbar-btn:hover {
466
- background-color: var(--muted-border-color);
467
- border-color: var(--muted-border-color);
468
- }
469
-
470
- .toolbar-btn:active {
471
- background-color: var(--primary);
472
- border-color: var(--primary);
473
- color: var(--primary-inverse);
474
- }
475
-
476
- .toolbar-btn i {
477
- font-size: 1.1rem;
478
- }
479
-
480
- .toolbar-divider {
481
- width: 1px;
482
- height: 1.5rem;
483
- margin: 0 0.5rem;
484
- background-color: var(--muted-border-color);
485
- }
486
-
487
- .toolbar-spacer {
488
- flex: 1;
489
- }
490
-
491
- .toolbar-action {
492
- padding: 0.4rem 0.75rem;
493
- margin: 0;
494
- font-size: 0.85rem;
495
- }
496
-
497
-
498
- /* Lexical editor container */
499
- .lexical-editor-container {
500
- flex: 1;
501
- display: flex;
502
- flex-direction: column;
503
- min-height: 0;
504
- position: relative;
505
- }
506
-
507
- #lexical-editor-root {
508
- flex: 1;
509
- min-height: 0;
510
- padding: 1rem 1.5rem;
511
- font-family: var(--font-family);
512
- line-height: 1.6;
513
- overflow-y: auto;
514
- position: relative;
515
- }
516
-
517
- #lexical-editor-root:focus {
518
- outline: none;
519
- }
520
-
521
- /* Lexical editor content styles */
522
- #lexical-editor-root p {
523
- margin: 0 0 0.75rem 0;
524
- }
525
-
526
- #lexical-editor-root p:last-child {
527
- margin-bottom: 0;
528
- }
529
-
530
- #lexical-editor-root h1,
531
- #lexical-editor-root h2,
532
- #lexical-editor-root h3,
533
- #lexical-editor-root h4 {
534
- margin: 1rem 0 0.5rem 0;
535
- font-weight: 600;
536
- }
537
-
538
- #lexical-editor-root h1:first-child,
539
- #lexical-editor-root h2:first-child,
540
- #lexical-editor-root h3:first-child {
541
- margin-top: 0;
542
- }
543
-
544
- #lexical-editor-root ul,
545
- #lexical-editor-root ol {
546
- margin: 0.5rem 0;
547
- padding-left: 1.5rem;
548
- }
549
-
550
- #lexical-editor-root li {
551
- margin: 0.25rem 0;
552
- }
553
-
554
- #lexical-editor-root blockquote {
555
- margin: 0.75rem 0;
556
- padding: 0.5rem 1rem;
557
- border-left: 3px solid var(--pico-muted-border-color, #e4e4e7);
558
- color: var(--pico-muted-color, #71717a);
559
- font-style: italic;
560
- }
561
-
562
- #lexical-editor-root code {
563
- padding: 0.15rem 0.35rem;
564
- background-color: var(--code-background-color, #f4f4f5);
565
- border: 1px solid var(--pico-muted-border-color, #e4e4e7);
566
- border-radius: 3px;
567
- font-family: var(--pico-font-family-monospace, monospace);
568
- font-size: 0.9em;
569
- }
570
-
571
- #lexical-editor-root pre {
572
- margin: 0.75rem 0;
573
- padding: 1rem;
574
- background-color: var(--code-background-color);
575
- border-radius: var(--border-radius);
576
- overflow-x: auto;
577
- position: relative;
578
- }
579
-
580
- #lexical-editor-root pre code {
581
- padding: 0;
582
- background: none;
583
- }
584
-
585
- /* Code block with border */
586
- #lexical-editor-root .lexical-code {
587
- position: relative;
588
- display: block;
589
- width: 100%;
590
- margin: 0.75rem 0;
591
- padding: 1rem;
592
- background-color: var(--code-background-color, #f4f4f5);
593
- border: 1px solid var(--pico-muted-border-color, #e4e4e7);
594
- border-radius: var(--pico-border-radius, 0.375rem);
595
- font-family: var(--pico-font-family-monospace, monospace);
596
- font-size: 0.9em;
597
- line-height: 1.5;
598
- overflow-x: auto;
599
- white-space: pre;
600
- tab-size: 2;
601
- box-sizing: border-box;
602
- }
603
-
604
- /* Toolbar language selector for code blocks */
605
- .toolbar-select {
606
- height: 2rem;
607
- width: auto;
608
- min-width: 130px;
609
- max-width: 180px;
610
- padding: 0 0.75rem;
611
- margin: 0;
612
- font-size: 0.85rem;
613
- border: 1px solid var(--pico-muted-border-color, #e4e4e7);
614
- border-radius: var(--pico-border-radius, 0.375rem);
615
- background-color: transparent;
616
- color: var(--pico-color, inherit);
617
- cursor: pointer;
618
- flex-shrink: 0;
619
- }
620
-
621
- .toolbar-select:hover {
622
- border-color: var(--pico-primary, #1e88e5);
623
- }
624
-
625
- .toolbar-select:focus {
626
- outline: none;
627
- border-color: var(--pico-primary, #1e88e5);
628
- }
629
-
630
- .toolbar-select.hidden {
631
- display: none;
632
- }
633
-
634
- /* Link styles */
635
- #lexical-editor-root .lexical-link {
636
- color: var(--pico-primary, #1e88e5);
637
- text-decoration: underline;
638
- cursor: pointer;
639
- }
640
-
641
- #lexical-editor-root .lexical-link:hover {
642
- text-decoration: none;
643
- }
644
-
645
- /* Code highlight token colors - GitHub Light Theme (matches highlight.min.css) */
646
- #lexical-editor-root .lexical-code .tokenComment { color: #6a737d; }
647
- #lexical-editor-root .lexical-code .tokenPunctuation { color: #24292e; }
648
- #lexical-editor-root .lexical-code .tokenProperty { color: #005cc5; }
649
- #lexical-editor-root .lexical-code .tokenSelector { color: #032f62; }
650
- #lexical-editor-root .lexical-code .tokenOperator { color: #005cc5; }
651
- #lexical-editor-root .lexical-code .tokenAttr { color: #d73a49; }
652
- #lexical-editor-root .lexical-code .tokenVariable { color: #e36209; }
653
- #lexical-editor-root .lexical-code .tokenFunction { color: #6f42c1; }
654
-
655
- #lexical-editor-root a {
656
- color: var(--primary);
657
- text-decoration: underline;
658
- }
659
-
660
- #lexical-editor-root strong,
661
- #lexical-editor-root .lexical-bold {
662
- font-weight: 700;
663
- }
664
-
665
- #lexical-editor-root em,
666
- #lexical-editor-root .lexical-italic {
667
- font-style: italic;
668
- }
669
-
670
- #lexical-editor-root u,
671
- #lexical-editor-root .lexical-underline {
672
- text-decoration: underline;
673
- }
674
-
675
- #lexical-editor-root s,
676
- #lexical-editor-root .lexical-strikethrough {
677
- text-decoration: line-through;
678
- }
679
-
680
- /* Label row with edit button */
681
- .label-row {
682
- display: flex;
683
- align-items: center;
684
- justify-content: space-between;
685
- margin-bottom: 0.25rem;
686
- }
687
-
688
- .label-row label {
689
- margin-bottom: 0;
690
- }
691
-
692
- .btn-edit-markdown {
693
- display: inline-flex;
694
- align-items: center;
695
- gap: 0.35rem;
696
- padding: 0.25rem 0.5rem;
697
- font-size: 0.85rem;
698
- color: var(--muted-color);
699
- background: transparent;
700
- border: 1px solid var(--muted-border-color);
701
- border-radius: var(--border-radius);
702
- cursor: pointer;
703
- transition: all 0.15s ease;
704
- }
705
-
706
- .btn-edit-markdown:hover {
707
- color: var(--primary);
708
- border-color: var(--primary);
709
- background-color: transparent;
710
- }
711
-
712
- .btn-edit-markdown i {
713
- font-size: 0.9rem;
714
- }
715
-
716
- /* ==================== */
717
- /* Dark Mode Support */
718
- /* ==================== */
719
-
720
- @media (prefers-color-scheme: dark) {
721
- /* Editor panel dark mode */
722
- .markdown-editor-panel {
723
- background-color: var(--card-background-color, #1e1e1e);
724
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
725
- }
726
-
727
- .markdown-editor-backdrop {
728
- background-color: rgba(0, 0, 0, 0.7);
729
- }
730
-
731
- /* Toolbar dark mode */
732
- .lexical-toolbar {
733
- background-color: var(--card-background-color, #1e1e1e);
734
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
735
- }
736
-
737
- .toolbar-btn {
738
- color: var(--color, #c9d1d9);
739
- }
740
-
741
- .toolbar-btn:hover {
742
- background-color: rgba(255, 255, 255, 0.1);
743
- border-color: rgba(255, 255, 255, 0.1);
744
- }
745
-
746
- .toolbar-btn:active {
747
- background-color: var(--primary);
748
- border-color: var(--primary);
749
- }
750
-
751
- .toolbar-divider {
752
- background-color: rgba(255, 255, 255, 0.15);
753
- }
754
-
755
- .toolbar-select {
756
- background-color: transparent;
757
- border-color: rgba(255, 255, 255, 0.2);
758
- color: var(--color, #c9d1d9);
759
- }
760
-
761
- .toolbar-select:hover,
762
- .toolbar-select:focus {
763
- border-color: var(--primary, #58a6ff);
764
- }
765
-
766
- /* Editor root dark mode */
767
- #lexical-editor-root {
768
- color: var(--color, #c9d1d9);
769
- background-color: var(--card-background-color, #1e1e1e);
770
- }
771
-
772
- /* Blockquote dark mode */
773
- #lexical-editor-root blockquote {
774
- border-left-color: rgba(255, 255, 255, 0.2);
775
- color: #8b949e;
776
- }
777
-
778
- /* Inline code dark mode */
779
- #lexical-editor-root code {
780
- background-color: rgba(110, 118, 129, 0.4);
781
- border-color: rgba(255, 255, 255, 0.1);
782
- color: #c9d1d9;
783
- }
784
-
785
- /* Code block dark mode */
786
- #lexical-editor-root .lexical-code {
787
- background-color: #0d1117;
788
- border-color: rgba(255, 255, 255, 0.1);
789
- color: #c9d1d9;
790
- }
791
-
792
- /* Code highlight token colors - GitHub Dark Theme (matches highlight.min.css) */
793
- #lexical-editor-root .lexical-code .tokenComment { color: #8b949e; }
794
- #lexical-editor-root .lexical-code .tokenPunctuation { color: #c9d1d9; }
795
- #lexical-editor-root .lexical-code .tokenProperty { color: #79c0ff; }
796
- #lexical-editor-root .lexical-code .tokenSelector { color: #a5d6ff; }
797
- #lexical-editor-root .lexical-code .tokenOperator { color: #79c0ff; }
798
- #lexical-editor-root .lexical-code .tokenAttr { color: #ff7b72; }
799
- #lexical-editor-root .lexical-code .tokenVariable { color: #ffa657; }
800
- #lexical-editor-root .lexical-code .tokenFunction { color: #d2a8ff; }
801
-
802
- /* Link dark mode */
803
- #lexical-editor-root .lexical-link,
804
- #lexical-editor-root a {
805
- color: #58a6ff;
806
- }
807
-
808
- /* Edit button dark mode */
809
- .btn-edit-markdown {
810
- color: #8b949e;
811
- border-color: rgba(255, 255, 255, 0.15);
812
- }
813
-
814
- .btn-edit-markdown:hover {
815
- color: #58a6ff;
816
- border-color: #58a6ff;
817
- }
818
- }
819
-
820
- /* Responsive */
821
- @media (max-width: 768px) {
822
- .editor-header {
823
- flex-direction: column;
824
- align-items: flex-start;
825
- gap: 1rem;
826
- }
827
-
828
- .annotations-grid {
829
- grid-template-columns: 1fr;
830
- }
831
-
832
- .add-relation-row {
833
- flex-direction: column;
834
- }
835
-
836
- .add-relation-row select,
837
- .add-relation-row button {
838
- width: 100%;
839
- }
840
-
841
- .form-actions {
842
- flex-direction: column;
843
- }
844
-
845
- .form-actions button,
846
- .form-actions [role="button"] {
847
- width: 100%;
848
- }
849
-
850
- .yaml-output > footer {
851
- flex-direction: column;
852
- align-items: stretch;
853
- }
854
-
855
- .yaml-actions {
856
- flex-direction: column;
857
- }
858
-
859
- .yaml-actions button,
860
- .yaml-actions [role="button"] {
861
- width: 100%;
862
- }
863
- }