Skip to content

Commit

Permalink
rendering something semi-functional
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Yasonik committed Dec 19, 2019
1 parent 2b6ef5c commit c187078
Show file tree
Hide file tree
Showing 10 changed files with 259 additions and 112 deletions.
1 change: 1 addition & 0 deletions src/core/public/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export { Capabilities } from './capabilities';
export {
App,
AppBase,
AppCategoryObj,
AppMount,
AppMountDeprecated,
AppUnmount,
Expand Down
19 changes: 19 additions & 0 deletions src/core/public/application/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ import { IUiSettingsClient } from '../ui_settings';
import { RecursiveReadonly } from '../../utils';
import { SavedObjectsStart } from '../saved_objects';

export const AppCategoryObj = {
analyze: 'analyze',
observability: 'observability',
security: 'security',
management: 'management',
};

enum AppCategory {
analyze,
observability,
security,
management,
}

/** @public */
export interface AppBase {
id: string;
Expand All @@ -41,6 +55,11 @@ export interface AppBase {
*/
title: string;

/**
* The category the app lives in
*/
category?: AppCategory;

/**
* An ordinal used to sort nav links relative to one another for display.
*/
Expand Down
12 changes: 12 additions & 0 deletions src/core/public/chrome/nav_links/nav_link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@

import { pick } from '../../../utils';

enum AppCategory {
analyze,
observability,
security,
management,
}

/**
* @public
*/
Expand All @@ -33,6 +40,11 @@ export interface ChromeNavLink {
*/
readonly title: string;

/**
* The category the app lives in
*/
readonly category?: AppCategory;

/**
* The base route used to open the root of an application.
*/
Expand Down
Loading

0 comments on commit c187078

Please sign in to comment.