| Index: appengine/swarming/elements/res/imp/index/swarming-index-demo.html
|
| diff --git a/appengine/swarming/elements/res/imp/index/swarming-index-demo.html b/appengine/swarming/elements/res/imp/index/swarming-index-demo.html
|
| deleted file mode 100644
|
| index d053325cced3c49aca38247e2013e532bf8dcdc2..0000000000000000000000000000000000000000
|
| --- a/appengine/swarming/elements/res/imp/index/swarming-index-demo.html
|
| +++ /dev/null
|
| @@ -1,71 +0,0 @@
|
| -<!--
|
| -# 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.
|
| --->
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| - <title>Swarming index 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="../../../node_modules/skia-common-js/common.js"></script>
|
| - <script src="/res/js/common.js"></script>
|
| - <script src="/res/js/alias.js"></script>
|
| - <script src="../../../node_modules/sinon/pkg/sinon-1.17.5.js"></script>
|
| -
|
| - <!-- Makes a var called stats-->
|
| - <script type="text/javascript" src="index-overview-stats-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: "1234-deadbeef",
|
| - bot_version: "abcdoeraymeyouandme",
|
| - };
|
| -
|
| - var respond = function(request){
|
| - if (!request.requestHeaders.authorization) {
|
| - sinon.log("You must be logged in (check your Oauth?)");
|
| - request.respond(403, {}, "You must be logged in (check your Oauth?)");
|
| - return;
|
| - }
|
| - sinon.log("User authenticated :) "+ request.requestHeaders.authorization);
|
| - request.respond(200, {"Content-Type":"application/json"}, JSON.stringify(details));
|
| - }
|
| -
|
| - server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, respond);
|
| - server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, respond);
|
| -
|
| - var permissions = {
|
| - get_bootstrap_token: true
|
| - };
|
| - server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
|
| - server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.stringify(permissions));
|
| -
|
| - var token = {
|
| - bootstrap_token: "8675309JennyDontChangeYourNumber8675309"
|
| - };
|
| - server.respondWith("POST", /^\/_ah\/api\/swarming\/v1\/server\/token/, JSON.stringify(token));
|
| - server.respondWith("POST", /^\/api\/swarming\/v1\/server\/token/, JSON.stringify(token));
|
| -
|
| - server.respondWith("GET", "/swarming/api/v1/stats/summary/minutes?duration=20",JSON.stringify(stats));
|
| - </script>
|
| -
|
| - <link rel="import" href="swarming-index.html">
|
| -</head>
|
| -<body>
|
| -
|
| -<swarming-index
|
| - client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent.com">
|
| -</swarming-index>
|
| -
|
| -</body>
|
| -</html>
|
|
|