"Dashboard" tab deleted from app

There was some old files of a "Dashboard" tab. They were deleted from the app and also every other remaining references and links to the Dashboard templates.
This commit is contained in:
Juanjo Jiménez 2017-11-23 17:00:18 +01:00
parent 4045278ca4
commit f83d3e74d4
10 changed files with 9 additions and 153 deletions

View File

@ -1,7 +0,0 @@
// Require config
let app = require('ui/modules').get('app/wazuh', []);
import chrome from 'ui/chrome';
app.controller('dashboardController', function ($scope, $location) {
$scope.dashboardURL = chrome.addBasePath("/app/kibana#/dashboards?embed=true");
});

View File

@ -62,12 +62,6 @@ routes
"checkAPI": settingsWizard
}
})
.when('/dashboard/:select?', {
template: require('plugins/wazuh/templates/dashboards.jade'),
resolve: {
"checkAPI": settingsWizard
}
})
.when('/discover/', {
template: require('plugins/wazuh/templates/discover.jade'),
resolve: {

View File

@ -6,5 +6,4 @@ include ./agents-pm.html
include ./agents-oscap.html
include ./agents-audit.html
include ./agents-pci.html
include ./tabview-dashboard.html
include ./agents.foot

View File

@ -1,19 +0,0 @@
<div flex layout="column">
<md-content class="wazuhMenuNavBar" ng-init="menuNavItem = 'dashboards'" style="height: 70px;">
<md-nav-bar class="wazuhMenuNav" md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
<md-nav-item id="header_logo" md-nav-href="#/" name="logo" aria-hidden="true">
<img aria-hidden="true" kbn-src="/plugins/wazuh/img/logo_blue.png" height="44" weight="252"></img>
</md-nav-item>
<md-nav-item md-nav-href="#/overview" name="overview">Overview</md-nav-item>
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards">Dashboards</md-nav-item>
<md-nav-item class="wazuhMenuNavBar_gear" md-nav-href="#/settings" name="settings"><i class="fa fa-cog ng-scope" aria-hidden="true" ></i></md-nav-item>
</md-nav-bar>
</md-content>
<md-progress-linear class="md-accent" md-mode="indeterminate" ng-show="load"></md-progress-linear>

View File

@ -1,8 +0,0 @@
<script>
$('iframe').load( function() {
$('iframe').contents().find("head")
.append($('<style type="text/css">.kuiLocalNav.ng-hide { display: block !important; } .kuiLocalNavRow .fullWidth { display: block !important; }</style>'));
});
</script>
<iframe ng-controller="dashboardController" src="{{dashboardURL}}" iframe-set-dimensions-onload></iframe>

View File

@ -1,3 +0,0 @@
include ./dashboards.head
include ./dashboards.html
include ./footer.foot

View File

@ -1,45 +0,0 @@
<div class="app-container dashboard-container">
<kbn-top-nav name="dashboard" config="topNavMenu" ng-show="dashTimepicker">
<div class="kibana-nav-info">
<span ng-show="dash.id" class="kibana-nav-info-title">
<span ng-bind="::dash.title"></span>
</span>
</div>
</kbn-top-nav>
<navbar ng-show="chrome.getVisible() && dashSearchable" name="dashboard-search">
<form name="queryInput"
class="fill inline-form"
ng-submit="filterResults()"
role="form">
<div class="typeahead" kbn-typeahead="dashboard">
<div class="input-group"
ng-class="queryInput.$invalid ? 'has-error' : ''">
<input
type="text"
placeholder="Filter..."
aria-label="Filter input"
class="form-control"
ng-model="state.query"
input-focus
kbn-typeahead-input
parse-query>
<button type="submit" class="btn btn-default" ng-disabled="queryInput.$invalid" aria-label="Filter dashboards">
<span aria-hidden="true" class="fa fa-search"></span>
</button>
</div>
<kbn-typeahead-items></kbn-typeahead-items>
</div>
</form>
<div class="button-group"></div>
</navbar>
<filter-bar state="state"></filter-bar>
<dashboard-grid ng-if="state.panels.length"></dashboard-grid>
</div>

View File

@ -5,5 +5,4 @@ include ./overview-pm.html
include ./overview-oscap.html
include ./overview-audit.html
include ./overview-pci.html
include ./tabview-dashboard.html
include ./footer.foot

View File

@ -9,7 +9,6 @@
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
<md-nav-item md-nav-href="#/discover" name="discover">Discover</md-nav-item>
<md-nav-item md-nav-href="#/dashboards" name="dashboards">Dashboards</md-nav-item>
<md-nav-item class="wazuhMenuNavBar_gear" md-nav-href="#/settings" name="settings"><i class="fa fa-cog ng-scope" aria-hidden="true"></i></md-nav-item>
</md-nav-bar>
</md-content>
@ -110,7 +109,7 @@
<h1 class="wazuh-h1"><i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 25px;"></i> Wazuh App: Extensions</h1>
<p flex>Enable or disable extensions according to your needs. The extension includes: Panels, discover and dashboards, for agents / overview.</p>
<p flex>Enable or disable extensions according to your needs. The extension includes: Panels and Discover, for Overview / Agents tabs.</p>
<div>
<span layout="row" layout-align="space-between center" style="font-weight: bold">

View File

@ -1,53 +0,0 @@
<!-- Overview dashbards -->
<!-- OSSEC Alerts -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'overview' && submenuNavItem == 'general' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="OSSEC-Alerts" dash-searchable="true" dash-timepicker="true"></kbn-dash>
</md-content>
<!-- File integrity monitoring-->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'overview' && submenuNavItem == 'fim' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="File-Integrity-Monitoring" dash-searchable="true" dash-timepicker="true"></kbn-dash>
</md-content>
<!-- Policy monitoring -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'overview' && submenuNavItem == 'pm' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="CIS-Compliance" dash-searchable="true" dash-timepicker="true"></kbn-dash>
</md-content>
<!-- OSCAP -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'overview' && submenuNavItem == 'oscap' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="OpenSCAP" dash-searchable="true" dash-timepicker="true"></kbn-dash>
</md-content>
<!-- Audit -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'overview' && submenuNavItem == 'audit' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="Audit" dash-searchable="true" dash-timepicker="true"></kbn-dash>
</md-content>
<!-- Agents dashboards -->
<!-- OSSEC Alerts -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'agents' && submenuNavItem == 'overview' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="OSSEC-Alerts" dash-searchable="true" dash-timepicker="true" dash-filter="agent.name: {{_agent.name}}"></kbn-dash>
</md-content>
<!-- File integrity monitoring-->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'agents' && submenuNavItem == 'fim' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="File-Integrity-Monitoring" dash-searchable="true" dash-timepicker="true" dash-filter="agent.name: {{_agent.name}}"></kbn-dash>
</md-content>
<!-- Policy monitoring -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'agents' && submenuNavItem == 'policy_monitoring' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="CIS-Compliance" dash-searchable="true" dash-timepicker="true" dash-filter="agent.name: {{_agent.name}}"></kbn-dash>
</md-content>
<!-- OSCAP -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'agents' && submenuNavItem == 'oscap' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="OpenSCAP" dash-searchable="true" dash-timepicker="true" dash-filter="agent.name: {{_agent.name}}"></kbn-dash>
</md-content>
<!-- Audit -->
<md-content style="background-color: white" flex layout="column" ng-if="menuNavItem == 'agents' && submenuNavItem == 'audit' && tabView == 'dashboard'" layout-align="start space-around">
<kbn-dash dash-id="Audit" dash-searchable="true" dash-timepicker="true" dash-filter="agent.name: {{_agent.name}}"></kbn-dash>
</md-content>