analysis-workflow-viewer 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,36 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Lineage viewer</title>
7
+ <link rel="stylesheet" href="/static/style.css" />
8
+ <script src="/static/vendor/cytoscape.min.js"></script>
9
+ <script src="/static/vendor/dagre.min.js"></script>
10
+ </head>
11
+ <body>
12
+ <header id="bar">
13
+ <button id="toggle" type="button" title="Show or hide the files" aria-controls="explorer" aria-expanded="true">☰</button>
14
+ <span id="repo"></span>
15
+ <span id="branch" class="muted"></span>
16
+ <span id="title"></span>
17
+ <button id="refresh" type="button" title="Read the repo again: new files, keys and records">↻ Refresh</button>
18
+ </header>
19
+ <div id="body">
20
+ <nav id="explorer" aria-label="Files">
21
+ <p id="colour-key"></p>
22
+ <ul id="tree" role="tree"></ul>
23
+ </nav>
24
+ <div id="resizer" role="separator" aria-orientation="vertical" title="Drag to resize"></div>
25
+ <main>
26
+ <div id="graph"></div>
27
+ <p id="message" hidden></p>
28
+ <aside id="details" aria-live="polite" hidden>
29
+ <button id="close" type="button" title="Close (Esc)" aria-label="Close">×</button>
30
+ <div id="card"></div>
31
+ </aside>
32
+ </main>
33
+ </div>
34
+ <script src="/static/app.js"></script>
35
+ </body>
36
+ </html>
@@ -0,0 +1,366 @@
1
+ :root {
2
+ --bg: #fcfcfb;
3
+ --panel: #f3f2ee;
4
+ --ink: #1d1c1a;
5
+ --muted: #6f6d68;
6
+ --line: #d9d7d0;
7
+ --accent: #2a78d6;
8
+ --target: #1baf7a;
9
+ --warn: #c2410c;
10
+ --node: #ffffff;
11
+ --shadow: 0 6px 24px rgb(0 0 0 / 14%);
12
+ --nav-width: 300px;
13
+ color-scheme: light;
14
+ }
15
+
16
+ @media (prefers-color-scheme: dark) {
17
+ :root {
18
+ --bg: #161615;
19
+ --panel: #1f1f1d;
20
+ --ink: #ecebe7;
21
+ --muted: #9a9892;
22
+ --line: #3a3936;
23
+ --accent: #6aa5ec;
24
+ --target: #3cc795;
25
+ --warn: #f08a4b;
26
+ --node: #262624;
27
+ --shadow: 0 6px 24px rgb(0 0 0 / 50%);
28
+ color-scheme: dark;
29
+ }
30
+ }
31
+
32
+ * {
33
+ box-sizing: border-box;
34
+ }
35
+
36
+ body {
37
+ margin: 0;
38
+ height: 100vh;
39
+ display: flex;
40
+ flex-direction: column;
41
+ background: var(--bg);
42
+ color: var(--ink);
43
+ font:
44
+ 13px / 1.45 system-ui,
45
+ -apple-system,
46
+ "Segoe UI",
47
+ sans-serif;
48
+ }
49
+
50
+ button {
51
+ font: inherit;
52
+ color: inherit;
53
+ background: none;
54
+ border: 1px solid transparent;
55
+ border-radius: 4px;
56
+ cursor: pointer;
57
+ }
58
+ button:hover {
59
+ border-color: var(--line);
60
+ }
61
+
62
+ /* The bar: which repo, which branch, what is traced */
63
+ #bar {
64
+ display: flex;
65
+ align-items: baseline;
66
+ gap: 10px;
67
+ padding: 8px 12px;
68
+ border-bottom: 1px solid var(--line);
69
+ background: var(--panel);
70
+ min-width: 0;
71
+ }
72
+ #toggle {
73
+ font-size: 15px;
74
+ padding: 0 6px;
75
+ align-self: center;
76
+ }
77
+ #repo {
78
+ font-size: 16px;
79
+ font-weight: 650;
80
+ white-space: nowrap;
81
+ }
82
+ #title {
83
+ margin-left: 12px;
84
+ overflow: hidden;
85
+ text-overflow: ellipsis;
86
+ white-space: nowrap;
87
+ flex: 1;
88
+ min-width: 0;
89
+ }
90
+ #refresh {
91
+ flex: none;
92
+ align-self: center;
93
+ padding: 2px 8px;
94
+ color: var(--muted);
95
+ }
96
+ #refresh:hover {
97
+ color: var(--ink);
98
+ }
99
+
100
+ /* The colour key, at the top of the explorer */
101
+ #colour-key {
102
+ display: flex;
103
+ gap: 14px;
104
+ margin: 0 0 8px;
105
+ color: var(--muted);
106
+ }
107
+
108
+ #body {
109
+ flex: 1;
110
+ min-height: 0;
111
+ display: flex;
112
+ }
113
+
114
+ /* The explorer: resizable, collapsible */
115
+ nav {
116
+ width: var(--nav-width);
117
+ min-width: 160px;
118
+ max-width: 70vw;
119
+ flex: none;
120
+ overflow: auto;
121
+ padding: 10px 12px;
122
+ background: var(--panel);
123
+ }
124
+ body.collapsed nav,
125
+ body.collapsed #resizer {
126
+ display: none;
127
+ }
128
+ #resizer {
129
+ width: 5px;
130
+ flex: none;
131
+ cursor: col-resize;
132
+ background: var(--line);
133
+ opacity: 0.6;
134
+ }
135
+ #resizer:hover,
136
+ body.resizing #resizer {
137
+ background: var(--accent);
138
+ opacity: 1;
139
+ }
140
+ body.resizing {
141
+ cursor: col-resize;
142
+ user-select: none;
143
+ }
144
+
145
+ /* The graph, and the card that floats over it */
146
+ main {
147
+ flex: 1;
148
+ min-width: 0;
149
+ position: relative;
150
+ }
151
+ #graph {
152
+ position: absolute;
153
+ inset: 0;
154
+ }
155
+ #message {
156
+ position: absolute;
157
+ margin: 24px;
158
+ color: var(--muted);
159
+ }
160
+ #details {
161
+ position: absolute;
162
+ top: 12px;
163
+ right: 12px;
164
+ width: min(520px, calc(100% - 24px));
165
+ max-height: calc(100% - 24px);
166
+ min-width: 260px;
167
+ min-height: 120px;
168
+ overflow: auto;
169
+ resize: both;
170
+ padding: 14px 16px;
171
+ background: var(--panel);
172
+ border: 1px solid var(--line);
173
+ border-radius: 8px;
174
+ box-shadow: var(--shadow);
175
+ }
176
+ #close {
177
+ position: sticky;
178
+ top: 0;
179
+ float: right;
180
+ font-size: 18px;
181
+ line-height: 1;
182
+ padding: 0 6px;
183
+ margin: -4px -6px 0 8px;
184
+ }
185
+
186
+ h2 {
187
+ font-size: 14px;
188
+ margin: 0 0 6px;
189
+ word-break: break-word;
190
+ }
191
+ h3 {
192
+ font-size: 12px;
193
+ margin: 14px 0 4px;
194
+ color: var(--muted);
195
+ text-transform: uppercase;
196
+ letter-spacing: 0.04em;
197
+ }
198
+ .hint,
199
+ .muted {
200
+ color: var(--muted);
201
+ }
202
+ .hint {
203
+ margin: 0 0 10px;
204
+ }
205
+ #details p {
206
+ overflow-wrap: anywhere;
207
+ }
208
+
209
+ ul {
210
+ list-style: none;
211
+ margin: 0;
212
+ padding-left: 14px;
213
+ }
214
+ #tree {
215
+ padding-left: 0;
216
+ }
217
+ li > .row {
218
+ display: flex;
219
+ gap: 4px;
220
+ align-items: baseline;
221
+ padding: 1px 2px;
222
+ border-radius: 3px;
223
+ white-space: nowrap;
224
+ }
225
+ .row .twist {
226
+ width: 12px;
227
+ color: var(--muted);
228
+ flex: none;
229
+ cursor: pointer;
230
+ }
231
+ .row .label {
232
+ color: var(--muted);
233
+ cursor: default;
234
+ overflow: hidden;
235
+ text-overflow: ellipsis;
236
+ }
237
+ .row.dir .label,
238
+ .row.store .label,
239
+ .row.group .label {
240
+ cursor: pointer;
241
+ color: var(--ink);
242
+ }
243
+ .row.traceable .label {
244
+ color: var(--accent);
245
+ cursor: pointer;
246
+ }
247
+ .row.traceable .label:hover {
248
+ text-decoration: underline;
249
+ }
250
+ .row.store .label::after {
251
+ content: " · store";
252
+ font-size: 11px;
253
+ color: var(--muted);
254
+ }
255
+
256
+ dl {
257
+ display: grid;
258
+ grid-template-columns: auto 1fr;
259
+ gap: 2px 10px;
260
+ margin: 0;
261
+ }
262
+ dt {
263
+ color: var(--muted);
264
+ }
265
+ dd {
266
+ margin: 0;
267
+ word-break: break-word;
268
+ }
269
+ .artifacts {
270
+ padding-left: 0;
271
+ }
272
+ .artifacts li {
273
+ margin: 3px 0;
274
+ word-break: break-all;
275
+ }
276
+ .keys {
277
+ color: var(--muted);
278
+ font-family: ui-monospace, monospace;
279
+ font-size: 12px;
280
+ }
281
+ .status {
282
+ color: var(--warn);
283
+ }
284
+ code {
285
+ font-family: ui-monospace, monospace;
286
+ font-size: 12px;
287
+ }
288
+ a {
289
+ color: var(--accent);
290
+ }
291
+
292
+ /* Grey: a folder, store or group of keys that holds nothing to trace */
293
+ .row.empty .label {
294
+ color: var(--muted);
295
+ }
296
+
297
+ /* Cards: what this is, then the key facts; the rest folded */
298
+ .kicker {
299
+ cursor: move;
300
+ user-select: none;
301
+ margin: 0 0 2px;
302
+ color: var(--muted);
303
+ font-size: 12px;
304
+ font-weight: 600;
305
+ }
306
+ details {
307
+ margin-top: 8px;
308
+ }
309
+ details > summary {
310
+ cursor: pointer;
311
+ color: var(--muted);
312
+ }
313
+ details > summary:hover {
314
+ color: var(--ink);
315
+ }
316
+ .artifacts details {
317
+ margin: 0;
318
+ }
319
+ .artifacts details > summary {
320
+ color: var(--ink);
321
+ }
322
+ .folded {
323
+ padding: 4px 0 2px 14px;
324
+ }
325
+
326
+ /* The one way a colour is explained: its swatch, then what it means */
327
+ .swatch {
328
+ display: inline-block;
329
+ width: 14px;
330
+ height: 10px;
331
+ margin-right: 5px;
332
+ border-radius: 3px;
333
+ vertical-align: -1px;
334
+ }
335
+ .swatch.target {
336
+ border: 2px solid var(--target);
337
+ }
338
+ .swatch.undeclared {
339
+ border: 2px dashed var(--warn);
340
+ }
341
+ .swatch.traceable {
342
+ background: var(--accent);
343
+ }
344
+ .swatch.empty {
345
+ background: var(--muted);
346
+ }
347
+
348
+ /* What each key of a store is: its name, then its facts, one line each */
349
+ .facts {
350
+ display: grid;
351
+ grid-template-columns: max-content minmax(0, 1fr);
352
+ gap: 2px 12px;
353
+ margin: 2px 0;
354
+ }
355
+ .facts > * {
356
+ overflow: hidden;
357
+ text-overflow: ellipsis;
358
+ white-space: nowrap;
359
+ }
360
+
361
+ /* Where a group of inputs lives */
362
+ .place {
363
+ margin: 6px 0 2px;
364
+ color: var(--muted);
365
+ font-size: 12px;
366
+ }
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2016-2024, The Cytoscape Consortium.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the “Software”), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.