2020-06-16 11:08:32 -04:00
|
|
|
import DashboardPage from '../pages/dashboard_page.vue';
|
2020-07-30 02:09:55 -04:00
|
|
|
import PanelNewPage from '../pages/panel_new_page.vue';
|
2020-06-16 11:08:32 -04:00
|
|
|
|
2020-07-30 02:09:55 -04:00
|
|
|
import { DASHBOARD_PAGE, PANEL_NEW_PAGE } from './constants';
|
2020-06-16 11:08:32 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Because the cluster health page uses the dashboard
|
|
|
|
* app instead the of the dashboard component, hitting
|
|
|
|
* `/` route is not possible. Hence using `*` until the
|
|
|
|
* health page is refactored.
|
|
|
|
* https://gitlab.com/gitlab-org/gitlab/-/issues/221096
|
|
|
|
*/
|
|
|
|
export default [
|
|
|
|
{
|
2020-07-30 02:09:55 -04:00
|
|
|
name: PANEL_NEW_PAGE,
|
|
|
|
path: '/:dashboard(.*)?/panel/new',
|
|
|
|
component: PanelNewPage,
|
2020-07-15 17:09:26 -04:00
|
|
|
},
|
|
|
|
{
|
2020-07-30 02:09:55 -04:00
|
|
|
name: DASHBOARD_PAGE,
|
|
|
|
path: '/:dashboard(.*)?',
|
2020-06-16 11:08:32 -04:00
|
|
|
component: DashboardPage,
|
|
|
|
},
|
|
|
|
];
|