2018-04-22 18:52:55 +00:00
|
|
|
/*
|
2018-04-22 20:16:38 +00:00
|
|
|
* Wazuh app - Module for Kibana plugin definition
|
2019-01-14 16:36:47 +00:00
|
|
|
* Copyright (C) 2015-2019 Wazuh, Inc.
|
2018-04-22 18:52:55 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2018-05-16 21:58:50 +00:00
|
|
|
|
|
|
|
// Imports the init module
|
2018-09-03 09:46:55 +00:00
|
|
|
import { initApp } from './init';
|
2018-11-12 09:33:53 +00:00
|
|
|
import { resolve } from 'path';
|
2018-04-21 10:09:55 +00:00
|
|
|
|
2018-09-10 08:32:49 +00:00
|
|
|
export default kibana =>
|
|
|
|
new kibana.Plugin({
|
2018-05-16 21:58:50 +00:00
|
|
|
id: 'wazuh',
|
|
|
|
name: 'wazuh',
|
2017-10-27 10:21:56 +00:00
|
|
|
require: ['kibana', 'elasticsearch'],
|
|
|
|
uiExports: {
|
2018-09-10 08:32:49 +00:00
|
|
|
app: {
|
|
|
|
id: 'wazuh',
|
|
|
|
title: 'Wazuh',
|
|
|
|
description: 'Wazuh app for Kibana',
|
2019-02-04 10:53:00 +00:00
|
|
|
icon: 'plugins/wazuh/img/icon.svg',
|
2018-09-10 08:32:49 +00:00
|
|
|
main: 'plugins/wazuh/app'
|
2018-11-12 09:33:53 +00:00
|
|
|
},
|
2019-04-02 15:35:20 +00:00
|
|
|
hacks: ['plugins/wazuh/hack-icon-style'],
|
2018-11-12 09:33:53 +00:00
|
|
|
__bundleProvider__(kbnServer) {
|
|
|
|
kbnServer.uiBundles.addPostLoader({
|
|
|
|
test: /\.pug$/,
|
|
|
|
include: resolve(__dirname, 'public'),
|
|
|
|
loader: require.resolve('pug-loader'),
|
|
|
|
enforce: undefined
|
|
|
|
});
|
2018-09-10 08:32:49 +00:00
|
|
|
}
|
2017-10-27 10:21:56 +00:00
|
|
|
},
|
2018-09-10 08:32:49 +00:00
|
|
|
init(server, options) {
|
|
|
|
return initApp(server, options);
|
|
|
|
}
|
|
|
|
});
|