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

Side by Side Diff: appengine/swarming/elements/res/imp/tasklist/task-list.html

Issue 2269643002: Extract shared filters and aliasing code (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Address nit Created 4 years, 4 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 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 <task-list> 9 <task-list>
10 10
11 task-list creats a dynamic table for viewing swarming tasks. Columns can be 11 task-list creats a dynamic table for viewing swarming tasks. Columns can be
12 dynamically filtered and it supports client-side filtering. 12 dynamically filtered and it supports client-side filtering.
13 13
14 This is a top-level element. 14 This is a top-level element.
15 15
16 Properties: 16 Properties:
17 client_id: String, Oauth 2.0 client id. It will be set by server-side 17 client_id: String, Oauth 2.0 client id. It will be set by server-side
18 template evaluation. 18 template evaluation.
19 19
20 Methods: 20 Methods:
21 None. 21 None.
22 22
23 Events: 23 Events:
24 None. 24 None.
25 --> 25 -->
26 26
27 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la yout-classes.html"> 27 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la yout-classes.html">
28 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html"> 28 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html">
29 29
30 <link rel="import" href="/res/imp/common/dynamic-table.html"> 30 <link rel="import" href="/res/imp/common/dynamic-table-behavior.html">
31 <link rel="import" href="/res/imp/common/sort-toggle.html"> 31 <link rel="import" href="/res/imp/common/sort-toggle.html">
32 <link rel="import" href="/res/imp/common/swarming-app.html"> 32 <link rel="import" href="/res/imp/common/swarming-app.html">
33 <link rel="import" href="/res/imp/common/url-param.html"> 33 <link rel="import" href="/res/imp/common/url-param.html">
34 34
35 <link rel="import" href="task-filters.html"> 35 <link rel="import" href="task-filters.html">
36 <link rel="import" href="task-list-data.html"> 36 <link rel="import" href="task-list-data.html">
37 37
38 <dom-module id="task-list"> 38 <dom-module id="task-list">
39 <template> 39 <template>
40 <style include="iron-flex iron-flex-alignment iron-positioning swarming-app- style dynamic-table-style"> 40 <style include="iron-flex iron-flex-alignment iron-positioning swarming-app- style dynamic-table-style">
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 var specialColumns = ["name", "state"]; 167 var specialColumns = ["name", "state"];
168 var columnMap = {}; 168 var columnMap = {};
169 var headerMap = { 169 var headerMap = {
170 "user": "Requesting User", 170 "user": "Requesting User",
171 }; 171 };
172 var specialSort = {}; 172 var specialSort = {};
173 173
174 Polymer({ 174 Polymer({
175 is: 'task-list', 175 is: 'task-list',
176 behaviors: [ 176 behaviors: [
177 SwarmingBehaviors.SwarmingBehavior,
178 SwarmingBehaviors.DynamicTableBehavior, 177 SwarmingBehaviors.DynamicTableBehavior,
179 ], 178 ],
180 179
181 properties: { 180 properties: {
182 client_id: { 181 client_id: {
183 type: String, 182 type: String,
184 }, 183 },
185 184
186 // For dynamic table. 185 // For dynamic table.
187 _columnMap: { 186 _columnMap: {
(...skipping 29 matching lines...) Expand all
217 216
218 _taskClass: function(task) { 217 _taskClass: function(task) {
219 // TODO(kjlubick): Color tasks? 218 // TODO(kjlubick): Color tasks?
220 return ""; 219 return "";
221 } 220 }
222 221
223 }); 222 });
224 })(); 223 })();
225 </script> 224 </script>
226 </dom-module> 225 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698