forked from wazuh/wazuh-dashboard-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
43 lines (41 loc) · 1.2 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Wazuh app - Module for Kibana plugin definition
* Copyright (C) 2015-2019 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.
*/
// Imports the init module
import { initApp } from './init';
import { resolve } from 'path';
export default kibana =>
new kibana.Plugin({
id: 'wazuh',
name: 'wazuh',
require: ['kibana', 'elasticsearch'],
uiExports: {
app: {
id: 'wazuh',
title: 'Wazuh',
description: 'Wazuh app for Kibana',
icon: 'plugins/wazuh/img/icon.svg',
main: 'plugins/wazuh/app'
},
hacks: ['plugins/wazuh/hack-icon-style'],
__bundleProvider__(kbnServer) {
kbnServer.uiBundles.addPostLoader({
test: /\.pug$/,
include: resolve(__dirname, 'public'),
loader: require.resolve('pug-loader'),
enforce: undefined
});
}
},
init(server, options) {
return initApp(server, options);
}
});