wazuh-kibana-app/public/app.js

60 lines
2.4 KiB
JavaScript
Raw Normal View History

2016-06-29 01:43:18 +00:00
// Require CSS
require('plugins/wazuh/less/main.less');
2016-06-29 01:43:18 +00:00
// Set up Wazuh app
2016-09-15 09:03:03 +00:00
var app = require('ui/modules').get('app/wazuh', ['ngCookies','ngMaterial'])
2016-06-29 01:43:18 +00:00
.config(['$compileProvider', function ($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data|blob):/);
}])
.config(['$httpProvider', function ($httpProvider) {
$httpProvider.useApplyAsync(true);
2016-08-26 17:33:46 +00:00
}]);
2016-06-29 01:43:18 +00:00
2016-08-11 12:14:42 +00:00
// Require services and factories
2016-08-26 17:33:46 +00:00
require('plugins/wazuh/objects/theming.js');
2016-08-11 12:14:42 +00:00
require('plugins/wazuh/objects/apiReq.js');
2016-09-12 14:56:59 +00:00
require('plugins/wazuh/objects/genericReq.js');
2016-08-11 12:14:42 +00:00
require('plugins/wazuh/objects/dataFactory.js');
require('plugins/wazuh/objects/sharedProperties.js');
2016-09-15 09:03:03 +00:00
require('plugins/wazuh/objects/appState.js');
2016-08-11 12:14:42 +00:00
require('plugins/wazuh/objects/tabProvider.js');
require('plugins/wazuh/objects/testConnection.js');
2016-09-15 10:55:58 +00:00
require('plugins/wazuh/objects/errlog.js');
2016-06-29 01:43:18 +00:00
// Require directives
require('plugins/wazuh/objects/autoSizeContainer.js');
2016-06-29 01:43:18 +00:00
// Set up routes and views
2016-08-11 12:14:42 +00:00
require('plugins/wazuh/objects/routes.js');
// Require Kibana integrations
require('plugins/wazuh/controllers/visLoader.js');
require('plugins/wazuh/controllers/disLoader.js');
require('plugins/wazuh/controllers/dashLoader.js');
2016-11-21 19:00:32 +00:00
require('plugins/wazuh/controllers/kibanaSearchbarDirective.js');
2016-06-29 01:43:18 +00:00
// Require controllers
require('plugins/wazuh/controllers/general.js');
2016-09-16 12:35:56 +00:00
require('plugins/wazuh/controllers/overview.js');
2016-06-29 01:43:18 +00:00
require('plugins/wazuh/controllers/agents.js');
require('plugins/wazuh/controllers/settings.js');
require('plugins/wazuh/controllers/manager.js');
2016-07-07 09:24:16 +00:00
require('plugins/wazuh/controllers/fim.js');
2016-07-25 08:43:08 +00:00
require('plugins/wazuh/controllers/policy-monitoring.js');
2016-06-29 01:43:18 +00:00
require('plugins/wazuh/controllers/ruleset.js');
2016-07-01 12:49:38 +00:00
require('plugins/wazuh/controllers/osseclog.js');
require('plugins/wazuh/controllers/testController.js');
2016-06-29 01:43:18 +00:00
2016-08-11 12:14:42 +00:00
//Bootstrap and font awesome
require('plugins/wazuh/../node_modules/bootstrap/dist/css/bootstrap.min.css');
require('plugins/wazuh/../node_modules/bootstrap/dist/js/bootstrap.min.js');
require('plugins/wazuh/utils/fontawesome/css/font-awesome.min.css');
//Material
require('plugins/wazuh/../node_modules/angular-material/angular-material.css');
require('plugins/wazuh/../node_modules/angular-aria/angular-aria.js');
require('plugins/wazuh/../node_modules/angular-animate/angular-animate.js');
require('plugins/wazuh/../node_modules/angular-material/angular-material.js');
2016-09-15 09:03:03 +00:00
//Cookies
require('plugins/wazuh/../node_modules/angular-cookies/angular-cookies.min.js');