fleet/frontend/router/page_titles.ts

37 lines
1.2 KiB
TypeScript
Raw Normal View History

// Note: Dynamic page titles are constructed for host, software, query, and policy details on their respective *DetailsPage.tsx file
import { DOCUMENT_TITLE_SUFFIX } from "utilities/constants";
import PATHS from "router/paths";
// Note: Order matters for use of array.find() (specific subpaths must be listed before their parent path)
export default [
{ path: PATHS.DASHBOARD, title: `Dashboard | ${DOCUMENT_TITLE_SUFFIX}` },
2024-01-12 14:27:56 +00:00
{ path: PATHS.MANAGE_HOSTS, title: `Hosts | ${DOCUMENT_TITLE_SUFFIX}` },
{
2024-01-12 14:27:56 +00:00
path: PATHS.CONTROLS,
title: `Controls | ${DOCUMENT_TITLE_SUFFIX}`,
},
{
2024-01-12 14:27:56 +00:00
path: PATHS.SOFTWARE,
title: `Software | ${DOCUMENT_TITLE_SUFFIX}`,
},
{
path: PATHS.MANAGE_QUERIES,
2024-01-12 14:27:56 +00:00
title: `Queries | ${DOCUMENT_TITLE_SUFFIX}`,
},
{ path: PATHS.NEW_QUERY(), title: `New query | ${DOCUMENT_TITLE_SUFFIX}` },
{
path: PATHS.MANAGE_POLICIES,
2024-01-12 14:27:56 +00:00
title: `Policies | ${DOCUMENT_TITLE_SUFFIX}`,
},
{ path: PATHS.NEW_POLICY, title: `New policy | ${DOCUMENT_TITLE_SUFFIX}` },
{
2024-01-12 14:27:56 +00:00
path: PATHS.ADMIN_SETTINGS,
title: `Settings | ${DOCUMENT_TITLE_SUFFIX}`,
},
{
path: PATHS.ACCOUNT,
2024-01-12 14:27:56 +00:00
title: `Settings | My account | ${DOCUMENT_TITLE_SUFFIX}`,
},
];