From 5b2ef99b7c2a0dc3a6dd63249fa74c9a8f26ca00 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Sat, 27 Jun 2020 16:42:04 +0200 Subject: [PATCH] :sparkles: : add create credentials page --- .../pages/credentials/credentials-list.vue | 83 ++++------------ .../pages/credentials/credentials-routes.js | 10 ++ .../app/pages/credentials/credentials.vue | 95 ++++++------------- .../app/pages/credentials/new-credentials.vue | 66 +++++++++++++ .../client/app/shared/components/index.js | 1 + .../components/providers/provider-header.vue | 66 +++++++++++++ 6 files changed, 192 insertions(+), 129 deletions(-) create mode 100644 src/main/client/app/pages/credentials/new-credentials.vue create mode 100644 src/main/client/app/shared/components/providers/provider-header.vue diff --git a/src/main/client/app/pages/credentials/credentials-list.vue b/src/main/client/app/pages/credentials/credentials-list.vue index 9e4b25fc0..aeddb9c78 100644 --- a/src/main/client/app/pages/credentials/credentials-list.vue +++ b/src/main/client/app/pages/credentials/credentials-list.vue @@ -14,31 +14,21 @@ v-for="credentials in credentialsList" :key="credentials.id" :title="credentials.name" - style="max-width: 20rem;" - :header-class="credentials.provider" > - - - + @@ -47,9 +37,15 @@ diff --git a/src/main/client/app/pages/credentials/credentials-routes.js b/src/main/client/app/pages/credentials/credentials-routes.js index 7274aab51..ff84f6d62 100644 --- a/src/main/client/app/pages/credentials/credentials-routes.js +++ b/src/main/client/app/pages/credentials/credentials-routes.js @@ -9,6 +9,16 @@ const credentialsRoutes = [ title: 'Gaia - Credentials', }, }, + { + path: '/credentials/new', + name: 'new_credentials', + component: () => import(/* webpackChunkName: "chunk-credentials" */ '@/pages/credentials/new-credentials'), + meta: { + authorities: ['ROLE_USER'], + breadcrumb: [{ text: 'Credentials', to: { name: 'credentialsList' } }, { text: 'New Credentials' }], + title: 'Gaia - New credentials edition', + }, + }, { path: '/credentials/:credentialsId', name: 'credentials', diff --git a/src/main/client/app/pages/credentials/credentials.vue b/src/main/client/app/pages/credentials/credentials.vue index 4dadc025d..5466e85c6 100644 --- a/src/main/client/app/pages/credentials/credentials.vue +++ b/src/main/client/app/pages/credentials/credentials.vue @@ -2,24 +2,13 @@
Credentials : {{ credentials.name }} - - Save - +
+ + diff --git a/src/main/client/app/shared/components/index.js b/src/main/client/app/shared/components/index.js index 6ba9217ab..9a20f3f68 100644 --- a/src/main/client/app/shared/components/index.js +++ b/src/main/client/app/shared/components/index.js @@ -8,3 +8,4 @@ export { default as AppFormTypeahead } from '@/shared/components/typeahead/form- export { default as AppMarkdown } from '@/shared/components/markdown/markdown.vue'; export { default as AppConsole } from '@/shared/components/console/console.vue'; export { default as AppProviderLogo } from '@/shared/components/providers/provider-logo.vue'; +export { default as AppProviderHeader } from '@/shared/components/providers/provider-header.vue'; diff --git a/src/main/client/app/shared/components/providers/provider-header.vue b/src/main/client/app/shared/components/providers/provider-header.vue new file mode 100644 index 000000000..4b310f4cf --- /dev/null +++ b/src/main/client/app/shared/components/providers/provider-header.vue @@ -0,0 +1,66 @@ + + + + +