-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Version 1.1.39 - Feature: Improvements on Confluent Interceptor UI and related Overview page subcomponents * dev in progress: * Version 1.1.40 - Feature: OS Main KPIs views in each component dashboard * Version 1.1.40 * Version 1.1.40 * Version 1.1.39
- Loading branch information
1 parent
14a964b
commit 4c53f16
Showing
25 changed files
with
1,797 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
td.data-bar-cell { | ||
padding: 4px 8px; | ||
} | ||
|
||
td.data-bar-cell .data-bar-wrapper .data-bar { | ||
height: 16px; | ||
min-width: 1px; | ||
background-color: #5479AF; | ||
|
||
font-weight: bold; | ||
} | ||
|
||
.data-bar-over { color: #FFFFFF; } | ||
.data-bar-under { color: #FFFFFF; } | ||
|
||
.data-bar-wrapper { | ||
|
||
border-style: solid; | ||
border-width: 1px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require([ | ||
'jquery', | ||
'underscore', | ||
'splunkjs/mvc', | ||
'views/shared/results_table/renderers/BaseCellRenderer', | ||
'splunkjs/mvc/simplexml/ready!' | ||
], function($, _, mvc, BaseCellRenderer) { | ||
|
||
var DataBarCellRenderer = BaseCellRenderer.extend({ | ||
canRender: function(cell) { | ||
return (cell.field === 'used_pct'); | ||
}, | ||
render: function($td, cell) { | ||
var pColor="data-bar-under" | ||
if(cell.value > 15){ pColor="data-bar-over" } | ||
$td.addClass('data-bar-cell').html(_.template('<div class="data-bar-wrapper"><div class="data-bar <%- pColor %>" style="width:<%- percent %>%"> <%- ppp %>%</div></div>', { | ||
percent: Math.min(Math.max(parseFloat(cell.value), 0), 100), | ||
ppp: parseFloat(cell.value).toFixed(2), | ||
pColor: pColor | ||
})); | ||
} | ||
}); | ||
|
||
mvc.Components.get('tablebar').getVisualization(function(tableView) { | ||
tableView.table.addCellRenderer(new DataBarCellRenderer()); | ||
tableView.table.render(); | ||
}); | ||
|
||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.