From a7a98ca15780af36d475f70087595862d9477716 Mon Sep 17 00:00:00 2001 From: Axolotle Date: Thu, 6 Aug 2020 17:39:02 +0200 Subject: [PATCH] add DomainCert view --- app/src/locales/en.json | 3 + app/src/routes.js | 15 ++- app/src/views/domain/DomainCert.vue | 185 ++++++++++++++++++++++++++++ app/src/views/domain/DomainInfo.vue | 2 +- app/src/views/domain/index.js | 1 + 5 files changed, 204 insertions(+), 2 deletions(-) create mode 100644 app/src/views/domain/DomainCert.vue diff --git a/app/src/locales/en.json b/app/src/locales/en.json index 40450b80..eb1dcce1 100644 --- a/app/src/locales/en.json +++ b/app/src/locales/en.json @@ -231,6 +231,9 @@ "groupname": "My group name", "domain": "my-domain.com" }, + "pluralized": { + "day_validity": " Expired | 1 day | {count} days" + }, "logs": "Logs", "logs_operation": "Operations made on system with YunoHost", "logs_history": "History of command run on system", diff --git a/app/src/routes.js b/app/src/routes.js index 964bb557..6bcc92db 100644 --- a/app/src/routes.js +++ b/app/src/routes.js @@ -2,7 +2,7 @@ import Home from './views/Home' import Login from './views/Login' import { UserList, UserCreate, UserInfo, UserEdit } from './views/user' import { GroupList, GroupCreate } from './views/group' -import { DomainList, DomainAdd, DomainInfo, DomainDns } from './views/domain' +import { DomainList, DomainAdd, DomainInfo, DomainDns, DomainCert } from './views/domain' const routes = [ { name: 'home', path: '/', component: Home }, @@ -129,6 +129,19 @@ const routes = [ { name: 'domain-dns', trad: 'dns' } ] } + }, + { + name: 'domain-cert', + path: '/domains/:name/cert-management', + component: DomainCert, + props: true, + meta: { + breadcrumb: [ + { name: 'domain-list', trad: 'domains' }, + { name: 'domain-info', param: 'name' }, + { name: 'domain-cert', trad: 'certificate' } + ] + } } ] diff --git a/app/src/views/domain/DomainCert.vue b/app/src/views/domain/DomainCert.vue new file mode 100644 index 00000000..8bb152de --- /dev/null +++ b/app/src/views/domain/DomainCert.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/app/src/views/domain/DomainInfo.vue b/app/src/views/domain/DomainInfo.vue index 3ed09b94..e83dec45 100644 --- a/app/src/views/domain/DomainInfo.vue +++ b/app/src/views/domain/DomainInfo.vue @@ -34,7 +34,7 @@

{{ $t('certificate_manage') }}

- + {{ $t('ssl_certificate') }}
diff --git a/app/src/views/domain/index.js b/app/src/views/domain/index.js index 16de9143..f9ef28ec 100644 --- a/app/src/views/domain/index.js +++ b/app/src/views/domain/index.js @@ -2,3 +2,4 @@ export { default as DomainList } from './DomainList' export { default as DomainAdd } from './DomainAdd' export { default as DomainInfo } from './DomainInfo' export { default as DomainDns } from './DomainDns' +export { default as DomainCert } from './DomainCert'