> 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 | 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 | 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 | 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 | 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 | 483 | 484 | 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 | 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 | 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 | 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 | 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.