2022-08-12 09:14:04 -05:00
|
|
|
import { DashboardSearchItemType } from './types';
|
|
|
|
|
2020-04-08 10:14:03 -05:00
|
|
|
export const NO_ID_SECTIONS = ['Recent', 'Starred'];
|
2020-04-24 03:08:06 -05:00
|
|
|
// Height of the search result item
|
2021-03-06 02:51:09 -06:00
|
|
|
export const SEARCH_ITEM_HEIGHT = 58;
|
2021-06-08 07:41:06 -05:00
|
|
|
export const SEARCH_ITEM_MARGIN = 8;
|
2021-02-17 06:06:19 -06:00
|
|
|
export const DEFAULT_SORT = { label: 'A\u2013Z', value: 'alpha-asc' };
|
2020-05-12 05:51:00 -05:00
|
|
|
export const SECTION_STORAGE_KEY = 'search.sections';
|
2020-12-20 23:34:50 -06:00
|
|
|
export const GENERAL_FOLDER_ID = 0;
|
2022-05-17 03:31:19 -05:00
|
|
|
export const GENERAL_FOLDER_UID = 'general';
|
2021-09-30 23:20:25 -05:00
|
|
|
export const GENERAL_FOLDER_TITLE = 'General';
|
2022-06-01 11:05:53 -05:00
|
|
|
export const SEARCH_PANELS_LOCAL_STORAGE_KEY = 'grafana.search.include.panels';
|
2022-06-15 12:07:34 -05:00
|
|
|
export const SEARCH_SELECTED_LAYOUT = 'grafana.search.layout';
|
2022-08-12 09:14:04 -05:00
|
|
|
export const TYPE_KIND_MAP: { [key: string]: DashboardSearchItemType } = {
|
|
|
|
dashboard: DashboardSearchItemType.DashDB,
|
|
|
|
folder: DashboardSearchItemType.DashFolder,
|
|
|
|
home: DashboardSearchItemType.DashHome,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DEFAULT_MAX_VALUES = 1000;
|