Skip to content

Commit

Permalink
renamed the hive panel to force
Browse files Browse the repository at this point in the history
  • Loading branch information
monicasarbu committed Apr 26, 2014
1 parent 4e5dfbf commit 27cba54
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 37 deletions.
File renamed without changes.
22 changes: 22 additions & 0 deletions src/app/panels/force/module.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<div ng-controller='force' ng-init="init()">
<style>
path.link-path {
fill: none;
stroke: #666;
stroke-width: 1.5px;
}

circle {
fill: #8c8c8c;
stroke: #8c8c8c;
stroke-width: 1.5px;
}

text {
fill: #8c8c8c;
font: 10px sans-serif;
pointer-events: none;
}
</style>
<div force params="{{panel}}" ng-style="{height:panel.height||row.height}"></div>
</div>
28 changes: 14 additions & 14 deletions src/app/panels/hive/module.js → src/app/panels/force/module.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/** @scratch /panels/5
* include::panels/hive.asciidoc[]
* include::panels/force.asciidoc[]
*/

/** @scratch /panels/hive/0
/** @scratch /panels/force/0
* == Hive
* Status: *Experimental*
*
* This panel creates a hive chart between the src_ip and dst_ip fields.
* This panel creates a force chart between the src_ip and dst_ip fields.
*/

define([
Expand All @@ -18,14 +18,14 @@ define([
],
function (angular, app, _, $, d3) {
'use strict';
var module = angular.module('kibana.panels.hive', []);
var module = angular.module('kibana.panels.force', []);
app.useModule(module);

console.log('hive module loaded');
console.log('force module loaded');

module.controller('hive', function($scope, $rootScope, querySrv, dashboard, filterSrv) {
module.controller('force', function($scope, $rootScope, querySrv, dashboard, filterSrv) {

console.log('hive controller loaded');
console.log('force controller loaded');

$scope.panelMeta = {
editorTabs : [
Expand All @@ -40,22 +40,22 @@ define([
}
],
status : "Experimental",
description : "Displays a hive plot based on a source and a destination field."
description : "Displays a force plot based on a source and a destination field."
};

$scope.dashboard = dashboard;

// Set and populate defaults
var _d = {
/** @scratch /panels/hive/3
/** @scratch /panels/force/3
* spyable:: Setting spyable to false disables the inspect icon.
*/
spyable : true,
/** @scratch /panels/map/3
* size:: Max number of nodes to draw
*/
size : 50,
/** @scratch /panels/hive/5
/** @scratch /panels/force/5
* ==== Queries
* queries object:: This object describes the queries to use on this panel.
* queries.mode::: Of the queries available, which to use. Options: +all, pinned, unpinned, selected+
Expand All @@ -69,12 +69,12 @@ define([
_.defaults($scope.panel,_d);

$scope.init = function() {
console.log('hive scope init');
console.log('force scope init');
$scope.get_data();
};

$scope.get_data = function() {
console.log('hive scope get_data');
console.log('force scope get_data');

$scope.panelMeta.loading = true;

Expand Down Expand Up @@ -174,7 +174,7 @@ define([

});

module.directive('hive', function() {
module.directive('force', function() {
return {
restrict: 'A',
link: function(scope, elem) {
Expand All @@ -194,7 +194,7 @@ define([
});

function render_panel() {
console.log('hive render event received');
console.log('force render event received');
elem.css({height:scope.panel.height||scope.row.height});
elem.text('');
scope.panelMeta.loading = false;
Expand Down
22 changes: 0 additions & 22 deletions src/app/panels/hive/module.html

This file was deleted.

2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function (Settings) {
'timepicker',
'text',
'hits',
'hive',
'force',
'column',
'trends',
'bettermap',
Expand Down

0 comments on commit 27cba54

Please sign in to comment.