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

Unified Diff: appengine/swarming/elements/stats/load-charts-api.html

Issue 2177353002: Add top level app element (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@hello-oauth
Patch Set: Address feedback and introduce new res/ layer of direction Created 4 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/stats/load-charts-api.html
diff --git a/appengine/swarming/elements/stats/load-charts-api.html b/appengine/swarming/elements/stats/load-charts-api.html
deleted file mode 100644
index 5bfe3e2a442f54b4787118850c61fa9a6918621f..0000000000000000000000000000000000000000
--- a/appengine/swarming/elements/stats/load-charts-api.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<!--
-# Copyright 2016 The LUCI Authors. All rights reserved.
-# Use of this source code is governed by the Apache v2.0 license that can be
-# found in the LICENSE file.
--->
-<!--
- This in an HTML Import-able file that contains the definition
- of the following elements:
-
- <load-charts-api>
-
- It makes sure the Google Visualization api
- (https://developers.google.com/chart/interactive/docs/) is loaded. This api
- is also loaded by the google-chart element, but we need to make sure it is
- loaded before we start partitioning the data, e.g. partial-data-chart.
-
- Usage:
-
- <load-charts-api></load-charts-api>
-
- Properties:
- loaded: Boolean, true if the charts api has been loaded.
-
- Methods:
- None.
-
- Events:
- None.
--->
-
-<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
-<link rel="import" href="../bower_components/google-apis/google-legacy-loader.html">
-
-<dom-module id="load-charts-api">
- <template>
-
- <google-legacy-loader on-api-load="_readyForAction"></google-legacy-loader>
-
- </template>
- <script>
- Polymer({
- is: 'load-charts-api',
- properties: {
- loaded: {
- type: Boolean,
- notify: true,
- }
- },
-
- _readyForAction: function() {
- google.load("visualization", "1", {
- packages: {packages: ['corechart']},
- callback: function() {
- this.set("loaded", true);
- }.bind(this)
- });
- }
- });
- </script>
-</dom-module>

Powered by Google App Engine
This is Rietveld 408576698