From 58a1d857a175c2d0c95ab77d35d390a247985514 Mon Sep 17 00:00:00 2001 From: Laurent GAY Date: Fri, 24 Oct 2025 17:40:29 +0200 Subject: [PATCH] update frontend lib : leaflet + oruga - #1815 --- package-lock.json | 56 +-- package.json | 8 +- src/components/Comment/CommentTree.vue | 2 +- src/components/Comment/EventComment.vue | 2 +- .../Conversations/NewConversation.vue | 4 +- .../Discussion/DiscussionComment.vue | 2 +- src/components/Event/EventActionSection.vue | 2 +- src/components/Event/EventMetadataList.vue | 2 +- .../Event/FullAddressAutoComplete.vue | 39 +- src/components/Feedback/SentryFeedback.vue | 2 +- src/components/Home/SearchFields.vue | 6 +- src/components/Home/ShortSearch.vue | 2 +- .../Participation/NewPrivateMessage.vue | 2 +- .../ParticipationWithoutAccount.vue | 9 +- src/plugins/dateFns.ts | 4 +- src/views/Admin/AdminUserProfile.vue | 6 +- src/views/Admin/InstancesView.vue | 2 +- src/views/Admin/SettingsView.vue | 2 +- src/views/Conversations/ConversationView.vue | 2 +- src/views/Discussions/CreateView.vue | 2 +- src/views/Discussions/DiscussionView.vue | 4 +- src/views/Group/CreateView.vue | 2 +- src/views/Group/GroupMembers.vue | 2 +- src/views/Group/GroupSettings.vue | 2 +- src/views/OAuth/DeviceActivationView.vue | 2 +- src/views/Posts/EditView.vue | 2 +- src/views/Resources/ResourceFolder.vue | 6 +- src/views/Settings/AccountSettings.vue | 2 +- src/views/Todos/TodoList.vue | 2 +- src/views/Todos/TodoLists.vue | 2 +- src/views/User/LoginView.vue | 2 +- src/views/User/RegisterView.vue | 2 +- src/views/User/ResendConfirmation.vue | 2 +- src/views/User/SendPasswordReset.vue | 2 +- .../__snapshots__/CommentTree.spec.ts.snap | 4 +- .../__snapshots__/EventComment.spec.ts.snap | 84 ++--- .../DiscussionComment.spec.ts.snap | 64 ++-- .../EventActionSection.spec.ts.snap | 6 +- .../OrganizerPicker.spec.ts.snap | 4 +- .../OrganizerPickerWrapper.spec.ts.snap | 10 +- .../ParticipationButton.spec.ts.snap | 56 ++- .../ShareEventModal.spec.ts.snap | 134 +++---- .../Event/__snapshots__/TagInput.spec.ts.snap | 46 ++- .../GroupMemberCard.spec.ts.snap | 36 +- .../__snapshots__/GroupSection.spec.ts.snap | 4 +- .../MobilizonPresentation.spec.ts.snap | 2 +- .../__snapshots__/SearchFields.spec.ts.snap | 8 +- .../ParticipationSection.spec.ts | 6 +- .../ParticipationWithoutAccount.spec.ts.snap | 42 +-- .../__snapshots__/SharePostModal.spec.ts.snap | 64 ++-- .../components/Report/ReportModal.spec.ts | 11 +- .../__snapshots__/ReportModal.spec.ts.snap | 20 +- .../__snapshots__/AuthProviders.spec.ts.snap | 4 +- .../__snapshots__/CreateView.spec.ts.snap | 114 +++--- .../__snapshots__/GroupSettings.spec.ts.snap | 2 +- .../__snapshots__/GroupView.spec.ts.snap | 2 +- .../Group/__snapshots__/MyGroups.spec.ts.snap | 2 +- .../__snapshots__/TimelineView.spec.ts.snap | 124 ++++--- .../specs/views/User/PasswordReset.spec.ts | 2 +- .../specs/views/User/RegisterView.spec.ts | 10 +- .../__snapshots__/RegisterView.spec.ts.snap | 78 ++-- .../resendConfirmation.spec.ts.snap | 20 +- .../sendPasswordReset.spec.ts.snap | 20 +- .../settingsOnboard.spec.ts.snap | 18 +- tests/unit/specs/views/User/login.spec.ts | 1 + .../views/User/sendPasswordReset.spec.ts | 1 + .../adminGroupProfile.spec.ts.snap | 97 ++--- .../__snapshots__/adminProfile.spec.ts.snap | 82 +++-- .../adminUsersProfileView.spec.ts.snap | 348 ++++++++---------- .../__snapshots__/groupProfiles.spec.ts.snap | 50 ++- .../__snapshots__/instanceView.spec.ts.snap | 2 +- .../__snapshots__/instancesView.spec.ts.snap | 52 ++- .../__snapshots__/profilesView.spec.ts.snap | 50 ++- .../admin/__snapshots__/settings.spec.ts.snap | 2 +- .../__snapshots__/usersView.spec.ts.snap | 148 ++++---- 75 files changed, 944 insertions(+), 1076 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5a3ce0a61..6ce79cc20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,8 @@ "@fullcalendar/daygrid": "^6.1.10", "@fullcalendar/interaction": "^6.1.10", "@fullcalendar/vue3": "^6.1.10", - "@oruga-ui/oruga-next": "0.8.12", - "@oruga-ui/theme-oruga": "^0.2.0", + "@oruga-ui/oruga-next": "^0.11.6", + "@oruga-ui/theme-oruga": "^0.7.1", "@sentry/tracing": "^7.1", "@sentry/vue": "^10.21.0", "@tiptap/core": "^3.7.2", @@ -65,7 +65,7 @@ "intersection-observer": "^0.12.0", "jwt-decode": "^4.0.0", "leaflet": "^1.4.0", - "leaflet.locatecontrol": "^0.79", + "leaflet.locatecontrol": "^0.85.1", "leaflet.markercluster": "^1.5.3", "lodash": "^4.17.11", "ngeohash": "^0.6.3", @@ -96,7 +96,7 @@ "@tailwindcss/typography": "^0.5.4", "@types/hammerjs": "^2.0.41", "@types/leaflet": "^1.5.2", - "@types/leaflet.locatecontrol": "^0.74", + "@types/leaflet.locatecontrol": "^0.82.1", "@types/leaflet.markercluster": "^1.5.1", "@types/lodash": "^4.14.141", "@types/ngeohash": "^0.6.2", @@ -3055,19 +3055,25 @@ "license": "MIT" }, "node_modules/@oruga-ui/oruga-next": { - "version": "0.8.12", - "resolved": "https://registry.npmjs.org/@oruga-ui/oruga-next/-/oruga-next-0.8.12.tgz", - "integrity": "sha512-I1jcsTA4J6HQdNpSWgK4cNSqv1cHsghQGtJ12p0yXDSJseek0Y8f4vf9+tDRtfONzWHuRyWUGcHIfePsRKVbiQ==", + "version": "0.11.6", + "resolved": "https://registry.npmjs.org/@oruga-ui/oruga-next/-/oruga-next-0.11.6.tgz", + "integrity": "sha512-2ymMckljKlsbe5BtQJoB4XV61PLnPdThpNJWpHjl/KLRQpAOyQK5wbsIr3sTSiYGGrwDt0IDq8bibMkJyh/7ww==", "license": "MIT", + "dependencies": { + "vue-component-type-helpers": "^3.0.5" + }, "peerDependencies": { "vue": "^3.0.0" } }, "node_modules/@oruga-ui/theme-oruga": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@oruga-ui/theme-oruga/-/theme-oruga-0.2.2.tgz", - "integrity": "sha512-0l5Td4y75He0Yz0I8FkP4TcMaEpeBFeDv49RZyiQm23gfdCqpeZyLQfhHU++e5OTjfd1llHtUA+DtTLIXgdspg==", - "license": "MIT" + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@oruga-ui/theme-oruga/-/theme-oruga-0.7.1.tgz", + "integrity": "sha512-lQSjaTmEUsjcXAckZiFyDFsP+MqtoeZtbIikVOrQpbS+cu8NdBEJWd4ew/pzfqlrl+64CFJRM1yERaQ3orpjUQ==", + "license": "MIT", + "peerDependencies": { + "@oruga-ui/oruga-next": "^0.11.0" + } }, "node_modules/@parcel/watcher": { "version": "2.5.1", @@ -4589,13 +4595,13 @@ } }, "node_modules/@types/leaflet.locatecontrol": { - "version": "0.74.6", - "resolved": "https://registry.npmjs.org/@types/leaflet.locatecontrol/-/leaflet.locatecontrol-0.74.6.tgz", - "integrity": "sha512-IMnp6zSkiEKx5fwZSfySIyQWJWR/tpF00jRZC6BmFU//ygVRChakQpGPMpHIjQOnP3UMTmTXgztvQ2AwlHL8Mg==", + "version": "0.82.1", + "resolved": "https://registry.npmjs.org/@types/leaflet.locatecontrol/-/leaflet.locatecontrol-0.82.1.tgz", + "integrity": "sha512-AcDyhhPDrF48iRa0/ShKgtAgR7a6ts2SzsoUUM9/+IwTZl/1iPP/JIg+wpwoobTMfx+bF2mUUkXKRwieveVgNQ==", "dev": true, "license": "MIT", "dependencies": { - "@types/leaflet": "*" + "@types/leaflet": "^1.9" } }, "node_modules/@types/leaflet.markercluster": { @@ -5377,6 +5383,13 @@ "vue-component-type-helpers": "^2.0.0" } }, + "node_modules/@vue/test-utils/node_modules/vue-component-type-helpers": { + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-2.2.12.tgz", + "integrity": "sha512-YbGqHZ5/eW4SnkPNR44mKVc6ZKQoRs/Rux1sxC6rdwXb4qpbOSYfDr9DsTHolOTGmIKgM9j141mZbBeg05R1pw==", + "dev": true, + "license": "MIT" + }, "node_modules/@vueuse/core": { "version": "10.11.1", "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.11.1.tgz", @@ -9592,9 +9605,9 @@ "license": "BSD-2-Clause" }, "node_modules/leaflet.locatecontrol": { - "version": "0.79.0", - "resolved": "https://registry.npmjs.org/leaflet.locatecontrol/-/leaflet.locatecontrol-0.79.0.tgz", - "integrity": "sha512-h64QIHFkypYdr90lkSfjKvPvvk8/b8UnP3m9WuoWdp5p2AaCWC0T1NVwyuj4rd5U4fBW3tQt4ppmZ2LceHMIDg==", + "version": "0.85.1", + "resolved": "https://registry.npmjs.org/leaflet.locatecontrol/-/leaflet.locatecontrol-0.85.1.tgz", + "integrity": "sha512-aB2qrwZO7Vs4EbWja6pyGy6Y1Mr2yeOqH3PN+Ocnjb4pgpiwYsX1AOI0mppVYzUTO2zwjafxVTOffiwEE32udA==", "license": "MIT" }, "node_modules/leaflet.markercluster": { @@ -14090,10 +14103,9 @@ } }, "node_modules/vue-component-type-helpers": { - "version": "2.2.12", - "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-2.2.12.tgz", - "integrity": "sha512-YbGqHZ5/eW4SnkPNR44mKVc6ZKQoRs/Rux1sxC6rdwXb4qpbOSYfDr9DsTHolOTGmIKgM9j141mZbBeg05R1pw==", - "dev": true, + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.1.1.tgz", + "integrity": "sha512-B0kHv7qX6E7+kdc5nsaqjdGZ1KwNKSUQDWGy7XkTYT7wFsOpkEyaJ1Vq79TjwrrtuLRgizrTV7PPuC4rRQo+vw==", "license": "MIT" }, "node_modules/vue-eslint-parser": { diff --git a/package.json b/package.json index 57cf01a04..86f609350 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "@fullcalendar/daygrid": "^6.1.10", "@fullcalendar/interaction": "^6.1.10", "@fullcalendar/vue3": "^6.1.10", - "@oruga-ui/oruga-next": "0.8.12", - "@oruga-ui/theme-oruga": "^0.2.0", + "@oruga-ui/oruga-next": "^0.11.6", + "@oruga-ui/theme-oruga": "^0.7.1", "@sentry/tracing": "^7.1", "@sentry/vue": "^10.21.0", "@tiptap/core": "^3.7.2", @@ -84,7 +84,7 @@ "intersection-observer": "^0.12.0", "jwt-decode": "^4.0.0", "leaflet": "^1.4.0", - "leaflet.locatecontrol": "^0.79", + "leaflet.locatecontrol": "^0.85.1", "leaflet.markercluster": "^1.5.3", "lodash": "^4.17.11", "ngeohash": "^0.6.3", @@ -115,7 +115,7 @@ "@tailwindcss/typography": "^0.5.4", "@types/hammerjs": "^2.0.41", "@types/leaflet": "^1.5.2", - "@types/leaflet.locatecontrol": "^0.74", + "@types/leaflet.locatecontrol": "^0.82.1", "@types/leaflet.markercluster": "^1.5.1", "@types/lodash": "^4.14.141", "@types/ngeohash": "^0.6.2", diff --git a/src/components/Comment/CommentTree.vue b/src/components/Comment/CommentTree.vue index 163481641..d6b1c6462 100644 --- a/src/components/Comment/CommentTree.vue +++ b/src/components/Comment/CommentTree.vue @@ -45,7 +45,7 @@
- {{ + {{ t("Send") }}
diff --git a/src/components/Comment/EventComment.vue b/src/components/Comment/EventComment.vue index 2512753fc..fd2482fb4 100644 --- a/src/components/Comment/EventComment.vue +++ b/src/components/Comment/EventComment.vue @@ -162,7 +162,7 @@ /> {{ t("Post a reply") }} diff --git a/src/components/Discussion/DiscussionComment.vue b/src/components/Discussion/DiscussionComment.vue index 0813a9198..63f1dc7b5 100644 --- a/src/components/Discussion/DiscussionComment.vue +++ b/src/components/Discussion/DiscussionComment.vue @@ -118,7 +118,7 @@ />
{{ t("Update") }}{{ t("Cancel") }} - + {{ t("Confirm my participation") }}
diff --git a/src/components/Event/EventMetadataList.vue b/src/components/Event/EventMetadataList.vue index c76805bb8..6eeed8e87 100644 --- a/src/components/Event/EventMetadataList.vue +++ b/src/components/Event/EventMetadataList.vue @@ -91,7 +91,7 @@ - {{ + {{ $t("Add") }} diff --git a/src/components/Event/FullAddressAutoComplete.vue b/src/components/Event/FullAddressAutoComplete.vue index e17504193..c0ab08371 100644 --- a/src/components/Event/FullAddressAutoComplete.vue +++ b/src/components/Event/FullAddressAutoComplete.vue @@ -5,7 +5,7 @@ :label-for="id" :message="fieldErrors" :variant="fieldErrors ? 'danger' : ''" - class="!-mt-2" + class="!-mt-2 flex" :labelClass="labelClass" >