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

Unified Diff: appengine/swarming/elements/res/imp/botlist/bot-list-demo.html

Issue 2182693002: Add new botlist for swarming (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@app-wrapper
Patch Set: Adjust font and layout a bit more Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
diff --git a/appengine/swarming/elements/res/imp/index/swarming-index-demo.html b/appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
similarity index 65%
copy from appengine/swarming/elements/res/imp/index/swarming-index-demo.html
copy to appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
index 9997024f4ff1bee70534c124ea31692b0371ed04..4e69d6bbb97eadd14d1dafde1c2ac92506f797a3 100644
--- a/appengine/swarming/elements/res/imp/index/swarming-index-demo.html
+++ b/appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
@@ -1,29 +1,28 @@
<!--
-# Copyright 2016 The LUCI Authors. All rights reserved.
-# Use of this source code is governed by the Apache v2.0 license that can be
-# found in the LICENSE file.
+ Copyright 2016 The LUCI Authors. All rights reserved.
+ Use of this source code is governed under the Apache License, Version 2.0
+ that can be found in the LICENSE file.
+
-->
<!DOCTYPE html>
<html>
<head>
- <title>Swarming index Demo</title>
+ <title>bot-list Demo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
+ <script src="/res/js/common.js"></script>
<script src="../../../node_modules/sinon/pkg/sinon-1.17.2.js"></script>
+ <!-- Makes a var called data-->
+ <script type="text/javascript" src="bot-list-demo.json"></script>
<script type="text/javascript" charset="utf-8">
sinon.format = function(object) {return JSON.stringify(object);}
sinon.log = function(message) {console.log(message);};
var server = sinon.fakeServer.create();
- server.autoRespondAfter = 1200;
server.autoRespond = true;
- var details = {
- server_version: "not-quite-ready",
- };
-
var respond = function(request){
if (!request.requestHeaders.authorization) {
sinon.log("You must be logged in (check your Oauth?)");
@@ -31,18 +30,18 @@
return;
}
sinon.log("User authenticated :) "+ request.requestHeaders.authorization);
- request.respond(200, {"Content-Type":"application/json"}, JSON.stringify(details));
+ request.respond(200, {"Content-Type":"application/json"}, JSON.stringify(data));
}
- server.respondWith("GET", "/_ah/api/swarming/v1/server/details", respond);
- server.respondWith("GET", "/api/swarming/v1/server/details", respond);
+ server.respondWith("GET", "/_ah/api/swarming/v1/bots/list", respond);
+ server.respondWith("GET", "/api/swarming/v1/bots/list", respond);
</script>
- <link rel="import" href="swarming-index.html">
+ <link rel="import" href="bot-list.html">
</head>
<body>
- <swarming-index></swarming-index>
+<bot-list></bot-list>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698