| OLD | NEW |
| 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> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 | 62 |
| 63 server.respondWith("POST", /^\/_ah\/api\/swarming\/v1\/task\/.+\/cancel/, ca
ncel); | 63 server.respondWith("POST", /^\/_ah\/api\/swarming\/v1\/task\/.+\/cancel/, ca
ncel); |
| 64 server.respondWith("POST", /^\/api\/swarming\/v1\/task\/.+\/cancel/, cancel)
; | 64 server.respondWith("POST", /^\/api\/swarming\/v1\/task\/.+\/cancel/, cancel)
; |
| 65 | 65 |
| 66 var permissions = { | 66 var permissions = { |
| 67 cancel_task: true | 67 cancel_task: true |
| 68 }; | 68 }; |
| 69 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/,
JSON.stringify(permissions)); | 69 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/,
JSON.stringify(permissions)); |
| 70 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.
stringify(permissions)); | 70 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.
stringify(permissions)); |
| 71 |
| 72 var details = { |
| 73 server_version: "1234-deadbeef", |
| 74 }; |
| 75 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON
.stringify(details)); |
| 76 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri
ngify(details)); |
| 71 </script> | 77 </script> |
| 72 | 78 |
| 73 <link rel="import" href="task-list.html"> | 79 <link rel="import" href="task-list.html"> |
| 74 </head> | 80 </head> |
| 75 <body> | 81 <body> |
| 76 | 82 |
| 77 <task-list | 83 <task-list |
| 78 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent
.com"> | 84 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent
.com"> |
| 79 </task-list> | 85 </task-list> |
| 80 | 86 |
| 81 </body> | 87 </body> |
| 82 </html> | 88 </html> |
| OLD | NEW |