| OLD | NEW |
| (Empty) |
| 1 <!-- The <fuzzer-count-sk> element displays the counts of the bad/grey fuzzes. | |
| 2 | |
| 3 Attributes: | |
| 4 None | |
| 5 | |
| 6 Events: | |
| 7 None | |
| 8 | |
| 9 Methods: | |
| 10 None | |
| 11 --> | |
| 12 <link rel="import" href="/res/imp/bower_components/iron-ajax/iron-ajax.html"> | |
| 13 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la
yout.html"> | |
| 14 <dom-module id="fuzzer-count-sk"> | |
| 15 <template> | |
| 16 <style> | |
| 17 #box { | |
| 18 max-width:inherit; | |
| 19 border: 1px solid black; | |
| 20 padding: 5px; | |
| 21 border-radius:8px; | |
| 22 @apply(--layout-horizontal); | |
| 23 @apply(--layout-wrap); | |
| 24 } | |
| 25 .count { | |
| 26 flex-grow:1; | |
| 27 } | |
| 28 </style> | |
| 29 <div id="box"> | |
| 30 <span class="count">New Bad Fuzzes: {{_count.thisBadCount}}</span> | |
| 31 <span class="count">New Grey Fuzzes: {{_count.thisGreyCount}}</span> | |
| 32 <span class="count">Total Bad Fuzzes: {{_count.totalBadCount}}</span> | |
| 33 <span class="count">Total Grey Fuzzes: {{_count.totalGreyCount}}</span> | |
| 34 </div> | |
| 35 <iron-ajax auto url="/fuzz_count" handle-as="json" last-response="{{_count}}
"></iron-ajax> | |
| 36 </template> | |
| 37 <script> | |
| 38 Polymer({ | |
| 39 is: "fuzzer-count-sk", | |
| 40 | |
| 41 properties: { | |
| 42 _count: { | |
| 43 type: Object, | |
| 44 value: function() { | |
| 45 return { | |
| 46 totalBadCount: 0, | |
| 47 totalGreyCount: 0, | |
| 48 thisBadCount: 0, | |
| 49 thisGreyCount: 0 | |
| 50 } | |
| 51 } | |
| 52 } | |
| 53 } | |
| 54 }); | |
| 55 </script> | |
| 56 </dom-module> | |
| OLD | NEW |