| 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 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 <swarming-app> | 9 <swarming-app> |
| 10 | 10 |
| 11 <swarming-app> is meant to be used in top level elements to provide the header | 11 <swarming-app> is meant to be used in top level elements to provide the header |
| 12 toolbar and authentication. | 12 toolbar and authentication. |
| 13 | 13 |
| 14 It contains the definition of the following style modules: | 14 It contains the definition of the following style modules: |
| 15 | 15 |
| 16 swarming-app-style | 16 swarming-app-style |
| 17 | 17 |
| 18 <style include="shared-style"> contains styles to be shared among all | 18 <style include="shared-style"> contains styles to be shared among all |
| 19 apps, such as colors. | 19 apps, such as colors. |
| 20 | 20 |
| 21 Properties: | 21 Properties: |
| 22 busy: Boolean, If the busy spinner should be active. | 22 busy: Boolean, If the busy spinner should be active. |
| 23 client_id: String, Oauth 2.0 client id. It will be set by server-side | 23 client_id: String, Oauth 2.0 client id. It will be set by server-side |
| 24 template evaluation. | 24 template evaluation. |
| 25 name: String, the name of the app to be displayed. | 25 name: String, the name of the app to be displayed. |
| 26 | 26 |
| 27 auth_headers: Object, Use this as an argument to sk.request to set oauth2 he
aders. | 27 auth_headers: Object, Use this as an argument to sk.request to set oauth2 he
aders. |
| 28 permissions: Object, {String:Boolean} of permissions to perform various | 28 permissions: Object, {String:Boolean} of permissions to perform various |
| 29 behaviors, such as terminate_bot. | 29 behaviors, such as terminate_bot. |
| 30 server_details: Object, containing mutliple Strings including: | 30 server_details: Object, containing multiple Strings including: |
| 31 server_version: what git revision the server is using. | 31 server_version: what git revision the server is using. |
| 32 bot_version: A hash of the bot code being distributed. Isn't associated | 32 bot_version: A hash of the bot code being distributed. Isn't associated |
| 33 with any git revisions | 33 with any git revisions |
| 34 signed_in: Boolean, if the user is signed in. | 34 signed_in: Boolean, if the user is signed in. |
| 35 Methods: | 35 Methods: |
| 36 None. | 36 None. |
| 37 | 37 |
| 38 Events: | 38 Events: |
| 39 None. | 39 None. |
| 40 --> | 40 --> |
| 41 | 41 |
| 42 <link rel="import" href="/res/imp/bower_components/app-layout/app-layout.html"> | 42 <link rel="import" href="/res/imp/bower_components/app-layout/app-layout.html"> |
| 43 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la
yout-classes.html"> | 43 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la
yout-classes.html"> |
| 44 <link rel="import" href="/res/imp/bower_components/iron-icons/iron-icons.html"> | 44 <link rel="import" href="/res/imp/bower_components/iron-icons/iron-icons.html"> |
| 45 <link rel="import" href="/res/imp/bower_components/iron-media-query/iron-media-q
uery.html"> | 45 <link rel="import" href="/res/imp/bower_components/iron-media-query/iron-media-q
uery.html"> |
| 46 <link rel="import" href="/res/imp/bower_components/paper-fab/paper-fab.html"> | 46 <link rel="import" href="/res/imp/bower_components/paper-fab/paper-fab.html"> |
| 47 <link rel="import" href="/res/imp/bower_components/paper-icon-button/paper-icon-
button.html"> | 47 <link rel="import" href="/res/imp/bower_components/paper-icon-button/paper-icon-
button.html"> |
| 48 <link rel="import" href="/res/imp/bower_components/paper-item/paper-item.html"> | 48 <link rel="import" href="/res/imp/bower_components/paper-item/paper-item.html"> |
| 49 <link rel="import" href="/res/imp/bower_components/paper-menu/paper-menu.html"> | 49 <link rel="import" href="/res/imp/bower_components/paper-menu/paper-menu.html"> |
| 50 <link rel="import" href="/res/imp/bower_components/paper-spinner/paper-spinner-l
ite.html"> | 50 <link rel="import" href="/res/imp/bower_components/paper-spinner/paper-spinner-l
ite.html"> |
| 51 | 51 |
| 52 <link rel="import" href="auth-signin.html"> | 52 <link rel="import" href="/res/imp/shared/auth-signin.html"> |
| 53 <link rel="import" href="/res/imp/shared/error-toast.html"> |
| 54 |
| 53 <link rel="import" href="common-behavior.html"> | 55 <link rel="import" href="common-behavior.html"> |
| 54 <link rel="import" href="error-toast.html"> | |
| 55 | 56 |
| 56 <dom-module id="swarming-app"> | 57 <dom-module id="swarming-app"> |
| 57 <template> | 58 <template> |
| 58 <style include="iron-flex"> | 59 <style include="iron-flex"> |
| 59 :host { | 60 :host { |
| 60 position: absolute; | 61 position: absolute; |
| 61 top: 0; | 62 top: 0; |
| 62 bottom: 0; | 63 bottom: 0; |
| 63 left: 0; | 64 left: 0; |
| 64 right: 0; | 65 right: 0; |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 border: none; | 364 border: none; |
| 364 line-height: 20px; | 365 line-height: 20px; |
| 365 vertical-align: middle; | 366 vertical-align: middle; |
| 366 } | 367 } |
| 367 | 368 |
| 368 select { | 369 select { |
| 369 overflow-y: auto; | 370 overflow-y: auto; |
| 370 } | 371 } |
| 371 </style> | 372 </style> |
| 372 </dom-module> | 373 </dom-module> |
| OLD | NEW |