Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
246 lines (246 loc) · 10.5 KB
/
Copy pathindex.html
File metadata and controls
246 lines (246 loc) · 10.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SCPI-flow — Instrument Workspace</title>
<link rel="stylesheet" href="/web/shell.css">
<script src="/web/shell.js" defer></script>
</head>
<body>
<header>
<button id="toggle-sidebar" class="tool-btn"
title="Toggle catalog sidebar (Ctrl+B)"
aria-label="Toggle catalog sidebar">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<rect x="2" y="2" width="12" height="12" rx="2"></rect>
<path d="M6 2v12"></path>
<path d="M4.5 8l-1.5 0"></path>
</svg>
</button>
<strong>SCPI-flow</strong>
<button id="new-project" class="tool-btn" title="New diagram"
aria-label="New diagram">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path
d="M3 2h7l4 4v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"></path>
<path d="M10 2v4h4"></path>
<line x1="8" y1="8" x2="8" y2="12"></line>
<line x1="6" y1="10" x2="10" y2="10"></line>
</svg>
</button>
<button id="save-project" class="tool-btn" title="Save diagram"
aria-label="Save diagram">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path
d="M3 2h8l3 3v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"></path>
<path d="M5 2v4h6V2"></path>
<rect x="5" y="9" width="6" height="5"></rect>
</svg>
</button>
<button id="load-project" class="tool-btn" title="Load diagram"
aria-label="Load diagram">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path
d="M2 4.5A1.5 1.5 0 0 1 3.5 3H6l1.5 2H13a1 1 0 0 1 1 1v1.5H3.5A1.5 1.5 0 0 0 2 9V4.5z"></path>
<path
d="M2 9a1.5 1.5 0 0 1 1.5-1.5h10.8a1 1 0 0 1 .98 1.2l-1.2 4.5a1 1 0 0 1-.98.8H3.5A1.5 1.5 0 0 1 2 12.5V9z"></path>
</svg>
</button>
<button id="reset-workspace" class="tool-btn" title="Reset instruments"
aria-label="Reset instruments">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path d="M2.5 8a5.5 5.5 0 1 1 1.5 3.8"></path>
<path d="M2.5 12V8H6.5"></path>
</svg>
</button>
<button id="maximize-canvas" class="tool-btn"
title="Maximize flow-graph view (Esc to exit)"
aria-label="Maximize flow-graph view">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path d="M2 6V2h4"></path>
<path d="M14 6V2h-4"></path>
<path d="M2 10v4h4"></path>
<path d="M14 10v4h-4"></path>
</svg>
</button>
<button id="theme" class="tool-btn" title="Light / Dark mode"
aria-label="Light / Dark mode">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16" fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<circle cx="8" cy="8" r="4"></circle>
<path
d="M8 1.5v1.5M8 13v1.5M1.5 8h1.5M13 8h1.5M3.4 3.4l1.1 1.1M11.5 11.5l1.1 1.1M3.4 12.6l1.1-1.1M11.5 4.5l1.1-1.1"></path>
</svg>
</button>
</header>
<main>
<aside id="catalog-sidebar" aria-label="Instrument catalog">
<div class="aside-header">
<h2>Instrument catalog</h2>
<button id="hide-sidebar-btn" class="icon-btn tool-btn"
title="Hide sidebar (Ctrl+B)" aria-label="Hide sidebar">
<svg class="icon" viewBox="0 0 16 16" width="14" height="14"
fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path d="M10 3L5 8l5 5"></path>
</svg>
</button>
</div>
<p class="muted">
Load instruments when needed. Each runs in its own process.
</p>
<form id="register-form">
<label for="manifest-path">Local instrument manifest</label>
<div class="input-with-button">
<input
id="manifest-path"
list="recent-manifests"
placeholder="/path/to/instrument.json"
required
>
<datalist id="recent-manifests"></datalist>
<button id="browse-btn" type="button" class="tool-btn"
title="Browse local directories for instrument.json"
aria-label="Browse local directories">
<svg class="icon" viewBox="0 0 16 16" width="14" height="14"
fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path
d="M2 4.5A1.5 1.5 0 0 1 3.5 3H6l1.5 2H13a1 1 0 0 1 1 1v1.5H3.5A1.5 1.5 0 0 0 2 9V4.5z"></path>
<path
d="M2 9a1.5 1.5 0 0 1 1.5-1.5h10.8a1 1 0 0 1 .98 1.2l-1.2 4.5a1 1 0 0 1-.98.8H3.5A1.5 1.5 0 0 1 2 12.5V9z"></path>
</svg>
</button>
</div>
<div class="form-actions">
<button type="submit">Register</button>
<button id="discover-btn" type="button"
title="Scan workspace for plug-ins">Discover</button>
<button id="refresh" type="button">Refresh</button>
</div>
</form>
<div id="discovered-section" class="discovered-section"
style="display:none;">
<div class="discovered-header">
<h3>Discovered plug-ins</h3>
<button id="close-discovered-btn" type="button" class="icon-btn"
title="Dismiss" aria-label="Dismiss">✕</button>
</div>
<div id="discovered-list"></div>
</div>
<div id="palette">Reading catalog…</div>
</aside>
<div id="workspace-area">
<button id="restore-canvas" class="floating-restore-btn tool-btn"
title="Restore view (Esc)" aria-label="Restore view">
<svg class="icon" viewBox="0 0 16 16" width="16" height="16"
fill="none"
stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
stroke-linejoin="round" aria-hidden="true">
<path d="M6 2v4H2"></path>
<path d="M10 2v4h4"></path>
<path d="M6 14v-4H2"></path>
<path d="M10 14v-4h4"></path>
</svg>
</button>
<nav id="tabs" role="tablist" aria-label="Workspace views">
<button
id="tab-flow"
class="tab-btn active"
role="tab"
aria-selected="true"
>
Data Flow Canvas
</button>
</nav>
<div id="panels">
<section id="view-flow" class="view-panel active">
<div id="flow-help" class="muted">
Drag instruments onto the canvas. Double-click to open. Click an
output, then an input, to connect. Connections describe the
diagram; they do not route live signals.
</div>
<div id="flow-scroll">
<div id="workspace" aria-label="Data flow canvas">
<svg id="connections" aria-label="Connections">
<defs>
<marker
id="arrow"
markerWidth="8"
markerHeight="8"
refX="7"
refY="3"
orient="auto"
>
<polygon points="0 0, 8 3, 0 6" fill="#38bdf8"></polygon>
</marker>
</defs>
</svg>
</div>
</div>
</section>
</div>
</div>
</main>
<footer id="status" role="status" aria-live="polite">
Ready — no instruments loaded
</footer>
<dialog id="details">
<h2 id="details-title">Instrument capabilities</h2>
<details>
<summary>Manifest and configuration schema</summary>
<pre id="manifest-details"></pre>
</details>
<label for="configuration"
>Configuration patch (JSON; fields defined by this instrument)</label>
<textarea id="configuration" spellcheck="false">{}</textarea>
<button id="apply-config">Apply configuration</button>
<button id="close-details">Close</button>
</dialog>
<dialog id="file-browser">
<div class="dialog-header">
<h2>Browse for Instrument Manifest</h2>
<button id="close-file-browser" type="button" class="icon-btn"
aria-label="Close">✕</button>
</div>
<div class="browser-nav">
<button id="browser-up-btn" type="button"
title="Go up one level">⬆ Up</button>
<input id="browser-current-path" type="text" readonly
aria-label="Current directory path">
</div>
<div class="browser-shortcuts">
<button id="shortcut-workspace" type="button">Workspace Root</button>
<button id="shortcut-instruments" type="button">Instruments</button>
<button id="shortcut-parent" type="button">Parent Directory</button>
</div>
<div id="browser-file-list" class="browser-file-list" role="listbox">
Loading directory…
</div>
<div class="dialog-footer">
<span id="browser-selected-info"
class="muted">Select an instrument.json file</span>
<div class="dialog-actions">
<button id="browser-select-btn" type="button" disabled>Select</button>
<button id="browser-cancel-btn" type="button">Cancel</button>
</div>
</div>
</dialog>
</body>
</html>