New-Thanasoft/thanasoft-front/lint_output.txt

2727 lines
95 KiB
Plaintext

> vue-soft-ui-dashboard-pro@3.0.0 lint
> vue-cli-service lint
[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: `npm i baseline-browser-mapping@latest -D`
warning: Prop 'msg' requires default value to be set (vue/require-default-prop) at src/components/HelloWorld.vue:87:5:
85 | name: "HelloWorld",
86 | props: {
> 87 | msg: String,
| ^
88 | },
89 | });
90 | </script>
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:758:5:
756 | productSearchResults.value = products;
757 | } catch (e) {
> 758 | console.error("Failed to load products", e);
| ^
759 | }
760 | });
761 |
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:786:7:
784 | );
785 | } catch (e) {
> 786 | console.error(e);
| ^
787 | }
788 | }, 300);
789 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:827:7:
825 | );
826 | } catch (e) {
> 827 | console.error(e);
| ^
828 | }
829 | }, 300);
830 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:845:5:
843 | recentClients.value = clients;
844 | } catch (e) {
> 845 | console.error("Failed to load recent clients", e);
| ^
846 | recentClients.value = [];
847 | }
848 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:893:7:
891 | productSearchResults.value = products;
892 | } catch (e) {
> 893 | console.error(e);
| ^
894 | productSearchResults.value = [];
895 | }
896 | }, 250);
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:947:7:
945 | locationSearchResults.value = response.data;
946 | } catch (e) {
> 947 | console.error(e);
| ^
948 | }
949 | }, 300);
950 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/InterventionMultiStepModal.vue:1119:5:
1117 | emit("submit", formData);
1118 | } catch (e) {
> 1119 | console.error(e);
| ^
1120 | globalErrors.value.push("Erreur lors de la préparation du formulaire.");
1121 | } finally {
1122 | submitting.value = false;
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/WizardSteps/StepDeceased.vue:280:7:
278 | showResults.value = true;
279 | } catch (e) {
> 280 | console.error("Search failed", e);
| ^
281 | } finally {
282 | isSearching.value = false;
283 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/WizardSteps/StepLocation.vue:286:7:
284 | showResults.value = true;
285 | } catch (e) {
> 286 | console.error("Location search failed", e);
| ^
287 | } finally {
288 | isSearching.value = false;
289 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Agenda/WizardSteps/StepProductSelection.vue:185:5:
183 | searchResults.value = allProducts.value;
184 | } catch (e) {
> 185 | console.error("Failed to load products", e);
| ^
186 | } finally {
187 | loading.value = false;
188 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Avoir/AvoirDetailPresentation.vue:312:5:
310 | await avoirStore.fetchAvoir(props.avoirId);
311 | } catch (err) {
> 312 | console.error("Error fetching avoir:", err);
| ^
313 | }
314 | });
315 | </script>
warning: Unexpected console statement (no-console) at src/components/Organism/Avoir/AvoirListPresentation.vue:120:5:
118 | await avoirStore.fetchAvoirs();
119 | } catch (err) {
> 120 | console.error("Failed to fetch avoirs:", err);
| ^
121 | }
122 | });
123 | </script>
warning: Unexpected console statement (no-console) at src/components/Organism/Avoir/NewAvoirPresentation.vue:68:5:
66 | router.push("/avoirs");
67 | } catch (err) {
> 68 | console.error("Error creating avoir:", err);
| ^
69 | notificationStore.error("Erreur", "Erreur lors de la création de l'avoir");
70 | }
71 | };
warning: Unexpected console statement (no-console) at src/components/Organism/CRM/EmployeeDetailPresentation.vue:158:7:
156 | reader.onload = (e) => {
157 | localAvatar.value = e.target.result;
> 158 | console.log("Upload avatar to server");
| ^
159 | };
160 | reader.readAsDataURL(file);
161 | }
warning: Unexpected console statement (no-console) at src/components/Organism/CRM/FournisseurDetailPresentation.vue:197:7:
195 | localAvatar.value = e.target.result;
196 | // TODO: Upload to server
> 197 | console.log("Upload avatar to server");
| ^
198 | };
199 | reader.readAsDataURL(file);
200 | }
warning: Unexpected console statement (no-console) at src/components/Organism/CRM/contact/AddContactPresentation.vue:42:5:
40 | () => props.searchResults,
41 | (newResult, oldResult) => {
> 42 | console.log(newResult);
| ^
43 | }
44 | );
45 | </script>
warning: The "edit-avatar" event has been triggered but not declared on `emits` option (vue/require-explicit-emits) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:3:58:
1 | <template>
2 | <aside class="product-sidebar">
> 3 | <div class="product-sidebar__img-wrap" @click="$emit('edit-avatar')">
| ^
4 | <img
5 | v-if="avatarUrl"
6 | :src="avatarUrl"
warning: The "change-tab" event has been triggered but not declared on `emits` option (vue/require-explicit-emits) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:60:23:
58 | class="product-sidebar__nav-item"
59 | :class="{ 'is-active': activeTab === tab.id }"
> 60 | @click="$emit('change-tab', tab.id)"
| ^
61 | >
62 | <component :is="tab.icon" class="nav-icon" />
63 | {{ tab.label }}
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:117:38:
115 | defineEmits(["edit-avatar", "change-tab"]);
116 |
> 117 | const IconOverview = defineComponent({
| ^
118 | render: () =>
119 | h(
120 | "svg",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:134:34:
132 | });
133 |
> 134 | const IconInfo = defineComponent({
| ^
135 | render: () =>
136 | h(
137 | "svg",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:151:38:
149 | });
150 |
> 151 | const IconDocument = defineComponent({
| ^
152 | render: () =>
153 | h(
154 | "svg",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:171:42:
169 | });
170 |
> 171 | const IconPractitioner = defineComponent({
| ^
172 | render: () =>
173 | h(
174 | "svg",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/CRM/employee/EmployeeDetailSidebar.vue:188:38:
186 | });
187 |
> 188 | const IconActivity = defineComponent({
| ^
189 | render: () =>
190 | h(
191 | "svg",
warning: Unexpected console statement (no-console) at src/components/Organism/ClientGroup/ClientGroupDetailPresentation.vue:134:5:
132 | } catch (e) {
133 | error.value = "Impossible de charger le groupe.";
> 134 | console.error(e);
| ^
135 | } finally {
136 | loading.value = false;
137 | }
warning: Unexpected console statement (no-console) at src/components/Organism/ClientGroup/ClientGroupFormPresentation.vue:62:7:
60 | router.push("/clients/groups");
61 | } catch (navigationError) {
> 62 | console.error(navigationError);
| ^
63 | }
64 | }
65 | });
warning: Unexpected console statement (no-console) at src/components/Organism/Commande/CommandeDetailPresentation.vue:402:5:
400 | };
401 | } catch (err) {
> 402 | console.error("Error fetching commande:", err);
| ^
403 | error.value = "Impossible de charger les détails de la commande.";
404 | notificationStore.error("Erreur", error.value);
405 | } finally {
warning: Unexpected console statement (no-console) at src/components/Organism/Commande/CommandeDetailPresentation.vue:439:5:
437 | );
438 | } catch (err) {
> 439 | console.error("Error updating status:", err);
| ^
440 | const backendMessage =
441 | err?.response?.data?.error ||
442 | err?.response?.data?.message ||
warning: Unexpected console statement (no-console) at src/components/Organism/Commande/CommandeListPresentation.vue:115:5:
113 | await purchaseOrderStore.fetchPurchaseOrders();
114 | } catch (err) {
> 115 | console.error("Failed to fetch purchase orders:", err);
| ^
116 | }
117 | });
118 | </script>
warning: Unexpected console statement (no-console) at src/components/Organism/Employee/EmployeePresentation.vue:63:3:
61 |
62 | const deleteEmployee = (employeeId) => {
> 63 | console.log(
| ^
64 | "deleteEmployee called in EmployeePresentation with ID:",
65 | employeeId
66 | );
warning: Unexpected console statement (no-console) at src/components/Organism/Employee/EmployeePresentation.vue:71:3:
69 |
70 | const handleChangePage = (page) => {
> 71 | console.log(
| ^
72 | "handleChangePage called in EmployeePresentation with page:",
73 | page
74 | );
warning: Unexpected console statement (no-console) at src/components/Organism/Employee/EmployeePresentation.vue:76:5:
74 | );
75 | if (page >= 1 && page <= (props.pagination?.last_page || 1)) {
> 76 | console.log("Emitting changePage event from EmployeePresentation:", page);
| ^
77 | emit("changePage", page);
78 | }
79 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Employee/VehicleDetailPresentation.vue:422:7:
420 | );
421 | } catch (error) {
> 422 | console.error("Error searching employees:", error);
| ^
423 | employeeResults.value = [];
424 | } finally {
425 | employeeLoading.value = false;
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/InterventionDetailPresentation.vue:768:3:
766 | // ── Document handlers ──
767 | const handleFilesSelected = (files) =>
> 768 | console.log("Files selected:", files.length);
| ^
769 | const loadDocumentAttachments = async () => {
770 | if (!props.intervention?.id) return;
771 | try {
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:535:3:
533 | const handleFilesSelected = (files) => {
534 | // Files have been selected, parent can handle validation if needed
> 535 | console.log("Files selected:", files.length);
| ^
536 | };
537 |
538 | const handleUploadFiles = async (files) => {
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:549:5:
547 | emit("refresh-intervention");
548 | } catch (error) {
> 549 | console.error("Error uploading files:", error);
| ^
550 | documentStore.clearError();
551 | }
552 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:559:5:
557 | emit("refresh-intervention");
558 | } catch (error) {
> 559 | console.error("Error deleting document:", error);
| ^
560 | documentStore.clearError();
561 | }
562 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:569:5:
567 | emit("refresh-intervention");
568 | } catch (error) {
> 569 | console.error("Error deleting documents:", error);
| ^
570 | documentStore.clearError();
571 | }
572 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:579:5:
577 | emit("refresh-intervention");
578 | } catch (error) {
> 579 | console.error("Error updating document label:", error);
| ^
580 | documentStore.clearError();
581 | }
582 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:590:5:
588 | await documentStore.fetchInterventionFiles(props.intervention.id);
589 | } catch (error) {
> 590 | console.error("Error loading document attachments:", error);
| ^
591 | documentStore.clearError();
592 | }
593 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:602:3:
600 | const handleError = (errorMessage) => {
601 | // Show error notification
> 602 | console.error("Document management error:", errorMessage);
| ^
603 | emit("show-error", errorMessage);
604 | };
605 |
warning: Unexpected console statement (no-console) at src/components/Organism/Interventions/intervention/InterventionDetailContent.vue:632:5:
630 | emit("refresh-intervention");
631 | } catch (error) {
> 632 | console.error("Error unassigning practitioner:", error);
| ^
633 | // You might want to show a toast notification here
634 | }
635 | };
warning: 'v-html' directive can lead to XSS attack (vue/no-v-html) at src/components/Organism/Interventions/intervention/InterventionDetailSidebar.vue:129:32:
127 | @click="$emit('change-tab', tab.id)"
128 | >
> 129 | <span class="tab-icon" v-html="tab.icon"></span>
| ^
130 | <span class="tab-label">{{ tab.label }}</span>
131 | <span v-if="tab.id === 'team' && teamCount > 0" class="tab-badge">{{
132 | teamCount
warning: Unexpected console statement (no-console) at src/components/Organism/Invoice/InvoiceDetailPresentation.vue:208:5:
206 | } catch (e) {
207 | error.value = "Impossible de charger la facture.";
> 208 | console.error(e);
| ^
209 | } finally {
210 | loading.value = false;
211 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Invoice/InvoiceDetailPresentation.vue:312:7:
310 | })
311 | .catch((e) => {
> 312 | console.error(e);
| ^
313 | notificationStore.error(
314 | "Erreur",
315 | "Impossible de mettre à jour le statut",
warning: Unexpected console statement (no-console) at src/components/Organism/Location/LocationManager.vue:253:3:
251 | const handleLocationEdit = (location) => {
252 | // Implementation for editing existing location
> 253 | console.log("Edit location:", location);
| ^
254 | };
255 |
256 | const closeCreateModal = () => {
warning: Unexpected console statement (no-console) at src/components/Organism/Quote/QuoteCreationPresentation.vue:436:5:
434 | router.push("/ventes/devis");
435 | } catch (error) {
> 436 | console.error(error);
| ^
437 | alert("Erreur lors de la création du devis");
438 | } finally {
439 | loading.value = false;
warning: Unexpected console statement (no-console) at src/components/Organism/Quote/QuoteDetailPresentation.vue:210:5:
208 | } catch (e) {
209 | error.value = "Impossible de charger le devis.";
> 210 | console.error(e);
| ^
211 | } finally {
212 | loading.value = false;
213 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Quote/QuoteDetailPresentation.vue:309:5:
307 | notificationStore.success("Export PDF", "Le devis a ete telecharge.", 3000);
308 | } catch (e) {
> 309 | console.error(e);
| ^
310 | notificationStore.error(
311 | "Erreur",
312 | "Impossible d'exporter le devis en PDF",
warning: Unexpected console statement (no-console) at src/components/Organism/Quote/QuoteDetailPresentation.vue:337:7:
335 | })
336 | .catch((e) => {
> 337 | console.error(e);
| ^
338 | const message =
339 | e?.response?.data?.message ||
340 | e?.response?.data?.error ||
warning: Unexpected console statement (no-console) at src/components/Organism/Quote/QuoteListPresentation.vue:34:3:
32 |
33 | const handleView = (id) => {
> 34 | console.log("handleView called with id:", id);
| ^
35 | router.push(`/ventes/devis/${id}`);
36 | };
37 |
warning: Unexpected console statement (no-console) at src/components/Organism/Quote/QuoteListPresentation.vue:39:3:
37 |
38 | const handleEdit = (id) => {
> 39 | console.log("Edit quote", id);
| ^
40 | };
41 |
42 | const handleDelete = async (id) => {
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/GoodsReceiptListPresentation.vue:95:7:
93 | await receiptStore.deleteReceipt(id);
94 | } catch (error) {
> 95 | console.error("Failed to delete goods receipt", error);
| ^
96 | }
97 | }
98 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/NewReceptionPresentation.vue:59:5:
57 | router.push("/stock/receptions");
58 | } catch (error) {
> 59 | console.error("Failed to create goods receipt", error);
| ^
60 | }
61 | };
62 |
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/NewReceptionPresentation.vue:68:5:
66 | purchaseOrders.value = purchaseOrderStore.purchaseOrders;
67 | } catch (error) {
> 68 | console.error("Failed to load purchase orders", error);
| ^
69 | }
70 | });
71 | </script>
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/ProductCategoryPresentation.vue:119:5:
117 | notificationStore.created("Catégorie de produit");
118 | } catch (error) {
> 119 | console.error("Error creating category:", error);
| ^
120 | if (error.response && error.response.data) {
121 | notificationStore.error(
122 | "Erreur",
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/ProductCategoryPresentation.vue:142:5:
140 | notificationStore.updated("Catégorie de produit");
141 | } catch (error) {
> 142 | console.error("Error updating category:", error);
| ^
143 | if (error.response && error.response.data) {
144 | notificationStore.error(
145 | "Erreur",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/Stock/ProductDetailsPresentation.vue:419:34:
417 | // Replace with your icon library's components as needed
418 | import { defineComponent, h } from "vue";
> 419 | const IconInfo = defineComponent({
| ^
420 | render: () =>
421 | h(
422 | "svg",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/Stock/ProductDetailsPresentation.vue:435:33:
433 | ),
434 | });
> 435 | const IconBox = defineComponent({
| ^
436 | render: () =>
437 | h(
438 | "svg",
warning: There is more than one component in this file (vue/one-component-per-file) at src/components/Organism/Stock/ProductDetailsPresentation.vue:451:34:
449 | ),
450 | });
> 451 | const IconMove = defineComponent({
| ^
452 | render: () =>
453 | h(
454 | "svg",
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/ProductPresentation.vue:55:3:
53 |
54 | const goToDetails = (product) => {
> 55 | console.log(product);
| ^
56 | router.push({
57 | name: "Product details",
58 | params: {
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/ReceptionDetailPresentation.vue:276:5:
274 | await goodsReceiptStore.fetchGoodsReceipt(parseInt(route.params.id));
275 | } catch (e) {
> 276 | console.error("Failed to update receipt status", e);
| ^
277 | } finally {
278 | if (requestId === receiptStatusRequestId) {
279 | isUpdatingStatus.value = false;
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/ReceptionDetailPresentation.vue:312:5:
310 | router.push("/stock/receptions");
311 | } catch (e) {
> 312 | console.error("Failed to delete goods receipt", e);
| ^
313 | }
314 | };
315 |
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/WarehouseDetailPresentation.vue:504:5:
502 | } catch (e) {
503 | error.value = "Impossible de charger les informations de l'entrepôt.";
> 504 | console.error(e);
| ^
505 | } finally {
506 | loading.value = false;
507 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/WarehouseDetailPresentation.vue:534:5:
532 | await loadWarehouseData();
533 | } catch (e) {
> 534 | console.error("Failed to update warehouse", e);
| ^
535 | error.value =
536 | e?.response?.data?.message ||
537 | "Erreur lors de la mise à jour de l'entrepôt.";
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/WarehouseDetailPresentation.vue:582:5:
580 | router.push("/stock/warehouses");
581 | } catch (e) {
> 582 | console.error("Failed to delete warehouse", e);
| ^
583 | error.value =
584 | e?.response?.data?.message || "Erreur lors de la suppression.";
585 | } finally {
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/WarehouseFormPresentation.vue:70:7:
68 | } catch (e) {
69 | error.value = "Impossible de charger les données de l'entrepôt.";
> 70 | console.error(e);
| ^
71 | }
72 | }
73 | });
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/WarehouseFormPresentation.vue:90:5:
88 | e.message ||
89 | "Une erreur est survenue lors de l'enregistrement.";
> 90 | console.error(e);
| ^
91 | } finally {
92 | submitting.value = false;
93 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Stock/WarehouseListPresentation.vue:57:7:
55 | await warehouseStore.deleteWarehouse(id);
56 | } catch (error) {
> 57 | console.error("Failed to delete warehouse", error);
| ^
58 | }
59 | }
60 | };
warning: Unexpected console statement (no-console) at src/components/Organism/Thanatopractitioner/ThanatopractitionerDetailPresentation.vue:124:7:
122 | localAvatar.value = e.target.result;
123 | // TODO: Upload to server
> 124 | console.log("Upload avatar to server");
| ^
125 | };
126 | reader.readAsDataURL(file);
127 | }
warning: Unexpected console statement (no-console) at src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue:219:3:
217 | const openDocumentModal = () => {
218 | // TODO: Implement document upload modal
> 219 | console.log("Open document upload modal");
| ^
220 | };
221 |
222 | const viewDocument = (document) => {
warning: Unexpected console statement (no-console) at src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue:224:3:
222 | const viewDocument = (document) => {
223 | // TODO: Implement document view functionality
> 224 | console.log("View document", document);
| ^
225 | };
226 |
227 | const deleteDocument = (document) => {
warning: Unexpected console statement (no-console) at src/components/Organism/Thanatopractitioner/thanatopractitioner/ThanatopractitionerDetailContent.vue:229:3:
227 | const deleteDocument = (document) => {
228 | // TODO: Implement document deletion
> 229 | console.log("Delete document", document);
| ^
230 | };
231 | </script>
232 |
warning: Unexpected console statement (no-console) at src/components/atoms/Interventions/CardInterventions.vue:115:5:
113 | router.push({ name: "Intervention details", params: { id: props.id } });
114 | } else {
> 115 | console.warn("Cannot navigate to details: intervention ID is missing");
| ^
116 | }
117 | };
118 | </script>
warning: Unexpected console statement (no-console) at src/components/atoms/input/ModalSearch.vue:225:5:
223 | results.value = searchResults || [];
224 | } catch (error) {
> 225 | console.error("Search error:", error);
| ^
226 | results.value = [];
227 | } finally {
228 | isLoading.value = false;
warning: Unexpected console statement (no-console) at src/components/atoms/input/SearchInput.vue:140:3:
138 |
139 | const result = item[props.itemLabel];
> 140 | console.log("SearchInput: Property label result:", result);
| ^
141 | return result;
142 | };
143 |
error: 'defineProps' is not defined (no-undef) at src/components/molecules/Agenda/ClientStep.vue:93:15:
91 | import { computed } from "vue";
92 |
> 93 | const props = defineProps({
| ^
94 | modelValue: {
95 | type: Object,
96 | required: true,
error: 'defineEmits' is not defined (no-undef) at src/components/molecules/Agenda/ClientStep.vue:104:14:
102 | });
103 |
> 104 | const emit = defineEmits(["update:modelValue"]);
| ^
105 |
106 | const localValue = computed({
107 | get() {
error: 'defineProps' is not defined (no-undef) at src/components/molecules/Agenda/DeceasedStep.vue:92:15:
90 | import { computed } from "vue";
91 |
> 92 | const props = defineProps({
| ^
93 | modelValue: {
94 | type: Object,
95 | required: true,
error: 'defineEmits' is not defined (no-undef) at src/components/molecules/Agenda/DeceasedStep.vue:103:14:
101 | });
102 |
> 103 | const emit = defineEmits(["update:modelValue"]);
| ^
104 |
105 | const localValue = computed({
106 | get() {
error: 'defineProps' is not defined (no-undef) at src/components/molecules/Agenda/DocumentsStep.vue:89:15:
87 |
88 | <script setup>
> 89 | const props = defineProps({
| ^
90 | files: {
91 | type: Array,
92 | default: () => [],
error: 'defineEmits' is not defined (no-undef) at src/components/molecules/Agenda/DocumentsStep.vue:100:14:
98 | });
99 |
> 100 | const emit = defineEmits(["upload", "remove"]);
| ^
101 |
102 | const onFileChange = (event, type) => {
103 | const files = event.target.files;
error: 'defineProps' is not defined (no-undef) at src/components/molecules/Agenda/InterventionStep.vue:110:15:
108 | import { computed } from "vue";
109 |
> 110 | const props = defineProps({
| ^
111 | modelValue: {
112 | type: Object,
113 | required: true,
error: 'defineEmits' is not defined (no-undef) at src/components/molecules/Agenda/InterventionStep.vue:129:14:
127 | });
128 |
> 129 | const emit = defineEmits(["update:modelValue"]);
| ^
130 |
131 | const localValue = computed({
132 | get() {
error: 'defineProps' is not defined (no-undef) at src/components/molecules/Agenda/LocationStep.vue:74:15:
72 | import { computed } from "vue";
73 |
> 74 | const props = defineProps({
| ^
75 | modelValue: {
76 | type: Object,
77 | required: true,
error: 'defineEmits' is not defined (no-undef) at src/components/molecules/Agenda/LocationStep.vue:85:14:
83 | });
84 |
> 85 | const emit = defineEmits(["update:modelValue"]);
| ^
86 |
87 | const localValue = computed({
88 | get() {
warning: Unexpected console statement (no-console) at src/components/molecules/Avoir/NewAvoirForm.vue:325:7:
323 | );
324 | } catch (error) {
> 325 | console.error("Error searching invoices:", error);
| ^
326 | } finally {
327 | isSearchingInvoices.value = false;
328 | }
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntDetailContent.vue:526:3:
524 | const handleFilesSelected = (files) => {
525 | // Files have been selected, parent can handle validation if needed
> 526 | console.log("Files selected:", files.length);
| ^
527 | };
528 |
529 | const handleUploadFiles = async (files) => {
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntDetailContent.vue:540:5:
538 | emit("refresh-deceased");
539 | } catch (error) {
> 540 | console.error("Error uploading files:", error);
| ^
541 | documentStore.clearError();
542 | }
543 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntDetailContent.vue:550:5:
548 | emit("refresh-deceased");
549 | } catch (error) {
> 550 | console.error("Error deleting document:", error);
| ^
551 | documentStore.clearError();
552 | }
553 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntDetailContent.vue:560:5:
558 | emit("refresh-deceased");
559 | } catch (error) {
> 560 | console.error("Error deleting documents:", error);
| ^
561 | documentStore.clearError();
562 | }
563 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntDetailContent.vue:570:5:
568 | emit("refresh-deceased");
569 | } catch (error) {
> 570 | console.error("Error updating document label:", error);
| ^
571 | documentStore.clearError();
572 | }
573 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntDetailContent.vue:581:5:
579 | await documentStore.fetchDeceasedFiles(props.deceased.id);
580 | } catch (error) {
> 581 | console.error("Error loading document attachments:", error);
| ^
582 | documentStore.clearError();
583 | }
584 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntForm.vue:254:3:
252 | }
253 |
> 254 | console.log("Defunt form data being emitted:", cleanedForm);
| ^
255 |
256 | // Emit the cleaned form data to parent
257 | emit("createDefunt", cleanedForm);
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntsList.vue:160:5:
158 | }, 2000);
159 | } catch (error) {
> 160 | console.error("Error creating intervention:", error);
| ^
161 |
162 | // Handle validation errors from Laravel
163 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntsList.vue:210:7:
208 | switch (action) {
209 | case "edit":
> 210 | console.log("Modifier le défunt:", defunt);
| ^
211 | // Ouvrir modal d'édition
212 | break;
213 | case "view":
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntsList.vue:221:7:
219 | break;
220 | case "delete":
> 221 | console.log("Supprimer le défunt:", defunt);
| ^
222 | // Confirmer la suppression
223 | if (
224 | confirm(
warning: Unexpected console statement (no-console) at src/components/molecules/Defunts/DefuntsList.vue:245:5:
243 | ]);
244 | } catch (error) {
> 245 | console.error("Error loading data:", error);
| ^
246 | notificationStore.error(
247 | "Erreur",
248 | "Impossible de charger les données nécessaires"
warning: Unexpected console statement (no-console) at src/components/molecules/Employees/EmployeeTable.vue:367:3:
365 | // Direct button handlers
366 | const handleView = (employeeId) => {
> 367 | console.log("Direct view button clicked for ID:", employeeId);
| ^
368 | emit("view", employeeId);
369 | };
370 |
warning: Unexpected console statement (no-console) at src/components/molecules/Employees/EmployeeTable.vue:372:3:
370 |
371 | const handleDelete = (employeeId) => {
> 372 | console.log("Direct delete button clicked for ID:", employeeId);
| ^
373 | emit("delete", employeeId);
374 | };
375 |
warning: Unexpected console statement (no-console) at src/components/molecules/Employees/EmployeeTable.vue:378:3:
376 | // Pagination methods
377 | const changePage = (page) => {
> 378 | console.log("changePage called in EmployeeTable with page:", page);
| ^
379 | if (page >= 1 && page <= props.pagination.last_page) {
380 | console.log("Emitting changePage event from EmployeeTable:", page);
381 | emit("changePage", page);
warning: Unexpected console statement (no-console) at src/components/molecules/Employees/EmployeeTable.vue:380:5:
378 | console.log("changePage called in EmployeeTable with page:", page);
379 | if (page >= 1 && page <= props.pagination.last_page) {
> 380 | console.log("Emitting changePage event from EmployeeTable:", page);
| ^
381 | emit("changePage", page);
382 | }
383 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Employees/EmployeeTable.vue:479:7:
477 | () => {
478 | if (!props.loading) {
> 479 | console.log("EmployeeTable: Data changed");
| ^
480 | }
481 | },
482 | { deep: true }
warning: Unexpected console statement (no-console) at src/components/molecules/Employees/EmployeeTable.vue:499:5:
497 | onMounted(() => {
498 | if (!props.loading && props.data.length > 0) {
> 499 | console.log(
| ^
500 | "EmployeeTable: Component mounted with",
501 | props.data.length,
502 | "employees"
warning: Unexpected console statement (no-console) at src/components/molecules/Interventions/InterventionForm.vue:294:3:
292 | // Handle client search event
293 | const handleSearch = (query) => {
> 294 | console.log("Searching for client:", query);
| ^
295 | };
296 |
297 | // Handle client select event
warning: Unexpected console statement (no-console) at src/components/molecules/Interventions/InterventionForm.vue:299:3:
297 | // Handle client select event
298 | const handleSelect = (item) => {
> 299 | console.log("Selected client:", item);
| ^
300 | // Call the parent callback for client selection if provided
301 | if (props.onClientSelect) {
302 | props.onClientSelect(item);
warning: Unexpected console statement (no-console) at src/components/molecules/Interventions/InterventionForm.vue:312:3:
310 | // Handle deceased search event
311 | const handleSearchDeceased = (query) => {
> 312 | console.log("Searching for deceased:", query);
| ^
313 | };
314 |
315 | const getDeceasedFullName = (deceased) => {
warning: Unexpected console statement (no-console) at src/components/molecules/Interventions/InterventionForm.vue:322:3:
320 | // Handle deceased select event
321 | const handleSelectDeceased = (item) => {
> 322 | console.log("Selected deceased:", item);
| ^
323 | // Call the parent callback for deceased selection if provided
324 | if (props.onDeceasedSelect) {
325 | props.onDeceasedSelect(item);
warning: Unexpected console statement (no-console) at src/components/molecules/Interventions/InterventionForm.vue:456:3:
454 | }
455 |
> 456 | console.log("Intervention form data being emitted:", cleanedForm);
| ^
457 |
458 | // Emit the cleaned form data to parent
459 | emit("createIntervention", cleanedForm);
warning: Unexpected console statement (no-console) at src/components/molecules/Quote/ProductLineItem.vue:142:7:
140 | try {
141 | const results = await productStore.searchProducts(query);
> 142 | console.log("Search results:", results);
| ^
143 | if (Array.isArray(results)) {
144 | searchResults.value = results;
145 | showResults.value = true;
warning: Unexpected console statement (no-console) at src/components/molecules/Quote/ProductLineItem.vue:155:7:
153 | }
154 | } catch (e) {
> 155 | console.error("Search error:", e);
| ^
156 | }
157 | }, 300);
158 | };
warning: Unexpected console statement (no-console) at src/components/molecules/Stock/NewReceptionForm.vue:671:7:
669 | warehouseSearchResults.value = results.filter((w) => w && w.id);
670 | } catch (e) {
> 671 | console.error(e);
| ^
672 | } finally {
673 | isSearchingWarehouses.value = false;
674 | }
warning: Unexpected console statement (no-console) at src/components/molecules/Stock/NewReceptionForm.vue:722:7:
720 | productSearchResults.value = results.filter((p) => p && p.id);
721 | } catch (e) {
> 722 | console.error(e);
| ^
723 | } finally {
724 | isSearchingProducts.value = false;
725 | }
warning: Unexpected console statement (no-console) at src/components/molecules/Stock/NewReceptionForm.vue:756:5:
754 | }
755 | } catch (e) {
> 756 | console.error(e);
| ^
757 | }
758 | };
759 |
warning: Unexpected console statement (no-console) at src/components/molecules/Stock/NewReceptionForm.vue:855:5:
853 | }));
854 | } catch (e) {
> 855 | console.error(e);
| ^
856 | }
857 | };
858 |
warning: Unexpected console statement (no-console) at src/components/molecules/Stock/ProductCategoryModal.vue:334:5:
332 | closeModal();
333 | } catch (error) {
> 334 | console.error("Erreur lors de la sauvegarde de la catégorie:", error);
| ^
335 |
336 | // Handle API errors
337 | if (error.response && error.response.data && error.response.data.errors) {
warning: Unexpected console statement (no-console) at src/components/molecules/Tables/Avoirs/AvoirTable.vue:236:11:
234 | if (id && action) {
235 | if (action === "view") {
> 236 | console.log("Delegated View click for id:", id);
| ^
237 | emit("view", parseInt(id));
238 | } else if (action === "delete") {
239 | console.log("Delegated Delete click for id:", id);
warning: Unexpected console statement (no-console) at src/components/molecules/Tables/Avoirs/AvoirTable.vue:239:11:
237 | emit("view", parseInt(id));
238 | } else if (action === "delete") {
> 239 | console.log("Delegated Delete click for id:", id);
| ^
240 | emit("delete", parseInt(id));
241 | }
242 | }
warning: Unexpected console statement (no-console) at src/components/molecules/Tables/Fournisseurs/CommandeTable.vue:238:11:
236 | if (id && action) {
237 | if (action === "view") {
> 238 | console.log("View commande:", id);
| ^
239 | emit("view", parseInt(id));
240 | } else if (action === "delete") {
241 | console.log("Delete commande:", id);
warning: Unexpected console statement (no-console) at src/components/molecules/Tables/Fournisseurs/CommandeTable.vue:241:11:
239 | emit("view", parseInt(id));
240 | } else if (action === "delete") {
> 241 | console.log("Delete commande:", id);
| ^
242 | emit("delete", parseInt(id));
243 | }
244 | }
warning: Unexpected console statement (no-console) at src/components/molecules/Tables/Ventes/QuoteTable.vue:254:11:
252 | if (id && action) {
253 | if (action === "view") {
> 254 | console.log("Delegated View click for id:", id);
| ^
255 | emit("view", parseInt(id));
256 | } else if (action === "delete") {
257 | console.log("Delegated Delete click for id:", id);
warning: Unexpected console statement (no-console) at src/components/molecules/Tables/Ventes/QuoteTable.vue:257:11:
255 | emit("view", parseInt(id));
256 | } else if (action === "delete") {
> 257 | console.log("Delegated Delete click for id:", id);
| ^
258 | emit("delete", parseInt(id));
259 | }
260 | }
warning: Unexpected console statement (no-console) at src/components/molecules/auth/LoginForm.vue:110:5:
108 | router.push("/dashboards/dashboard-default");
109 | } catch (error: any) {
> 110 | console.error("Login error:", error);
| ^
111 | errorMessage.value =
112 | error.response?.data?.message ||
113 | error.message ||
warning: Unexpected console statement (no-console) at src/components/molecules/client/ClientChildrenTab.vue:132:5:
130 | children.value = res.data || res; // handle potential array vs response structure
131 | } catch (e) {
> 132 | console.error("Failed to fetch children", e);
| ^
133 | } finally {
134 | loading.value = false;
135 | }
warning: Unexpected console statement (no-console) at src/components/molecules/client/ClientInfoTab.vue:613:5:
611 | emit("client-updated", prepareFormData());
612 | } catch (error) {
> 613 | console.error("Erreur lors de la mise à jour:", error);
| ^
614 | if (error.response && error.response.data && error.response.data.errors) {
615 | Object.assign(errors, error.response.data.errors);
616 | } else {
warning: Unexpected console statement (no-console) at src/components/molecules/client/ClientSearchInput.vue:111:7:
109 | results.value = res.filter((c) => !props.excludeIds.includes(c.id));
110 | } catch (e) {
> 111 | console.error(e);
| ^
112 | results.value = [];
113 | } finally {
114 | loading.value = false;
warning: Unexpected console statement (no-console) at src/components/molecules/contact/ContactModal.vue:344:5:
342 | closeModal();
343 | } catch (error) {
> 344 | console.error("Erreur lors de la création du contact:", error);
| ^
345 |
346 | // Handle API errors
347 | if (error.response && error.response.data && error.response.data.errors) {
warning: Unexpected console statement (no-console) at src/components/molecules/employee/EmployeeDocumentsTab.vue:341:5:
339 | closeModal();
340 | } catch (error) {
> 341 | console.error("Error saving document:", error);
| ^
342 | documentErrors.general =
343 | "Une erreur est survenue lors de l'enregistrement.";
344 | } finally {
warning: Unexpected console statement (no-console) at src/components/molecules/employee/EmployeeDocumentsTab.vue:366:3:
364 | const downloadDocument = (document) => {
365 | // TODO: Implement document download
> 366 | console.log("Downloading document:", document);
| ^
367 | // This would typically involve a file download API call
368 | };
369 |
warning: Unexpected console statement (no-console) at src/components/molecules/employee/EmployeeInfoTab.vue:282:5:
280 | emit("employee-updated", submitData);
281 | } catch (error) {
> 282 | console.error("Error updating employee:", error);
| ^
283 | if (error.response && error.response.status === 422) {
284 | // Handle validation errors
285 | Object.assign(errors, error.response.data.errors || {});
warning: Unexpected console statement (no-console) at src/components/molecules/form/NewClientForm.vue:368:3:
366 | }
367 |
> 368 | console.log("Form data being emitted:", cleanedForm);
| ^
369 |
370 | // Emit the cleaned form data to parent
371 | emit("createClient", cleanedForm);
warning: Unexpected console statement (no-console) at src/components/molecules/form/NewConvoyForm.vue:316:7:
314 | deceasedResults.value = results || [];
315 | } catch (error) {
> 316 | console.error("Error searching deceased:", error);
| ^
317 | deceasedResults.value = [];
318 | } finally {
319 | deceasedLoading.value = false;
warning: Unexpected console statement (no-console) at src/components/molecules/form/NewConvoyForm.vue:361:7:
359 | locationResults.value = response.data || [];
360 | } catch (error) {
> 361 | console.error("Error searching locations:", error);
| ^
362 | locationResults.value = [];
363 | } finally {
364 | locationLoading.value = false;
warning: Unexpected console statement (no-console) at src/components/molecules/form/NewEmployeeForm.vue:256:3:
254 | }
255 |
> 256 | console.log("Form data being emitted:", cleanedForm);
| ^
257 |
258 | // Emit the cleaned form data to parent
259 | emit("createEmployee", cleanedForm);
warning: Unexpected console statement (no-console) at src/components/molecules/form/NewFournisseurForm.vue:337:3:
335 | cleanedForm.is_active = Boolean(formData.is_active);
336 |
> 337 | console.log("Form data being emitted:", cleanedForm);
| ^
338 |
339 | // Emit the cleaned form data to parent
340 | emit("createFournisseur", cleanedForm);
warning: Unexpected console statement (no-console) at src/components/molecules/form/NewVehicleForm.vue:322:7:
320 | employeeResults.value = results;
321 | } catch (error) {
> 322 | console.error("Error searching employees:", error);
| ^
323 | employeeResults.value = [];
324 | } finally {
325 | employeeLoading.value = false;
warning: Unexpected console statement (no-console) at src/components/molecules/fournisseur/FournisseurContactModal.vue:344:5:
342 | closeModal();
343 | } catch (error) {
> 344 | console.error("Erreur lors de la création du contact:", error);
| ^
345 |
346 | // Handle API errors
347 | if (error.response && error.response.data && error.response.data.errors) {
warning: Unexpected console statement (no-console) at src/components/molecules/fournisseur/FournisseurContactsTab.vue:218:7:
216 | emit("contact-removed", contactId);
217 | } catch (error) {
> 218 | console.error("Error deleting contact:", error);
| ^
219 | // You might want to show an error notification here
220 | }
221 | }
warning: Unexpected console statement (no-console) at src/components/molecules/fournisseur/FournisseurInfoTab.vue:488:5:
486 | emit("fournisseur-updated", cleanedData);
487 | } catch (error) {
> 488 | console.error("Erreur lors de la mise à jour:", error);
| ^
489 | if (error.response && error.response.data && error.response.data.errors) {
490 | Object.assign(errors, error.response.data.errors);
491 | } else {
warning: 'v-html' directive can lead to XSS attack (vue/no-v-html) at src/components/molecules/intervention/InterventionTabNavigation.vue:10:30:
8 | @click="$emit('change-tab', tab.id)"
9 | >
> 10 | <span class="tab-icon" v-html="tab.icon"></span>
| ^
11 | <span class="tab-label">{{ tab.label }}</span>
12 | <span v-if="tab.id === 'team' && teamCount > 0" class="tab-badge">{{
13 | teamCount
warning: Unexpected console statement (no-console) at src/components/molecules/thanatopractitioner/ThanatopractitionerDocumentsTab.vue:49:3:
47 |
48 | const handleAddDocument = () => {
> 49 | console.log("Add document functionality to be implemented");
| ^
50 | };
51 | </script>
52 |
warning: Unexpected console statement (no-console) at src/examples/BotMessageConfigurator.vue:290:5:
288 | if (userMessage.value.trim()) {
289 | // Handle user message
> 290 | console.log("User message:", userMessage.value);
| ^
291 | userMessage.value = "";
292 | }
293 | };
warning: Unexpected console statement (no-console) at src/examples/ConfirmModalUsage.vue:191:5:
189 | closeModal();
190 | } catch (error) {
> 191 | console.error("Erreur lors de l'action:", error);
| ^
192 | notificationStore.error(
193 | "Erreur",
194 | "Une erreur est survenue lors de l'opération."
error: Possible race condition: `confirmModal.isLoading` might be reassigned based on an outdated value of `confirmModal.isLoading` (require-atomic-updates) at src/examples/ConfirmModalUsage.vue:197:5:
195 | );
196 | } finally {
> 197 | confirmModal.isLoading = false;
| ^
198 | }
199 | };
200 |
error: Unnecessary try/catch wrapper (no-useless-catch) at src/examples/ConfirmModalUsage.vue:218:3:
216 | // Delete employee function
217 | const deleteEmployee = async (employee) => {
> 218 | try {
| ^
219 | await employeeStore.deleteEmployee(employee.id);
220 | notificationStore.success(
221 | "Employé supprimé",
warning: Unexpected console statement (no-console) at src/examples/Navbars/Navbar.vue:287:9:
285 | this.$router.push("/login");
286 | } catch (error) {
> 287 | console.error("Logout error:", error);
| ^
288 | // Still redirect to login even if logout API fails
289 | this.$router.push("/login");
290 | }
warning: Unexpected console statement (no-console) at src/router/index.js:838:9:
836 | } catch (error) {
837 | // If token is invalid, clear it and continue as unauthenticated
> 838 | console.warn("Invalid token, clearing auth");
| ^
839 | localStorage.removeItem("auth_token");
840 | auth.token = null;
841 | auth.user = null;
warning: Unexpected console statement (no-console) at src/services/client_location.ts:185:7:
183 | return response.data.length > 0 ? { data: response.data[0] } : null;
184 | } catch (error) {
> 185 | console.error("Error fetching default location:", error);
| ^
186 | return null;
187 | }
188 | },
warning: Unexpected console statement (no-console) at src/services/documentAttachment.ts:256:9:
254 | }
255 | } catch (error) {
> 256 | console.error(`Error uploading file ${file.name}:`, error);
| ^
257 | throw error;
258 | }
259 | }
warning: Unexpected console statement (no-console) at src/services/product.ts:118:5:
116 | method: "get",
117 | });
> 118 | console.log(response);
| ^
119 | return response;
120 | }
121 |
warning: Unexpected console statement (no-console) at src/stores/auth.ts:33:11:
31 | } else {
32 | // If backend returned invalid data (like HTML), treat as unauthenticated
> 33 | console.warn("Invalid user data received from /api/user:", userData);
| ^
34 | this.user = null;
35 | }
36 | } catch (e) {
warning: Unexpected console statement (no-console) at src/stores/auth.ts:37:9:
35 | }
36 | } catch (e) {
> 37 | console.error("Error fetching user:", e);
| ^
38 | this.user = null;
39 | this.token = null;
40 | } finally {
warning: Unexpected console statement (no-console) at src/stores/clientStore.ts:288:7:
286 | } catch (err) {
287 | error.value = "Erreur lors de la recherche des clients";
> 288 | console.error("Error searching clients:", err);
| ^
289 | setSearchClient([]);
290 | throw err;
291 | } finally {
warning: Unexpected console statement (no-console) at src/stores/clientTimelineStore.ts:53:7:
51 | return response;
52 | } catch (err: any) {
> 53 | console.error("Error fetching timeline:", err);
| ^
54 | error.value = err.message || "Failed to fetch timeline";
55 | throw err;
56 | } finally {
warning: Unexpected console statement (no-console) at src/stores/employeeStore.ts:182:7:
180 |
181 | try {
> 182 | console.log(payload);
| ^
183 | const response = await EmployeeService.updateEmployee(payload);
184 | const updatedEmployee = response.data;
185 |
warning: Unexpected console statement (no-console) at src/stores/employeeStore.ts:261:7:
259 | } catch (err) {
260 | error.value = "Erreur lors de la recherche des employés";
> 261 | console.error("Error searching employees:", err);
| ^
262 | setSearchEmployee([]);
263 | throw err;
264 | } finally {
error: Parsing error: ',' expected at src/stores/fileStore.ts:4:7:
2 | import { ref, computed } from "vue";
3 | import FileService, {
> 4 | type FileResource,
| ^
5 | type FileListParams,
6 | type CreateFilePayload,
7 | type UpdateFilePayload,
warning: Unexpected console statement (no-console) at src/stores/fournisseurStore.ts:250:7:
248 | } catch (err) {
249 | error.value = "Erreur lors de la recherche des fournisseurs";
> 250 | console.error("Error searching fournisseurs:", err);
| ^
251 | setSearchFournisseur([]);
252 | throw err;
253 | } finally {
warning: Unexpected console statement (no-console) at src/stores/interventionStore.ts:150:7:
148 | try {
149 | const intervention = await InterventionService.getIntervention(id);
> 150 | console.log(intervention);
| ^
151 | setCurrentIntervention(intervention);
152 | return intervention;
153 | } catch (err: any) {
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:105:9:
103 | return response;
104 | } catch (error) {
> 105 | console.error("Error fetching thanatopractitioners:", error);
| ^
106 | throw error;
107 | } finally {
108 | loading.value = false;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:133:9:
131 | return currentThanatopractitioner.value;
132 | } catch (error) {
> 133 | console.error("Error fetching thanatopractitioner:", error);
| ^
134 | throw error;
135 | } finally {
136 | isLoading.value = false;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:159:9:
157 | };
158 | } catch (error) {
> 159 | console.error("Error fetching thanatopractitioner by ID:", error);
| ^
160 | throw error;
161 | }
162 | };
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:170:9:
168 | return [];
169 | } catch (error) {
> 170 | console.error("Error fetching thanatopractitioner documents:", error);
| ^
171 | return [];
172 | }
173 | };
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:179:9:
177 | try {
178 | // TODO: Implement actual document addition logic
> 179 | console.log("Adding document:", documentData);
| ^
180 | } catch (error) {
181 | console.error("Error adding thanatopractitioner document:", error);
182 | throw error;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:181:9:
179 | console.log("Adding document:", documentData);
180 | } catch (error) {
> 181 | console.error("Error adding thanatopractitioner document:", error);
| ^
182 | throw error;
183 | }
184 | };
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:190:9:
188 | try {
189 | // TODO: Implement actual document update logic
> 190 | console.log("Updating document:", documentData);
| ^
191 | } catch (error) {
192 | console.error("Error updating thanatopractitioner document:", error);
193 | throw error;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:192:9:
190 | console.log("Updating document:", documentData);
191 | } catch (error) {
> 192 | console.error("Error updating thanatopractitioner document:", error);
| ^
193 | throw error;
194 | }
195 | };
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:222:9:
220 | return newThanatopractitioner;
221 | } catch (error) {
> 222 | console.error("Error creating thanatopractitioner:", error);
| ^
223 | throw error;
224 | } finally {
225 | loading.value = false;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:264:9:
262 | return updatedThanatopractitioner;
263 | } catch (error) {
> 264 | console.error("Error updating thanatopractitioner:", error);
| ^
265 | throw error;
266 | } finally {
267 | loading.value = false;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:287:9:
285 | }
286 | } catch (error) {
> 287 | console.error("Error deleting thanatopractitioner:", error);
| ^
288 | throw error;
289 | } finally {
290 | loading.value = false;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:328:9:
326 | return updatedThanatopractitioner;
327 | } catch (error) {
> 328 | console.error("Error toggling thanatopractitioner status:", error);
| ^
329 | throw error;
330 | }
331 | };
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:341:9:
339 | return results;
340 | } catch (error) {
> 341 | console.error("Error searching thanatopractitioners:", error);
| ^
342 | throw error;
343 | } finally {
344 | loading.value = false;
warning: Unexpected console statement (no-console) at src/stores/thanatopractitionerStore.ts:353:9:
351 | return response.data;
352 | } catch (error) {
> 353 | console.error("Error fetching thanatopractitioner statistics:", error);
| ^
354 | throw error;
355 | }
356 | };
warning: Unexpected console statement (no-console) at src/views/auth/signin/Cover.vue:156:9:
154 | } catch (e) {
155 | // Optionally show a message to the user
> 156 | console.error("Login failed", e);
| ^
157 | }
158 | },
159 | },
warning: Unexpected console statement (no-console) at src/views/pages/Agenda.vue:62:5:
60 | ]);
61 | } catch (error) {
> 62 | console.error("Error loading data:", error);
| ^
63 | } finally {
64 | loading.value = false;
65 | }
warning: Unexpected console statement (no-console) at src/views/pages/Agenda.vue:113:5:
111 | alert("Intervention créée avec succès!");
112 | } catch (error) {
> 113 | console.error("Error saving intervention:", error);
| ^
114 |
115 | // Show user-friendly error message
116 | const errorMessage =
warning: Unexpected console statement (no-console) at src/views/pages/Agenda.vue:132:5:
130 | );
131 | } catch (error) {
> 132 | console.error("Error loading interventions for month:", error);
| ^
133 | }
134 | };
135 | </script>
warning: Unexpected console statement (no-console) at src/views/pages/CRM/AddClient.vue:47:5:
45 | }, 2000);
46 | } catch (error) {
> 47 | console.error("Error creating client:", error);
| ^
48 |
49 | // Handle validation errors from Laravel
50 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/CRM/AddContact.vue:33:5:
31 | }, 1500);
32 | } catch (error) {
> 33 | console.error("Error creating contact:", error);
| ^
34 | notificationStore.error("Erreur", "Impossible de créer le contact");
35 | }
36 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/AddContact.vue:42:5:
40 | resultSeach.value = await clientStore.searchClients(searchInput);
41 | } catch (error) {
> 42 | console.error("Error searching clients:", error);
| ^
43 | notificationStore.error("Erreur", "Impossible de rechercher les clients");
44 | }
45 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/AddEmployee.vue:40:5:
38 | }, 2000);
39 | } catch (error) {
> 40 | console.error("Error creating employee:", error);
| ^
41 |
42 | // Handle validation errors from Laravel
43 | if (error.response && error.response.status === 422) {
error: Parsing error: x-invalid-end-tag (vue/no-parsing-error) at src/views/pages/CRM/ClientDetailNew.vue:415:15:
413 | </tr>
414 | </tbody>
> 415 | </table>
| ^
416 | </div>
417 | <div v-else class="text-center py-5">
418 | <i class="fas fa-address-book fa-3x text-secondary opacity-5 mb-3"></i>
warning: Parsing error: Unexpected closing tag "table". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (prettier/prettier) at src/views/pages/CRM/ClientDetailNew.vue:415:16:
413 | </tr>
414 | </tbody>
> 415 | </table>
| ^
416 | </div>
417 | <div v-else class="text-center py-5">
418 | <i class="fas fa-address-book fa-3x text-secondary opacity-5 mb-3"></i>
error: 'v-else' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive (vue/valid-v-else) at src/views/pages/CRM/ClientDetailNew.vue:417:18:
415 | </table>
416 | </div>
> 417 | <div v-else class="text-center py-5">
| ^
418 | <i class="fas fa-address-book fa-3x text-secondary opacity-5 mb-3"></i>
419 | <p class="text-sm text-secondary">Aucun contact pour ce client</p>
420 | </div>
error: Parsing error: x-invalid-end-tag (vue/no-parsing-error) at src/views/pages/CRM/ClientDetailNew.vue:481:3:
479 | </div>
480 | </div>
> 481 | </div>
| ^
482 | </template>
483 |
484 | <script setup>
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetailNew.vue:585:7:
583 | clientAvatar.value = e.target.result;
584 | // TODO: Upload to server
> 585 | console.log('Upload avatar to server');
| ^
586 | };
587 | reader.readAsDataURL(file);
588 | }
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:65:5:
63 | const updateClient = async (data) => {
64 | if (!client_id) {
> 65 | console.error("Missing client id");
| ^
66 | notificationStore.error("Erreur", "ID du client manquant");
67 | return;
68 | }
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:80:5:
78 | notificationStore.updated("Client");
79 | } catch (error) {
> 80 | console.error("Error updating client:", error);
| ^
81 | notificationStore.error("Erreur", "Impossible de mettre à jour le client");
82 | }
83 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:92:5:
90 | notificationStore.created("Contact");
91 | } catch (error) {
> 92 | console.error("Error creating contact:", error);
| ^
93 | notificationStore.error("Erreur", "Impossible de créer le contact");
94 | }
95 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:103:5:
101 | notificationStore.updated("Contact");
102 | } catch (error) {
> 103 | console.error("Error updating contact:", error);
| ^
104 | notificationStore.error("Erreur", "Impossible de modifier le contact");
105 | }
106 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:116:5:
114 | notificationStore.created("Localisation");
115 | } catch (error) {
> 116 | console.error("Error creating location:", error);
| ^
117 | notificationStore.error("Erreur", "Impossible de créer la localisation");
118 | }
119 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:129:5:
127 | notificationStore.updated("Localisation");
128 | } catch (error) {
> 129 | console.error("Error modifying location:", error);
| ^
130 | notificationStore.error("Erreur", "Impossible de modifier la localisation");
131 | }
132 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/ClientDetails.vue:142:5:
140 | notificationStore.deleted("Localisation");
141 | } catch (error) {
> 142 | console.error("Error removing location:", error);
| ^
143 | notificationStore.error(
144 | "Erreur",
145 | "Impossible de supprimer la localisation"
warning: Unexpected console statement (no-console) at src/views/pages/CRM/Clients.vue:40:5:
38 | notificationStore.deleted("Client");
39 | } catch (error) {
> 40 | console.error("Error deleting client:", error);
| ^
41 | notificationStore.error("Erreur", "Impossible de supprimer le client");
42 | }
43 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/Contacts.vue:23:5:
21 | await contactStore.fetchContacts();
22 | } catch (error) {
> 23 | console.error("Failed to delete contact:", error);
| ^
24 | }
25 | };
26 | </script>
warning: Unexpected console statement (no-console) at src/views/pages/CRM/EmployeeDetails.vue:54:5:
52 | const updateEmployee = async (data) => {
53 | if (!employee_id) {
> 54 | console.error("Missing employee id");
| ^
55 | notificationStore.error("Erreur", "ID de l'employé manquant");
56 | return;
57 | }
warning: Unexpected console statement (no-console) at src/views/pages/CRM/EmployeeDetails.vue:69:5:
67 | notificationStore.updated("Employé");
68 | } catch (error) {
> 69 | console.error("Error updating employee:", error);
| ^
70 | notificationStore.error("Erreur", "Impossible de mettre à jour l'employé");
71 | }
72 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/EmployeeDetails.vue:81:5:
79 | notificationStore.created("Document");
80 | } catch (error) {
> 81 | console.error("Error creating practitioner document:", error);
| ^
82 | notificationStore.error("Erreur", "Impossible de créer le document");
83 | }
84 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/EmployeeDetails.vue:92:5:
90 | notificationStore.updated("Document");
91 | } catch (error) {
> 92 | console.error("Error updating practitioner document:", error);
| ^
93 | notificationStore.error("Erreur", "Impossible de modifier le document");
94 | }
95 | };
warning: Unexpected console statement (no-console) at src/views/pages/CRM/EmployeeDetails.vue:103:5:
101 | notificationStore.deleted("Document");
102 | } catch (error) {
> 103 | console.error("Error removing practitioner document:", error);
| ^
104 | notificationStore.error("Erreur", "Impossible de supprimer le document");
105 | }
106 | };
warning: Unexpected console statement (no-console) at src/views/pages/Convoys/AddConvoy.vue:24:5:
22 | router.push({ name: "Liste convois" });
23 | } catch (error) {
> 24 | console.error("Error creating convoy:", error);
| ^
25 | notificationStore.error("Erreur", "Impossible de créer le convoi");
26 | }
27 | };
warning: Unexpected console statement (no-console) at src/views/pages/Defunts/AddDefunt.vue:40:5:
38 | }, 2000);
39 | } catch (error) {
> 40 | console.error("Error creating deceased:", error);
| ^
41 |
42 | // Handle validation errors from Laravel
43 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Defunts/DefuntDetails.vue:39:5:
37 | if (deceased_id) {
38 | const cc = await deceasedStore.fetchDeceasedById(deceased_id);
> 39 | console.log(cc);
| ^
40 | }
41 | });
42 |
warning: Unexpected console statement (no-console) at src/views/pages/Defunts/DefuntDetails.vue:45:5:
43 | const updateDeceased = async (data) => {
44 | if (!deceased_id) {
> 45 | console.error("Missing deceased id");
| ^
46 | notificationStore.error("Erreur", "ID du défunt manquant");
47 | return;
48 | }
warning: Unexpected console statement (no-console) at src/views/pages/Defunts/DefuntDetails.vue:54:5:
52 | notificationStore.updated("Personne décédée");
53 | } catch (error) {
> 54 | console.error("Error updating deceased:", error);
| ^
55 | notificationStore.error(
56 | "Erreur",
57 | "Impossible de mettre à jour la personne décédée"
warning: Unexpected console statement (no-console) at src/views/pages/Employes/AddVehicle.vue:37:5:
35 | }, 1500);
36 | } catch (error) {
> 37 | console.error("Error creating vehicle:", error);
| ^
38 |
39 | if (error.response && error.response.status === 422) {
40 | validationErrors.value = error.response.data.errors || {};
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:68:3:
66 |
67 | const confirmDeleteEmployee = (employeeId) => {
> 68 | console.log("confirmDeleteEmployee called with ID:", employeeId);
| ^
69 | console.log("Employee ID type:", typeof employeeId);
70 | console.log("Store employees:", employeeStore.employees);
71 | console.log("Store employees length:", employeeStore.employees.length);
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:69:3:
67 | const confirmDeleteEmployee = (employeeId) => {
68 | console.log("confirmDeleteEmployee called with ID:", employeeId);
> 69 | console.log("Employee ID type:", typeof employeeId);
| ^
70 | console.log("Store employees:", employeeStore.employees);
71 | console.log("Store employees length:", employeeStore.employees.length);
72 |
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:70:3:
68 | console.log("confirmDeleteEmployee called with ID:", employeeId);
69 | console.log("Employee ID type:", typeof employeeId);
> 70 | console.log("Store employees:", employeeStore.employees);
| ^
71 | console.log("Store employees length:", employeeStore.employees.length);
72 |
73 | const employee = employeeStore.employees.find((emp) => emp.id === employeeId);
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:71:3:
69 | console.log("Employee ID type:", typeof employeeId);
70 | console.log("Store employees:", employeeStore.employees);
> 71 | console.log("Store employees length:", employeeStore.employees.length);
| ^
72 |
73 | const employee = employeeStore.employees.find((emp) => emp.id === employeeId);
74 | console.log("Found employee:", employee);
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:74:3:
72 |
73 | const employee = employeeStore.employees.find((emp) => emp.id === employeeId);
> 74 | console.log("Found employee:", employee);
| ^
75 |
76 | if (employee) {
77 | console.log("Showing confirmation modal");
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:77:5:
75 |
76 | if (employee) {
> 77 | console.log("Showing confirmation modal");
| ^
78 | confirmModal.isVisible = true;
79 | confirmModal.employeeId = employeeId;
80 | confirmModal.employeeName = `${employee.first_name} ${employee.last_name}`;
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:83:5:
81 | confirmModal.message = `Êtes-vous sûr de vouloir supprimer l'employé "${confirmModal.employeeName}" ?`;
82 | } else {
> 83 | console.log("No employee found - trying to parse as number");
| ^
84 | const numericId = parseInt(employeeId, 10);
85 | console.log("Trying with numeric ID:", numericId);
86 | const employeeByNumber = employeeStore.employees.find(
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:85:5:
83 | console.log("No employee found - trying to parse as number");
84 | const numericId = parseInt(employeeId, 10);
> 85 | console.log("Trying with numeric ID:", numericId);
| ^
86 | const employeeByNumber = employeeStore.employees.find(
87 | (emp) => emp.id === numericId
88 | );
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:89:5:
87 | (emp) => emp.id === numericId
88 | );
> 89 | console.log("Found by numeric ID:", employeeByNumber);
| ^
90 |
91 | if (employeeByNumber) {
92 | console.log("Showing confirmation modal with numeric ID");
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:92:7:
90 |
91 | if (employeeByNumber) {
> 92 | console.log("Showing confirmation modal with numeric ID");
| ^
93 | confirmModal.isVisible = true;
94 | confirmModal.employeeId = numericId;
95 | confirmModal.employeeName = `${employeeByNumber.first_name} ${employeeByNumber.last_name}`;
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:98:7:
96 | confirmModal.message = `Êtes-vous sûr de vouloir supprimer l'employé "${confirmModal.employeeName}" ?`;
97 | } else {
> 98 | console.log(
| ^
99 | "Still no employee found - displaying all employee IDs for comparison"
100 | );
101 | employeeStore.employees.forEach((emp, index) => {
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:102:9:
100 | );
101 | employeeStore.employees.forEach((emp, index) => {
> 102 | console.log(
| ^
103 | `Employee ${index}: ID=${emp.id} (${typeof emp.id}), Name=${
104 | emp.first_name
105 | } ${emp.last_name}`
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:115:3:
113 | const employeeId = confirmModal.employeeId;
114 | const employeeName = confirmModal.employeeName;
> 115 | console.log("Test");
| ^
116 | try {
117 | confirmModal.isLoading = true;
118 | await employeeStore.deleteEmployee(employeeId);
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:125:5:
123 | closeConfirmModal();
124 | } catch (error) {
> 125 | console.error("Error deleting employee:", error);
| ^
126 | notificationStore.error(
127 | "Erreur de suppression",
128 | "Une erreur est survenue lors de la suppression de l'employé."
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:146:3:
144 |
145 | const changePage = async (page) => {
> 146 | console.log("changePage called in Employees.vue with page:", page);
| ^
147 | try {
148 | console.log("Fetching employees with page:", page);
149 | await employeeStore.fetchEmployees({ page, per_page: 10 });
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:148:5:
146 | console.log("changePage called in Employees.vue with page:", page);
147 | try {
> 148 | console.log("Fetching employees with page:", page);
| ^
149 | await employeeStore.fetchEmployees({ page, per_page: 10 });
150 | } catch (error) {
151 | console.error("Error changing page:", error);
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Employees.vue:151:5:
149 | await employeeStore.fetchEmployees({ page, per_page: 10 });
150 | } catch (error) {
> 151 | console.error("Error changing page:", error);
| ^
152 | notificationStore.error(
153 | "Erreur de pagination",
154 | "Une erreur est survenue lors du changement de page."
warning: Unexpected console statement (no-console) at src/views/pages/Employes/VehicleDetails.vue:39:5:
37 | notificationStore.updated("Véhicule");
38 | } catch (error) {
> 39 | console.error("Error updating vehicle:", error);
| ^
40 | notificationStore.error(
41 | "Erreur",
42 | "Impossible de mettre à jour le véhicule"
warning: Unexpected console statement (no-console) at src/views/pages/Employes/Vehicules.vue:28:5:
26 | await vehicleStore.deleteVehicle(vehicleId);
27 | } catch (error) {
> 28 | console.error("Error deleting vehicle:", error);
| ^
29 | }
30 | };
31 | </script>
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/AddFournisseur.vue:40:5:
38 | }, 2000);
39 | } catch (error) {
> 40 | console.error("Error creating fournisseur:", error);
| ^
41 |
42 | // Handle validation errors from Laravel
43 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:56:5:
54 | const updateFournisseur = async (data) => {
55 | if (!fournisseur_id) {
> 56 | console.error("Missing fournisseur id");
| ^
57 | notificationStore.error("Erreur", "ID du fournisseur manquant");
58 | return;
59 | }
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:65:5:
63 | notificationStore.updated("Fournisseur");
64 | } catch (error) {
> 65 | console.error("Error updating fournisseur:", error);
| ^
66 | notificationStore.error(
67 | "Erreur",
68 | "Impossible de mettre à jour le fournisseur"
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:86:5:
84 | notificationStore.created("Contact");
85 | } catch (error) {
> 86 | console.error("Error creating contact:", error);
| ^
87 | notificationStore.error("Erreur", "Impossible de créer le contact");
88 | }
89 | };
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:97:5:
95 | notificationStore.updated("Contact");
96 | } catch (error) {
> 97 | console.error("Error updating contact:", error);
| ^
98 | notificationStore.error("Erreur", "Impossible de modifier le contact");
99 | }
100 | };
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:110:5:
108 | const createNewLocation = async (data) => {
109 | try {
> 110 | console.log("Create new location:", data);
| ^
111 | // TODO: Implement with location store when ready
112 | notificationStore.created("Localisation");
113 | } catch (error) {
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:120:5:
118 | const modifyLocation = async (location) => {
119 | try {
> 120 | console.log("Modify location:", location);
| ^
121 | // TODO: Implement with location store when ready
122 | notificationStore.updated("Localisation");
123 | } catch (error) {
warning: Unexpected console statement (no-console) at src/views/pages/Fournisseurs/FournisseurDetails.vue:130:5:
128 | const removeLocation = async (locationId) => {
129 | try {
> 130 | console.log("Remove location:", locationId);
| ^
131 | // TODO: Implement with location store when ready
132 | notificationStore.deleted("Localisation");
133 | } catch (error) {
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/AddIntervention.vue:72:5:
70 | }, 2000);
71 | } catch (error) {
> 72 | console.error("Error creating intervention:", error);
| ^
73 |
74 | // Handle validation errors from Laravel
75 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/AddIntervention.vue:100:5:
98 | ]);
99 | } catch (error) {
> 100 | console.error("Error loading data:", error);
| ^
101 | notificationStore.error(
102 | "Erreur",
103 | "Impossible de charger les données nécessaires"
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:63:5:
61 | intervention.value = result; // Store method returns the intervention directly
62 | }
> 63 | console.log(intervention.value);
| ^
64 | } catch (error) {
65 | console.error("Error loading intervention:", error);
66 | notificationStore.error(
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:65:5:
63 | console.log(intervention.value);
64 | } catch (error) {
> 65 | console.error("Error loading intervention:", error);
| ^
66 | notificationStore.error(
67 | "Erreur",
68 | "Impossible de charger les détails de l'intervention"
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:80:5:
78 | });
79 | } catch (error) {
> 80 | console.error("Error loading practitioners:", error);
| ^
81 | notificationStore.error(
82 | "Erreur",
83 | "Impossible de charger la liste des praticiens"
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:121:5:
119 | }
120 | } catch (error) {
> 121 | console.error("Error assigning practitioner:", error);
| ^
122 | notificationStore.error("Erreur", "Impossible d'assigner le praticien");
123 | }
124 | };
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:143:5:
141 | notificationStore.deleted(practitionerName || "Praticien", "désassigné");
142 | } catch (error) {
> 143 | console.error("Error unassigning practitioner:", error);
| ^
144 | notificationStore.error("Erreur", "Impossible de désassigner le praticien");
145 | }
146 | };
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:157:5:
155 | notificationStore.updated("Intervention");
156 | } catch (error) {
> 157 | console.error("Error updating intervention:", error);
| ^
158 | notificationStore.error(
159 | "Erreur",
160 | "Impossible de mettre à jour l'intervention"
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/InterventionDetails.vue:167:3:
165 | // Handle cancel
166 | const handleCancel = () => {
> 167 | console.log("Édition annulée");
| ^
168 | };
169 |
170 | // Watch for changes in intervention store to update local state
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/Interventions.vue:27:5:
25 | });
26 | } catch (error) {
> 27 | console.error("Failed to load interventions:", error);
| ^
28 | }
29 | };
30 |
warning: Unexpected console statement (no-console) at src/views/pages/Interventions/Interventions.vue:38:3:
36 | // Logic to export CSV - checking if store has action or just trigger download
37 | // For now just logging, can be implemented via service
> 38 | console.log("Export CSV triggered");
| ^
39 | // Ideally: window.open('/api/interventions/export?format=csv', '_blank');
40 | };
41 |
warning: Unexpected console statement (no-console) at src/views/pages/Parametrage/ProductCategories.vue:79:5:
77 | await store.fetchCategories();
78 | } catch (error) {
> 79 | console.error(error);
| ^
80 | }
81 | };
82 |
warning: Unexpected console statement (no-console) at src/views/pages/Planning.vue:223:5:
221 | await Promise.all([fetchMonth(start, force), fetchMonth(end, force)]);
222 | } catch (error) {
> 223 | console.error("Error loading planning interventions:", error);
| ^
224 | notificationStore.error(
225 | "Erreur",
226 | "Impossible de charger les interventions du planning"
warning: Unexpected console statement (no-console) at src/views/pages/Planning.vue:270:5:
268 | notificationStore.created("Intervention");
269 | } catch (error) {
> 270 | console.error("Error saving intervention:", error);
| ^
271 | const errorMessage =
272 | error.response?.data?.message ||
273 | error.message ||
warning: Unexpected console statement (no-console) at src/views/pages/Planning.vue:347:3:
345 |
346 | const handleCellClick = (info) => {
> 347 | console.log("Cell clicked", info);
| ^
348 | };
349 |
350 | const handleEditIntervention = (intervention) => {
warning: Unexpected console statement (no-console) at src/views/pages/Planning.vue:351:3:
349 |
350 | const handleEditIntervention = (intervention) => {
> 351 | console.log("Edit intervention", intervention);
| ^
352 | };
353 |
354 | const handlePrevWeek = () => {
warning: Unexpected console statement (no-console) at src/views/pages/Planning.vue:383:5:
381 | }
382 | } catch (error) {
> 383 | console.error("Error updating intervention status:", error);
| ^
384 | notificationStore.error("Erreur", "Échec de la mise à jour du statut");
385 | }
386 | };
warning: Unexpected console statement (no-console) at src/views/pages/Register.vue:144:5:
142 | router.push("/dashboards/dashboard-default");
143 | } catch (error: any) {
> 144 | console.error("Registration error:", error);
| ^
145 | errorMessage.value =
146 | error.response?.data?.message ||
147 | error.message ||
warning: Unexpected console statement (no-console) at src/views/pages/Stock/AddProduct.vue:36:5:
34 | const handleCreateProduct = async (form) => {
35 | try {
> 36 | console.log(form);
| ^
37 | // Clear previous errors
38 | validationErrors.value = {};
39 | showSuccess.value = false;
warning: Unexpected console statement (no-console) at src/views/pages/Stock/AddProduct.vue:53:5:
51 | }, 2000);
52 | } catch (error) {
> 53 | console.error("Error creating product:", error);
| ^
54 |
55 | // Handle validation errors from Laravel
56 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Stock/AddProductCategory.vue:36:5:
34 | const handleCreateCategory = async (form) => {
35 | try {
> 36 | console.log(form);
| ^
37 | // Clear previous errors
38 | validationErrors.value = {};
39 | showSuccess.value = false;
warning: Unexpected console statement (no-console) at src/views/pages/Stock/AddProductCategory.vue:53:5:
51 | }, 2000);
52 | } catch (error) {
> 53 | console.error("Error creating product category:", error);
| ^
54 |
55 | // Handle validation errors from Laravel
56 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Stock/EditProductCategory.vue:48:5:
46 | await productCategoryStore.fetchRootProductCategories();
47 | } catch (error) {
> 48 | console.error("Error loading product category:", error);
| ^
49 | notificationStore.error("Erreur", "Impossible de charger la catégorie");
50 | router.push({ name: "Gestion catégories de produits" });
51 | }
warning: Unexpected console statement (no-console) at src/views/pages/Stock/EditProductCategory.vue:56:5:
54 | const handleUpdateCategory = async (form) => {
55 | try {
> 56 | console.log(form);
| ^
57 | // Clear previous errors
58 | validationErrors.value = {};
59 | showSuccess.value = false;
warning: Unexpected console statement (no-console) at src/views/pages/Stock/EditProductCategory.vue:79:5:
77 | }, 2000);
78 | } catch (error) {
> 79 | console.error("Error updating product category:", error);
| ^
80 |
81 | // Handle validation errors from Laravel
82 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Stock/EditReception.vue:227:5:
225 | router.push(`/stock/receptions/${route.params.id}`);
226 | } catch (error) {
> 227 | console.error("Failed to update goods receipt", error);
| ^
228 | }
229 | };
230 |
warning: Unexpected console statement (no-console) at src/views/pages/Stock/EditReception.vue:251:5:
249 | }
250 | } catch (error) {
> 251 | console.error("Failed to load data", error);
| ^
252 | }
253 | });
254 | </script>
warning: Unexpected console statement (no-console) at src/views/pages/Stock/ProductCategories.vue:37:7:
35 | alert("Catégorie supprimée avec succès");
36 | } catch (error) {
> 37 | console.error("Erreur lors de la suppression:", error);
| ^
38 | alert("Erreur lors de la suppression de la catégorie");
39 | }
40 | }
warning: Unexpected console statement (no-console) at src/views/pages/Stock/ProductCategoryDetails.vue:47:5:
45 | await productCategoryStore.fetchProductCategoryStatistics();
46 | } catch (error) {
> 47 | console.error("Error loading product category:", error);
| ^
48 | notificationStore.error("Erreur", "Impossible de charger la catégorie");
49 |
50 | // Redirect back to categories list if category not found
warning: Unexpected console statement (no-console) at src/views/pages/Stock/ProductCategoryDetails.vue:75:7:
73 | router.push({ name: "Gestion catégories de produits" });
74 | } catch (error) {
> 75 | console.error("Error deleting product category:", error);
| ^
76 |
77 | if (error.response && error.response.status === 422) {
78 | notificationStore.error(
warning: Unexpected console statement (no-console) at src/views/pages/Stock/Products.vue:31:5:
29 | } catch (error) {
30 | // Error is already handled in the store
> 31 | console.error("Error deleting product:", error);
| ^
32 | }
33 | };
34 | </script>
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/AddThanatopractitioner.vue:51:5:
49 | }, 2000);
50 | } catch (error) {
> 51 | console.error("Error creating thanatopractitioner:", error);
| ^
52 |
53 | // Handle validation errors from Laravel
54 | if (error.response && error.response.status === 422) {
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/ThanatopractitionerDetails.vue:48:5:
46 | );
47 | } catch (error) {
> 48 | console.error("Error fetching thanatopractitioner details:", error);
| ^
49 | } finally {
50 | isLoading.value = false;
51 | }
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/ThanatopractitionerDetails.vue:62:5:
60 | );
61 | } catch (error) {
> 62 | console.error("Error updating thanatopractitioner:", error);
| ^
63 | }
64 | };
65 |
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/ThanatopractitionerDetails.vue:73:5:
71 | );
72 | } catch (error) {
> 73 | console.error("Error adding document:", error);
| ^
74 | }
75 | };
76 |
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/ThanatopractitionerDetails.vue:86:5:
84 | );
85 | } catch (error) {
> 86 | console.error("Error updating document:", error);
| ^
87 | }
88 | };
89 | </script>
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/Thanatopractitioners.vue:92:5:
90 | };
91 | } catch (error) {
> 92 | console.error("Error fetching thanatopractitioners:", error);
| ^
93 | notificationStore.error(
94 | "Erreur de chargement",
95 | "Une erreur est survenue lors du chargement des thanatopractitioners."
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/Thanatopractitioners.vue:143:5:
141 | });
142 | } catch (error) {
> 143 | console.error("Error deleting thanatopractitioner:", error);
| ^
144 | notificationStore.error(
145 | "Erreur de suppression",
146 | "Une erreur est survenue lors de la suppression du thanatopractitioner."
warning: Unexpected console statement (no-console) at src/views/pages/Thanatopractitioners/Thanatopractitioners.vue:171:5:
169 | });
170 | } catch (error) {
> 171 | console.error("Error changing page:", error);
| ^
172 | notificationStore.error(
173 | "Erreur de pagination",
174 | "Une erreur est survenue lors du changement de page."
16 errors and 256 warnings found.