diff options
Diffstat (limited to 'app/assets/javascripts/monitoring/router')
-rw-r--r-- | app/assets/javascripts/monitoring/router/constants.js | 7 | ||||
-rw-r--r-- | app/assets/javascripts/monitoring/router/index.js | 15 | ||||
-rw-r--r-- | app/assets/javascripts/monitoring/router/routes.js | 24 |
3 files changed, 0 insertions, 46 deletions
diff --git a/app/assets/javascripts/monitoring/router/constants.js b/app/assets/javascripts/monitoring/router/constants.js deleted file mode 100644 index 7834c14a65d..00000000000 --- a/app/assets/javascripts/monitoring/router/constants.js +++ /dev/null @@ -1,7 +0,0 @@ -export const DASHBOARD_PAGE = 'dashboard'; -export const PANEL_NEW_PAGE = 'panel_new'; - -export default { - DASHBOARD_PAGE, - PANEL_NEW_PAGE, -}; diff --git a/app/assets/javascripts/monitoring/router/index.js b/app/assets/javascripts/monitoring/router/index.js deleted file mode 100644 index 12692612bbc..00000000000 --- a/app/assets/javascripts/monitoring/router/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue'; -import VueRouter from 'vue-router'; -import routes from './routes'; - -Vue.use(VueRouter); - -export default function createRouter(base) { - const router = new VueRouter({ - base, - mode: 'history', - routes, - }); - - return router; -} diff --git a/app/assets/javascripts/monitoring/router/routes.js b/app/assets/javascripts/monitoring/router/routes.js deleted file mode 100644 index cc43fd8622a..00000000000 --- a/app/assets/javascripts/monitoring/router/routes.js +++ /dev/null @@ -1,24 +0,0 @@ -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, - }, -]; |