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

Unified Diff: appengine/swarming/elements/polymer05/stats-overview.html

Issue 2408743002: Move elements/ to ui/ (Closed)
Patch Set: rebase again Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/polymer05/stats-overview.html
diff --git a/appengine/swarming/elements/polymer05/stats-overview.html b/appengine/swarming/elements/polymer05/stats-overview.html
deleted file mode 100644
index c37d36eb1023c9d6c51f88aec88ff3c2d46cc6a5..0000000000000000000000000000000000000000
--- a/appengine/swarming/elements/polymer05/stats-overview.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!--
-# Copyright 2015 The LUCI Authors. All rights reserved.
-# Use of this source code is governed under the Apache License, Version 2.0
-# that can be found in the LICENSE file.
-
--->
-
-<!--
-@group Swarming Elements
-
-`stats-overview' displays an overview of the last 20 minutes stats.
-
-@element stats-overview
--->
-
-<link rel="import" href="bower_components/polymer/polymer.html">
-<link rel="import" href="bower_components/core-ajax/core-ajax.html">
-
-<link rel="import" href="stats-request-chart.html">
-<link rel="import" href="stats-work-chart.html">
-<link rel="import" href="stats-time-chart.html">
-
-<polymer-element name="stats-overview" attributes="dimensions" layout vertical>
- <template>
- <core-ajax id="get_stats_summary"
- headers='{"x-datasource-auth": "a"}'
- url="/swarming/api/v1/stats/summary/minutes"
- params='{"duration": "20"}'
- handleAs="json"
- on-core-response="{{onGetStatsSummarySuccess}}">
- </core-ajax>
-
- <div layout vertical>
- <stats-work-chart
- data="{{dataTable}}"
- resolution="minutes">
- </stats-work-chart>
-
- <stats-time-chart
- data="{{dataTable}}"
- resolution="minutes">
- </stats-time-chart>
-
- <stats-request-chart
- data="{{dataTable}}"
- resolution="minutes">
- </stats-request-chart>
- </div>
- </template>
-
- <script>
- Polymer('stats-overview', {
- ready: function() {
- this.$.get_stats_summary.go();
- },
-
- onGetStatsSummarySuccess: function(event, detail, sender) {
- this.dataTable = detail.response.table;
- }
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698