Skip to content

Commit

Permalink
Support for Kibana 5.5.0
Browse files Browse the repository at this point in the history
Changes from default exports to named exports to support Kibana 5.5.0 (elastic/kibana#12707)
  • Loading branch information
iFedix committed Jul 27, 2017
1 parent 4c616db commit aa5f50a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions public/extended_metric_vis.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import 'plugins/extended_metric_vis/extended_metric_vis.less';
import 'plugins/extended_metric_vis/extended_metric_vis_controller';
import TemplateVisTypeTemplateVisTypeProvider from 'ui/template_vis_type/template_vis_type';
import VisSchemasProvider from 'ui/vis/schemas';
import { TemplateVisTypeProvider } from 'ui/template_vis_type/template_vis_type';
import { VisSchemasProvider } from 'ui/vis/schemas';
import extendedMetricVisTemplate from 'plugins/extended_metric_vis/extended_metric_vis.html';
import metricVisParamsTemplate from 'plugins/extended_metric_vis/extended_metric_vis_params.html';
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';
// we need to load the css ourselves

// we also need to load the controller and used by the template

// register the provider with the visTypes registry
require('ui/registry/vis_types').register(ExtendedMetricVisProvider);
VisTypesRegistryProvider.register(ExtendedMetricVisProvider);

function ExtendedMetricVisProvider(Private) {
const TemplateVisType = Private(TemplateVisTypeTemplateVisTypeProvider);
const TemplateVisType = Private(TemplateVisTypeProvider);
const Schemas = Private(VisSchemasProvider);

// return the visType object, which kibana will use to display and configure new
Expand Down
2 changes: 1 addition & 1 deletion public/extended_metric_vis_controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _ from 'lodash';
import AggResponseTabifyTabifyProvider from 'ui/agg_response/tabify/tabify';
import uiModules from 'ui/modules';
import { uiModules } from 'ui/modules';
const module = uiModules.get('kibana/extended_metric_vis', ['kibana']);

module.controller('KbnExtendedMetricVisController', function ($scope, Private) {
Expand Down

0 comments on commit aa5f50a

Please sign in to comment.