From c71877cdb1a35db8c7861b72acf5fb15bfe2d429 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 4 Jun 2024 12:23:28 -0300 Subject: [PATCH 1/5] Account connections --- src/pages/Account/AccountAliasList.vue | 106 --------------- src/pages/Account/AccountConnections.vue | 112 ++++++++++++++++ src/pages/Account/Alias/AliasCreateForm.vue | 57 -------- .../Account/Alias/Card/AliasBasicData.vue | 36 ------ src/pages/Account/Alias/Card/AliasCard.vue | 32 ----- .../Account/Alias/Card/AliasDescriptor.vue | 93 ------------- src/pages/Account/Alias/Card/AliasSummary.vue | 49 ------- src/pages/Account/Alias/Card/AliasUsers.vue | 122 ------------------ src/pages/Account/locale/en.yml | 16 +-- src/pages/Account/locale/es.yml | 16 +-- src/router/modules/account.js | 12 +- src/router/modules/index.js | 2 - src/router/modules/mailAlias.js | 57 -------- src/router/routes.js | 2 - 14 files changed, 128 insertions(+), 584 deletions(-) delete mode 100644 src/pages/Account/AccountAliasList.vue create mode 100644 src/pages/Account/AccountConnections.vue delete mode 100644 src/pages/Account/Alias/AliasCreateForm.vue delete mode 100644 src/pages/Account/Alias/Card/AliasBasicData.vue delete mode 100644 src/pages/Account/Alias/Card/AliasCard.vue delete mode 100644 src/pages/Account/Alias/Card/AliasDescriptor.vue delete mode 100644 src/pages/Account/Alias/Card/AliasSummary.vue delete mode 100644 src/pages/Account/Alias/Card/AliasUsers.vue delete mode 100644 src/router/modules/mailAlias.js diff --git a/src/pages/Account/AccountAliasList.vue b/src/pages/Account/AccountAliasList.vue deleted file mode 100644 index 896804484..000000000 --- a/src/pages/Account/AccountAliasList.vue +++ /dev/null @@ -1,106 +0,0 @@ - - - diff --git a/src/pages/Account/AccountConnections.vue b/src/pages/Account/AccountConnections.vue new file mode 100644 index 000000000..931c925ce --- /dev/null +++ b/src/pages/Account/AccountConnections.vue @@ -0,0 +1,112 @@ + + + + + +es: + Session killed: Sesión matada + Session will be killed: Se va a matar la sesión + Are you sure you want to continue?: ¿Seguro que quieres continuar? + diff --git a/src/pages/Account/Alias/AliasCreateForm.vue b/src/pages/Account/Alias/AliasCreateForm.vue deleted file mode 100644 index d4d61a804..000000000 --- a/src/pages/Account/Alias/AliasCreateForm.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - es: - Create alias: Crear alias - diff --git a/src/pages/Account/Alias/Card/AliasBasicData.vue b/src/pages/Account/Alias/Card/AliasBasicData.vue deleted file mode 100644 index 5d8062739..000000000 --- a/src/pages/Account/Alias/Card/AliasBasicData.vue +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/src/pages/Account/Alias/Card/AliasCard.vue b/src/pages/Account/Alias/Card/AliasCard.vue deleted file mode 100644 index 8b6c9c3cf..000000000 --- a/src/pages/Account/Alias/Card/AliasCard.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - diff --git a/src/pages/Account/Alias/Card/AliasDescriptor.vue b/src/pages/Account/Alias/Card/AliasDescriptor.vue deleted file mode 100644 index bc174aa0e..000000000 --- a/src/pages/Account/Alias/Card/AliasDescriptor.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - en: - accountRate: Claming rate - es: - accountRate: Ratio de reclamación - Delete: Eliminar - Alias will be removed: El alias será eliminado - Are you sure you want to continue?: ¿Seguro que quieres continuar? - Alias removed: Alias eliminado - diff --git a/src/pages/Account/Alias/Card/AliasSummary.vue b/src/pages/Account/Alias/Card/AliasSummary.vue deleted file mode 100644 index cedae28b7..000000000 --- a/src/pages/Account/Alias/Card/AliasSummary.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/pages/Account/Alias/Card/AliasUsers.vue b/src/pages/Account/Alias/Card/AliasUsers.vue deleted file mode 100644 index 4a9c449e4..000000000 --- a/src/pages/Account/Alias/Card/AliasUsers.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - - - -es: - User will be removed from alias: El usuario será borrado del alias - Are you sure you want to continue?: ¿Seguro que quieres continuar? - User removed: Usuario borrado - Delete: Eliminar - diff --git a/src/pages/Account/locale/en.yml b/src/pages/Account/locale/en.yml index d90b3a383..aabe41ad8 100644 --- a/src/pages/Account/locale/en.yml +++ b/src/pages/Account/locale/en.yml @@ -41,17 +41,6 @@ role: description: Description id: Id name: Name -mailAlias: - pageTitles: - aliasUsers: Users - search: Search mail alias - searchInfo: Search alias by id or name - alias: Alias - description: Description - id: Id - newAlias: New alias - name: Name - isPublic: Public ldap: enableSync: Enable synchronization server: Server @@ -73,3 +62,8 @@ samba: verifyCertificate: Verify certificate testConnection: Test connection success: Samba connection established! +connections: + refresh: Refresh + username: Username + created: Created + killSession: Kill session diff --git a/src/pages/Account/locale/es.yml b/src/pages/Account/locale/es.yml index e0a6cf29f..9018a34c4 100644 --- a/src/pages/Account/locale/es.yml +++ b/src/pages/Account/locale/es.yml @@ -52,17 +52,6 @@ role: description: Descripción id: Idd name: Nombre -mailAlias: - pageTitles: - aliasUsers: Usuarios - search: Buscar alias de correo - searchInfo: Buscar alias por id o nombre - alias: Alias - description: Descripción - id: Id - newAlias: Nuevo alias - name: Nombre - isPublic: Público ldap: enableSync: Habilitar sincronización server: Servidor @@ -83,3 +72,8 @@ samba: Verify certificate: Verificar certificado testConnection: Probar conexión success: ¡Conexión con Samba establecida! +connections: + refresh: Actualizar + username: Nombre de usuario + created: Creado + killSession: Matar sesión diff --git a/src/router/modules/account.js b/src/router/modules/account.js index e13215afc..b78e1a191 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: ['AccountList', 'AccountAliasList'], + main: ['AccountList', 'AccountConnections'], card: [], }, children: [ @@ -31,13 +31,13 @@ export default { component: () => import('src/pages/Account/AccountList.vue'), }, { - path: 'alias-list', - name: 'AccountAliasList', + path: 'connections', + name: 'AccountConnections', meta: { - title: 'alias', - icon: 'email', + title: 'connections', + icon: 'check', }, - component: () => import('src/pages/Account/AccountAliasList.vue'), + component: () => import('src/pages/Account/AccountConnections.vue'), }, ], }, diff --git a/src/router/modules/index.js b/src/router/modules/index.js index d69098a58..ca60c78d8 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -13,7 +13,6 @@ import Travel from './travel'; import Order from './order'; import Department from './department'; import Role from './role'; -import mailAlias from './mailAlias'; import Entry from './entry'; import roadmap from './roadmap'; import Parking from './parking'; @@ -39,7 +38,6 @@ export default [ invoiceIn, Department, Role, - mailAlias, Entry, roadmap, Parking, diff --git a/src/router/modules/mailAlias.js b/src/router/modules/mailAlias.js deleted file mode 100644 index 8e0f8abdc..000000000 --- a/src/router/modules/mailAlias.js +++ /dev/null @@ -1,57 +0,0 @@ -import { RouterView } from 'vue-router'; - -export default { - path: 'account/alias', - name: 'Alias', - meta: { - title: 'alias', - icon: 'email', - moduleName: 'Alias', - }, - component: RouterView, - redirect: { name: 'AccountAliasList' }, - menus: { - main: [], - card: ['AliasBasicData', 'AliasUsers'], - }, - children: [ - { - name: 'AliasCard', - path: ':id', - component: () => import('src/pages/Account/Alias/Card/AliasCard.vue'), - redirect: { name: 'AliasSummary' }, - children: [ - { - name: 'AliasSummary', - path: 'summary', - meta: { - title: 'summary', - icon: 'launch', - }, - component: () => - import('src/pages/Account/Alias/Card/AliasSummary.vue'), - }, - { - name: 'AliasBasicData', - path: 'basic-data', - meta: { - title: 'basicData', - icon: 'vn:settings', - }, - component: () => - import('src/pages/Account/Alias/Card/AliasBasicData.vue'), - }, - { - name: 'AliasUsers', - path: 'users', - meta: { - title: 'aliasUsers', - icon: 'group', - }, - component: () => - import('src/pages/Account/Alias/Card/AliasUsers.vue'), - }, - ], - }, - ], -}; diff --git a/src/router/routes.js b/src/router/routes.js index 9d3dc8710..60cc24a75 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -11,7 +11,6 @@ import route from './modules/route'; import travel from './modules/travel'; import department from './modules/department'; import role from './modules/role'; -import mailAlias from './modules/mailAlias'; import ItemType from './modules/itemType'; import shelving from 'src/router/modules/shelving'; import order from 'src/router/modules/order'; @@ -77,7 +76,6 @@ const routes = [ travel, department, role, - mailAlias, roadmap, entry, parking, From f3ec9ea58d854e36d00f6d7193a7ca90bb672272 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 6 Jun 2024 08:03:57 +0200 Subject: [PATCH 2/5] fix: VnPaginate order --- src/pages/Account/AccountConnections.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/Account/AccountConnections.vue b/src/pages/Account/AccountConnections.vue index 931c925ce..4acdb597f 100644 --- a/src/pages/Account/AccountConnections.vue +++ b/src/pages/Account/AccountConnections.vue @@ -54,6 +54,7 @@ const killSession = async (id) => { ref="paginateRef" :filter="filter" :url="urlPath" + order="created DESC" auto-load > From a26401d8eb0551908e550944337917f0d09e9dc3 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 6 Jun 2024 23:51:45 +0200 Subject: [PATCH 4/5] feat: hide ID --- src/components/ui/CardList.vue | 2 +- src/pages/Account/AccountConnections.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ui/CardList.vue b/src/components/ui/CardList.vue index e8392b13e..c9b062457 100644 --- a/src/components/ui/CardList.vue +++ b/src/components/ui/CardList.vue @@ -28,7 +28,7 @@ const toggleCardCheck = (item) => {
{{ $props.title }}
- + {{ t('ID') }}: {{ $props.id }} diff --git a/src/pages/Account/AccountConnections.vue b/src/pages/Account/AccountConnections.vue index f248685ae..83e089f25 100644 --- a/src/pages/Account/AccountConnections.vue +++ b/src/pages/Account/AccountConnections.vue @@ -60,7 +60,6 @@ const killSession = async (id) => {