WebUI: add udp pages

This commit is contained in:
Matthieu Hostache 2020-02-26 11:12:06 +01:00 committed by GitHub
parent 336dd1d5ba
commit 7a5d2a3bd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 842 additions and 10 deletions

View file

@ -158,6 +158,65 @@ const routes = [
}
}
]
},
{
path: '/udp',
redirect: '/udp/routers',
component: LayoutDefault,
children: [
{
path: 'routers',
name: 'udpRouters',
components: {
default: () => import('pages/udp/Routers.vue'),
NavBar: () => import('components/_commons/ToolBar.vue')
},
props: { default: true, NavBar: true },
meta: {
protocol: 'udp',
title: 'TCP Routers'
}
},
{
path: 'routers/:name',
name: 'udpRouterDetail',
components: {
default: () => import('pages/_commons/RouterDetail.vue'),
NavBar: () => import('components/_commons/ToolBar.vue')
},
props: { default: true, NavBar: true },
meta: {
protocol: 'udp',
title: 'TCP Router Detail'
}
},
{
path: 'services',
name: 'udpServices',
components: {
default: () => import('pages/udp/Services.vue'),
NavBar: () => import('components/_commons/ToolBar.vue')
},
props: { default: true, NavBar: true },
meta: {
protocol: 'udp',
title: 'TCP Services'
}
},
{
path: 'services/:name',
name: 'udpServiceDetail',
components: {
default: () => import('pages/_commons/ServiceDetail.vue'),
NavBar: () => import('components/_commons/ToolBar.vue')
},
props: { default: true, NavBar: true },
meta: {
protocol: 'udp',
title: 'TCP Service Detail'
}
}
]
}
]