kibana/packages/default-nav/devtools/default_navigation.ts

41 lines
1.2 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { i18n } from '@kbn/i18n';
import type { NodeDefinitionWithChildren } from '@kbn/core-chrome-browser';
import type { DeepLinkId } from '@kbn/deeplinks-devtools';
export type NavigationID = 'rootNav:devtools' | 'root';
export type DevToolsNodeDefinition = NodeDefinitionWithChildren<DeepLinkId, NavigationID>;
export const defaultNavigation: DevToolsNodeDefinition = {
title: i18n.translate('defaultNavigation.devTools.developerTools', {
defaultMessage: 'Developer tools',
}),
id: 'rootNav:devtools',
icon: 'editorCodeBlock',
children: [
{
id: 'root',
children: [
{
link: 'dev_tools:console',
},
{
link: 'dev_tools:searchprofiler',
},
{
link: 'dev_tools:grokdebugger',
},
{
link: 'dev_tools:painless_lab',
},
],
},
],
};