-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconsole.html
212 lines (188 loc) · 10.4 KB
/
console.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
<!DOCTYPE html>
<html lang="en" ng-app="jackalApp">
<head>
<title>Jackal Console</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="/resources/jquery-ui-1.10.3/css/ui-lightness/jquery-ui-1.10.3.custom.css" />
<link type="text/css" rel="stylesheet" href="/resources/layout-default-latest.css" />
<link type="text/css" rel="stylesheet" href="/resources/codemirror-3.14/codemirror.css" />
<link type="text/css" rel="stylesheet" href="/resources/bootstrap/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="/resources/bootstrap/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="/resources/console/console.css" />
<style>
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
</style>
</head>
<body ng-controller="DatabaseCtrl">
<script type="text/html" id="environments-template">
<li>
<ul class='binding-list' data-bind="foreach: bindings">
<li class='binding code'>
<span class='binding-name' data-bind="text: name"></span>:<span class='binding-value' data-bind="text: value"></span>
</li>
</ul>
</li>
</script>
<script type="text/html" id="stack-frame-template">
<li class='stack-frame'>
<span class='stack-frame-name' data-bind="text: name"></span>
</li>
</script>
<script type="text/html" id="object-template">
<div class='object-browser'>
<span class='object-value' data-bind="text: value"></span>
<ul class='object-children' data-bind="foreach: children">
<li>
<a class='child-key' data-bind="text: key, click: $parent.getChildren"></a>
<div data-bind="template: { name: 'object-template', data: value}"></div>
</li>
</ul>
</div>
</script>
<script type="text/html" id="output-template">
<li class='output-value' data-bind="css: { 'output-error': error }">
<div data-bind="template: { name: 'object-template', data: value }"></div>
</li>
</script>
<!-- **** body ***-->
<div class="navbar navbar-inverse navbar-static-top ui-nav">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html" id="testTitle">Jackal</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<!-- TODO: temporary -->
<li><a href="profile.html">Welcome, {{user.name}}!</a></li>
</ul>
</div>
</div>
</div>
<div id='container' class="content">
<div class='console pane ui-layout-center'>
<div class='workspace cf'>
<div class="btn-controls cf">
<div class="btn-group">
<button id="save-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-floppy-disk"></span>
</button>
<button id="fork-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-random"></span>
</button>
<button id="share-button" type="button" data-toggle="modal" data-target="#myModal" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-share"></span>
</button>
<button id="print-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-print"></span>
</button>
</div>
<div class="btn-group debugging">
<button id="run-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-play"></span>
</button>
<button id="stop-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-stop"></span>
</button>
<button id="pause-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pause"></span>
</button>
<button id="step-back-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-step-backward"></span>
</button>
<button id="step-into-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-arrow-down"></span>
</button>
<button id="step-out-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-share-alt"></span>
</button>
<button id="step-button" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-step-forward"></span>
</button>
</div>
</div>
<br><br>
<div id='input'></div>
<div class='controls'></div>
</div>
<div class='output code'>
<ul id='output-console' data-bind="template: { name: 'output-template', foreach: output }"></ul>
<div class='output-interactive cf'>
<div id='output-interactive-textarea'></div>
</div>
</div>
</div>
<div class='debug pane ui-layout-east'>
<div class='state-section'>
<div class='pane-header'>
<h2 class='pane-title'>State</h2>
</div>
<div>
<ul class='environments' data-bind="template: { name: 'environments-template', foreach: environments }"></ul>
</div>
</div>
<div>
<div class='pane-header'>
<h2 class='pane-title'>Callstack</h2>
</div>
<div>
<ul class='callstack' data-bind="template: { name: 'stack-frame-template', foreach: stack }"></ul>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title">Share the code</h3>
</div>
<div class="modal-body">
<p>Code Link</p>
<input type="text" class="form-control" value="link goes here">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-defualt btn-sm" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary btn-sm">Share</button>
</div>
</div>
</div>
</div>
</div>
<!-- **** body-end *** -->
<script type="application/javascript" src="/resources/require.js"></script>
<script type="application/javascript">
requirejs.config({
paths: {
'text': '/resources/text',
'atum': '/lib',
'amulet': '/dependencies/amulet/lib',
'parse': '/dependencies/parse/lib',
'seshat': '/dependencies/seshat/lib/seshat',
'nu': '/dependencies/nu/lib',
'ecma': '/dependencies/parse-ecma/lib',
'ecma_ast': '/dependencies/ecma-ast/lib',
'knockout-2.2.1': '/resources/knockout-2.2.1'
}
});
</script>
<script type="application/javascript" src="/resources/jquery-ui-1.10.3/js/jquery-1.9.1.js"></script>
<script type="application/javascript" src="/resources/jquery-ui-1.10.3/js/jquery-ui-1.10.3.custom.js"></script>
<script type="application/javascript" src="/resources/jquery.layout-latest.js"></script>
<script type="application/javascript" src="/resources/codemirror-3.14/codemirror.js"></script>
<script type="application/javascript" src="/resources/codemirror-3.14/javascript.js"></script>
<script type="application/javascript" src="/resources/console/console.js"></script>
<script type="applicaiton/javascript" src="/resources/bootstrap/js/bootstrap.js"></script>
<script type="application/javascript" src="/resources/bootstrap/js/bootstrap.min.js"></script>
<script type="application/javascript" src="/resources/server/angular.js"></script>
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src="https://cdn.firebase.com/v0/firebase-simple-login.js"></script>
<script src='https://cdn.firebase.com/libs/angularfire/0.3.0/angularfire.min.js'></script>
<script type="application/javascript" src="/resources/server/app.js"></script>
</body>
</html>