From 9f64f1305f308aa174ed088f9a255adaf8e08d5b Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 18 Feb 2026 18:24:42 -0600 Subject: [PATCH 1/3] m --- package-lock.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 906c397..f3e57ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -649,7 +649,6 @@ "version": "2.5.6", "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz", "integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==", - "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -689,7 +688,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -710,7 +708,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -731,7 +728,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -752,7 +748,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -773,7 +768,6 @@ "cpu": [ "arm" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -815,7 +809,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -836,7 +829,6 @@ "cpu": [ "arm64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -920,7 +912,6 @@ "cpu": [ "ia32" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -941,7 +932,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1357,7 +1347,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, "license": "MIT", "optional": true, "engines": { @@ -1368,7 +1357,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -1492,7 +1480,6 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "dev": true, "license": "MIT", "optional": true }, @@ -1506,7 +1493,6 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, "license": "MIT", "optional": true, "engines": { From 6abbe700d617534fa3a4671adda9de99312dd1fa Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 18 Feb 2026 19:01:31 -0600 Subject: [PATCH 2/3] SweetAlert erros --- app/Components/AsignacionMesas.tsx | 11 +++++++++++ app/Components/InformacionEquipos/ProgramSelector.tsx | 7 +++++++ app/Components/Receipt/Receipt.tsx | 5 +++++ package-lock.json | 1 + 4 files changed, 24 insertions(+) diff --git a/app/Components/AsignacionMesas.tsx b/app/Components/AsignacionMesas.tsx index 6f13fd7..29ee958 100644 --- a/app/Components/AsignacionMesas.tsx +++ b/app/Components/AsignacionMesas.tsx @@ -31,7 +31,18 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) { } else { setBitacora([]); if (!result?.error) toast.error("Ya cuentas con un equipo asignado"); + Swal.fire({ + title: "Ya cuentas con un equipo asignado!", + icon: "error", + draggable: true +}); if (!resultMesa?.error) toast.error("Ya cuentas con una mesa asignada"); + Swal.fire({ + title: "Ya cuentas con mesa asignada!", + icon: "error", + draggable: true +}); + } }; diff --git a/app/Components/InformacionEquipos/ProgramSelector.tsx b/app/Components/InformacionEquipos/ProgramSelector.tsx index 987c65e..f85777b 100644 --- a/app/Components/InformacionEquipos/ProgramSelector.tsx +++ b/app/Components/InformacionEquipos/ProgramSelector.tsx @@ -3,6 +3,7 @@ import { envConfig } from "@/app/lib/config"; import axios from "axios"; import { useEffect, useState } from "react"; import toast from "react-hot-toast"; +import Swal from "sweetalert2"; interface Equipos { id_equipo: number; @@ -89,6 +90,11 @@ export default function ProgramSelector({ toast.error("No se pudo determinar el destino"); } catch (error) { toast.error("Error al guardar cambios"); + Swal.fire({ + title: "Error al guardar cambios!", + icon: "success", + draggable: true, + }); } }; @@ -126,6 +132,7 @@ export default function ProgramSelector({ toast.error("Sin programas asignados"); } else { toast.error("Error al cargar programas"); + } } else { toast.error("Error inesperado"); diff --git a/app/Components/Receipt/Receipt.tsx b/app/Components/Receipt/Receipt.tsx index fde2210..5b9d212 100644 --- a/app/Components/Receipt/Receipt.tsx +++ b/app/Components/Receipt/Receipt.tsx @@ -74,6 +74,11 @@ function Receipt({ numAcount }: ReceiptsProps) { router.refresh(); } catch (err: any) { toast.error(String(err)); + Swal.fire({ + title: "Tiket ya existente!", + icon: "error", + draggable: false + }); } }; diff --git a/package-lock.json b/package-lock.json index f3e57ae..227c571 100644 --- a/package-lock.json +++ b/package-lock.json @@ -912,6 +912,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "MIT", "optional": true, "os": [ From 608800f8fb0019be38171dfca1e7e764e7b4c8cf Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 18 Feb 2026 19:16:00 -0600 Subject: [PATCH 3/3] alertlock --- app/(private)/AgregarTiempo/Addtime.tsx | 21 +++++++++++++-------- app/Components/AsignacionMesas.tsx | 23 ++++++++++------------- app/Components/Receipt/Inscripcion.tsx | 21 +++++++++++++-------- package-lock.json | 5 ----- 4 files changed, 36 insertions(+), 34 deletions(-) diff --git a/app/(private)/AgregarTiempo/Addtime.tsx b/app/(private)/AgregarTiempo/Addtime.tsx index b01420c..7d064c2 100644 --- a/app/(private)/AgregarTiempo/Addtime.tsx +++ b/app/(private)/AgregarTiempo/Addtime.tsx @@ -94,7 +94,7 @@ export default function AddTime({ Swal.fire({ title: "Tiempo Guardado!", icon: "success", - draggable: true + draggable: true, }); setFolio(""); @@ -149,6 +149,11 @@ export default function AddTime({ if (lock && numericValue > 1000) { toast.error("El monto no puede superar $1000.00"); + Swal.fire({ + title: "El monto no puede superar $1000.00 Desbloquea el candado !", + icon: "error", + draggable: true, + }); return; } @@ -171,25 +176,25 @@ export default function AddTime({ /> -
+
-
); } -//IO \ No newline at end of file +//IO diff --git a/app/Components/AsignacionMesas.tsx b/app/Components/AsignacionMesas.tsx index 29ee958..f18f214 100644 --- a/app/Components/AsignacionMesas.tsx +++ b/app/Components/AsignacionMesas.tsx @@ -32,17 +32,16 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) { setBitacora([]); if (!result?.error) toast.error("Ya cuentas con un equipo asignado"); Swal.fire({ - title: "Ya cuentas con un equipo asignado!", - icon: "error", - draggable: true -}); + title: "Ya cuentas con un equipo asignado!", + icon: "error", + draggable: true, + }); if (!resultMesa?.error) toast.error("Ya cuentas con una mesa asignada"); - Swal.fire({ - title: "Ya cuentas con mesa asignada!", - icon: "error", - draggable: true -}); - + Swal.fire({ + title: "Ya cuentas con mesa asignada!", + icon: "error", + draggable: true, + }); } }; @@ -130,9 +129,8 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) { Swal.fire({ title: "Mesa asignada correctamente!", icon: "success", - draggable: true + draggable: true, }); - } catch (error) { toast.error("No se pudo asignar la mesa"); } @@ -186,7 +184,6 @@ export default function AsignacionMesas({ idCuenta, inscripcion }: Props) { > Asignar Mesa - ); diff --git a/app/Components/Receipt/Inscripcion.tsx b/app/Components/Receipt/Inscripcion.tsx index 902b5b1..d591927 100644 --- a/app/Components/Receipt/Inscripcion.tsx +++ b/app/Components/Receipt/Inscripcion.tsx @@ -142,7 +142,7 @@ export default function Inscripcion({ Swal.fire({ title: "Alumno inscrito sin pago!", icon: "success", - draggable: true + draggable: true, }); router.refresh(); } catch (err: any) { @@ -207,6 +207,12 @@ export default function Inscripcion({ if (lock && numericValue > 1000) { toast.error("El monto no puede superar $1000.00"); + Swal.fire({ + title: + "El monto no puede superar $1000.00 Desbloquea el candado !", + icon: "error", + draggable: true, + }); return; } @@ -229,16 +235,16 @@ export default function Inscripcion({ /> -
- +
@@ -246,7 +252,6 @@ export default function Inscripcion({ )} {conPago === "sin" && ( -