From 2cae2168ace441908a586e01deef3e0036c51a71 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 21 May 2024 08:52:19 +0200 Subject: [PATCH] perf: AccountCard, BasicData, summary --- src/pages/Account/AccountList.vue | 41 +---- src/pages/Account/Card/AccountBasicData.vue | 164 +++----------------- src/pages/Account/Role/AccountRoles.vue | 50 ++---- src/pages/Account/locale/en.yml | 11 +- src/pages/Account/locale/es.yml | 8 + src/router/modules/account.js | 47 ++---- 6 files changed, 64 insertions(+), 257 deletions(-) diff --git a/src/pages/Account/AccountList.vue b/src/pages/Account/AccountList.vue index 933f62b6c..56d54a47d 100644 --- a/src/pages/Account/AccountList.vue +++ b/src/pages/Account/AccountList.vue @@ -21,17 +21,9 @@ const filter = { include: { relation: 'role', scope: { fields: ['id', 'name'] } }, }; -const STATE_COLOR = { - pending: 'warning', - managed: 'info', - resolved: 'positive', -}; function getApiUrl() { return new URL(window.location).origin; } -function stateColor(code) { - return STATE_COLOR[code]; -} function navigate(event, id) { if (event.ctrlKey || event.metaKey) return window.open(`${getApiUrl()}/#/account/${id}/summary`); @@ -86,37 +78,12 @@ function navigate(event, id) { v-for="row of rows" >