kibana-123
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
27 lines (23 loc) • 548 B
JavaScript
import _ from 'lodash';
import angular from 'angular';
import 'ace';
import docViewsRegistry from 'ui/registry/doc_views';
import jsonHtml from './json.html';
docViewsRegistry.register(function () {
return {
title: 'JSON',
order: 20,
directive: {
template: jsonHtml,
scope: {
hit: '='
},
controller: function ($scope) {
$scope.hitJson = angular.toJson($scope.hit, true);
$scope.aceLoaded = (editor) => {
editor.$blockScrolling = Infinity;
};
}
}
};
});