-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
38 lines (33 loc) · 1 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
import init from './server/init';
export default function (kibana) {
return new kibana.Plugin({
require: ['elasticsearch'],
uiExports: {
app: {
title: 'Quick Navigation',
description: 'Dashboard Quick Navigation',
main: `plugins/quicknavi/app`,
icon: `plugins/quicknavi/rank.png`,
injectVars(server) {
const xpack = server.plugins.xpack_main;
return {
hasXpackInstalled: !!xpack
};
}
}
},
config(Joi) {
const { array, boolean, number, object, string } = Joi;
return object({
enabled: boolean().default(true),
get_username_from_session: object({
enabled: boolean().default(false),
key: string().default('username')
}).default()
}).default();
},
init(server) {
init(server)
}
});
}