Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: appengine/config_service/ui/src/config-ui/front-page.html

Issue 2962703003: config_service: Add authentication to the UI. (Closed)
Patch Set: Added the modified file. Changes can be seen by clicking on Delta from patch set 2. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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">
(...skipping 17 matching lines...) Expand all
28 28
29 paper-search-bar { 29 paper-search-bar {
30 border-style: solid; 30 border-style: solid;
31 border-width: 2px; 31 border-width: 2px;
32 width: 40%; 32 width: 40%;
33 height: 100%; 33 height: 100%;
34 margin: auto; 34 margin: auto;
35 } 35 }
36 </style> 36 </style>
37 37
38 <iron-ajax 38 <template is="dom-if" if="[[!hidden]]">
39 auto 39 <iron-ajax
40 id="requestConfigs" 40 auto
41 url="/_ah/api/config/v1/config-sets" 41 id="requestConfigs"
42 handle-as="json" 42 url="/_ah/api/config/v1/config-sets"
43 on-response="_onGotConfigSets"> 43 handle-as="json"
44 </iron-ajax> 44 on-response="_onGotConfigSets"
45 headers="{{auth_headers}}">
46 </iron-ajax>
47 </template>
45 48
46 <div class="search-bar"> 49 <div class="search-bar">
47 <paper-search-bar query="{{query}}"></paper-search-bar> 50 <paper-search-bar query="{{query}}"></paper-search-bar>
48 </div> 51 </div>
49 52
50 <div class="config-list"> 53 <div class="config-list">
51 <template is="dom-if" if="[[isLoading]]"> 54 <template is="dom-if" if="[[isLoading]]">
52 <div class="center">Fetching config sets...</div> 55 <div class="center">Fetching config sets...</div>
53 </template> 56 </template>
54 <template is="dom-if" if="[[_not(isLoading)]]"> 57 <template is="dom-if" if="[[_not(isLoading)]]">
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 this.searchResults = this.configSetList.filter(e => e.config_set.include s(this.query)); 111 this.searchResults = this.configSetList.filter(e => e.config_set.include s(this.query));
109 }, 112 },
110 113
111 _handleClick: function(event) { 114 _handleClick: function(event) {
112 window.location = window.location.href + event.model.config.config_set; 115 window.location = window.location.href + event.model.config.config_set;
113 }, 116 },
114 117
115 }); 118 });
116 </script> 119 </script>
117 </dom-module> 120 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698