forked from leoheck/kiri
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
344 lines (344 loc) · 19.9 KB
/
Copy pathindex.html
File metadata and controls
344 lines (344 loc) · 19.9 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script integrity="" src="https://code.iconify.design/1/1.0.7/iconify.min.js"></script>
<script integrity="" src="https://code.jquery.com/jquery-3.5.0.js"></script>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<script integrity="" src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.0/dist/svg-pan-zoom.min.js"></script>
<link integrity="" rel="stylesheet" href="kdiff.css">
<script integrity="" src="./kdiff.js"></script>
<title>[PROJECT_TITLE]</title>
</head>
<body>
<div class="container fill no-gutters" style="background-color: #333;">
<div class="row fill no-gutters">
<div class="col col-3 no-gutters" style="overflow: hidden">
<div class="list-group 3 no-gutters" style="padding: 0px 0px 15px 0px; margin-left:10px; height: 100vh;">
<span style="margin-top: 1em"></span>
<h3 class="text-light">Kicad Revision Inspector</h3>
<h4 class="text-info text-bold">[PROJECT_TITLE]</h4>
<p class="text-light">Rev. [PROJECT_REVISION] - [PROJECT_DATE]</p>
<p class="text-light" >
<span style="margin-right:0.5em" class="iconify" data-icon="fa-solid:code-branch" data-inline="false"></span>
Commits
<small class="text-sm text-muted">
: Walk through using
<kbd><span class="iconify" data-icon="typcn-arrow-up" data-inline="false"></span></kbd>
<kbd><span class="iconify" data-icon="typcn-arrow-down" data-inline="false"></span></kbd>
or <kbd>[</kbd>/<kbd>]</kbd>
and reset with <kbd>r</kbd>
</small>
</p>
<div class="form-check scrollbox" style="padding: 0px 0px 8px 0px ; margin-left:0px; overflow-y: scroll">
<form id="commits_form" class="overflow-auto scrollbox-content">
<!-- FILL_COMMITS_HERE -->
</form>
</div>
</div>
</div>
<div class="col col-6 no-gutters" style="background-color: #333;">
<div class="row no-gutters" style="width : 100%; margin: 0px;">
<div class="container no-gutters" style="flex: 1;">
<div class="row no-gutters" style="padding: 15px;">
<form class="inline">
<div id="view_mode" class="form-group row btn-group btn-group-toggle" data-toggle="buttons" role="group" aria-label="View Mode">
<label id="show_sch_lbl" title="Schematic" class="btn btn-secondary active" onclick="show_sch()">
<input id="show_sch" type="radio" name="view_mode" value="show_sch" data="show_sch" checked>
<span class="iconify" style="width: 20px; height: 20px;" data-icon="carbon:schematics" data-inline="false"></span>
</label>
<label id="show_pcb_lbl" title="Layout" class="btn btn-secondary" onclick="show_pcb()">
<input id="show_pcb" type="radio" name="view_mode" value="show_pcb" data="show_pcb">
<span class="iconify" style="width: 20px; height: 20px;" data-icon="codicon:circuit-board" data-inline="false"></span>
</label>
</div>
</form>
<span style="width: 1.5em"></span>
<p class="text-light" style="padding-top: 5px">
<small class="text-sm">
Toggle view mode with <kbd>s</kbd>
</small>
</p>
<span style="width: 2em"></span>
<form class="inline" style="display: none">
<div id="view_type" class="form-group btn-group btn-group-toggle" data-toggle="buttons" role="group" aria-label="View Type">
<label id="show_onion_lbl" title="Onion View" class="btn btn-secondary active" onclick="show_onion()">
<input id="show_onion" type="radio" value="show_onion" name="view_type">
<span class="iconify" style="width: 20px; height: 20px;" data-icon="carbon:overlay" data-inline="false"></span>
</label>
<label id="show_slide_lbl" title="Slide View" class="btn btn-secondary" onclick="show_slide()">
<input id="show_slide" type="radio" value="show_slide" name="view_type">
<span class="iconify" style="width: 20px; height: 20px;" data-icon="ic:baseline-compare" data-inline="false"></span>
</label>
</div>
</form>
<span style="width: 0.5em"></span>
<p class="text-light" style="padding-top: 5px">
<small class="text-sm" style="display: none">
Toggle view type with <kbd>d</kbd>
</small>
</p>
<span style="width: 2em"></span>
<form class="inline">
<div id="svg_controls" class="form-group btn-group btn-group-toggle" role="group" aria-label="Zoom Level">
<button id="zoom-in" title="Zoom In" name="svg_controls" type="button" aria-pressed="false" class="btn btn-secondary" onclick="this.blur();">
<span class="iconify" style="width: 20px; height: 20px;" data-icon="akar-icons:zoom-in" data-inline="false"></span>
</button>
<button id="zoom-out" title="Zoom Out" name="svg_controls" type="button" aria-pressed="false" class="btn btn-secondary" onclick="this.blur();" >
<span class="iconify" style="width: 20px; height: 20px;" data-icon="akar-icons:zoom-out" data-inline="false"></span>
</button>
<button id="reset" title="Reset View" name="svg_controls" type="button" aria-pressed="false" class="btn btn-secondary" onclick="this.blur();" >
<span class="iconify" style="width: 20px; height: 20px;" data-icon="carbon:center-to-fit" data-inline="false"></span>
</button>
</div>
</form>
</div>
</div>
</div>
<div class="container no-gutters" style="flex: 1;">
<div class="row no-gutters" style="flex: 1;" >
<div class="col col-12 no-gutters" style="flex: 1;">
<div id="legend" class="no-gutters">
<form class="rounded form-inline" style="background-color: #222; padding: 10px 5px 10px 5px">
<span id=commit1_legend style="margin-left:0.5em; margin-right:0.5em; color: #00FFFF; width: 10px; height: 10px;" class="iconify" data-icon="teenyicons-square-solid"></span>
<small class="text-sm text-muted"> New <span class="text-monospace" id=commit1_legend_hash>([COMMIT_1_HASH])</span></small>
<span style="width: 2em;"></span>
<span id="commit2_legend" style="margin-left:0.5em; margin-right:0.5em; color: #880808; width: 10px; height: 10px;" class="iconify" data-icon="teenyicons-square-solid"></span>
<small class="text-sm text-muted"> Old <span class="text-monospace" id=commit2_legend_hash>([COMMIT_2_HASH])</span></small>
<span style="width: 2em;"></span>
<span id="commit3_legend" style="margin-left:0.5em; margin-right:0.5em; color: #807F7F; width: 10px; height: 10px;" class="iconify" data-icon="teenyicons-square-solid"></span>
<small class="text-sm text-muted"> Unchanged </small>
<span style="width: 2em"></span>
<div id="pages_dropdown" class="dropdown" style="display: none;">
<a class="btn btn-secondary dropdown-toggle" href="#" title="Cyle pages with ← and →" name="pages_new" role="button" id="dropdownMenuLink_pages" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"/>
<span style="margin-left:0px; margin-right:0.1em;" class="iconify" data-icon="gridicons:pages" data-inline="false"></span>
Root
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#" id="board" name="layers_new" value="board"/>
<span style="margin-left:0px; margin-right:0.1em;" class="iconify" data-icon="gridicons:pages" data-inline="false"></span>
Root
</a>
</div>
</div>
<div id="layers_dropdown" class="dropdown" style="display: none">
<a class="btn btn-secondary dropdown-toggle" title="Cyle layers with ← and →" href="#" id="layers_header" name="layers_new" value="F_Cu" role="button" id="dropdownMenuLink_layers" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"/>
<span style="margin-left:0px; margin-right:0.1em; color: #952927" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_Cu
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#" id="dropdown_F_Cu" name="layers_new" value="F_Cu"/>
<span style="margin-left:0px; margin-right:0.1em; color: #952927" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_Cu
</a>
<a class="dropdown-item" href="#" id="dropdown_B_Cu" name="layers_new" value="B_Cu"/>
<span style="margin-left:0px; margin-right:0.1em; color: #359632" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_Cu
</a>
<a class="dropdown-item" href="#" id="dropdown_B_Adhes" name="layers_new" value="B_Adhes"/>
<span style="margin-left:0px; margin-right:0.1em; color: #3545A8" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_Adhes
</a>
<a class="dropdown-item" href="#" id="dropdown_F_Adhes" name="layers_new" value="F_Adhes"/>
<span style="margin-left:0px; margin-right:0.1em; color: #A74AA8" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_Adhes
</a>
<a class="dropdown-item" href="#" id="dropdown_B_Paste" name="layers_new" value="B_Paste"/>
<span style="margin-left:0px; margin-right:0.1em; color: #969696" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_Paste
</a>
<a class="dropdown-item" href="#" id="dropdown_F_Paste" name="layers_new" value="F_Paste"/>
<span style="margin-left:0px; margin-right:0.1em; color: #3DC9C9" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_Paste
</a>
<a class="dropdown-item" href="#" id="dropdown_B_SilkS" name="layers_new" value="B_SilkS"/>
<span style="margin-left:0px; margin-right:0.1em; color: #481649" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_SilkS
</a>
<a class="dropdown-item" href="#" id="dropdown_F_SilkS" name="layers_new" value="F_SilkS"/>
<span style="margin-left:0px; margin-right:0.1em; color: #339697" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_SilkS
</a>
<a class="dropdown-item" href="#" id="dropdown_B_Mask" name="layers_new" value="B_Mask"/>
<span style="margin-left:0px; margin-right:0.1em; color: #943197" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_Mask
</a>
<a class="dropdown-item" href="#" id="dropdown_F_Mask" name="layers_new" value="F_Mask"/>
<span style="margin-left:0px; margin-right:0.1em; color: #943197" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_Mask
</a>
<a class="dropdown-item" href="#" id="dropdown_Dwgs_User" name="layers_new" value="Dwgs_User"/>
<span style="margin-left:0px; margin-right:0.1em; color: #0364D3" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
Dwgs_User
</a>
<a class="dropdown-item" href="#" id="dropdown_Cmts_User" name="layers_new" value="Cmts_User"/>
<span style="margin-left:0px; margin-right:0.1em; color: #7AC0F4" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
Cmts_User
</a>
<a class="dropdown-item" href="#" id="dropdown_Eco1_User" name="layers_new" value="Eco1_User"/>
<span style="margin-left:0px; margin-right:0.1em; color: #008500" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
Eco1_User
</a>
<a class="dropdown-item" href="#" id="dropdown_Eco2_User" name="layers_new" value="Eco2_User"/>
<span style="margin-left:0px; margin-right:0.1em; color: " class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
Eco2_User
</a>
<a class="dropdown-item" href="#" id="dropdown_Edge_Cuts" name="layers_new" value="Edge_Cuts"/>
<span style="margin-left:0px; margin-right:0.1em; color: #C9C83B" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
Edge_Cuts
</a>
<a class="dropdown-item" href="#" id="dropdown_Margin" name="layers_new" value="Margin"/>
<span style="margin-left:0px; margin-right:0.1em; color: #D357D2" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
Margin
</a>
<a class="dropdown-item" href="#" id="dropdown_B_CrtYd" name="layers_new" value="B_CrtYd"/>
<span style="margin-left:0px; margin-right:0.1em; color: #D3D04B" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_CrtYd
</a>
<a class="dropdown-item" href="#" id="dropdown_F_CrtYd" name="layers_new" value="F_CrtYd"/>
<span style="margin-left:0px; margin-right:0.1em; color: #A7A7A7" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_CrtYd
</a>
<a class="dropdown-item" href="#" id="dropdown_B_Fab" name="layers_new" value="B_Fab"/>
<span style="margin-left:0px; margin-right:0.1em; color: #858585" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
B_Fab
</a>
<a class="dropdown-item" href="#" id="dropdown_F_Fab" name="layers_new" value="F_Fab"/>
<span style="margin-left:0px; margin-right:0.1em; color: #C2C200" class="iconify" data-icon="teenyicons-square-solid" data-inline="false"></span>
F_Fab
</a>
<!-- </div> -->
</ul>
</div>
</form>
</div>
<div id="diff-sch" style="width: 100%; height: 75vh; display: inline;">
<svg id="svg-id-sch" xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
style="display: inline; width: inherit; min-width: inherit; max-width: inherit; height: inherit; min-height: inherit; max-height: inherit;" version="1.1">
<g>
<svg id="img-1-sch">
<defs>
<filter id="f1_sch">
<feColorMatrix id="c1-sch" type="matrix" values="
1 0 0 0 0
0 1 0 1 0
0 0 1 1 0
0 0 0 1 0 " />
</filter>
</defs>
<image id="diff-xlink-1-sch" x="0" y="0" height="100%" width="100%" filter="url(#f1_sch)"
href="[INITIAL_COMMIT_1_SCH]"
xlink:href="[INITIAL_COMMIT_1_SCH]"/>
</svg>
<svg id="img-2-sch-sch">
<defs>
<filter id="f2_sch">
<feColorMatrix id="c2-sch" type="matrix" values="
1 0 0 1 0
0 1 0 0 0
0 0 1 0 0
0 0 0 .5 0" />
</filter>
</defs>
<image id="diff-xlink-2-sch" x="0" y="0" height="100%" width="100%" filter="url(#f2_sch)"
href="[INITIAL_COMMIT_2_SCH]"
xlink:href="[INITIAL_COMMIT_2_SCH]"/>
</svg>
</g>
</svg>
</div>
<div id="diff-pcb" style="width: 100%; height: 75vh; display: none;">
<svg id="svg-id-pcb" xmlns="http://www.w3.org/2000/svg" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
style="display: inline; width: inherit; min-width: inherit; max-width: inherit; height: inherit; min-height: inherit; max-height: inherit;" version="1.1">
<g>
<svg id="img-1-pcb">
<defs>
<filter id="f1_pcb">
<feColorMatrix id="c3-pcb" type="matrix" values="
1 0 0 0 0
0 1 0 1 0
0 0 1 1 0
0 0 0 1 0 " />
</filter>
</defs>
<image id="diff-xlink-1-pcb" x="0" y="0" height="100%" width="100%" filter="url(#f1_pcb)"
href="[INITIAL_COMMIT_1_PCB]"
xlink:href="[INITIAL_COMMIT_1_PCB]"/>
</svg>
<svg id="img-2-pcb-pcb">
<defs>
<filter id="f2_pcb">
<feColorMatrix id="c4-pcb" type="matrix" values="
1 0 0 1 0
0 1 0 0 0
0 0 1 0 0
0 0 0 .5 0" />
</filter>
</defs>
<image id="diff-xlink-2-pcb" x="0" y="0" height="100%" width="100%" filter="url(#f2_pcb)"
href="[INITIAL_COMMIT_2_PCB]"
xlink:href="[INITIAL_COMMIT_2_PCB]"/>
</svg>
</g>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col col no-gutters" >
<div class="list-group no-gutters" id="pages_list" style="display: inline;">
<div class="form-check no-gutters" style="width: 220px; padding-top: 1em">
<p class="text-light">
<span style="margin-right:0.5em" style="width: 20px; height: 20px;" class="iconify" data-icon="gridicons:next-page" data-inline="false"></span>
Pages <small class="text-sm text-muted"></br>
Cycle using
<kbd><span class="iconify" data-icon="typcn-arrow-left" data-inline="false"></span></kbd>/
<kbd><span class="iconify" data-icon="typcn-arrow-right" data-inline="false"></span></kbd>
</small>
</p>
<div class="row">
<div class="col col">
<form>
<!-- FILL_PAGES_HERE -->
</form>
</div>
</div>
</div>
</div>
<div class="list-group no-gutters" id="layers_list" style="display: none;">
<div class="form-check no-gutters" style="width: 180px; padding-top: 1em">
<p class="text-light">
<span style="margin-right:0.5em" style="width: 20px; height: 20px;" class="iconify" data-icon="teenyicons:layers-solid" data-inline="false"></span>
Layers <small class="text-sm text-muted"></br>
Cycle using
<kbd><span class="iconify" data-icon="typcn-arrow-left" data-inline="false"></span></kbd>/
<kbd><span class="iconify" data-icon="typcn-arrow-right" data-inline="false"></span></kbd>
</small>
</p>
<div class="row">
<div class="col col">
<form>
<!-- FILL_LAYERS_HERE -->
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>