Remove the need to declare each visualization module in app dependencies.

This commit is contained in:
Arik Fraimovich 2014-02-16 10:40:57 +02:00
parent 9c0edfdb9d
commit 00b5aba88a
4 changed files with 3 additions and 6 deletions

View File

@ -6,9 +6,6 @@ angular.module('redash', [
'redash.services',
'redash.renderers',
'redash.visualization',
'redash.visualization.chart',
'redash.visualization.cohort',
'redash.visualization.table',
'ui.codemirror',
'highchart',
'angular-growl',

View File

@ -1,5 +1,5 @@
(function () {
var chartVisualization = angular.module('redash.visualization.chart', []);
var chartVisualization = angular.module('redash.visualization');
chartVisualization.config(['VisualizationProvider', function(VisualizationProvider) {
var renderTemplate = '<chart-renderer options="visualization.options" query-result="queryResult"></chart-renderer>';

View File

@ -1,5 +1,5 @@
(function () {
var cohortVisualization = angular.module('redash.visualization.cohort', []);
var cohortVisualization = angular.module('redash.visualization');
cohortVisualization.config(['VisualizationProvider', function(VisualizationProvider) {
VisualizationProvider.registerVisualization('COHORT', 'Cohort', '<cohort-renderer options="visualization.options" query-result="queryResult"></cohort-renderer>', null);

View File

@ -1,5 +1,5 @@
(function () {
var tableVisualization = angular.module('redash.visualization.table', []);
var tableVisualization = angular.module('redash.visualization');
tableVisualization.config(['VisualizationProvider', function(VisualizationProvider) {
VisualizationProvider.registerVisualization('TABLE', 'Table', '<grid-renderer options="visualization.options" query-result="queryResult"></grid-renderer>', null, {}, true);