debian-mirror-gitlab/app/assets/javascripts/monitoring/router/routes.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
655 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import DashboardPage from '../pages/dashboard_page.vue';
2020-10-24 23:57:45 +05:30
import PanelNewPage from '../pages/panel_new_page.vue';
2020-06-23 00:09:42 +05:30
2020-10-24 23:57:45 +05:30
import { DASHBOARD_PAGE, PANEL_NEW_PAGE } from './constants';
2020-06-23 00:09:42 +05:30
/**
* 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-10-24 23:57:45 +05:30
name: PANEL_NEW_PAGE,
path: '/:dashboard(.+)?/panel/new',
component: PanelNewPage,
2020-07-28 23:09:34 +05:30
},
{
2020-10-24 23:57:45 +05:30
name: DASHBOARD_PAGE,
path: '/:dashboard(.+)?',
2020-06-23 00:09:42 +05:30
component: DashboardPage,
},
];