From 871e0261a6ac6cd7aeed095158a017ff9588be16 Mon Sep 17 00:00:00 2001 From: Alain Vasquez Ramirez Date: Wed, 4 Jun 2025 10:08:55 -0600 Subject: [PATCH] =?UTF-8?q?mejoras=20en=20el=20dise=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bd/compass-connections.json | 26 ++ bd/swimartdb.routines.json | 486 +++++++++++++++++++++++++++++++++- bd/swimartdb.users.json | 15 ++ public/atleta.html | 41 ++- public/coach.html | 2 +- public/css/index.css | 4 +- public/equipoDisponibles.html | 2 +- public/js/atletaDiseño.js | 7 + public/js/index.js | 4 +- public/piscina.html | 4 +- 10 files changed, 576 insertions(+), 15 deletions(-) create mode 100644 bd/compass-connections.json create mode 100644 public/js/atletaDiseño.js diff --git a/bd/compass-connections.json b/bd/compass-connections.json new file mode 100644 index 0000000..662e6b3 --- /dev/null +++ b/bd/compass-connections.json @@ -0,0 +1,26 @@ +{ + "type": "Compass Connections", + "version": { + "$numberInt": "1" + }, + "connections": [ + { + "id": "d6f2a873-53e0-4c22-8bc6-f27cfa621213", + "lastUsed": { + "$date": { + "$numberLong": "1748869986703" + } + }, + "favorite": { + "name": "swimartdb" + }, + "savedConnectionType": "recent", + "connectionOptions": { + "connectionString": "mongodb://localhost:27017/", + "oidc": { + "serializedState": "eyJvaWRjUGx1Z2luU3RhdGVWZXJzaW9uIjowLCJzdGF0ZSI6W119" + } + } + } + ] +} \ No newline at end of file diff --git a/bd/swimartdb.routines.json b/bd/swimartdb.routines.json index 0637a08..f4e4dd7 100644 --- a/bd/swimartdb.routines.json +++ b/bd/swimartdb.routines.json @@ -1 +1,485 @@ -[] \ No newline at end of file +[{ + "_id": { + "$oid": "6810e0937ee3745ef40bf1d4" + }, + "title": "Prueba", + "createdBy": "coach-id-ejemplo", + "language": "es", + "duration": 1800, + "musicUrl": "", + "nombreCompetencia": "Prueba", + "tipoCompetencia": "técnica", + "modalidad": "duo", + "participantes": [ + { + "atletaId": { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + "rol": "Volador", + "idPersonalizado": "1", + "_id": { + "$oid": "6810e0937ee3745ef40bf1d5" + } + }, + { + "atletaId": { + "$oid": "6808f76c8694516d48b49d48" + }, + "rol": "Pilares", + "idPersonalizado": "2", + "_id": { + "$oid": "6810e0937ee3745ef40bf1d6" + } + } + ], + "elements": [], + "createdAt": { + "$date": "2025-04-29T14:22:11.389Z" + }, + "__v": 0 +}, +{ + "_id": { + "$oid": "6811982a08c865cdf77148b3" + }, + "title": "Prueba 2", + "createdBy": "coach-id-ejemplo", + "language": "es", + "duration": 1800, + "musicUrl": "", + "nombreCompetencia": "Prueba 2", + "tipoCompetencia": "técnica", + "modalidad": "duo", + "participantes": [ + { + "atletaId": { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + "rol": "Pilar", + "idPersonalizado": "a", + "_id": { + "$oid": "6811982a08c865cdf77148b4" + } + }, + { + "atletaId": { + "$oid": "6808f76c8694516d48b49d48" + }, + "rol": "Volador", + "idPersonalizado": "b", + "_id": { + "$oid": "6811982a08c865cdf77148b5" + } + } + ], + "elements": [], + "createdAt": { + "$date": "2025-04-30T03:25:30.244Z" + }, + "__v": 4, + "formaciones": [ + { + "nombreColoquial": "formacion 1", + "notasTacticas": "", + "atletas": [ + { + "idPersonalizado": "a", + "x": 264.515625, + "y": 77.609375, + "rol": "pilar", + "grupo": "a", + "direccion": "", + "_id": { + "$oid": "681c01aaef497a70464000b4" + } + }, + { + "idPersonalizado": "b", + "x": 73.515625, + "y": 220.609375, + "rol": "voaldor", + "grupo": "a", + "direccion": "", + "_id": { + "$oid": "681c01aaef497a70464000b5" + } + } + ], + "_id": { + "$oid": "681c01aaef497a70464000b3" + } + }, + { + "nombreColoquial": "formacion 2", + "notasTacticas": "", + "atletas": [ + { + "idPersonalizado": "c", + "x": 189.515625, + "y": 189.609375, + "rol": "volador", + "grupo": "a", + "direccion": "", + "_id": { + "$oid": "681c01fbef497a70464000c5" + } + } + ], + "_id": { + "$oid": "681c01fbef497a70464000c4" + } + }, + { + "nombreColoquial": "formacion 3", + "notasTacticas": "", + "atletas": [ + { + "idPersonalizado": "a", + "x": 235.515625, + "y": 77.609375, + "rol": "volador", + "grupo": "b", + "direccion": "", + "_id": { + "$oid": "681c0300ef497a70464000f5" + } + }, + { + "idPersonalizado": "b", + "x": 102.515625, + "y": 220.609375, + "rol": "pilar", + "grupo": "a", + "direccion": "", + "_id": { + "$oid": "681c0300ef497a70464000f6" + } + } + ], + "_id": { + "$oid": "681c0300ef497a70464000f4" + } + }, + { + "nombreColoquial": "formacion 4", + "notasTacticas": "", + "atletas": [ + { + "idPersonalizado": "1", + "x": 183.515625, + "y": 151.609375, + "rol": "volador", + "grupo": "a", + "direccion": "", + "_id": { + "$oid": "681c2b94191e54eff4c6b145" + } + }, + { + "idPersonalizado": "2", + "x": 325.515625, + "y": 159.609375, + "rol": "pilar", + "grupo": "b", + "direccion": "", + "_id": { + "$oid": "681c2b94191e54eff4c6b146" + } + } + ], + "_id": { + "$oid": "681c2b94191e54eff4c6b144" + } + } + ] +}, +{ + "_id": { + "$oid": "682b39d1369e4542a08e14e4" + }, + "title": "Prueba 3", + "createdBy": "coach-id-ejemplo", + "language": "es", + "duration": 180, + "musicUrl": "", + "nombreCompetencia": "Prueba 3", + "tipoCompetencia": "técnica", + "modalidad": "duo", + "participantes": [], + "elements": [], + "formaciones": [ + { + "nombreColoquial": "formacion 1", + "notasTacticas": "ssss", + "atletas": [ + { + "atletaId": { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + "idPersonalizado": "1", + "x": 87.8194580078125, + "y": 89.98611450195312, + "rol": "pilar", + "grupo": "", + "direccion": { + "x1": 126.8194580078125, + "y1": 73.875, + "x2": 264.8194580078125, + "y2": 51.875 + }, + "figura": "Pez Volador", + "_id": { + "$oid": "682b3a65369e4542a08e1507" + } + } + ], + "_id": { + "$oid": "682b3a65369e4542a08e1506" + } + }, + { + "nombreColoquial": "formacion 1", + "notasTacticas": "ssss", + "atletas": [ + { + "atletaId": { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + "idPersonalizado": "1", + "x": 87.8194580078125, + "y": 89.98611450195312, + "rol": "pilar", + "grupo": "", + "direccion": { + "x1": 126.8194580078125, + "y1": 73.875, + "x2": 264.8194580078125, + "y2": 51.875 + }, + "figura": "Pez Volador", + "_id": { + "$oid": "682b3a9f369e4542a08e1515" + } + }, + { + "atletaId": { + "$oid": "6808f76c8694516d48b49d48" + }, + "idPersonalizado": "2", + "x": 264.8194580078125, + "y": 220.43055725097656, + "rol": "pilar", + "grupo": "", + "direccion": { + "x1": 300.8194580078125, + "y1": 207.875, + "x2": 471.8194580078125, + "y2": 150.875 + }, + "figura": "Pez Volador", + "_id": { + "$oid": "682b3a9f369e4542a08e1516" + } + } + ], + "_id": { + "$oid": "682b3a9f369e4542a08e1514" + } + } + ], + "createdAt": { + "$date": "2025-05-19T14:01:53.588Z" + }, + "__v": 2 +}, +{ + "_id": { + "$oid": "68307f6e414b3f466e529063" + }, + "title": "Prueba 5", + "createdBy": "coach-id-ejemplo", + "language": "es", + "duration": 80, + "musicUrl": "/uploads/music/1748008814394-215265240.mp3", + "nombreCompetencia": "5", + "tipoCompetencia": "técnica", + "modalidad": "equipo", + "participantes": [ + { + "$oid": "67f46c76d9ee5d7eec7ee52e" + } + ], + "elements": [], + "formaciones": [ + { + "nombreColoquial": "formacion 1", + "notasTacticas": "HOLAA", + "duracion": 5, + "atletas": [ + { + "atletaId": { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + "idPersonalizado": "a", + "x": 154.8194580078125, + "y": 75.98611450195312, + "rol": "pilar", + "grupo": "", + "direccion": { + "x1": 188.8194580078125, + "y1": 57.986114501953125, + "x2": 356.8194580078125, + "y2": 28.986114501953125 + }, + "figura": "Mariposa", + "tipoElemento": "transición", + "codigoElemento": "TRE", + "_id": { + "$oid": "68307fb4414b3f466e529091" + } + } + ], + "_id": { + "$oid": "68307fb4414b3f466e529090" + } + } + ], + "createdAt": { + "$date": "2025-05-23T14:00:14.508Z" + }, + "__v": 1 +}, +{ + "_id": { + "$oid": "68308205414b3f466e5290b9" + }, + "title": "Prueba 6", + "createdBy": "coach-id-ejemplo", + "language": "es", + "duration": 5000, + "musicUrl": "/uploads/music/1748009477489-613290902.mp3", + "nombreCompetencia": "Prueba 6", + "tipoCompetencia": "técnica", + "modalidad": "equipo", + "participantes": [ + { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + { + "$oid": "6808f76c8694516d48b49d48" + } + ], + "elements": [], + "formaciones": [ + { + "nombreColoquial": "formacion 1", + "notasTacticas": "", + "duracion": 0, + "atletas": [ + { + "atletaId": { + "$oid": "67f46c76d9ee5d7eec7ee52e" + }, + "idPersonalizado": "1", + "x": 194.18327463068167, + "y": 103.13332343037995, + "rol": "volador", + "grupo": "", + "direccion": { + "x1": 261.18326981967556, + "y1": 109.13332297261634, + "x2": 407.18325933599067, + "y2": 63.13332648213756 + }, + "figura": "Mariposa", + "tipoElemento": "TRE", + "codigoElemento": "BP8-BP16-BP6-BP14D", + "_id": { + "$oid": "68308639414b3f466e529101" + } + }, + { + "atletaId": { + "$oid": "6808f76c8694516d48b49d48" + }, + "idPersonalizado": "2", + "x": 157.18327845273825, + "y": 234.466632185198, + "rol": "pilar", + "grupo": "", + "direccion": null, + "figura": "Pez Volador", + "tipoElemento": "TRE", + "codigoElemento": "1A", + "_id": { + "$oid": "68308639414b3f466e529102" + } + } + ], + "_id": { + "$oid": "68308639414b3f466e529100" + } + } + ], + "createdAt": { + "$date": "2025-05-23T14:11:17.538Z" + }, + "__v": 1 +}, +{ + "_id": { + "$oid": "683470b68a0ed15f17f682f0" + }, + "title": "Prueba 10", + "createdBy": "coach-id-ejemplo", + "language": "es", + "duration": 3600, + "musicUrl": "/uploads/music/1748267189898-94113564.mp3", + "nombreCompetencia": "Prueba 10", + "tipoCompetencia": "técnica", + "modalidad": "equipo", + "participantes": [ + { + "$oid": "6808f76c8694516d48b49d48" + } + ], + "elements": [], + "formaciones": [ + { + "nombreColoquial": "formacion 1", + "notasTacticas": "", + "duracion": 20, + "atletas": [ + { + "atletaId": { + "$oid": "6808f76c8694516d48b49d48" + }, + "idPersonalizado": "1", + "x": 251.13751220703125, + "y": 231.39999389648438, + "rol": "volador", + "grupo": "", + "direccion": { + "x1": 163.13751220703125, + "y1": 75.39999389648438, + "x2": 262.13751220703125, + "y2": 41.399993896484375 + }, + "figura": "Mariposa", + "tipoElemento": "TRE", + "codigoElemento": "A1", + "_id": { + "$oid": "683471e48a0ed15f17f6832d" + } + } + ], + "_id": { + "$oid": "683471e48a0ed15f17f6832c" + } + } + ], + "createdAt": { + "$date": "2025-05-26T13:46:30.053Z" + }, + "__v": 1 +}] \ No newline at end of file diff --git a/bd/swimartdb.users.json b/bd/swimartdb.users.json index 5fc906b..82485fc 100644 --- a/bd/swimartdb.users.json +++ b/bd/swimartdb.users.json @@ -42,4 +42,19 @@ "$date": "2025-04-23T13:35:14.797Z" }, "__v": 0 +}, +{ + "_id": { + "$oid": "6808f76c8694516d48b49d48" + }, + "name": "Alex Alducin Diaz", + "username": "stivman", + "email": "alex@gmail.com", + "passwordHash": "$2b$10$a4SS948wFeQ39QVxVhfasOT9O1HA8bBNwd7FVu.XU0HEF6V457EiC", + "role": "athlete", + "language": "fr", + "createdAt": { + "$date": "2025-04-23T14:21:32.469Z" + }, + "__v": 0 }] \ No newline at end of file diff --git a/public/atleta.html b/public/atleta.html index c9d8ae9..e9afeaa 100644 --- a/public/atleta.html +++ b/public/atleta.html @@ -2,18 +2,47 @@ - Athlete Dashboard + Atletas + +
-

Bienvenido Atleta 🏊‍♂️

+

Bienvenido Atleta

Esta es tu zona para consultar tus rutinas y progreso.

- Cerrar sesión -
-
- + + + + diff --git a/public/coach.html b/public/coach.html index e01b746..a05835b 100644 --- a/public/coach.html +++ b/public/coach.html @@ -10,7 +10,7 @@