From 182f4bf5ccc7735b0d9af71ea69822243d814651 Mon Sep 17 00:00:00 2001 From: Axolotle Date: Sat, 8 Aug 2020 00:19:18 +0200 Subject: [PATCH] add ServiceList view and ServiceInfo base file + routes --- app/src/locales/en.json | 1 + app/src/routes.js | 27 +++++++++ app/src/views/Home.vue | 2 +- app/src/views/domain/DomainAdd.vue | 2 +- app/src/views/service/ServiceInfo.vue | 21 +++++++ app/src/views/service/ServiceList.vue | 86 +++++++++++++++++++++++++++ app/src/views/service/index.js | 2 + 7 files changed, 139 insertions(+), 2 deletions(-) create mode 100644 app/src/views/service/ServiceInfo.vue create mode 100644 app/src/views/service/ServiceList.vue create mode 100644 app/src/views/service/index.js diff --git a/app/src/locales/en.json b/app/src/locales/en.json index eb1dcce1..d5493cb3 100644 --- a/app/src/locales/en.json +++ b/app/src/locales/en.json @@ -274,6 +274,7 @@ "search": { "domain": "Search for domains...", "group": "Search for groups...", + "service": "Search for services", "user": "Search for users..." }, "search_for_apps": "Search for apps...", diff --git a/app/src/routes.js b/app/src/routes.js index 6bcc92db..11372f6c 100644 --- a/app/src/routes.js +++ b/app/src/routes.js @@ -3,6 +3,7 @@ import Login from './views/Login' import { UserList, UserCreate, UserInfo, UserEdit } from './views/user' import { GroupList, GroupCreate } from './views/group' import { DomainList, DomainAdd, DomainInfo, DomainDns, DomainCert } from './views/domain' +import { ServiceList, ServiceInfo } from './views/service' const routes = [ { name: 'home', path: '/', component: Home }, @@ -142,6 +143,32 @@ const routes = [ { name: 'domain-cert', trad: 'certificate' } ] } + }, + + /* ──────────╮ + │ SERVICE │ + ╰────────── */ + { + name: 'service-list', + path: '/services', + component: ServiceList, + meta: { + breadcrumb: [ + { name: 'service-list', trad: 'services' } + ] + } + }, + { + name: 'service-info', + path: '/services/:name', + component: ServiceInfo, + props: true, + meta: { + breadcrumb: [ + { name: 'service-list', trad: 'services' }, + { name: 'service-info', param: 'name' } + ] + } } ] diff --git a/app/src/views/Home.vue b/app/src/views/Home.vue index ffa2257a..2e34eb8c 100644 --- a/app/src/views/Home.vue +++ b/app/src/views/Home.vue @@ -24,7 +24,7 @@ export default { { id: 1, routeName: 'domain-list', icon: 'globe', translation: 'domains' }, { id: 2, routeName: 'apps', icon: 'cubes', translation: 'applications' }, { id: 3, routeName: 'update', icon: 'refresh', translation: 'system_update' }, - { id: 4, routeName: 'services', icon: 'cog', translation: 'services' }, + { id: 4, routeName: 'service-list', icon: 'cog', translation: 'services' }, { id: 5, routeName: 'tools', icon: 'wrench', translation: 'tools' }, { id: 6, routeName: 'diagnosis', icon: 'stethoscope', translation: 'diagnosis' }, { id: 7, routeName: 'backup', icon: 'archive', translation: 'backup' } diff --git a/app/src/views/domain/DomainAdd.vue b/app/src/views/domain/DomainAdd.vue index c2e581da..6291129a 100644 --- a/app/src/views/domain/DomainAdd.vue +++ b/app/src/views/domain/DomainAdd.vue @@ -72,7 +72,7 @@ import BasicForm from '@/components/BasicForm' import AdressInputSelect from '@/components/AdressInputSelect' export default { - name: 'GroupCreate', + name: 'DomainAdd', data () { return { diff --git a/app/src/views/service/ServiceInfo.vue b/app/src/views/service/ServiceInfo.vue new file mode 100644 index 00000000..f605d101 --- /dev/null +++ b/app/src/views/service/ServiceInfo.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/app/src/views/service/ServiceList.vue b/app/src/views/service/ServiceList.vue new file mode 100644 index 00000000..21900143 --- /dev/null +++ b/app/src/views/service/ServiceList.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/app/src/views/service/index.js b/app/src/views/service/index.js new file mode 100644 index 00000000..2516b018 --- /dev/null +++ b/app/src/views/service/index.js @@ -0,0 +1,2 @@ +export { default as ServiceList } from './ServiceList' +export { default as ServiceInfo } from './ServiceInfo'