2016-06-29 01:43:18 +00:00
|
|
|
// Require config
|
|
|
|
require('plugins/wazuh/config/config.js');
|
|
|
|
|
|
|
|
// Require CSS
|
2016-07-22 08:14:23 +00:00
|
|
|
require('plugins/wazuh/less/main.less');
|
2016-06-29 01:43:18 +00:00
|
|
|
|
|
|
|
// Set up Wazuh app
|
2016-07-18 14:54:06 +00:00
|
|
|
var app = require('ui/modules').get('app/wazuh', ['angularUtils.directives.dirPagination', 'angular.filter', 'AxelSoft', 'chart.js', 'ngAlertify', '720kb.tooltips', 'ngMaterial'])
|
2016-06-29 01:43:18 +00:00
|
|
|
.config(['$compileProvider', function ($compileProvider) {
|
|
|
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data|blob):/);
|
2016-07-15 11:40:18 +00:00
|
|
|
}])
|
|
|
|
.config(['$httpProvider', function ($httpProvider) {
|
|
|
|
$httpProvider.useApplyAsync(true);
|
2016-07-18 14:54:06 +00:00
|
|
|
}])
|
2016-08-11 12:14:42 +00:00
|
|
|
.config(function ($mdThemingProvider, $mdIconProvider) {
|
|
|
|
$mdThemingProvider.theme('default')
|
|
|
|
.primaryPalette('blue')
|
2016-08-15 13:48:54 +00:00
|
|
|
.accentPalette('blue')
|
|
|
|
.warnPalette('blue');
|
2016-08-11 12:14:42 +00:00
|
|
|
});
|
2016-06-29 01:43:18 +00:00
|
|
|
|
2016-08-11 12:14:42 +00:00
|
|
|
// Require services and factories
|
|
|
|
require('plugins/wazuh/objects/apiReq.js');
|
|
|
|
require('plugins/wazuh/objects/dataFactory.js');
|
|
|
|
require('plugins/wazuh/objects/sharedProperties.js');
|
|
|
|
require('plugins/wazuh/objects/tabProvider.js');
|
|
|
|
require('plugins/wazuh/objects/testConnection.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');
|
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
|
|
|
|
// Require controllers
|
2016-08-22 17:12:24 +00:00
|
|
|
require('plugins/wazuh/controllers/general.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');
|
2016-07-06 14:36:29 +00:00
|
|
|
require('plugins/wazuh/controllers/kibanaIntegration.js');
|
2016-08-02 19:18:21 +00:00
|
|
|
require('plugins/wazuh/controllers/visLoader.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-06-29 01:43:18 +00:00
|
|
|
//External angularjs libs
|
|
|
|
require('plugins/wazuh/../node_modules/angular-utils-pagination/dirPagination.js');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-filter/dist/angular-filter.min.js');
|
|
|
|
require('plugins/wazuh/utils/customSelect/bootstrap.min.js');
|
|
|
|
require('plugins/wazuh/utils/customSelect/customSelect.js');
|
|
|
|
require('plugins/wazuh/utils/customSelect/style.css');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-chart.js/dist/angular-chart.js');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-chart.js/dist/angular-chart.css');
|
|
|
|
require('plugins/wazuh/../node_modules/alertify.js/dist/css/alertify.css');
|
|
|
|
require('plugins/wazuh/../node_modules/alertify.js/dist/js/alertify.js');
|
|
|
|
require('plugins/wazuh/../node_modules/alertify.js/dist/js/ngAlertify.js');
|
|
|
|
require('plugins/wazuh/../node_modules/angular-tooltips/dist/angular-tooltips.min.css');
|
2016-07-18 14:54:06 +00:00
|
|
|
require('plugins/wazuh/../node_modules/angular-tooltips/dist/angular-tooltips.min.js');
|