2016-06-29 01:43:18 +00:00
|
|
|
// Require CSS
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/less/loader';
|
2016-06-29 01:43:18 +00:00
|
|
|
|
|
|
|
// Set up Wazuh app
|
2018-03-06 11:03:58 +00:00
|
|
|
const app = require('ui/modules').get('app/wazuh', ['ngCookies', 'ngMaterial']);
|
|
|
|
|
|
|
|
app.config(['$compileProvider', function ($compileProvider) {
|
|
|
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data|blob):/);
|
|
|
|
}])
|
|
|
|
|
|
|
|
app.config(['$httpProvider', function ($httpProvider) {
|
|
|
|
$httpProvider.useApplyAsync(true);
|
|
|
|
}]);
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2018-03-07 09:49:09 +00:00
|
|
|
// Font Awesome, Kibana UI framework and others
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/utils/fontawesome/css/font-awesome.min.css';
|
|
|
|
import 'plugins/wazuh/utils/when-scrolled/when-scrolled.js';
|
|
|
|
import '../../../ui_framework/dist/ui_framework.css';
|
2018-01-25 12:42:48 +00:00
|
|
|
|
2018-03-07 09:49:09 +00:00
|
|
|
// Material
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/../node_modules/angular-material/angular-material.css';
|
|
|
|
import 'plugins/wazuh/../node_modules/angular-aria/angular-aria.js';
|
|
|
|
import 'plugins/wazuh/../node_modules/angular-animate/angular-animate.js';
|
|
|
|
import 'plugins/wazuh/../node_modules/angular-material/angular-material.js';
|
2018-01-25 12:42:48 +00:00
|
|
|
|
2018-03-07 09:49:09 +00:00
|
|
|
// Cookies
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/../node_modules/angular-cookies/angular-cookies.min.js';
|
2018-01-25 12:42:48 +00:00
|
|
|
|
2017-11-23 10:33:34 +00:00
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
// Require Kibana integrations
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'ui/autoload/all';
|
|
|
|
import 'ui/chrome';
|
|
|
|
import 'plugins/wazuh/kibana-integrations/kibana-visualization.js';
|
|
|
|
import 'plugins/wazuh/kibana-integrations/kibana-filter-bar.js';
|
|
|
|
import 'plugins/wazuh/kibana-integrations/kibana-discover.js';
|
|
|
|
import 'plugins/wazuh/kibana-integrations/saved-visualizations.js';
|
2017-11-23 10:33:34 +00:00
|
|
|
|
2017-10-20 20:46:24 +00:00
|
|
|
// Require services
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/services/error-handler.js';
|
|
|
|
import 'plugins/wazuh/services/theming.js';
|
|
|
|
import 'plugins/wazuh/services/api-request.js';
|
|
|
|
import 'plugins/wazuh/services/generic-request.js';
|
|
|
|
import 'plugins/wazuh/services/data-handler.js';
|
|
|
|
import 'plugins/wazuh/services/app-state.js';
|
|
|
|
import 'plugins/wazuh/services/api-tester.js';
|
|
|
|
import 'plugins/wazuh/services/pattern-handler.js';
|
2016-09-21 09:47:06 +00:00
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
// Set up routes and views
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/services/routes.js';
|
2016-08-11 12:14:42 +00:00
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
// Require controllers
|
2017-01-13 11:02:27 +00:00
|
|
|
|
2017-11-07 14:34:28 +00:00
|
|
|
// Factories
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/factories/data-handler-composer.js';
|
2018-02-15 12:17:14 +00:00
|
|
|
|
|
|
|
// Wazuh Directives
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/directives/wz-dynamic/wz-dynamic.js';
|
|
|
|
import 'plugins/wazuh/directives/wz-enter/wz-enter.js';
|
|
|
|
import 'plugins/wazuh/directives/wz-menu/wz-menu.js';
|
|
|
|
import 'plugins/wazuh/directives/wz-menu/wz-menu.less';
|
|
|
|
import 'plugins/wazuh/directives/wz-search-bar/wz-search-bar.js';
|
|
|
|
import 'plugins/wazuh/directives/wz-table-header/wz-table-header.js';
|
|
|
|
import 'plugins/wazuh/directives/wz-table-header/wz-table-header.less';
|
|
|
|
import 'plugins/wazuh/directives/wz-table/wz-table.js';
|
|
|
|
import 'plugins/wazuh/directives/wz-table/wz-table.less';
|
2017-11-07 14:34:28 +00:00
|
|
|
|
2018-01-29 16:04:36 +00:00
|
|
|
// Blank Screen
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/blank-screen-controller.js';
|
2018-01-29 16:04:36 +00:00
|
|
|
|
2018-01-25 12:42:48 +00:00
|
|
|
// Login
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/login.js';
|
2018-01-25 12:42:48 +00:00
|
|
|
|
2017-01-13 11:02:27 +00:00
|
|
|
// Overview
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/overview.js';
|
2017-01-13 11:02:27 +00:00
|
|
|
|
|
|
|
// Manager
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/manager.js';
|
|
|
|
import 'plugins/wazuh/controllers/ruleset.js';
|
|
|
|
import 'plugins/wazuh/controllers/osseclog.js';
|
|
|
|
import 'plugins/wazuh/controllers/groups.js';
|
2017-01-13 11:02:27 +00:00
|
|
|
|
|
|
|
// Agents
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/agents.js';
|
|
|
|
import 'plugins/wazuh/controllers/agents-preview.js';
|
2017-01-13 11:02:27 +00:00
|
|
|
|
|
|
|
// Settings
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/settings.js';
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2018-01-11 18:41:50 +00:00
|
|
|
// Health check
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/controllers/health-check.js';
|