mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
16 lines
393 B
TypeScript
16 lines
393 B
TypeScript
// Widget Viewer specific query params so we don't interfere with other params like GSH
|
|
export enum WidgetViewerQueryField {
|
|
SORT = 'sort',
|
|
QUERY = 'query',
|
|
LEGEND = 'legend',
|
|
PAGE = 'page',
|
|
CURSOR = 'cursor',
|
|
WIDTH = 'width',
|
|
START = 'viewerStart',
|
|
END = 'viewerEnd',
|
|
}
|
|
|
|
export function isWidgetViewerPath(pathname: string) {
|
|
return pathname.match(/\/widget\/[0-9]+\/$/);
|
|
}
|