Refactor: move NavModel to @grafana/ui (#16813)

This commit is contained in:
Ryan McKinley
2019-04-30 07:46:46 -07:00
committed by GitHub
parent 9660356638
commit 26bd76b4c2
42 changed files with 80 additions and 94 deletions

View File

@@ -6,6 +6,7 @@ export * from './datasource';
export * from './theme';
export * from './graph';
export * from './threshold';
export * from './navModel';
export * from './input';
export * from './logs';
export * from './displayValue';

View File

@@ -0,0 +1,28 @@
export interface NavModelItem {
text: string;
url?: string;
subTitle?: string;
icon?: string;
img?: string;
id?: string;
active?: boolean;
hideFromTabs?: boolean;
divider?: boolean;
children?: NavModelItem[];
breadcrumbs?: NavModelBreadcrumb[];
target?: string;
parentItem?: NavModelItem;
}
export interface NavModel {
main: NavModelItem;
node: NavModelItem;
breadcrumbs?: NavModelItem[];
}
export interface NavModelBreadcrumb {
title: string;
url?: string;
}
export type NavIndex = { [s: string]: NavModelItem };