replace reference to global classes with ES6 modules
This commit is contained in:
parent
c55c233f1f
commit
cdcb944543
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,6 @@
|
|||
import { LogUsageChart } from '../../graphing';
|
||||
|
||||
|
||||
/**
|
||||
* Element which displays usage logs for the given entity.
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
* reached.
|
||||
|
|
|
@ -31,7 +31,7 @@ var DEPTH_WIDTH = 140;
|
|||
/**
|
||||
* 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) {
|
||||
|
||||
/**
|
||||
|
@ -994,7 +994,7 @@ ImageHistoryTree.prototype.dispose = function() {
|
|||
/**
|
||||
* Based off of http://bl.ocks.org/mbostock/1346410
|
||||
*/
|
||||
function UsageChart() {
|
||||
export function UsageChart() {
|
||||
this.total_ = null;
|
||||
this.count_ = null;
|
||||
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.
|
||||
*/
|
||||
function LogUsageChart(titleMap) {
|
||||
export function LogUsageChart(titleMap) {
|
||||
this.titleMap_ = titleMap;
|
||||
this.colorScale_ = d3.scale.category20();
|
||||
this.entryMap_ = {};
|
||||
|
|
Reference in a new issue