mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* 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>
20 lines
730 B
TypeScript
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;
|