From bbf60fb3804680ac663059d4e79102889bbbbc03 Mon Sep 17 00:00:00 2001 From: Nyavokevin <42602932+nyavokevin@users.noreply.github.com> Date: Fri, 7 Nov 2025 16:51:09 +0300 Subject: [PATCH] thanato --- thanas | 426 ++----------- thanasoft | 187 ++---- .../Api/ThanatopractitionerController.php | 2 +- thanasoft-front/src/App.vue | 7 +- .../ThanatopractitionerDetailContent.vue | 80 +++ .../ThanatopractitionerDetailPresentation.vue | 167 +++++ .../ThanatopractitionerDetailSidebar.vue | 75 +++ .../ThanatopractitionerPresentation.vue | 48 +- .../ThanatopractitionerDetailContent.vue | 231 +++++++ .../ThanatopractitionerDetailSidebar.vue | 147 +++++ .../ThanatopractitionerTable.vue | 52 +- .../src/components/molecules/thanat | 205 ++++++ .../src/components/molecules/thanatopract | 76 +++ .../ThanatopractitionerActivityTab.vue | 31 + .../ThanatopractitionerAgendaTab.vue | 31 + .../ThanatopractitionerDocumentsTab.vue | 51 ++ .../ThanatopractitionerInfoTab.vue | 188 ++++++ .../ThanatopractitionerNotesTab.vue | 51 ++ .../ThanatopractitionerOverview.vue | 242 +++++++ .../ThanatopractitionerProfileCard.vue | 146 +++++ .../ThanatopractitionerTabNavigation.vue | 65 ++ .../templates/CRM/ThanatopractitionerDetail | 0 .../CRM/ThanatopractitionerDetailTemplate.vue | 20 + .../CRM/ThanatopractitionerTemplate.vue | 49 +- .../Thanato/ThanatopractitionerTemplate.vue | 20 + .../src/examples/BotMessageConfigurator.vue | 600 ++++++++++++++++++ thanasoft-front/src/examples/Footer.vue | 62 +- .../src/examples/Navbars/Navbar.vue | 13 +- thanasoft-front/src/router/index.js | 16 +- .../src/services/thanatopractitioner.ts | 8 + .../src/stores/thanatopractitionerStore.ts | 570 +++++++++-------- .../ThanatopractitionerDetails.vue | 89 +++ .../Thanatopractitioners.vue | 122 ++-- 33 files changed, 3063 insertions(+), 1014 deletions(-) create mode 100644 thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailContent.vue create mode 100644 thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailPresentation.vue create mode 100644 thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailSidebar.vue create mode 100644 thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue create mode 100644 thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailSidebar.vue create mode 100644 thanasoft-front/src/components/molecules/thanat create mode 100644 thanasoft-front/src/components/molecules/thanatopract create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerActivityTab.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerAgendaTab.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerDocumentsTab.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerInfoTab.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerNotesTab.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerOverview.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerProfileCard.vue create mode 100644 thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerTabNavigation.vue create mode 100644 thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetail create mode 100644 thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetailTemplate.vue create mode 100644 thanasoft-front/src/components/templates/Thanato/ThanatopractitionerTemplate.vue create mode 100644 thanasoft-front/src/examples/BotMessageConfigurator.vue create mode 100644 thanasoft-front/src/views/pages/Thanatopractitioners/ThanatopractitionerDetails.vue diff --git a/thanas b/thanas index eab35fa..7f9a406 100644 --- a/thanas +++ b/thanas @@ -1,370 +1,70 @@ -import { defineStore } from "pinia"; -import { ref, computed } from "vue"; -import EmployeeService from "@/services/employee"; + + diff --git a/thanasoft b/thanasoft index 9693b75..95489d3 100644 --- a/thanasoft +++ b/thanasoft @@ -1,141 +1,60 @@ - - diff --git a/thanasoft-back/app/Http/Controllers/Api/ThanatopractitionerController.php b/thanasoft-back/app/Http/Controllers/Api/ThanatopractitionerController.php index 2b6f8ef..2d06d98 100644 --- a/thanasoft-back/app/Http/Controllers/Api/ThanatopractitionerController.php +++ b/thanasoft-back/app/Http/Controllers/Api/ThanatopractitionerController.php @@ -206,7 +206,7 @@ class ThanatopractitionerController extends Controller public function show(string $id): ThanatopractitionerResource|JsonResponse { try { - $thanatopractitioner = $this->thanatopractitionerRepository->find($id); + $thanatopractitioner = $this->thanatopractitionerRepository->findById((int) $id); if (!$thanatopractitioner) { return response()->json([ diff --git a/thanasoft-front/src/App.vue b/thanasoft-front/src/App.vue index 26dc096..bc47f10 100644 --- a/thanasoft-front/src/App.vue +++ b/thanasoft-front/src/App.vue @@ -26,7 +26,8 @@ /> - @@ -35,7 +36,7 @@ diff --git a/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailPresentation.vue b/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailPresentation.vue new file mode 100644 index 0000000..3473e25 --- /dev/null +++ b/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailPresentation.vue @@ -0,0 +1,167 @@ + + + diff --git a/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailSidebar.vue b/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailSidebar.vue new file mode 100644 index 0000000..0358aad --- /dev/null +++ b/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailSidebar.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerPresentation.vue b/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerPresentation.vue index a3de91f..55dc242 100644 --- a/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerPresentation.vue +++ b/thanasoft-front/src/components/Organism/Thanatopractitioner/ThanatopractitionerPresentation.vue @@ -1,7 +1,7 @@ - - - diff --git a/thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue b/thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue new file mode 100644 index 0000000..a110e4f --- /dev/null +++ b/thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue @@ -0,0 +1,231 @@ + + + diff --git a/thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailSidebar.vue b/thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailSidebar.vue new file mode 100644 index 0000000..6f8627a --- /dev/null +++ b/thanasoft-front/src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailSidebar.vue @@ -0,0 +1,147 @@ + + + diff --git a/thanasoft-front/src/components/molecules/Thanatopractitioners/ThanatopractitionerTable.vue b/thanasoft-front/src/components/molecules/Thanatopractitioners/ThanatopractitionerTable.vue index e63cfc6..9c9aefa 100644 --- a/thanasoft-front/src/components/molecules/Thanatopractitioners/ThanatopractitionerTable.vue +++ b/thanasoft-front/src/components/molecules/Thanatopractitioners/ThanatopractitionerTable.vue @@ -115,13 +115,6 @@
-
{{ thanatopractitioner.employee?.full_name || @@ -273,7 +266,7 @@ >
Affichage de {{ pagination.from }} à {{ pagination.to }} sur - {{ pagination.total }} thanatopractitioners + {{ pagination.total }} thanatopracteurs
@@ -325,9 +318,9 @@
-
Aucun thanatopractitioner trouvé
+
Aucun thanatopracteur trouvé

- Aucun thanatopractitioner à afficher pour le moment. + Aucun thanatopracteur à afficher pour le moment.

@@ -378,12 +371,6 @@ const props = defineProps({ }, }); -// Methods -const getRandomAvatar = () => { - const randomIndex = Math.floor(Math.random() * avatarImages.length); - return avatarImages[randomIndex]; -}; - const formatDate = (dateString) => { if (!dateString) return "N/A"; const date = new Date(dateString); @@ -399,23 +386,16 @@ const isAuthorizationValid = (expiryDate) => { // Direct button handlers const handleView = (thanatopractitionerId) => { - console.log("Direct view button clicked for ID:", thanatopractitionerId); emit("view", thanatopractitionerId); }; const handleDelete = (thanatopractitionerId) => { - console.log("Direct delete button clicked for ID:", thanatopractitionerId); emit("delete", thanatopractitionerId); }; // Pagination methods const changePage = (page) => { - console.log("changePage called in ThanatopractitionerTable with page:", page); if (page >= 1 && page <= props.pagination.last_page) { - console.log( - "Emitting changePage event from ThanatopractitionerTable:", - page - ); emit("changePage", page); } }; @@ -458,32 +438,6 @@ const getVisiblePages = () => { return pages; }; - -// Watch for data changes -watch( - () => props.data, - () => { - if (!props.loading) { - console.log("ThanatopractitionerTable: Data changed"); - } - }, - { deep: true } -); - -onUnmounted(() => { - // Clean up any event listeners if needed -}); - -// Initialize data -onMounted(() => { - if (!props.loading && props.data.length > 0) { - console.log( - "ThanatopractitionerTable: Component mounted with", - props.data.length, - "thanatopractitioners" - ); - } -}); diff --git a/thanasoft-front/src/components/molecules/thanatopract b/thanasoft-front/src/components/molecules/thanatopract new file mode 100644 index 0000000..64e1d23 --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopract @@ -0,0 +1,76 @@ + + + \ No newline at end of file diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerActivityTab.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerActivityTab.vue new file mode 100644 index 0000000..8be322e --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerActivityTab.vue @@ -0,0 +1,31 @@ + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerAgendaTab.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerAgendaTab.vue new file mode 100644 index 0000000..873a4f6 --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerAgendaTab.vue @@ -0,0 +1,31 @@ + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerDocumentsTab.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerDocumentsTab.vue new file mode 100644 index 0000000..7117279 --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerDocumentsTab.vue @@ -0,0 +1,51 @@ + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerInfoTab.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerInfoTab.vue new file mode 100644 index 0000000..f3a3226 --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerInfoTab.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerNotesTab.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerNotesTab.vue new file mode 100644 index 0000000..c51e259 --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerNotesTab.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerOverview.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerOverview.vue new file mode 100644 index 0000000..17b008b --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerOverview.vue @@ -0,0 +1,242 @@ + + + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerProfileCard.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerProfileCard.vue new file mode 100644 index 0000000..c5037ab --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerProfileCard.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerTabNavigation.vue b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerTabNavigation.vue new file mode 100644 index 0000000..cd8b17e --- /dev/null +++ b/thanasoft-front/src/components/molecules/thanatopractitioner/ThanatopractitionerTabNavigation.vue @@ -0,0 +1,65 @@ + + + diff --git a/thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetail b/thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetail new file mode 100644 index 0000000..e69de29 diff --git a/thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetailTemplate.vue b/thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetailTemplate.vue new file mode 100644 index 0000000..8d5109c --- /dev/null +++ b/thanasoft-front/src/components/templates/CRM/ThanatopractitionerDetailTemplate.vue @@ -0,0 +1,20 @@ + + + diff --git a/thanasoft-front/src/components/templates/CRM/ThanatopractitionerTemplate.vue b/thanasoft-front/src/components/templates/CRM/ThanatopractitionerTemplate.vue index f6c0a28..f2b5196 100644 --- a/thanasoft-front/src/components/templates/CRM/ThanatopractitionerTemplate.vue +++ b/thanasoft-front/src/components/templates/CRM/ThanatopractitionerTemplate.vue @@ -1,24 +1,45 @@ - + diff --git a/thanasoft-front/src/components/templates/Thanato/ThanatopractitionerTemplate.vue b/thanasoft-front/src/components/templates/Thanato/ThanatopractitionerTemplate.vue new file mode 100644 index 0000000..8d5109c --- /dev/null +++ b/thanasoft-front/src/components/templates/Thanato/ThanatopractitionerTemplate.vue @@ -0,0 +1,20 @@ + + + diff --git a/thanasoft-front/src/examples/BotMessageConfigurator.vue b/thanasoft-front/src/examples/BotMessageConfigurator.vue new file mode 100644 index 0000000..b4014c4 --- /dev/null +++ b/thanasoft-front/src/examples/BotMessageConfigurator.vue @@ -0,0 +1,600 @@ + + + + + diff --git a/thanasoft-front/src/examples/Footer.vue b/thanasoft-front/src/examples/Footer.vue index c5bb2ee..9649d74 100644 --- a/thanasoft-front/src/examples/Footer.vue +++ b/thanasoft-front/src/examples/Footer.vue @@ -1,65 +1,5 @@ diff --git a/thanasoft-front/src/views/pages/Thanatopractitioners/Thanatopractitioners.vue b/thanasoft-front/src/views/pages/Thanatopractitioners/Thanatopractitioners.vue index a593e69..4f15404 100644 --- a/thanasoft-front/src/views/pages/Thanatopractitioners/Thanatopractitioners.vue +++ b/thanasoft-front/src/views/pages/Thanatopractitioners/Thanatopractitioners.vue @@ -1,8 +1,8 @@