From b514d417c0b7f9c130cd18e97978d88f362e8ff4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 11 Oct 2022 14:58:55 +0200 Subject: [PATCH 1/8] Add typespec for category_statistics Signed-off-by: Thomas Citharel --- lib/mobilizon/events/events.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mobilizon/events/events.ex b/lib/mobilizon/events/events.ex index cfc3804e..34034989 100644 --- a/lib/mobilizon/events/events.ex +++ b/lib/mobilizon/events/events.ex @@ -1674,6 +1674,7 @@ defmodule Mobilizon.Events do |> Repo.all() end + @spec category_statistics :: [{String.t(), non_neg_integer()}] def category_statistics do Event |> filter_future_events(true) From ff1fbdfdbac2743333db9f4f6d66ee29411e98ee Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 11 Oct 2022 14:59:13 +0200 Subject: [PATCH 2/8] Handle categories page empty and fix attribution section Signed-off-by: Thomas Citharel --- js/src/views/CategoriesView.vue | 49 +++++++++++---------------------- 1 file changed, 16 insertions(+), 33 deletions(-) diff --git a/js/src/views/CategoriesView.vue b/js/src/views/CategoriesView.vue index e058d618..52a6f528 100644 --- a/js/src/views/CategoriesView.vue +++ b/js/src/views/CategoriesView.vue @@ -1,7 +1,8 @@