From f305cee3ce7d96fc6597cbf8a5f6b186b0d741a2 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 6 Jun 2024 14:07:40 -0300 Subject: [PATCH 1/9] Account view forms --- src/pages/Account/AccountAccounts.vue | 111 ++++++++++++++++ src/pages/Account/AccountLdap.vue | 167 +++++++++++++++++++++++ src/pages/Account/AccountSamba.vue | 182 ++++++++++++++++++++++++++ src/pages/Account/locale/en.yml | 10 ++ src/pages/Account/locale/es.yml | 10 ++ src/router/modules/account.js | 5 +- 6 files changed, 484 insertions(+), 1 deletion(-) create mode 100644 src/pages/Account/AccountAccounts.vue create mode 100644 src/pages/Account/AccountLdap.vue create mode 100644 src/pages/Account/AccountSamba.vue diff --git a/src/pages/Account/AccountAccounts.vue b/src/pages/Account/AccountAccounts.vue new file mode 100644 index 000000000..236790f8d --- /dev/null +++ b/src/pages/Account/AccountAccounts.vue @@ -0,0 +1,111 @@ + + + + + +es: + Roles synchronized!: ¡Roles sincronizados! + Synchronizing in the background: Sincronizando en segundo plano + diff --git a/src/pages/Account/AccountLdap.vue b/src/pages/Account/AccountLdap.vue new file mode 100644 index 000000000..13356cee3 --- /dev/null +++ b/src/pages/Account/AccountLdap.vue @@ -0,0 +1,167 @@ + + + + + +es: + LDAP connection established!: ¡Conexión con LDAP establecida! + diff --git a/src/pages/Account/AccountSamba.vue b/src/pages/Account/AccountSamba.vue new file mode 100644 index 000000000..0a6bd2e10 --- /dev/null +++ b/src/pages/Account/AccountSamba.vue @@ -0,0 +1,182 @@ + + + + + +es: + Samba connection established!: ¡Conexión con LDAP establecida! + diff --git a/src/pages/Account/locale/en.yml b/src/pages/Account/locale/en.yml index 0a511888b..83b98b528 100644 --- a/src/pages/Account/locale/en.yml +++ b/src/pages/Account/locale/en.yml @@ -65,3 +65,13 @@ samba: verifyCertificate: Verify certificate testConnection: Test connection success: Samba connection established! +accounts: + homedir: Homedir base + shell: Shell + idBase: User and role base id + min: Min + max: Max + warn: Warn + inact: Inact + syncAll: Synchronize all + syncRoles: Synchronize roles diff --git a/src/pages/Account/locale/es.yml b/src/pages/Account/locale/es.yml index f339f71ca..ff572b2cc 100644 --- a/src/pages/Account/locale/es.yml +++ b/src/pages/Account/locale/es.yml @@ -76,3 +76,13 @@ samba: Verify certificate: Verificar certificado testConnection: Probar conexión success: ¡Conexión con Samba establecida! +accounts: + homedir: Directorio base para carpetas de usuario + shell: Intérprete de línea de comandos + idBase: Id base usuarios y roles + min: Min + max: Max + warn: Warn + inact: Inact + syncAll: Sincronizar todo + syncRoles: Sincronizar roles diff --git a/src/router/modules/account.js b/src/router/modules/account.js index 4bcf33d85..8020f0865 100644 --- a/src/router/modules/account.js +++ b/src/router/modules/account.js @@ -11,7 +11,7 @@ export default { component: RouterView, redirect: { name: 'AccountMain' }, menus: { - main: ['AccountRoles'], + main: ['AccountRoles', 'AccountAccounts', 'AccountLdap', 'AccountSamba'], card: [], }, children: [ @@ -54,6 +54,7 @@ export default { meta: { title: 'accounts', icon: 'accessibility', + roles: ['itManagement'], }, component: () => import('src/pages/Account/AccountAccounts.vue'), }, @@ -63,6 +64,7 @@ export default { meta: { title: 'ldap', icon: 'account_tree', + roles: ['itManagement'], }, component: () => import('src/pages/Account/AccountLdap.vue'), }, @@ -72,6 +74,7 @@ export default { meta: { title: 'samba', icon: 'preview', + roles: ['itManagement'], }, component: () => import('src/pages/Account/AccountSamba.vue'), }, From 17924dfeb376077886a883af5fc7a272e9cd5b9d Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 6 Jun 2024 23:39:38 +0200 Subject: [PATCH 2/9] fix: styles and i18n --- src/pages/Account/AccountAccounts.vue | 5 +---- src/pages/Account/AccountLdap.vue | 14 ++++++-------- src/pages/Account/AccountSamba.vue | 14 ++++++-------- src/pages/Account/locale/en.yml | 1 + src/pages/Account/locale/es.yml | 3 ++- 5 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/pages/Account/AccountAccounts.vue b/src/pages/Account/AccountAccounts.vue index 236790f8d..ebca1c3db 100644 --- a/src/pages/Account/AccountAccounts.vue +++ b/src/pages/Account/AccountAccounts.vue @@ -42,15 +42,12 @@ const onSynchronizeRoles = async () => { >