-
Notifications
You must be signed in to change notification settings - Fork 62
/
index.html
217 lines (202 loc) · 11.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Kaitai Web IDE</title>
<script>
// HTTPS redirect
var loc = location.toString();
if (loc.indexOf("http://ide.kaitai.io/") === 0)
location = "https" + loc.substring(4);
</script>
<!-- SCRIPT_INJECTION_POINT -->
<link rel="stylesheet" type="text/css" href="lib/_npm/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/contextmenu.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/goldenlayout/goldenlayout-base.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/goldenlayout/goldenlayout-dark-theme.css" />
<link rel="stylesheet" type="text/css" href="css/HexViewer.css" />
<link rel="stylesheet" type="text/css" href="css/app.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/jstree/themes/default/style.min.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/jstree/themes/default-dark/style.min.css" />
<link rel="stylesheet" type="text/css" href="lib/_npm/font-awesome/css/font-awesome.min.css" />
<script src="lib/_npm/requirejs/require.js"></script>
<script src="lib/_npm/jquery/jquery.min.js"></script>
<script src="lib/_npm/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/_npm/ace/ace.js"></script>
<script src="js/autorefresh.js"></script>
<script src="js/extensions.js"></script>
<script src="js/entities.js"></script>
<script src="js/kaitaiFsFiles.js"></script>
<script>
var paths = {};
["bowser", "jstree", "localforage", "goldenlayout", "vue", "kaitai-struct-compiler", "dateformat"].forEach(
name => paths[name] = `../../lib/_npm/${name}/${name}`);
paths["big-integer"] = "../../lib/_npm/BigInteger/BigInteger";
paths["js-yaml"] = "../../lib/_npm/js-yaml/js-yaml.min";
requirejs.config({ baseUrl: "js/v1/", paths: paths });
require(["app.unsupportedBrowser"]);
require(["jstree", "app"]);
</script>
</head>
<body>
<div id="unsupportedBrowser">
Your browser is not supported. Features may or may not working. <a href="http://outdatedbrowser.com/" target="_blank">Please use the latest Chrome or Firefox.</a>
<i class="closeBtn glyphicon glyphicon-remove"></i>
</div>
<noscript>
<div id="noscript">This app requires Javascript to work. <a href="http://enable-javascript.com/" target="_blank">Learn how to enable Javascript.</a></div>
</noscript>
<div id="fileDrop">
<div>
Drag & drop a file here<br />to upload
</div>
</div>
<div id="infoPanel">
<selection-input :start="selectionStart" :end="selectionEnd" @selectionChanged="selectionChanged"></selection-input>
<div id="selectionLengthDiv">
Selection length: <span>{{selectionEnd-selectionStart+1}}</span>
</div>
<div id="disableLazyParsingDiv">
<input type="checkbox" id="disableLazyParsing" v-model="disableLazyParsing" />
<label for="disableLazyParsing">disable lazy parsing</label>
</div>
<div id="unparsedDiv">
Unparsed parts:
<stepper :items="unparsed" @changed="selectInterval"></stepper>
</div>
<div id="bytesDiv">
Byte arrays:
<stepper :items="byteArrays" @changed="selectInterval"></stepper>
</div>
<div id="parsedPathDiv">Selected: <span id="parsedPath"></span></div>
<div id="exportToJsonDiv">
<a @click="exportToJson(false)" href="#">export to JSON</a> (<a @click="exportToJson(true)" href="#">hex</a>)
</div>
<div>
<a id="aboutWebIde" @click="about" href="#">about webide</a>
</div>
</div>
<converter-panel id="converterPanel" :model="model"></converter-panel>
<div id="fileTreeCont">
<div id="fileTree" class="fileTree">
</div>
<div class="footer btn-group" role="group">
<button id="createLocalKsyFile" type="button" class="btn btn-default"><i class="glyphicon glyphicon-file"></i></button>
<button id="uploadFile" type="button" class="btn btn-default"><i class="glyphicon glyphicon-cloud-upload"></i></button>
<button id="downloadFile" type="button" class="btn btn-default disabled"><i class="glyphicon glyphicon-cloud-download"></i></button>
</div>
</div>
<div id="fileTreeContextMenu" class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display:block;position:static;margin-bottom:5px;">
<li class="openItem"><a tabindex="-1" href="#"><i class="glyphicon glyphicon-pencil"></i> Open</a></li>
<li class="createFolder"><a tabindex="-1" href="#"><i class="glyphicon glyphicon-folder-open"></i> Create folder</a></li>
<li class="createKsyFile"><a tabindex="-1" href="#"><i class="glyphicon glyphicon-list-alt"></i> Create .ksy file</a></li>
<li class="cloneKsyFile"><a tabindex="-1" href="#"><i class="glyphicon fa fa-clone"></i> Clone</a></li>
<li class="generateParser dropdown-submenu">
<a tabindex="-1" href="#"><i class="glyphicon glyphicon-flash"></i> Generate parser</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="#" data-kslang="cpp_stl" data-acelang="c_cpp">CPP-STL</a></li>
<li><a tabindex="-1" href="#" data-kslang="csharp" data-acelang="csharp">C#</a></li>
<li><a tabindex="-1" href="#" data-kslang="go" data-acelang="golang">Go</a></li>
<li><a tabindex="-1" href="#" data-kslang="graphviz" data-acelang="dot">Graphviz</a></li>
<li><a tabindex="-1" href="#" data-kslang="java" data-acelang="java">Java</a></li>
<li><a tabindex="-1" href="#" data-kslang="java" data-ksdebug="true" data-acelang="java">Java (debug)</a></li>
<li><a tabindex="-1" href="#" data-kslang="javascript" data-acelang="javascript">JavaScript</a></li>
<li><a tabindex="-1" href="#" data-kslang="javascript" data-ksdebug="true" data-acelang="javascript">JavaScript (debug)</a></li>
<li><a tabindex="-1" href="#" data-kslang="lua" data-acelang="lua">Lua</a></li>
<li><a tabindex="-1" href="#" data-kslang="nim" data-acelang="nim">Nim</a></li>
<li><a tabindex="-1" href="#" data-kslang="perl" data-acelang="perl">Perl</a></li>
<li><a tabindex="-1" href="#" data-kslang="php" data-acelang="php">PHP</a></li>
<li><a tabindex="-1" href="#" data-kslang="python" data-acelang="python">Python</a></li>
<li><a tabindex="-1" href="#" data-kslang="ruby" data-acelang="ruby">Ruby</a></li>
<li><a tabindex="-1" href="#" data-kslang="ruby" data-ksdebug="true" data-acelang="ruby">Ruby (debug)</a></li>
<li><a tabindex="-1" href="#" data-kslang="json" data-acelang="json">JSON</a></li>
</ul>
</li>
<li class="downloadItem"><a tabindex="-1" href="#"><i class="glyphicon glyphicon-cloud-download"></i> Download</a></li>
<li class="deleteItem"><a tabindex="-1" href="#"><i class="glyphicon glyphicon-remove"></i> Delete</a></li>
</ul>
</div>
<div id="inputContextMenu" class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display:block;position:static;margin-bottom:5px;">
<li class="downloadItem"><a tabindex="-1" href="#"><i class="glyphicon glyphicon-cloud-download"></i> Download</a></li>
</ul>
</div>
<div class="modal fade" id="newKsyModal" tabindex="-1" role="dialog" aria-labelledby="newKsyModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="newKsyModalLabel">Create new .ksy format file</h4>
</div>
<form>
<div class="modal-body">
<div class="form-group">
<label for="newKsyName" class="control-label">Name:</label>
<input type="text" class="form-control" id="newKsyName">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">Create</button>
</div>
</form>
</div>
</div>
</div>
<div class="modal fade" id="welcomeModal" tabindex="-1" role="dialog" aria-labelledby="welcomeModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="form-group">
<h4 class="modal-title" id="welcomeModalLabel">Hey there!</h4>
</div>
<div class="form-group">
If this is the first time you are using Kaitai WebIDE then I recommend scrolling through our
<a href="https://github.com/kaitai-io/kaitai_struct_webide/wiki/Features" target="_blank">Features page</a>.
</div>
<div class="form-group">
You can read more about Kaitai Struct on our website (<a href="http://kaitai.io" target="_blank">kaitai.io</a>) and
learn the basics of using it by reading <a href="http://doc.kaitai.io" target="_blank">our documentation</a>.
</div>
<div class="form-group">
We would be pleased if you could visit us and share your thoughts about Kaitai Struct or WebIDE in our
<a href="https://gitter.im/kaitai_struct/Lobby" target="_blank">Gitter chatroom</a>.
</div>
<div class="form-group">
You can view the source code or create issues on Github
for the <a href="https://github.com/kaitai-io/kaitai_struct_webide" target="_blank">WebIDE</a> or
<a href="https://github.com/kaitai-io/kaitai_struct" target="_blank">Kaitai Struct</a>.
</div>
<div class="form-group">
Kaitai WebIDE was made possible by using
<a href="https://github.com/kaitai-io/kaitai_struct_webide/blob/master/docs/wiki/3rd-party-libraries.md" target="_blank">open-source libraries listed here</a>
(<a href="LICENSE-3RD-PARTY.txt" target="_blank">licensing information</a>).
</div>
<div class="form-group">
Also, follow us on Twitter!
<ul>
<li style="margin-top:5px"><a href="https://twitter.com/koczkatamas" target="_blank">@koczkatamas</a> (WebIDE author)</li>
<li style="margin-top:5px"><a href="https://twitter.com/kaitai_io" target="_blank">@kaitai_io</a> (Kaitai Project)</li>
</ul>
</div>
<div class="licenses">
<div>
Kaitai WebIDE version: <span id="webIdeVersion"></span>-SNAPSHOT-<a id="webideCommitId" href=""></a>
(<span id="webideCommitDate"></span>,
<a href="https://raw.githubusercontent.com/kaitai-io/kaitai_struct_webide/master/LICENSE" target="_blank">license</a>)
</div>
<div>Kaitai compiler version: <span id="compilerVersion"></span></div>
</div>
<div style="text-align:center; font-size:12px; margin-bottom:10px">
<a id="welcomeDoNotShowAgain" href="#" data-dismiss="modal">close and do not show again</a>
</div>
<div style="text-align:center">
<button type="submit" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>