Replace use of the name widget by dataview for consistency

This commit is contained in:
Javier Goizueta 2016-05-31 15:30:38 +02:00
parent 5838b7a455
commit d5423c88ea
5 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
var BaseOverviewsWidget = require('./base');
var BaseOverviewsDataview = require('./base');
var BaseDataview = require('../aggregation');
var dot = require('dot');
@ -52,7 +52,7 @@ var aggregationQueryTpl = dot.template([
var CATEGORIES_LIMIT = 6;
function Aggregation(query, options, queryRewriter, queryRewriteData, params) {
BaseOverviewsWidget.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
this.query = query;
this.column = options.column;
@ -60,7 +60,7 @@ var CATEGORIES_LIMIT = 6;
this.aggregationColumn = options.aggregationColumn;
}
Aggregation.prototype = Object.create(BaseOverviewsWidget.prototype);
Aggregation.prototype = Object.create(BaseOverviewsDataview.prototype);
Aggregation.prototype.constructor = Aggregation;
module.exports = Aggregation;

View File

@ -1,5 +1,5 @@
var _ = require('underscore');
var BaseWidget = require('../base');
var BaseDataview = require('../base');
function BaseOverviewsDataview(query, queryOptions, BaseDataview, queryRewriter, queryRewriteData, options) {
this.BaseDataview = BaseDataview;
@ -13,7 +13,7 @@ function BaseOverviewsDataview(query, queryOptions, BaseDataview, queryRewriter,
module.exports = BaseOverviewsDataview;
BaseOverviewsDataview.prototype = new BaseWidget();
BaseOverviewsDataview.prototype = new BaseDataview();
BaseOverviewsDataview.prototype.constructor = BaseOverviewsDataview;
// TODO: parameterized these settings

View File

@ -1,4 +1,4 @@
var BaseOverviewsWidget = require('./base');
var BaseOverviewsDataview = require('./base');
var BaseDataview = require('../formula');
var dot = require('dot');
@ -26,12 +26,12 @@ var formulaQueryTpls = {
};
function Formula(query, options, queryRewriter, queryRewriteData, params) {
BaseOverviewsWidget.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
this.column = options.column || '1';
this.operation = options.operation;
}
Formula.prototype = Object.create(BaseOverviewsWidget.prototype);
Formula.prototype = Object.create(BaseOverviewsDataview.prototype);
Formula.prototype.constructor = Formula;
module.exports = Formula;

View File

@ -1,5 +1,5 @@
var _ = require('underscore');
var BaseOverviewsWidget = require('./base');
var BaseOverviewsDataview = require('./base');
var BaseDataview = require('../histogram');
var dot = require('dot');
@ -98,7 +98,7 @@ var histogramQueryTpl = dot.template([
].join('\n'));
function Histogram(query, options, queryRewriter, queryRewriteData, params) {
BaseOverviewsWidget.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
this.query = query;
this.column = options.column;
@ -107,7 +107,7 @@ function Histogram(query, options, queryRewriter, queryRewriteData, params) {
this._columnType = null;
}
Histogram.prototype = Object.create(BaseOverviewsWidget.prototype);
Histogram.prototype = Object.create(BaseOverviewsDataview.prototype);
Histogram.prototype.constructor = Histogram;
module.exports = Histogram;

View File

@ -1,11 +1,11 @@
var BaseOverviewsWidget = require('./base');
var BaseOverviewsDataview = require('./base');
var BaseDataview = require('../list');
function List(query, options, queryRewriter, queryRewriteData, params) {
BaseOverviewsWidget.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
BaseOverviewsDataview.call(this, query, options, BaseDataview, queryRewriter, queryRewriteData, params);
}
List.prototype = Object.create(BaseOverviewsWidget.prototype);
List.prototype = Object.create(BaseOverviewsDataview.prototype);
List.prototype.constructor = List;
module.exports = List;