forked from InternationalColorConsortium/iccDEV
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathendpoints.html
More file actions
533 lines (472 loc) · 14.1 KB
/
Copy pathendpoints.html
File metadata and controls
533 lines (472 loc) · 14.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iccDEV IIS Server - Endpoint Console</title>
<style>
:root {
--bg: #f6f3eb;
--panel: rgba(255, 253, 248, 0.88);
--ink: #18262e;
--muted: #59676f;
--line: rgba(24, 38, 46, 0.14);
--accent: #0b7f7a;
--accent-strong: #085956;
--warm: #f3b562;
--shadow: 0 18px 48px rgba(24, 38, 46, 0.12);
--danger: #d65353;
--ok: #29a76e;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Segoe UI", "Trebuchet MS", sans-serif;
color: var(--ink);
background:
radial-gradient(circle at top left, rgba(243, 181, 98, 0.34), transparent 32%),
radial-gradient(circle at top right, rgba(11, 127, 122, 0.18), transparent 28%),
linear-gradient(180deg, #fcfaf4 0%, var(--bg) 52%, #efe8dc 100%);
min-height: 100vh;
}
main {
max-width: 1120px;
margin: 0 auto;
padding: 40px 20px 56px;
}
.hero,
.panel,
.grid > section,
.tool-summary,
.tool-result {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 24px;
box-shadow: var(--shadow);
backdrop-filter: blur(10px);
}
.hero,
.panel,
.grid > section,
.tool-summary,
.tool-result {
padding: 22px;
min-width: 0;
}
.hero {
padding: 28px;
overflow: hidden;
position: relative;
}
.hero::after {
content: "";
position: absolute;
inset: auto -60px -60px auto;
width: 220px;
height: 220px;
background: radial-gradient(circle, rgba(11, 127, 122, 0.18), transparent 70%);
pointer-events: none;
}
.eyebrow {
display: inline-block;
padding: 6px 10px;
border-radius: 999px;
background: rgba(11, 127, 122, 0.08);
color: var(--accent-strong);
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
h1,
h2,
h3 {
font-family: Georgia, "Times New Roman", serif;
line-height: 1.05;
margin: 0;
}
h1 {
font-size: clamp(2.4rem, 6vw, 4.6rem);
margin-top: 14px;
max-width: 12ch;
}
h2 {
font-size: 1.6rem;
margin-bottom: 12px;
}
h3 {
font-size: 1.18rem;
margin-bottom: 10px;
}
p,
li,
dd {
line-height: 1.6;
color: var(--muted);
}
ul {
margin: 0;
padding-left: 18px;
}
code,
pre,
dt {
font-family: Consolas, "Courier New", monospace;
}
.hero-lead {
max-width: 72ch;
margin-top: 14px;
font-size: 1.02rem;
}
.hero-actions,
.action-row,
.page-links,
.tool-links {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.hero-actions,
.action-row,
.page-links {
margin-top: 22px;
}
.tool-links {
margin: 12px 0 0;
}
.tool-button,
.link-button,
.tool-link {
appearance: none;
display: inline-block;
border: 0;
border-radius: 999px;
padding: 12px 18px;
font: inherit;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.tool-button:hover,
.tool-button:focus,
.link-button:hover,
.link-button:focus,
.tool-link:hover,
.tool-link:focus {
transform: translateY(-1px);
text-decoration: none;
}
.tool-button,
.link-button.primary {
background: var(--accent);
color: #fff;
box-shadow: 0 12px 24px rgba(11, 127, 122, 0.24);
}
.tool-button.secondary,
.link-button.secondary,
.tool-link {
background: rgba(24, 38, 46, 0.06);
color: var(--ink);
}
.status-chip {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 18px;
padding: 8px 12px;
border-radius: 999px;
background: rgba(24, 38, 46, 0.05);
color: var(--ink);
font-size: 0.95rem;
font-weight: 600;
}
.status-chip::before {
content: "";
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--warm);
box-shadow: 0 0 0 6px rgba(243, 181, 98, 0.18);
flex: 0 0 auto;
}
.status-chip.ok::before {
background: var(--ok);
box-shadow: 0 0 0 6px rgba(41, 167, 110, 0.18);
}
.status-chip.fail::before {
background: var(--danger);
box-shadow: 0 0 0 6px rgba(214, 83, 83, 0.18);
}
.panel {
margin-top: 22px;
}
.result-meta {
display: flex;
flex-wrap: wrap;
gap: 8px 14px;
font-size: 0.95rem;
color: var(--muted);
margin-bottom: 12px;
}
.response-view,
.code-block {
margin: 0;
padding: 18px;
border-radius: 18px;
background: #10181d;
color: #eef7f7;
min-height: 220px;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
}
.code-block {
min-height: 0;
}
.grid,
.content-grid {
display: grid;
gap: 18px;
margin-top: 22px;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.table-grid,
.tool-meta {
display: grid;
grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
gap: 8px 14px;
align-items: start;
margin: 14px 0 0;
}
.table-grid dt,
.tool-meta dt {
color: var(--ink);
font-weight: 700;
min-width: 0;
overflow-wrap: anywhere;
}
.table-grid dd,
.tool-meta dd {
margin: 0;
min-width: 0;
overflow-wrap: anywhere;
}
.table-grid code {
overflow-wrap: anywhere;
}
.command-list {
display: grid;
gap: 12px;
}
.command-list code {
display: block;
padding: 14px 16px;
border-radius: 16px;
background: rgba(24, 38, 46, 0.04);
color: var(--ink);
overflow-x: auto;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.tool-suite-box {
margin-top: 22px;
}
.form-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 180px auto;
gap: 12px;
align-items: end;
margin: 14px 0 10px;
}
.form-field label {
display: block;
margin-bottom: 6px;
font-weight: 700;
color: var(--ink);
}
.form-field input,
.form-field select {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 14px;
background: rgba(255, 255, 255, 0.92);
color: var(--ink);
font: inherit;
}
.tool-help {
margin-top: 10px;
}
.tool-results {
display: grid;
gap: 16px;
margin-top: 18px;
}
.tool-result.ok {
border-left: 5px solid var(--ok);
}
.tool-result.fail {
border-left: 5px solid var(--danger);
}
.tool-result.skipped {
border-left: 5px solid #7c848b;
}
.tool-empty {
margin: 0;
}
.footer-note {
margin: 22px 0 0;
text-align: center;
color: var(--muted);
font-size: 0.94rem;
}
@media (max-width: 780px) {
main {
padding-top: 24px;
}
.hero,
.panel,
.grid > section,
.tool-summary,
.tool-result {
border-radius: 20px;
}
h1 {
max-width: none;
}
.form-row {
grid-template-columns: 1fr;
}
}
</style>
<script defer src="./sanitize.js"></script>
<script defer src="./site.js"></script>
</head>
<body data-page="endpoints" data-auto-endpoint="./iccIisIsapi.dll">
<main>
<section class="hero">
<span class="eyebrow">iccDEV + IIS + Tool Console</span>
<h1>Endpoint Console.</h1>
<p class="hero-lead">
This page uses the same visual system as the preferred landing page and keeps the operator workflow in one place:
smoke the native IIS endpoint, upload ICC or XML input, inspect JSON results, and jump directly into persisted
`_tool-work` artifacts.
</p>
<div class="hero-actions">
<button class="tool-button" type="button" data-endpoint-url="./iccIisIsapi.dll">Load Summary</button>
<button class="tool-button secondary" type="button" data-endpoint-url="./iccIisIsapi.dll?mode=health">Check Health</button>
<button class="tool-button secondary" type="button" data-endpoint-url="./iccIisIsapi.dll?format=xml">Fetch XML</button>
<a class="link-button secondary" href="./index.html">Back to Landing</a>
<a class="link-button secondary" href="./_tool-work/">Open Workspaces</a>
<a class="link-button secondary" href="./integration.html">Integration Guide</a>
</div>
<div id="live-status" class="status-chip">Waiting for the first request</div>
</section>
<section class="panel">
<h2>Live Response</h2>
<div class="result-meta">
<span><strong>URL:</strong> <span id="result-url">not requested yet</span></span>
<span><strong>Status:</strong> <span id="result-code">n/a</span></span>
<span><strong>Content-Type:</strong> <span id="result-type">n/a</span></span>
</div>
<pre id="result-body" class="response-view">Choose a request above to fetch live output from the IIS ISAPI sample.</pre>
</section>
<div class="grid">
<section>
<h2>Request Modes</h2>
<dl class="table-grid">
<dt><code>./iccIisIsapi.dll</code></dt>
<dd>Version summary with profile spec version and XML byte count.</dd>
<dt><code>?mode=health</code></dt>
<dd>Plain-text <code>ok</code> response for liveness checks.</dd>
<dt><code>?format=xml</code></dt>
<dd>Minimal ICC XML payload with <code>application/xml</code> content type.</dd>
<dt><code>POST ?mode=tools&input=icc|xml</code></dt>
<dd>Runs <code>iccToXml</code>, <code>iccFromXml</code>, <code>iccDumpProfile</code>, and <code>iccRoundTrip</code>, then returns JSON with exit codes, logs, artifacts, and workspace links.</dd>
</dl>
</section>
<section>
<h2>Quick Tests</h2>
<div class="command-list">
<code>curl.exe http://localhost:18081/iccIisIsapi.dll?mode=health</code>
<code>curl.exe http://localhost:18081/iccIisIsapi.dll</code>
<code>curl.exe http://localhost:18081/iccIisIsapi.dll?format=xml</code>
<code>curl.exe -H "Accept: application/json" -H "Content-Type: application/octet-stream" ^
--data-binary "@sample.icc" ^
"http://localhost:18081/iccIisIsapi.dll?mode=tools&input=icc&filename=sample.icc"</code>
</div>
</section>
<section>
<h2>Operator Notes</h2>
<ul>
<li>The endpoint surface stays rooted at <code>iccIisIsapi.dll</code>, so existing smoke checks remain simple.</li>
<li>The upload workflow persists uploads, generated files, and logs into <code>/_tool-work/</code>.</li>
<li>The workspace root now has its own landing page, so it avoids IIS directory-level <code>403.14</code>.</li>
</ul>
</section>
</div>
<section class="panel tool-suite-box">
<h2>Run The Top 4 Tools In The Browser</h2>
<p>
Upload an ICC profile or ICC XML file and the IIS endpoint will run the tool suite on the server:
<code>iccToXml</code>, <code>iccFromXml</code>, <code>iccDumpProfile</code>, and <code>iccRoundTrip</code>.
</p>
<form id="tool-upload-form">
<div class="form-row">
<div class="form-field">
<label for="tool-upload-file">Upload file</label>
<input id="tool-upload-file" type="file" accept=".icc,.icm,.xml,application/octet-stream,application/xml,text/xml">
</div>
<div class="form-field">
<label for="tool-upload-kind">Input kind</label>
<select id="tool-upload-kind">
<option value="icc">ICC profile</option>
<option value="xml">ICC XML</option>
</select>
</div>
<div>
<button class="tool-button" type="submit">Run Top 4 Tools</button>
</div>
</div>
</form>
<p class="tool-help">
ICC upload flow: <code>iccToXml</code> -> <code>iccFromXml</code> -> <code>iccDumpProfile</code> -> <code>iccRoundTrip</code>.
XML upload flow starts with <code>iccFromXml</code> and then runs the remaining tools on the regenerated ICC profile.
</p>
<p class="tool-help">
Each request also gets a persisted workspace page under <code>./_tool-work/<job>/</code>, with direct links to the uploaded
input, logs, and generated artifacts.
</p>
<div id="tool-run-status" class="status-chip">Waiting for an upload</div>
<div id="tool-results" class="tool-results">
<p class="tool-empty">Upload a file to run the tool suite.</p>
</div>
</section>
<div class="grid">
<section>
<h2>Response Expectations</h2>
<ul>
<li><code>health</code> should return <code>ok</code> with <code>text/plain; charset=utf-8</code>.</li>
<li><code>summary</code> should include both <code>IccProfLib</code> and <code>IccLibXML</code> version strings.</li>
<li><code>xml</code> should return <code>application/xml; charset=utf-8</code> and begin with an XML declaration.</li>
<li><code>tools</code> should return <code>application/json; charset=utf-8</code> and one result card per wrapped tool.</li>
</ul>
</section>
<section>
<h2>Next Step</h2>
<p>
If the responses are not what you expect, switch to <a href="./integration.html">Integration Guide</a> and re-check the site
root, handler verbs, runtime DLL set, and persisted workspace behavior.
</p>
</section>
</div>
<p class="footer-note">
Endpoint test surface for the local IIS-hosted <code>iccIisIsapi.dll</code>.
<span id="footer-year"></span>
</p>
</main>
</body>
</html>