wazuh-kibana-app/public/app.js

62 lines
2.1 KiB
JavaScript
Raw Normal View History

/*
* 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
import 'plugins/wazuh/less/loader';
import * as modules from 'ui/modules'
2016-06-29 01:43:18 +00:00
// Set up Wazuh app
const app = modules.get('app/wazuh', ['ngCookies', 'ngMaterial']);
2018-03-06 11:03:58 +00:00
app.config(['$compileProvider', function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data|blob):/);
2018-03-06 11:03:58 +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
// Font Awesome, Kibana UI framework and others
import 'plugins/wazuh/utils/fontawesome/css/font-awesome.min.css';
import 'plugins/wazuh/utils/when-scrolled/when-scrolled.js';
2018-06-14 12:53:46 +00:00
import './less/ui_framework.css';
2018-05-08 14:08:12 +00:00
// Dev tools
import 'plugins/wazuh/utils/codemirror/codemirror.css'
import 'plugins/wazuh/utils/codemirror/foldgutter.css'
import 'plugins/wazuh/utils/codemirror/ttcn.css'
import 'plugins/wazuh/utils/codemirror/javascript.js'
import 'plugins/wazuh/utils/codemirror/brace-fold.js'
import 'plugins/wazuh/utils/codemirror/foldcode.js'
import 'plugins/wazuh/utils/codemirror/foldgutter.js'
2018-05-09 08:28:59 +00:00
import 'plugins/wazuh/utils/codemirror/search-cursor.js'
2018-05-09 09:48:11 +00:00
import 'plugins/wazuh/utils/codemirror/mark-selection.js'
2018-05-08 14:08:12 +00:00
// Material
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';
// Cookies
import 'plugins/wazuh/../node_modules/angular-cookies/angular-cookies.min.js';
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'
import 'plugins/wazuh/directives'