replace reference to global classes with ES6 modules

This commit is contained in:
alecmerdler 2017-05-24 13:37:30 -07:00
parent c55c233f1f
commit cdcb944543
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,6 @@
import { LogUsageChart } from '../../graphing';
/** /**
* Element which displays usage logs for the given entity. * Element which displays usage logs for the given entity.
*/ */

View file

@ -1,3 +1,6 @@
import { UsageChart } from '../../graphing';
/** /**
* An element which displays a donut chart, along with warnings if the limit is close to being * An element which displays a donut chart, along with warnings if the limit is close to being
* reached. * reached.

View file

@ -31,8 +31,8 @@ var DEPTH_WIDTH = 140;
/** /**
* Based off of http://mbostock.github.io/d3/talk/20111018/tree.html by Mike Bostock (@mbostock) * Based off of http://mbostock.github.io/d3/talk/20111018/tree.html by Mike Bostock (@mbostock)
*/ */
function ImageHistoryTree(namespace, name, images, getTagsForImage, formatComment, formatTime, export function ImageHistoryTree(namespace, name, images, getTagsForImage, formatComment, formatTime,
formatCommand, opt_tagFilter) { formatCommand, opt_tagFilter) {
/** /**
* The namespace of the repo. * The namespace of the repo.
@ -994,7 +994,7 @@ ImageHistoryTree.prototype.dispose = function() {
/** /**
* Based off of http://bl.ocks.org/mbostock/1346410 * Based off of http://bl.ocks.org/mbostock/1346410
*/ */
function UsageChart() { export function UsageChart() {
this.total_ = null; this.total_ = null;
this.count_ = null; this.count_ = null;
this.drawn_ = false; this.drawn_ = false;
@ -1106,7 +1106,7 @@ UsageChart.prototype.draw = function(container) {
/** /**
* A chart which displays the last seven days of actions in the account. * A chart which displays the last seven days of actions in the account.
*/ */
function LogUsageChart(titleMap) { export function LogUsageChart(titleMap) {
this.titleMap_ = titleMap; this.titleMap_ = titleMap;
this.colorScale_ = d3.scale.category20(); this.colorScale_ = d3.scale.category20();
this.entryMap_ = {}; this.entryMap_ = {};