-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
323 lines (243 loc) · 14.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<meta name="description" content="Build, save and share your queries to a LRS. Don't report without it!">
<meta name="author" content="ADL">
<link rel="icon" href="favicon.ico">
<title>xAPI Canteen</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="http://cdn.datatables.net/plug-ins/f2c75b7247b/integration/bootstrap/3/dataTables.bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" type="text/css" href="css/prettify.min.css" />
<link rel="stylesheet" type="text/css" href="css/animate.css">
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<script data-main="js/app" src="js/lib/store+json2.min.js"></script>
<script data-main="js/app" src="js/require.js"></script>
</head>
<body>
<section class="wide-container">
<div class="page-header">
<h1 class="text-primary"><i class="fa fa-circle-o-notch"></i> xAPI Canteen</h1>
<h3 class="muted">Build, save and share your queries to a LRS. Don't report without it!</h3>
</div>
<div class="panel panel-primary">
<div class="panel-heading"><h3 class="panel-title">Query Dashboard</h3></div>
<div class="panel-body">
<div class="row">
<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading collapser"><h4 class="panel-title"><a data-toggle="collapse" data-target="#build-new-query" href="#build-new-query" class="collapsed">Build New Query</a></h4></div>
<div id="build-new-query" class="panel-collapse collapse">
<div class="panel-body">
<form id="statement-search-values">
<div class="row">
<div class="form-group col-md-6">
<label class="control-label" for="search-predefined-verb">Predefined Verb</label>
<select class="form-control" name="search-predefined-verb" id="search-predefined-verb">
<option></option>
</select>
</div>
<div class="form-group col-md-6">
<label class="control-label" for="search-verb-sort">Verb Sort</label>
<select class="form-control" name="search-verb-sort" id="search-verb-sort">
<option value="">Descending</option>
<option value="true">Ascending</option>
</select>
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-user-verb-id">Verb ID</label>
<input type="text" class="form-control" value="" aria-describedby="Verb ID" placeholder="http://adlnet.gov/verbs/answered" id="search-user-verb-id" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-actor-email">Actor Email</label>
<input type="email" class="form-control" value="" aria-describedby="Actor Email" placeholder="[email protected]" id="search-actor-email" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-activity-id">Activity ID</label>
<input type="text" class="form-control" value="" aria-describedby="Activity ID" placeholder="http://adlnet.gov/activities/question" id="search-activity-id" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-6">
<label for="search-related-agents">Related Agents</label>
<select class="form-control" aria-describedby="Related Agents" id="search-related-agents">
<option></option>
<option>false</option>
<option>true</option>
</select>
</div>
<div class="form-group col-md-6">
<label for="search-related-activities">Related Activities</label>
<select class="form-control" aria-describedby="Related Activities" id="search-related-activities">
<option></option>
<option>false</option>
<option>true</option>
</select>
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-registration-id">Registration ID</label>
<input type="text" class="form-control" value="" aria-describedby="Registration ID" placeholder="51a6f860-1997-11e3-8ffd-0800200c9a66" id="search-registration-id" pattern="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-statement-id">Statement ID</label>
<input type="text" class="form-control" value="" aria-describedby="Activity ID" placeholder="ef8a3c05-7c88-4d46-a821-c6f2f061ef23" id="search-statement-id" pattern="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-voided-statement-id">Voided Statement ID</label>
<input type="text" class="form-control" value="" aria-describedby="Voided Activity ID" placeholder="00d9f122-e9cd-4ea3-b180-9daa49c8a7e5" id="search-voided-statement-id" pattern="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}" />
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-6">
<label class="control-label" for="search-statements-since-date">Since Date</label>
<div class="input-group date" id="search-statements-since-date">
<input type="text" class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="form-group col-md-6">
<label class="control-label" for="search-statements-until-date">Until Date</label>
<div class="input-group date" id="search-statements-until-date">
<input type="text" class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div><!-- .row -->
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="search-limit">Limit</label>
<input type="number" class="form-control" value="" aria-describedby="Limit" placeholder="25" id="search-limit" />
</div>
</div><!-- .row -->
</form><!-- #statement-search-values -->
<div class="row">
<div class="form-group col-md-12">
<label for="xapi-query">xAPI Query</label>
<input type="text" class="form-control" value="" aria-describedby="xAPI Query" id="xapi-query" readonly />
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="query-name">Query Name</label>
<input type="text" class="form-control" value="" aria-describedby="Query Name" id="query-name" required />
</div>
</div>
<p>
<a class="btn btn-primary" href="#" role="button" id="get-statements-with-search">Get Statements <i class="glyphicon glyphicon-cloud-download"></i></a>
<a class="btn btn-primary" href="#" role="button" id="save-query">Save Query <i class="glyphicon glyphicon-save"></i></a>
</p>
</div><!-- .panel-body -->
</div>
</div><!-- .panel -->
<div class="panel panel-primary">
<div class="panel-heading"><h3 class="panel-title">Saved Queries</h3></div>
<div class="panel-body">
<div>
<div id="saved-queries"></div>
</div>
<div class="pull-right">
<a class="btn btn-default" href="#" role="button" id="clear-saved-queries">Clear All Queries <i class="glyphicon glyphicon-remove-sign"></i></a>
</div>
</div><!-- .panel-body -->
</div><!-- .panel -->
<div class="panel panel-default">
<div class="panel-heading collapser">
<h4 class="panel-title"><a data-toggle="collapse" data-target="#auth" href="#auth" class="collapsed">LRS Basic Auth Setup</a></h4>
</div>
<div id="auth" class="panel-collapse collapse">
<div class="panel-body">
<div class="row">
<form id="endpoint-values">
<div class="form-group col-md-12">
<label class="control-label" for="endpoint">Endpoint</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-globe"></i></span>
<input type="url" class="form-control" value="https://lrs.adlnet.gov/xapi/" aria-describedby="LRS Endpoint" id="endpoint" required />
</div>
</div>
<div class="form-group col-md-12">
<label class="control-label" for="username">Username</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" class="form-control" value="xapi-tools" aria-describedby="Username" id="username" required />
</div>
</div>
<div class="form-group col-md-12">
<label class="control-label" for="password">Password</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" value="xapi-tools" aria-describedby="Password" id="password" required />
</div>
</div>
<div class="col-md-12">
<p class="pull-right">
<a class="btn btn-default" href="#" role="button" id="reset-auth">Reset to Defaults <i class="glyphicon glyphicon-remove-circle"></i></a>
<a class="btn btn-primary" href="#" role="button" id="save-auth">Save Auth <i class="glyphicon glyphicon-save"></i></a>
</p>
</div>
</form><!-- #endpoint-values -->
</div><!-- .row -->
</div><!-- .panel-body -->
</div><!-- .panel-collapse -->
</div><!-- .panel -->
</div><!-- .col-md-4 -->
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Statement List</h3></div>
<div class="panel-body">
<table id="statement-list" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Timestamp</th>
<th>Actor Name</th>
<th>Verb</th>
<th>Object Name</th>
<th>Object Type</th>
<th>Authority Name</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>Timestamp</th>
<th>Actor Name</th>
<th>Verb</th>
<th>Object Name</th>
<th>Object Type</th>
<th>Authority Name</th>
<th></th>
</tr>
</tfoot>
</table>
<div class="pull-right">
<a class="btn btn-success btn-sm" href="#" role="button" id="more">Get More <i class="glyphicon glyphicon-cloud-download"></i></a>
</div>
</div><!-- .panel-body -->
</div><!-- .panel -->
</div><!-- .col-md-6 -->
</div><!-- .row -->
</div><!-- .panel-body -->
</div><!-- .panel -->
<h3>Looking for more?</h3>
<p>Check out an organized list of ADL's resources available on github, including xAPI related software at <a href="http://adlnet.github.io/" target="_blank"><i class="fa fa-archive"></i> adlnet.github.io</a>.</p>
</section>
</body>
</html>