|
1
|
import { getSearchEntityNames } from "../../lib/search/search-entities" |
|
2
|
|
|
3
|
/** |
|
4
|
* Areas shown in the search filter dropdown: the static areas (`all`, |
|
5
|
* `command`, `navigation`, which are not backed by `/admin/search`) plus every |
|
6
|
* registered dynamic search entity. |
|
7
|
*/ |
|
8
|
export function getSearchAreas(): string[] { |
|
9
|
const entities = getSearchEntityNames() |
|
10
|
return ["all", ...entities, "command", "navigation"] |
|
11
|
} |
|
12
|
|
|
13
|
export const DEFAULT_SEARCH_LIMIT = 3 |
|
14
|
export const SEARCH_LIMIT_INCREMENT = 20 |