From e7bc5a900e7ac4ade963c67de6f2db2c38099bcf Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sat, 14 Oct 2023 16:01:15 +0530 Subject: [PATCH] feat: contact page --- frontend/src/components/Icons/EditIcon.vue | 16 ++ frontend/src/pages/Contact.vue | 57 +++++++ frontend/src/pages/Contacts.vue | 175 +++++++-------------- frontend/src/router.js | 8 + 4 files changed, 140 insertions(+), 116 deletions(-) create mode 100644 frontend/src/components/Icons/EditIcon.vue create mode 100644 frontend/src/pages/Contact.vue diff --git a/frontend/src/components/Icons/EditIcon.vue b/frontend/src/components/Icons/EditIcon.vue new file mode 100644 index 00000000..8edb183b --- /dev/null +++ b/frontend/src/components/Icons/EditIcon.vue @@ -0,0 +1,16 @@ + diff --git a/frontend/src/pages/Contact.vue b/frontend/src/pages/Contact.vue new file mode 100644 index 00000000..2d9a4ba9 --- /dev/null +++ b/frontend/src/pages/Contact.vue @@ -0,0 +1,57 @@ + + + diff --git a/frontend/src/pages/Contacts.vue b/frontend/src/pages/Contacts.vue index 8d454617..8b2b61b6 100644 --- a/frontend/src/pages/Contacts.vue +++ b/frontend/src/pages/Contacts.vue @@ -9,136 +9,79 @@ -
-
- - - +
+
+ +
+ +
+ + {{ contact.full_name }} + + {{ contact.email_id }} +
+
+
-
- - -
- diff --git a/frontend/src/router.js b/frontend/src/router.js index 44da837f..28b5d0d5 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -38,6 +38,14 @@ const routes = [ path: '/contacts', name: 'Contacts', component: () => import('@/pages/Contacts.vue'), + children: [ + { + path: '/contacts/:contactId?', + name: 'Contact', + component: () => import('@/pages/Contact.vue'), + props: true, + }, + ], }, { path: '/call-logs',