grafana/public/app/features/connections/constants.ts
Levente Balogh 778fb07464
Plugins: Make the Plugin Details page reusable (#58741)
* refactor(PluginDetails): use react-router hooks instead of props

* Wip

* refactor: remove unnecessary constant

* feat: use the original plugin details page under connections

* chore: use better wording in the not-found warning

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* chore: use the renderer utility everywhere in the test

* chore: don't show a title while loading a plugin

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-11-29 13:45:03 +01:00

20 lines
730 B
TypeScript

// The ID of the main nav-tree item (the main item in the NavIndex)
export const ROUTE_BASE_ID = 'connections';
export const ROUTES = {
Base: `/${ROUTE_BASE_ID}`,
// Your Connections
YourConnections: `/${ROUTE_BASE_ID}/your-connections`,
// Your Connections / Datasources
DataSources: `/${ROUTE_BASE_ID}/your-connections/datasources`,
DataSourcesNew: `/${ROUTE_BASE_ID}/your-connections/datasources/new`,
DataSourcesEdit: `/${ROUTE_BASE_ID}/your-connections/datasources/edit/:uid`,
DataSourcesDashboards: `/${ROUTE_BASE_ID}/datasources/edit/:uid/dashboards`,
// Connect Data
ConnectData: `/${ROUTE_BASE_ID}/connect-data`,
DataSourcesDetails: `/${ROUTE_BASE_ID}/connect-data/datasources/:id`,
} as const;