forked from FPGAwars/icestudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
449 lines (383 loc) · 18.7 KB
/
index.html
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
<!DOCTYPE html>
<html>
<!----------------------------------------------------------------------->
<!-- INDEX HTML FILE --- Initial ENTRY POINT -->
<!----------------------------------------------------------------------->
<!-- Start sequence: -->
<!-- * NW is executed. Icestudio is a NWjs application. -->
<!-- * NW creates the main display window (a browser) -->
<!-- * NW loads this file into the window (index.html) -->
<!-- * index.html is procesed and executed -->
<!----------------------------------------------------------------------->
<!-- index.html structure: -->
<!-- * CSS is loaded (for both internal and external dependencies) -->
<!-- * js files are loaded (both internal and external js files) -->
<!-- * The body contains the structure of the Icestudio GUI -->
<!----------------------------------------------------------------------->
<!-- When the js files are executed, there is already a nw window -->
<!-- available -->
<!-- All the js files have access to the nw object (which gives access -->
<!-- to the nw API -->
<!----------------------------------------------------------------------->
<!-- JS ENTRY POINT: -->
<!-- Icestudio depends on many .js files. The main JS file, which is -->
<!-- initially executed, is app.js -->
<!-- If you want to understand the icestudio code, first have a look -->
<!-- to this index.html and then continue with app.js -->
<!----------------------------------------------------------------------->
<!-- NW documentation: -->
<!-- https://nwjs.readthedocs.io/en/latest/ -->
<!----------------------------------------------------------------------->
<head>
<title>Icestudio</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- critical css, should be loaded as soon as possible -->
<style>
/* -- Splash screen */
#main-icestudio-load-wrapper {
position: absolute;
top: 0;
left: 0;
z-index: 9999999999999999;
width: 100%;
height: 100vh;
overflow: hidden;
background-color: #305eac;
opacity: 1;
transition: opacity 1s ease;
}
#main-icestudio-load-wrapper img {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
width:100%;
}
.spinner-wrapper{
width:100%;
height:100vh;
position:fixed;
overflow:hidden;
top:0;left:0;
z-index:999;
display:none;
}
body.waiting .spinner-wrapper{
display:block;
}
.spinner-wrapper--bg{
width:100%;
height:100vh;
position:absolute;
top:0;left:0;
overflow:hidden;
z-index:0;
background-color:#7ccff4;
opacity:0.4;
}
.spinner-wrapper--container{
position:absolute;
top:0;left:0;right:0;bottom:0;
margin:auto;
width:80px;
height:80px;
z-index:1;
}
</style>
<!-- ************************************************************** -->
<!-- ****** Priority Styles ********* -->
<!-- ************************************************************** -->
<!-- Splash screen -->
<link rel="stylesheet" href="styles/splash.css">
<!-- ************************************************************** -->
<!-- ****** External Styles ********* -->
<!-- ************************************************************** -->
<!-- Jointjs: Visualize and interact with diagrams and graphs -->
<!-- https://www.jointjs.com/opensource -->
<link rel="stylesheet" href="node_modules/jointjs/dist/joint.css">
<!-- Bootstrap: Build fast, responsive sites with Bootstrap -->
<!-- https://getbootstrap.com/ -->
<link rel="stylesheet"
href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<!-- Select2: The jQuery replacement for select boxes -->
<!-- https://select2.org/ -->
<link rel="stylesheet"
href="node_modules/select2/dist/css/select2.min.css">
<!-- Alertifyjs: A javascript framework for developing pretty browser -->
<!-- dialogs and notifications. https://alertifyjs.com/ -->
<link rel="stylesheet"
href="node_modules/alertifyjs/build/css/alertify.min.css">
<link rel="stylesheet"
href="node_modules/alertifyjs/build/css/themes/default.min.css">
<!-- jexcel: is a lightweight Vanilla JavaScript plugin to create -->
<!-- amazing web-based interactive HTML tables and spreadsheets -->
<!-- compatible with other spreadsheet software -->
<!-- https://github.com/jspreadsheet/ce -->
<link rel="stylesheet"
href="node_modules/jexcel/dist/jexcel.css"
type="text/css" />
<!-- jsuites: jSuites is a collection of lightweight common required
javascript web components
https://github.com/jsuites/jsuites -->
<link rel="stylesheet"
href="node_modules/jsuites/dist/jsuites.css"
type="text/css" />
<!-- *************************************************************** -->
<!-- **** ICESTUDIO STYLES (Internal) **** -->
<!-- *************************************************************** -->
<!-- Fonts -->
<link rel="stylesheet"
href="resources/fonts/Lato2OFLWeb/Lato/latofonts.css">
<link rel="stylesheet"
href="resources/fonts/fontawesome-free-5.15.1-web/css/all.min.css">
<!-- Style for the markdown -->
<link rel="stylesheet"
href="resources/viewers/markdown/css/github-markdown.css">
<!-- FPGA resources stlye -->
<link rel="stylesheet" href="styles/design.css">
<!-- Main UI -->
<link rel="stylesheet" href="styles/main.css">
<!-- Main UI -->
<link rel="stylesheet" href="styles/ics-wm.css">
<!-- Menu -->
<link rel="stylesheet" href="styles/menu.css">
<!-- Version window -->
<link rel="stylesheet" href="styles/version.css">
</head>
<!---------------------------------------------------------------->
<!-- ICESTUDIO GUI STRUCTURE -->
<!---------------------------------------------------------------->
<!-- The ng-app directive tells Angularjs that this is the root -->
<!-- element of the Angularjs application -->
<body ng-app="icestudio">
<!------------------------------------------------------->
<!-- Initial load screen -->
<!-- It is shown every time a new Icestudio window -->
<!-- is open (including the initial one) -->
<!------------------------------------------------------->
<div id="main-icestudio-load-wrapper">
<div id="main-icestudio-load-wrapper--bar"></div>
<div class="splash-img-container">
<div class="splash-img-center">
<!--<img src="resources/images/icestudio-github.svg">-->
<!-- Custom splash for mch22 -->
<img src="resources/images/mch22-splash.jpg">
</div>
</div>
</div>
<!-------------------------------------------------------->
<!-- ICESTUDIO MAIN WINDOW -->
<!-------------------------------------------------------->
<div id="main-icestudio-wrapper">
<!-- SPINNER: Normally hidden -->
<!-- It is used for showing activity to the user -->
<!-- The main interface is disable and only the -->
<!-- animation is shown -->
<div class="spinner-wrapper">
<div class="spinner-wrapper--bg"></div>
<div class="spinner-wrapper--container">
<div class="sk-cube-grid">
<div class="sk-cube sk-cube1"></div>
<div class="sk-cube sk-cube2"></div>
<div class="sk-cube sk-cube3"></div>
<div class="sk-cube sk-cube4"></div>
<div class="sk-cube sk-cube5"></div>
<div class="sk-cube sk-cube6"></div>
<div class="sk-cube sk-cube7"></div>
<div class="sk-cube sk-cube8"></div>
<div class="sk-cube sk-cube9"></div>
</div>
</div>
</div>
<!-- ICESTUDIO MENU BAR, located at the top -->
<!-- Asociatted to app/scripts/controllers/menu.js -->
<div ng-include="'views/menu.html'"></div>
<!-- The rest of ICESTUDIO GUI: -->
<!-- * Information banners -->
<!-- * Label Finder popUp menu -->
<!-- * Basic Toolbox pop up menu -->
<!-- * PAPER: Main design board -->
<!-- * Bottom toolbar -->
<!----------------------------------------------------->
<!-- Asociatted to app/scripts/controllers/design.js -->
<div ng-include="'views/design.html'"></div>
</div>
<!------------------------------------------------------------------->
<!-- IMPORTANT! The javascripts files should be loaded at the end -->
<!-- of the BODY, and in this order. DO NOT CHANGE THEIR LOCATION -->
<!-- In this index file -->
<!------------------------------------------------------------------->
<!-- ************************************************************** -->
<!-- ****** External Javascript modules ********* -->
<!-- ************************************************************** -->
<!-- jquery: jQuery is a fast, small, and feature-rich -->
<!-- JavaScript library -->
<!-- https://jquery.com/ -->
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<!-- jquery-resize: Resize elements easily -->
<!-- http://benalman.com/projects/jquery-resize-plugin/ -->
<script
src="node_modules/cos-jquery-resize/jquery.ba-resize.min.js">
</script>
<!-- underscore: a JavaScript library that provides a whole mess of -->
<!-- useful functional programming helpers without extending any -->
<!-- built-in objects -->
<!-- https://underscorejs.org/ -->
<script src="node_modules/underscore/underscore.js"></script>
<!-- backbone: Give your JS App some Backbone with Models, Views, -->
<!-- Collections, and Events. -->
<!-- https://backbonejs.org/ -->
<script src="node_modules/backbone/backbone.js"></script>
<!-- lodash: A modern JavaScript utility library delivering -->
<!-- modularity, performance & extras. -->
<!-- https://lodash.com/ -->
<script src="node_modules/lodash/index.js"></script>
<!-- Jointjs: Visualize and interact with diagrams and graphs -->
<!-- https://www.jointjs.com/opensource -->
<script src="node_modules/jointjs/dist/joint.js"></script>
<!-- Bootstrap: Build fast, responsive sites with Bootstrap -->
<!-- https://getbootstrap.com/ -->
<script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
<!-- Select2: The jQuery replacement for select boxes -->
<!-- https://select2.org/ -->
<script src="node_modules/select2/dist/js/select2.full.js"></script>
<!-- Ace is a code editor written in JavaScript -->
<!-- https://github.com/ajaxorg/ace-builds -->
<script
src="node_modules/ace-builds/src-min-noconflict/ace.js">
</script>
<script
src="node_modules/ace-builds/src-min-noconflict/theme-chrome.js">
</script>
<script
src="node_modules/ace-builds/src-min-noconflict/mode-verilog.js">
</script>
<!-- async: Higher-order functions and common patterns for -->
<!-- asynchronous code -->
<!-- http://caolan.github.io/async/v3/ -->
<script src="node_modules/async/dist/async.min.js"></script>
<!-- svg-pan-zoom: Simple pan/zoom solution for SVGs in HTML -->
<!-- It adds events listeners for mouse scroll, double-click and pan -->
<!-- https://github.com/bumbu/svg-pan-zoom#readme -->
<script
src="node_modules/svg-pan-zoom/dist/svg-pan-zoom.min.js">
</script>
<!-- Alertifyjs: A javascript framework for developing pretty browser -->
<!-- dialogs and notifications. https://alertifyjs.com/ -->
<script src="node_modules/alertifyjs/build/alertify.js"></script>
<!-- snapsvg: The JavaScript SVG library for the modern web -->
<!-- http://snapsvg.io/ -->
<script src="node_modules/snapsvg/dist/snap.svg-min.js"></script>
<!-- jsuites: jSuites is a collection of lightweight common required -->
<!-- javascript web components -->
<!-- https://www.npmjs.com/package/jsuites -->
<script src="node_modules/jsuites/dist/jsuites.js"></script>
<!-- jexcel: Jspreadsheet CE is a lightweight Vanilla JavaScript plugin -->
<!-- to create amazing web-based interactive HTML tables and -->
<!-- spreadsheets compatible with other spreadsheet software -->
<!-- https://github.com/jspreadsheet/ce -->
<script src="node_modules/jexcel/dist/jexcel.js"></script>
<!-- mustache: -->
<!-- mustache is a logic-less template syntax. it can be used for html, -->
<!-- config files, source code - anything. it works by expanding tags -->
<!-- in a template using values provided in a hash or object -->
<!-- https://github.com/janl/mustache.js -->
<script src="node_modules/mustache/mustache.min.js"></script>
<!-- ************************************************************** -->
<!-- ****** ICESTUDIO Javascript modules ********* -->
<!-- ************************************************************** -->
<!-- New components (Refactored) -->
<script src="resources/libs/Icestudio/Core/IceBlock.js"></script>
<script src="resources/libs/Icestudio/Core/IceCollection.js"></script>
<script src="resources/libs/Icestudio/Fuse/IceHD.js"></script>
<script src="resources/libs/Icestudio/Network/WafleRemoteFile.js"></script>
<script src="resources/libs/Icestudio/GUI/WafleTemplate.js"></script>
<script
src="resources/libs/Icestudio/GUI/Widgets/WafleUIWindow.js">
</script>
<script src="resources/libs/Icestudio/GUI/Widgets/WafleUITree.js"></script>
<script src="resources/libs/Icestudio/GUI/WafleGUI.js"></script>
<script src="resources/libs/Icestudio/GUI/WafleWindowManager.js"></script>
<script src="resources/libs/Icestudio/Log/IceLogger.js"></script>
<script
src="resources/libs/Icestudio/Crypto/UniqueIdGenerator.js">
</script>
<script src="resources/libs/Icestudio/Plugin/WaflePlugin.js"></script>
<script
src="resources/libs/Icestudio/Plugin/WaflePluginExtService.js">
</script>
<script
src="resources/libs/Icestudio/Plugin/WaflePluginExtWindow.js">
</script>
<script
src="resources/libs/Icestudio/Plugin/WaflePluginExtEmbeddedWindowed.js">
</script>
<script
src="resources/libs/Icestudio/Plugin/WaflePluginExtEmbedded.js">
</script>
<script
src="resources/libs/Icestudio/Services/WafleEventBus.js">
</script>
<script
src="resources/libs/Icestudio/Services/WaflePluginManager.js">
</script>
<script src="resources/libs/Icestudio/Icestudio.js"></script>
<script src="resources/libs/iceprofiler.js"></script>
<script src="resources/libs/iceparametrichelper.js"></script>
<!-- angularjs: AngularJS lets you extend HTML vocabulary for your -->
<!-- application. The resulting environment is extraordinarily -->
<!-- expressive, readable, and quick to develop -->
<!-- https://angularjs.org/ -->
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-route/angular-route.js"></script>
<script
src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js">
</script>
<script
src="node_modules/angular-gettext/dist/angular-gettext.min.js">
</script>
<!---------------------------------------------->
<!-- Icestudio app ENTRY POINT -->
<!---------------------------------------------->
<script src="scripts/app.js"></script>
<!-------------------------------------------------------->
<!-- Icestudio javascript modules -->
<!-------------------------------------------------------->
<!-- Definition of external modules -->
<script src="scripts/factories/error.js"></script>
<script src="scripts/factories/joint.js"></script>
<script src="scripts/factories/node.js"></script>
<script src="scripts/factories/window.js"></script>
<!-- js files asociated to html code -->
<!-- They contains the callbacks functions -->
<script src="scripts/controllers/design.js"></script>
<script src="scripts/controllers/menu.js"></script>
<!-- Special menus -->
<script src="scripts/directives/menuboard.js"></script>
<script src="scripts/directives/menutree.js"></script>
<!-- js files related to joint (the graphical library) -->
<!-- used for drawing the circuits -->
<script src="scripts/graphics/joint.command.js"></script>
<script src="scripts/graphics/joint.connectors.js"></script>
<script src="scripts/graphics/joint.routers.js"></script>
<script src="scripts/graphics/joint.selection.js"></script>
<script src="scripts/graphics/joint.shapes.js"></script>
<!-- Other internal support libraries -->
<script src="scripts/services/blockforms.js"></script>
<script src="scripts/services/boards.js"></script>
<script src="scripts/services/utils.js"></script>
<script src="scripts/services/blocks.js"></script>
<script src="scripts/services/forms.js"></script>
<script src="scripts/services/common.js"></script>
<script src="scripts/services/compiler.js"></script>
<script src="scripts/services/drivers.js"></script>
<script src="scripts/services/graph.js"></script>
<script src="scripts/services/profile.js"></script>
<script src="scripts/services/project.js"></script>
<script src="scripts/services/collections.js"></script>
<script src="scripts/services/shortcuts.js"></script>
<script src="scripts/services/tools.js"></script>
</body>
</html>