mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Add support for 'order' property for apps.
- Reorder core plugins.
This commit is contained in:
parent
ac2b1270ba
commit
1c089a3185
3 changed files with 13 additions and 14 deletions
|
@ -55,39 +55,35 @@ module.exports = function (kibana) {
|
|||
url: `${kbnBaseUrl}#/discover`,
|
||||
description: 'interactively explore your data',
|
||||
icon: 'plugins/kibana/assets/discover.svg',
|
||||
},
|
||||
{
|
||||
}, {
|
||||
id: 'kibana:visualize',
|
||||
title: 'Visualize',
|
||||
order: -1002,
|
||||
url: `${kbnBaseUrl}#/visualize`,
|
||||
description: 'design data visualizations',
|
||||
icon: 'plugins/kibana/assets/visualize.svg',
|
||||
},
|
||||
{
|
||||
}, {
|
||||
id: 'kibana:dashboard',
|
||||
title: 'Dashboard',
|
||||
order: -1001,
|
||||
url: `${kbnBaseUrl}#/dashboard`,
|
||||
description: 'compose visualizations for much win',
|
||||
icon: 'plugins/kibana/assets/dashboard.svg',
|
||||
},
|
||||
{
|
||||
}, {
|
||||
title: 'Dev Tools',
|
||||
order: 9001,
|
||||
url: '/app/kibana#/dev_tools',
|
||||
description: 'development tools',
|
||||
icon: 'plugins/kibana/assets/wrench.svg'
|
||||
}, {
|
||||
id: 'kibana:management',
|
||||
title: 'Management',
|
||||
order: 1000,
|
||||
order: 9003,
|
||||
url: `${kbnBaseUrl}#/management`,
|
||||
description: 'define index patterns, change config, and more',
|
||||
icon: 'plugins/kibana/assets/settings.svg',
|
||||
linkToLastSubUrl: false
|
||||
},
|
||||
{
|
||||
title: 'Dev Tools',
|
||||
order: 1010,
|
||||
url: '/app/kibana#/dev_tools',
|
||||
description: 'development tools',
|
||||
icon: 'plugins/kibana/assets/wrench.svg'
|
||||
}
|
||||
],
|
||||
injectDefaultVars(server, options) {
|
||||
return {
|
||||
|
|
|
@ -18,6 +18,7 @@ module.exports = function (kibana) {
|
|||
uiExports: {
|
||||
app: {
|
||||
title: 'Timelion',
|
||||
order: -1000,
|
||||
description: 'Time series expressions for everything',
|
||||
icon: 'plugins/timelion/icon.svg',
|
||||
main: mainFile,
|
||||
|
|
|
@ -13,6 +13,7 @@ class UiApp {
|
|||
|
||||
this.main = this.spec.main;
|
||||
this.title = this.spec.title;
|
||||
this.order = this.spec.order || 0;
|
||||
this.description = this.spec.description;
|
||||
this.icon = this.spec.icon;
|
||||
this.hidden = !!this.spec.hidden;
|
||||
|
@ -24,6 +25,7 @@ class UiApp {
|
|||
this.navLink = this.uiExports.navLinks.new({
|
||||
id: this.id,
|
||||
title: this.title,
|
||||
order: this.order,
|
||||
description: this.description,
|
||||
icon: this.icon,
|
||||
url: this.spec.url || `/app/${this.id}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue