From abf3a58657c8e14fcd6faa75e55607ff596502f8 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 20 Sep 2019 18:22:03 +0200 Subject: [PATCH] Allow to accept / reject participants Signed-off-by: Thomas Citharel --- js/src/App.vue | 2 + js/src/components/Account/ActorLink.vue | 4 +- js/src/components/Account/ParticipantCard.vue | 48 +++ js/src/components/Event/EventCard.vue | 1 - js/src/components/Event/EventListCard.vue | 7 +- .../components/Event/ParticipationModal.vue | 18 +- js/src/components/Report/ReportModal.vue | 25 +- js/src/graphql/actor.ts | 1 + js/src/graphql/event.ts | 47 ++- js/src/i18n/en_US.json | 26 +- js/src/i18n/fr_FR.json | 27 +- js/src/router/event.ts | 13 +- js/src/types/event.model.ts | 18 +- js/src/views/Event/Edit.vue | 22 +- js/src/views/Event/Event.vue | 112 ++---- js/src/views/Event/Participants.vue | 197 ++++++++++ js/src/views/Group/Group.vue | 2 +- js/src/views/Home.vue | 21 +- lib/mobilizon/events/event.ex | 2 + lib/mobilizon/events/events.ex | 279 ++++++++------ lib/mobilizon_web/api/events.ex | 10 +- lib/mobilizon_web/api/participations.ex | 40 +- lib/mobilizon_web/resolvers/event.ex | 103 ++++- lib/mobilizon_web/schema/event.ex | 24 +- .../schema/events/participant.ex | 29 +- lib/service/activity_pub/converters/event.ex | 1 + lib/service/activity_pub/utils.ex | 1 + schema.graphql | 52 ++- test/mobilizon/events/events_test.exs | 7 - .../activity_pub/transmogrifier_test.exs | 4 +- .../resolvers/participant_resolver_test.exs | 364 +++++++++++++++++- 31 files changed, 1208 insertions(+), 299 deletions(-) create mode 100644 js/src/components/Account/ParticipantCard.vue create mode 100644 js/src/views/Event/Participants.vue diff --git a/js/src/App.vue b/js/src/App.vue index 81b2635fa..6ee556880 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -82,6 +82,7 @@ export default class App extends Vue { @import "~bulma/sass/components/dropdown.sass"; @import "~bulma/sass/components/breadcrumb.sass"; @import "~bulma/sass/components/list.sass"; +@import "~bulma/sass/components/tabs"; @import "~bulma/sass/elements/box.sass"; @import "~bulma/sass/elements/button.sass"; @import "~bulma/sass/elements/container.sass"; @@ -112,6 +113,7 @@ export default class App extends Vue { @import "~buefy/src/scss/components/radio"; @import "~buefy/src/scss/components/switch"; @import "~buefy/src/scss/components/table"; +@import "~buefy/src/scss/components/tabs"; .router-enter-active, .router-leave-active { diff --git a/js/src/components/Account/ActorLink.vue b/js/src/components/Account/ActorLink.vue index 94ca6839a..9d39e6926 100644 --- a/js/src/components/Account/ActorLink.vue +++ b/js/src/components/Account/ActorLink.vue @@ -1,10 +1,10 @@