Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routes.js « router « monitoring « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8092a5b7c0b5d437443d673307c20891e83d226f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import DashboardPage from '../pages/dashboard_page.vue';
import PanelNewPage from '../pages/panel_new_page.vue';

import { DASHBOARD_PAGE, PANEL_NEW_PAGE } from './constants';

/**
 * 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 [
  {
    name: PANEL_NEW_PAGE,
    path: '/:dashboard(.*)?/panel/new',
    component: PanelNewPage,
  },
  {
    name: DASHBOARD_PAGE,
    path: '/:dashboard(.*)?',
    component: DashboardPage,
  },
];