2018-04-22 20:16:38 +00:00
|
|
|
/*
|
|
|
|
* Wazuh app - File for app requirements and set up
|
|
|
|
* Copyright (C) 2018 Wazuh, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Find more information about this on the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2016-06-29 01:43:18 +00:00
|
|
|
// Require CSS
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'plugins/wazuh/less/loader';
|
2018-04-21 11:44:46 +00:00
|
|
|
import * as modules from 'ui/modules'
|
2016-06-29 01:43:18 +00:00
|
|
|
// Set up Wazuh app
|
2018-04-21 11:44:46 +00:00
|
|
|
const app = modules.get('app/wazuh', ['ngCookies', 'ngMaterial']);
|
2018-03-06 11:03:58 +00:00
|
|
|
|
2018-04-22 20:16:38 +00:00
|
|
|
app.config(['$compileProvider', function($compileProvider) {
|
|
|
|
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data|blob):/);
|
2018-03-06 11:03:58 +00:00
|
|
|
}])
|
|
|
|
|
2018-04-22 20:16:38 +00:00
|
|
|
app.config(['$httpProvider', function($httpProvider) {
|
|
|
|
$httpProvider.useApplyAsync(true);
|
2018-03-06 11:03:58 +00:00
|
|
|
}]);
|
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
|
|
|
|
2018-04-21 11:31:47 +00:00
|
|
|
import 'ui/autoload/all';
|
|
|
|
import 'ui/chrome';
|
2017-11-23 10:33:34 +00:00
|
|
|
|
2018-05-04 10:29:07 +00:00
|
|
|
// Wazuh
|
|
|
|
import 'plugins/wazuh/kibana-integrations'
|
|
|
|
import 'plugins/wazuh/services'
|
|
|
|
import 'plugins/wazuh/controllers'
|
|
|
|
import 'plugins/wazuh/factories'
|
2018-05-04 12:20:10 +00:00
|
|
|
import 'plugins/wazuh/directives'
|