diff --git a/config/config.exs b/config/config.exs index 3704be0e..78bf04dd 100644 --- a/config/config.exs +++ b/config/config.exs @@ -65,6 +65,10 @@ config :mime, :types, %{ "application/xrd+xml" => ["xrd-xml"] } +config :mime, :extensions, %{ + "activity-json" => "application/activity+json" +} + # Upload configuration config :mobilizon, Mobilizon.Web.Upload, uploader: Mobilizon.Web.Upload.Uploader.Local, diff --git a/js/package.json b/js/package.json index ca6fa9a9..77982a9c 100644 --- a/js/package.json +++ b/js/package.json @@ -56,7 +56,7 @@ "@tiptap/vue-3": "^2.0.0-beta.96", "@vue-a11y/announcer": "^2.1.0", "@vue-a11y/skip-to": "^2.1.2", - "@vue-leaflet/vue-leaflet": "^0.9.0", + "@vue-leaflet/vue-leaflet": "^0.10.1", "@vue/apollo-composable": "^4.0.0-beta.5", "@vue/compiler-sfc": "^3.2.37", "@vueuse/core": "^10.0.2", @@ -111,8 +111,8 @@ "@types/phoenix": "^1.5.2", "@types/sanitize-html": "^2.5.0", "@vitejs/plugin-vue": "^4.0.0", - "@vitest/coverage-c8": "^0.31.0", - "@vitest/ui": "^0.31.0", + "@vitest/coverage-c8": "^0.32.2", + "@vitest/ui": "^0.32.2", "@vue/eslint-config-prettier": "^7.0.0", "@vue/eslint-config-typescript": "^11.0.0", "@vue/test-utils": "^2.0.2", @@ -131,10 +131,10 @@ "prettier-eslint": "^15.0.1", "rollup-plugin-visualizer": "^5.7.1", "sass": "^1.34.1", - "typescript": "~5.0.0", + "typescript": "~5.1.3", "vite": "^4.0.4", - "vite-plugin-pwa": "^0.15.1", - "vitest": "^0.31.0", + "vite-plugin-pwa": "^0.16.4", + "vitest": "^0.32.2", "vue-i18n-extract": "^2.0.4" } } diff --git a/js/src/graphql/event.ts b/js/src/graphql/event.ts index 87e54ecb..3e9aaae6 100644 --- a/js/src/graphql/event.ts +++ b/js/src/graphql/event.ts @@ -482,6 +482,9 @@ export const EXPORT_EVENT_PARTICIPATIONS = gql` $format: ExportFormatEnum $roles: [ParticipantRoleEnum] ) { - exportEventParticipants(eventId: $eventId, format: $format, roles: $roles) + exportEventParticipants(eventId: $eventId, format: $format, roles: $roles) { + path + format + } } `; diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 4b4b6101..c78839b8 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -1564,5 +1564,8 @@ "No apps authorized yet": "No apps authorized yet", "You have been logged-out": "You have been logged-out", "An “application programming interface” or “API” is a communication protocol that allows software components to communicate with each other. The Mobilizon API, for example, can allow third-party software tools to communicate with Mobilizon instances to carry out certain actions, such as posting events on your behalf, automatically and remotely.": "An “application programming interface” or “API” is a communication protocol that allows software components to communicate with each other. The Mobilizon API, for example, can allow third-party software tools to communicate with Mobilizon instances to carry out certain actions, such as posting events on your behalf, automatically and remotely.", - "Announcements": "Announcements" + "Announcements": "Announcements", + "Application authorized": "Application authorized", + "Check your device to continue. You may now close this window.": "Check your device to continue. You may now close this window.", + "Participants to {eventTitle}": "Participants to {eventTitle}" } \ No newline at end of file diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 52327f25..5a4fdaf0 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1560,5 +1560,8 @@ "{username} was invited to {group}": "{username} a été invité à {group}", "{user}'s follow request was accepted": "La demande de suivi de {user} a été acceptée", "{user}'s follow request was rejected": "La demande de suivi de {user} a été rejetée", - "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap" + "© The OpenStreetMap Contributors": "© Les Contributeur⋅ices OpenStreetMap", + "Application authorized": "Application autorisée", + "Check your device to continue. You may now close this window.": "Vérifiez votre appareil pour continuer. Vous pouvez maintenant fermer cette fenêtre.", + "Participants to {eventTitle}": "Participant·es à {eventTitle}" } diff --git a/js/src/views/Event/ParticipantsView.vue b/js/src/views/Event/ParticipantsView.vue index 821fcdb6..c645075f 100644 --- a/js/src/views/Event/ParticipantsView.vue +++ b/js/src/views/Event/ParticipantsView.vue @@ -55,22 +55,16 @@ :key="format" aria-role="listitem" @click=" - exportParticipants( - { - eventId: event?.id, - format, - }, - { context: { type: format } } - ) + exportParticipants({ + eventId: event.id ?? '', + format, + }) " @keyup.enter=" - exportParticipants( - { - eventId: event?.id, - format, - }, - { context: { type: format } } - ) + exportParticipants({ + eventId: event.id ?? '', + format, + }) " >