From 9156b38854d5c95d43e89a1c9bbbbca8908073f8 Mon Sep 17 00:00:00 2001 From: Cadiducho Date: Wed, 28 Feb 2024 22:17:33 +0100 Subject: [PATCH] rollback to vue 3.4.15 and little tweaks --- package.json | 2 +- pnpm-lock.yaml | 152 +++++++++--------- .../admin/gps/DriversInGrandPrix.vue | 4 +- .../admin/gps/SessionsInGrandPrix.vue | 2 +- src/components/gps/SelectTipps.vue | 8 +- 5 files changed, 84 insertions(+), 84 deletions(-) diff --git a/package.json b/package.json index be9e5d7..2eafbf5 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "mitt": "3.0.1", "pinia": "2.1.7", "tailwindcss": "3.4.1", - "vue": "3.4.18", + "vue": "3.4.15", "vue-advanced-cropper": "2.8.8", "vue-router": "4.2.5", "vue-sonner": "1.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6da2908..ad59d6d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,19 +7,19 @@ settings: dependencies: '@oruga-ui/oruga-next': specifier: 0.6.0 - version: 0.6.0(vue@3.4.18) + version: 0.6.0(vue@3.4.15) '@oruga-ui/theme-bulma': specifier: 0.2.11 version: 0.2.11 '@vitejs/plugin-vue': specifier: 5.0.3 - version: 5.0.3(vite@5.1.1)(vue@3.4.18) + version: 5.0.3(vite@5.1.1)(vue@3.4.15) '@vue-leaflet/vue-leaflet': specifier: 0.10.1 version: 0.10.1(@types/leaflet@1.9.8)(leaflet@1.9.4)(typescript@5.3.3) '@vueuse/core': specifier: ^10.7.2 - version: 10.7.2(vue@3.4.18) + version: 10.7.2(vue@3.4.15) apexcharts: specifier: 3.45.2 version: 3.45.2 @@ -43,28 +43,28 @@ dependencies: version: 3.0.1 pinia: specifier: 2.1.7 - version: 2.1.7(typescript@5.3.3)(vue@3.4.18) + version: 2.1.7(typescript@5.3.3)(vue@3.4.15) tailwindcss: specifier: 3.4.1 version: 3.4.1 vue: - specifier: 3.4.18 - version: 3.4.18(typescript@5.3.3) + specifier: 3.4.15 + version: 3.4.15(typescript@5.3.3) vue-advanced-cropper: specifier: 2.8.8 - version: 2.8.8(vue@3.4.18) + version: 2.8.8(vue@3.4.15) vue-router: specifier: 4.2.5 - version: 4.2.5(vue@3.4.18) + version: 4.2.5(vue@3.4.15) vue-sonner: specifier: 1.0.2 version: 1.0.2 vue3-apexcharts: specifier: 1.4.4 - version: 1.4.4(apexcharts@3.45.2)(vue@3.4.18) + version: 1.4.4(apexcharts@3.45.2)(vue@3.4.15) vuedraggable: specifier: 4.1.0 - version: 4.1.0(vue@3.4.18) + version: 4.1.0(vue@3.4.15) devDependencies: '@types/leaflet': @@ -377,12 +377,12 @@ packages: fastq: 1.16.0 dev: false - /@oruga-ui/oruga-next@0.6.0(vue@3.4.18): + /@oruga-ui/oruga-next@0.6.0(vue@3.4.15): resolution: {integrity: sha512-M1Y5PgCWBUDmQGH74cgzrp3vKaRFdHVtGNr0DwejeJGScB7Q6jodW4xgCz6K4hajLgHW6zxz/3ukpC4ZczlfaQ==} peerDependencies: vue: ^3.0.0 dependencies: - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false /@oruga-ui/theme-bulma@0.2.11: @@ -504,7 +504,7 @@ packages: resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==} dev: false - /@vitejs/plugin-vue@5.0.3(vite@5.1.1)(vue@3.4.18): + /@vitejs/plugin-vue@5.0.3(vite@5.1.1)(vue@3.4.15): resolution: {integrity: sha512-b8S5dVS40rgHdDrw+DQi/xOM9ed+kSRZzfm1T74bMmBDCd8XO87NKlFYInzCtwvtWwXZvo1QxE2OSspTATWrbA==} engines: {node: ^18.0.0 || >=20.0.0} peerDependencies: @@ -512,7 +512,7 @@ packages: vue: ^3.2.25 dependencies: vite: 5.1.1(sass@1.70.0) - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false /@vue-leaflet/vue-leaflet@0.10.1(@types/leaflet@1.9.8)(leaflet@1.9.4)(typescript@5.3.3): @@ -526,95 +526,95 @@ packages: dependencies: '@types/leaflet': 1.9.8 leaflet: 1.9.4 - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) transitivePeerDependencies: - typescript dev: false - /@vue/compiler-core@3.4.18: - resolution: {integrity: sha512-F7YK8lMK0iv6b9/Gdk15A67wM0KKZvxDxed0RR60C1z9tIJTKta+urs4j0RTN5XqHISzI3etN3mX0uHhjmoqjQ==} + /@vue/compiler-core@3.4.15: + resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==} dependencies: '@babel/parser': 7.23.9 - '@vue/shared': 3.4.18 + '@vue/shared': 3.4.15 entities: 4.5.0 estree-walker: 2.0.2 source-map-js: 1.0.2 dev: false - /@vue/compiler-dom@3.4.18: - resolution: {integrity: sha512-24Eb8lcMfInefvQ6YlEVS18w5Q66f4+uXWVA+yb7praKbyjHRNuKVWGuinfSSjM0ZIiPi++QWukhkgznBaqpEA==} + /@vue/compiler-dom@3.4.15: + resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==} dependencies: - '@vue/compiler-core': 3.4.18 - '@vue/shared': 3.4.18 + '@vue/compiler-core': 3.4.15 + '@vue/shared': 3.4.15 dev: false - /@vue/compiler-sfc@3.4.18: - resolution: {integrity: sha512-rG5tqtnzwrVpMqAQ7FHtvHaV70G6LLfJIWLYZB/jZ9m/hrnZmIQh+H3ewnC5onwe/ibljm9+ZupxeElzqCkTAw==} + /@vue/compiler-sfc@3.4.15: + resolution: {integrity: sha512-LCn5M6QpkpFsh3GQvs2mJUOAlBQcCco8D60Bcqmf3O3w5a+KWS5GvYbrrJBkgvL1BDnTp+e8q0lXCLgHhKguBA==} dependencies: '@babel/parser': 7.23.9 - '@vue/compiler-core': 3.4.18 - '@vue/compiler-dom': 3.4.18 - '@vue/compiler-ssr': 3.4.18 - '@vue/shared': 3.4.18 + '@vue/compiler-core': 3.4.15 + '@vue/compiler-dom': 3.4.15 + '@vue/compiler-ssr': 3.4.15 + '@vue/shared': 3.4.15 estree-walker: 2.0.2 magic-string: 0.30.7 postcss: 8.4.33 source-map-js: 1.0.2 dev: false - /@vue/compiler-ssr@3.4.18: - resolution: {integrity: sha512-hSlv20oUhPxo2UYUacHgGaxtqP0tvFo6ixxxD6JlXIkwzwoZ9eKK6PFQN4hNK/R13JlNyldwWt/fqGBKgWJ6nQ==} + /@vue/compiler-ssr@3.4.15: + resolution: {integrity: sha512-1jdeQyiGznr8gjFDadVmOJqZiLNSsMa5ZgqavkPZ8O2wjHv0tVuAEsw5hTdUoUW4232vpBbL/wJhzVW/JwY1Uw==} dependencies: - '@vue/compiler-dom': 3.4.18 - '@vue/shared': 3.4.18 + '@vue/compiler-dom': 3.4.15 + '@vue/shared': 3.4.15 dev: false /@vue/devtools-api@6.5.1: resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==} dev: false - /@vue/reactivity@3.4.18: - resolution: {integrity: sha512-7uda2/I0jpLiRygprDo5Jxs2HJkOVXcOMlyVlY54yRLxoycBpwGJRwJT9EdGB4adnoqJDXVT2BilUAYwI7qvmg==} + /@vue/reactivity@3.4.15: + resolution: {integrity: sha512-55yJh2bsff20K5O84MxSvXKPHHt17I2EomHznvFiJCAZpJTNW8IuLj1xZWMLELRhBK3kkFV/1ErZGHJfah7i7w==} dependencies: - '@vue/shared': 3.4.18 + '@vue/shared': 3.4.15 dev: false - /@vue/runtime-core@3.4.18: - resolution: {integrity: sha512-7mU9diCa+4e+8/wZ7Udw5pwTH10A11sZ1nldmHOUKJnzCwvZxfJqAtw31mIf4T5H2FsLCSBQT3xgioA9vIjyDQ==} + /@vue/runtime-core@3.4.15: + resolution: {integrity: sha512-6E3by5m6v1AkW0McCeAyhHTw+3y17YCOKG0U0HDKDscV4Hs0kgNT5G+GCHak16jKgcCDHpI9xe5NKb8sdLCLdw==} dependencies: - '@vue/reactivity': 3.4.18 - '@vue/shared': 3.4.18 + '@vue/reactivity': 3.4.15 + '@vue/shared': 3.4.15 dev: false - /@vue/runtime-dom@3.4.18: - resolution: {integrity: sha512-2y1Mkzcw1niSfG7z3Qx+2ir9Gb4hdTkZe5p/I8x1aTIKQE0vY0tPAEUPhZm5tx6183gG3D/KwHG728UR0sIufA==} + /@vue/runtime-dom@3.4.15: + resolution: {integrity: sha512-EVW8D6vfFVq3V/yDKNPBFkZKGMFSvZrUQmx196o/v2tHKdwWdiZjYUBS+0Ez3+ohRyF8Njwy/6FH5gYJ75liUw==} dependencies: - '@vue/runtime-core': 3.4.18 - '@vue/shared': 3.4.18 + '@vue/runtime-core': 3.4.15 + '@vue/shared': 3.4.15 csstype: 3.1.3 dev: false - /@vue/server-renderer@3.4.18(vue@3.4.18): - resolution: {integrity: sha512-YJd1wa7mzUN3NRqLEsrwEYWyO+PUBSROIGlCc3J/cvn7Zu6CxhNLgXa8Z4zZ5ja5/nviYO79J1InoPeXgwBTZA==} + /@vue/server-renderer@3.4.15(vue@3.4.15): + resolution: {integrity: sha512-3HYzaidu9cHjrT+qGUuDhFYvF/j643bHC6uUN9BgM11DVy+pM6ATsG6uPBLnkwOgs7BpJABReLmpL3ZPAsUaqw==} peerDependencies: - vue: 3.4.18 + vue: 3.4.15 dependencies: - '@vue/compiler-ssr': 3.4.18 - '@vue/shared': 3.4.18 - vue: 3.4.18(typescript@5.3.3) + '@vue/compiler-ssr': 3.4.15 + '@vue/shared': 3.4.15 + vue: 3.4.15(typescript@5.3.3) dev: false - /@vue/shared@3.4.18: - resolution: {integrity: sha512-CxouGFxxaW5r1WbrSmWwck3No58rApXgRSBxrqgnY1K+jk20F6DrXJkHdH9n4HVT+/B6G2CAn213Uq3npWiy8Q==} + /@vue/shared@3.4.15: + resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==} dev: false - /@vueuse/core@10.7.2(vue@3.4.18): + /@vueuse/core@10.7.2(vue@3.4.15): resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==} dependencies: '@types/web-bluetooth': 0.0.20 '@vueuse/metadata': 10.7.2 - '@vueuse/shared': 10.7.2(vue@3.4.18) - vue-demi: 0.14.6(vue@3.4.18) + '@vueuse/shared': 10.7.2(vue@3.4.15) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -624,10 +624,10 @@ packages: resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==} dev: false - /@vueuse/shared@10.7.2(vue@3.4.18): + /@vueuse/shared@10.7.2(vue@3.4.15): resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==} dependencies: - vue-demi: 0.14.6(vue@3.4.18) + vue-demi: 0.14.6(vue@3.4.15) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -1211,7 +1211,7 @@ packages: engines: {node: '>=0.10.0'} dev: false - /pinia@2.1.7(typescript@5.3.3)(vue@3.4.18): + /pinia@2.1.7(typescript@5.3.3)(vue@3.4.15): resolution: {integrity: sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==} peerDependencies: '@vue/composition-api': ^1.4.0 @@ -1225,8 +1225,8 @@ packages: dependencies: '@vue/devtools-api': 6.5.1 typescript: 5.3.3 - vue: 3.4.18(typescript@5.3.3) - vue-demi: 0.14.6(vue@3.4.18) + vue: 3.4.15(typescript@5.3.3) + vue-demi: 0.14.6(vue@3.4.15) dev: false /pirates@4.0.6: @@ -1629,7 +1629,7 @@ packages: optionalDependencies: fsevents: 2.3.3 - /vue-advanced-cropper@2.8.8(vue@3.4.18): + /vue-advanced-cropper@2.8.8(vue@3.4.15): resolution: {integrity: sha512-yDM7Jb/gnxcs//JdbOogBUoHr1bhCQSto7/ohgETKAe4wvRpmqIkKSppMm1huVQr+GP1YoVlX/fkjKxvYzwwDQ==} engines: {node: '>=8', npm: '>=5'} peerDependencies: @@ -1638,10 +1638,10 @@ packages: classnames: 2.5.1 debounce: 1.2.1 easy-bem: 1.1.1 - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false - /vue-demi@0.14.6(vue@3.4.18): + /vue-demi@0.14.6(vue@3.4.15): resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==} engines: {node: '>=12'} hasBin: true @@ -1653,55 +1653,55 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false - /vue-router@4.2.5(vue@3.4.18): + /vue-router@4.2.5(vue@3.4.15): resolution: {integrity: sha512-DIUpKcyg4+PTQKfFPX88UWhlagBEBEfJ5A8XDXRJLUnZOvcpMF8o/dnL90vpVkGaPbjvXazV/rC1qBKrZlFugw==} peerDependencies: vue: ^3.2.0 dependencies: '@vue/devtools-api': 6.5.1 - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false /vue-sonner@1.0.2: resolution: {integrity: sha512-BXIyb9lGSMUjTpOukISp7oV9nrczgbfYz+TnDeoap3io3ayGXiWv+/3eQ9UKnmofwUlC4nh/H5jzBOO89lRItQ==} dev: false - /vue3-apexcharts@1.4.4(apexcharts@3.45.2)(vue@3.4.18): + /vue3-apexcharts@1.4.4(apexcharts@3.45.2)(vue@3.4.15): resolution: {integrity: sha512-TH89uZrxGjaDvkaYAISvj8+k6Bf1rUKFillc8oJirs5XZEPiwM1ELKZQ786wz0rfPqkSHHny2lqqUCK7Rw+LcQ==} peerDependencies: apexcharts: '> 3.0.0' vue: '> 3.0.0' dependencies: apexcharts: 3.45.2 - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false - /vue@3.4.18(typescript@5.3.3): - resolution: {integrity: sha512-0zLRYamFRe0wF4q2L3O24KQzLyLpL64ye1RUToOgOxuWZsb/FhaNRdGmeozdtVYLz6tl94OXLaK7/WQIrVCw1A==} + /vue@3.4.15(typescript@5.3.3): + resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.18 - '@vue/compiler-sfc': 3.4.18 - '@vue/runtime-dom': 3.4.18 - '@vue/server-renderer': 3.4.18(vue@3.4.18) - '@vue/shared': 3.4.18 + '@vue/compiler-dom': 3.4.15 + '@vue/compiler-sfc': 3.4.15 + '@vue/runtime-dom': 3.4.15 + '@vue/server-renderer': 3.4.15(vue@3.4.15) + '@vue/shared': 3.4.15 typescript: 5.3.3 dev: false - /vuedraggable@4.1.0(vue@3.4.18): + /vuedraggable@4.1.0(vue@3.4.15): resolution: {integrity: sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww==} peerDependencies: vue: ^3.0.1 dependencies: sortablejs: 1.14.0 - vue: 3.4.18(typescript@5.3.3) + vue: 3.4.15(typescript@5.3.3) dev: false /which@2.0.2: diff --git a/src/components/admin/gps/DriversInGrandPrix.vue b/src/components/admin/gps/DriversInGrandPrix.vue index 2dc6501..4a320e5 100644 --- a/src/components/admin/gps/DriversInGrandPrix.vue +++ b/src/components/admin/gps/DriversInGrandPrix.vue @@ -21,7 +21,7 @@ > @@ -49,7 +49,7 @@ > diff --git a/src/components/admin/gps/SessionsInGrandPrix.vue b/src/components/admin/gps/SessionsInGrandPrix.vue index 47b5dd3..9a1a194 100644 --- a/src/components/admin/gps/SessionsInGrandPrix.vue +++ b/src/components/admin/gps/SessionsInGrandPrix.vue @@ -113,7 +113,7 @@ export default defineComponent({ methods: { addSessionToGP() { if (Object.keys(this.newSession.session).length != 0) { - const data = { session: this.newSession.session.name, date: this.newSession.date }; + const data = { session: this.newSession.session.id, date: this.newSession.date }; sessionService.addSessionInGrandPrix(this.grandPrix, data).then((session) => { this.isCreatingSession = false; this.sessions.push(session); diff --git a/src/components/gps/SelectTipps.vue b/src/components/gps/SelectTipps.vue index 363835c..344ac19 100644 --- a/src/components/gps/SelectTipps.vue +++ b/src/components/gps/SelectTipps.vue @@ -90,7 +90,7 @@
- El pronóstico debe tener {{ ruleSet.cantidadPilotosPronosticados(session) }} pilotos escogidos y ordenados. + El pronóstico debe tener {{ ruleSet.cantidadPilotosPronosticados(session) }} pilotos escogidos y ordenados (Has escogido {{ pilotosPronosticados.length}} ).
@@ -113,7 +113,7 @@ import {RaceResult} from "@/types/RaceResult"; import {StartGridPosition} from "@/types/StartGridPosition"; import {RuleSet} from "@/types/RuleSet"; -import {defineComponent, PropType} from "vue"; +import {defineComponent, PropType, ref} from "vue"; import {useAuthStore} from "@/store/authStore"; import {useCommunityStore} from "@/store/communityStore"; import {useStyles} from "@/composables/useStyles"; @@ -215,14 +215,14 @@ export default defineComponent({ this.sendingPronostico = true; let tipps: Array = []; - this.pilotosPronosticados.forEach((driver, index, array) => { + this.pilotosPronosticados.forEach((driver: Driver, index: number, array: Driver[]) => { tipps.push({position: index + 1, driver: {id: driver.id} as Driver} as RaceResult); }); try { await grandPrixService.postUserTipps(this.grandPrix, this.session, this.currentCommunity, tipps); notificationService.showNotification("¡Has guardado tus pronósticos!"); - } catch (error) { + } catch (error: any) { let message = "Error guardando tus pronósticos: " + error.message; notificationService.showNotification(message, "error");