Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1120)

Side by Side Diff: appengine/swarming/elements/res/imp/tasklist/task-list-demo.html

Issue 2258853002: Midway through extracting filters (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@tasklist
Patch Set: Revert gpu stuff and tidy up Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/swarming/elements/res/imp/tasklist/task-list-data.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 --> 6 -->
7 <!DOCTYPE html> 7 <!DOCTYPE html>
8 <html> 8 <html>
9 <head> 9 <head>
10 <title>task-list Demo</title> 10 <title>task-list Demo</title>
11 <meta charset="utf-8"> 11 <meta charset="utf-8">
12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 12 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
13 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1, user-scalable=yes"> 13 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial- scale=1, user-scalable=yes">
14 <script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></scri pt> 14 <script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></scri pt>
15 <script src="../../../node_modules/skia-common-js/common.js"></script> 15 <script src="../../../node_modules/skia-common-js/common.js"></script>
16 <script src="/res/js/common.js"></script> 16 <script src="/res/js/common.js"></script>
17 <script src="../../../node_modules/sinon/pkg/sinon-1.17.5.js"></script> 17 <script src="../../../node_modules/sinon/pkg/sinon-1.17.5.js"></script>
18 <!-- Makes a var called list--> 18 <!-- Makes a var called list-->
19 <script type="text/javascript" src="task-list-demo.json"></script> 19 <script type="text/javascript" src="task-list-demo.json"></script>
20 <!-- Makes a var called tags-->
21 <script type="text/javascript" src="task-tags-demo.json"></script>
22 <!-- Makes a var called fleetData-->
23 <script type="text/javascript" src="task-list-fleet-data-demo.json"></script>
20 24
21 <script type="text/javascript" charset="utf-8"> 25 <script type="text/javascript" charset="utf-8">
22 sinon.format = function(object) {return JSON.stringify(object);} 26 sinon.format = function(object) {return JSON.stringify(object);}
23 sinon.log = function(message) {console.log(message);}; 27 sinon.log = function(message) {console.log(message);};
24 var server = sinon.fakeServer.create(); 28 var server = sinon.fakeServer.create();
25 server.autoRespond = true; 29 server.autoRespond = true;
26 //server.autoRespondAfter = 2000; 30 //server.autoRespondAfter = 2000;
27 31
28 var respond = function(request){ 32 var respond = function(request){
29 if (!request.requestHeaders.authorization) { 33 if (!request.requestHeaders.authorization) {
30 sinon.log("You must be logged in (check your Oauth?)"); 34 sinon.log("You must be logged in (check your Oauth?)");
31 request.respond(403, {}, "You must be logged in (check your Oauth?)"); 35 request.respond(403, {}, "You must be logged in (check your Oauth?)");
32 return; 36 return;
33 } 37 }
34 sinon.log("User authenticated :) "+ request.requestHeaders.authorization); 38 sinon.log("User authenticated :) "+ request.requestHeaders.authorization);
35 sinon.log("List Request: "+sinon.format(request)); 39 sinon.log("List Request: "+sinon.format(request));
36 request.respond(200, {"Content-Type":"application/json"}, JSON.stringify(l ist)); 40 request.respond(200, {"Content-Type":"application/json"}, JSON.stringify(l ist));
37 } 41 }
38 42
39 server.respondWith("GET", /^\/api\/swarming\/v1\/tasks\/list.*/, respond); 43 server.respondWith("GET", /^\/api\/swarming\/v1\/tasks\/list.*/, respond);
40 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/tasks\/list.*/, respon d); 44 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/tasks\/list.*/, respon d);
41 45
46 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/tasks\/tags/, JSON.str ingify(tags));
47 server.respondWith("GET", /^\/api\/swarming\/v1\/tasks\/tags/, JSON.stringif y(tags));
48
49 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/bots\/dimensions/, JSO N.stringify(fleetData));
50 server.respondWith("GET", /^\/api\/swarming\/v1\/bots\/dimensions/, JSON.str ingify(fleetData));
42 </script> 51 </script>
43 52
44 <link rel="import" href="task-list.html"> 53 <link rel="import" href="task-list.html">
45 </head> 54 </head>
46 <body> 55 <body>
47 56
48 <task-list 57 <task-list
49 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com"> 58 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent .com">
50 </task-list> 59 </task-list>
51 60
52 </body> 61 </body>
53 </html> 62 </html>
OLDNEW
« no previous file with comments | « appengine/swarming/elements/res/imp/tasklist/task-list-data.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698