Guest User

Untitled

a guest
Jan 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. export default function (kibana) {
  2. return new kibana.Plugin({
  3. require: ['elasticsearch'],
  4. name: 'kibana-plugin-sao',
  5. uiExports: {
  6.  
  7. app: {
  8. title: 'Kibana Plugin Sao',
  9. description: 'wow-sao',
  10. main: 'plugins/kibana-plugin-sao/app'
  11. },
  12.  
  13. translations: [
  14. resolve(__dirname, './translations/es.json')
  15. ],
  16.  
  17. hacks: [
  18. 'plugins/kibana-plugin-sao/hack'
  19. ]
  20. },
  21.  
  22. config(Joi) {
  23. return Joi.object({
  24. enabled: Joi.boolean().default(true),
  25. }).default();
  26. },
  27.  
  28. init(server, options) {
  29. // Add server routes and initialize the plugin here
  30. exampleRoute(server);
  31. }
  32.  
  33. });
  34. };
Add Comment
Please, Sign In to add comment