| Index: appengine/swarming/elements/index/swarming-index.html
|
| diff --git a/appengine/swarming/elements/index/swarming-index.html b/appengine/swarming/elements/index/swarming-index.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d327c7c43a1c5fa76970e358f08df2ab871bc5b0
|
| --- /dev/null
|
| +++ b/appengine/swarming/elements/index/swarming-index.html
|
| @@ -0,0 +1,64 @@
|
| +<!--
|
| + This in an HTML Import-able file that contains the definition
|
| + of the following elements:
|
| +
|
| + <swarming-index>
|
| +
|
| + Usage:
|
| +
|
| + <swarming-index></swarming-index>
|
| +
|
| + Properties:
|
| + None.
|
| +
|
| + Methods:
|
| + None.
|
| +
|
| + Events:
|
| + None.
|
| +-->
|
| +
|
| +<link rel="import" href="../bower_components/polymer/polymer.html">
|
| +<link rel="import" href="../bower_components/iron-ajax/iron-ajax.html">
|
| +
|
| +<link rel="import" href="../common/auth-signin.html">
|
| +
|
| +<dom-module id="swarming-index">
|
| + <template>
|
| + <style>
|
| + :host {
|
| + display: block;
|
| + }
|
| + </style>
|
| +
|
| + <h1>HELLO WORLD<h1>
|
| +
|
| + <!-- TODO(kjlubick) Remove this hard-coded client-id.-->
|
| + <auth-signin
|
| + auth-headers="{{auth}}"
|
| + client-id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent.com"
|
| + on-auth-signin="signIn">
|
| + </auth-signin>
|
| +
|
| + <iron-ajax id="request"
|
| + url="/_ah/api/swarming/v1/server/details"
|
| + headers="[[auth]]"
|
| + handle-as="json"
|
| + on-response="handleResponse">
|
| + </iron-ajax>
|
| +
|
| + </template>
|
| + <script>
|
| + Polymer({
|
| + is: 'swarming-index',
|
| +
|
| + signIn: function(){
|
| + this.$.request.generateRequest();
|
| + },
|
| +
|
| + handleResponse: function(a,b){
|
| + console.log(this.$.request.lastResponse);
|
| + }
|
| + });
|
| + </script>
|
| +</dom-module>
|
|
|