| 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 | 6 |
| 7 <link rel="import" href="../../bower_components/app-layout/app-layout.html"> | 7 <link rel="import" href="../../bower_components/app-layout/app-layout.html"> |
| 8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html"> | 8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html"> |
| 9 <link rel="import" href="../../bower_components/paper-button/paper-button.html"> | 9 <link rel="import" href="../../bower_components/paper-button/paper-button.html"> |
| 10 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht
ml"> | 10 <link rel="import" href="../../bower_components/paper-search/paper-search-bar.ht
ml"> |
| 11 <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html
"> | 11 <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html
"> |
| 12 <link rel="import" href="../../bower_components/paper-styles/shadow.html"> | 12 <link rel="import" href="../../bower_components/paper-styles/shadow.html"> |
| 13 <link rel="import" href="../../bower_components/polymer/polymer.html"> | 13 <link rel="import" href="../../bower_components/polymer/polymer.html"> |
| 14 | 14 |
| 15 <link rel="import" href="config-set-card.html"> | 15 <link rel="import" href="config-set-card.html"> |
| 16 | 16 |
| 17 <dom-module id="front-page"> | 17 <dom-module id="front-page"> |
| 18 <template> | 18 <template> |
| 19 <style> | 19 <style> |
| 20 .center { | 20 .center { |
| 21 width: 25%; | 21 width: 23%; |
| 22 margin: auto; | 22 margin: auto; |
| 23 } | 23 } |
| 24 | 24 |
| 25 .config-card { | 25 .config-card { |
| 26 padding-bottom: 1%; | 26 padding-bottom: 1%; |
| 27 animation: fadein 1.5s; | 27 animation: fadein 1.5s; |
| 28 } | 28 } |
| 29 | 29 |
| 30 @keyframes fadein { | 30 @keyframes fadein { |
| 31 from {opacity: 0} | 31 from {opacity: 0} |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 var tempResults = this.configSetList.filter(e => e.config_set.includes(t
his.query)); | 146 var tempResults = this.configSetList.filter(e => e.config_set.includes(t
his.query)); |
| 147 tempResults.sort(function(a, b) { | 147 tempResults.sort(function(a, b) { |
| 148 return this._formatName(a.config_set).localeCompare(this._formatName(b
.config_set)); | 148 return this._formatName(a.config_set).localeCompare(this._formatName(b
.config_set)); |
| 149 }.bind(this)); | 149 }.bind(this)); |
| 150 this.searchResults = tempResults; | 150 this.searchResults = tempResults; |
| 151 }, | 151 }, |
| 152 | 152 |
| 153 }); | 153 }); |
| 154 </script> | 154 </script> |
| 155 </dom-module> | 155 </dom-module> |
| OLD | NEW |