| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2017 The LUCI Authors. All rights reserved. | 2 Copyright 2017 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 This in an HTML Import-able file that contains the definition | 6 This in an HTML Import-able file that contains the definition |
| 7 of the following elements: | 7 of the following elements: |
| 8 | 8 |
| 9 <isolate-index> | 9 <isolate-index> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 client_id: String, Oauth 2.0 client id. It will be set by server-side | 21 client_id: String, Oauth 2.0 client id. It will be set by server-side |
| 22 template evaluation. | 22 template evaluation. |
| 23 | 23 |
| 24 Methods: | 24 Methods: |
| 25 None. | 25 None. |
| 26 | 26 |
| 27 Events: | 27 Events: |
| 28 None. | 28 None. |
| 29 --> | 29 --> |
| 30 | 30 |
| 31 <link rel="import" href="/res/imp/common/isolate-app.html"> |
| 32 |
| 31 <dom-module id="isolate-index"> | 33 <dom-module id="isolate-index"> |
| 32 <template> | 34 <template> |
| 33 <style> | 35 <style include="isolate-app-style"> |
| 34 h1 { | |
| 35 color:purple; | |
| 36 } | |
| 37 </style> | 36 </style> |
| 38 | 37 |
| 39 <h1>Hello World</h1> | 38 <isolate-app |
| 40 | 39 client_id="[[client_id]]" |
| 41 <div>{{client_id}}</div> | 40 auth_headers="{{_auth_headers}}" |
| 41 permissions="{{_permissions}}" |
| 42 server_details="{{_server_details}}" |
| 43 name="Isolate Server"> |
| 44 This is an isolate app placeholder. |
| 45 </isolate-app> |
| 42 | 46 |
| 43 </template> | 47 </template> |
| 44 <script> | 48 <script> |
| 45 Polymer({ | 49 Polymer({ |
| 46 is: 'isolate-index', | 50 is: 'isolate-index', |
| 47 | 51 |
| 48 properties: { | 52 properties: { |
| 49 client_id: { | 53 client_id: { |
| 50 type: String, | 54 type: String, |
| 51 } | 55 } |
| 52 }, | 56 }, |
| 53 | 57 |
| 54 }); | 58 }); |
| 55 </script> | 59 </script> |
| 56 </dom-module> | 60 </dom-module> |
| OLD | NEW |