Migrate to Vue 3 and Vite

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-07-12 10:55:28 +02:00
parent 8f4099ee33
commit ee20e03cc2
464 changed files with 31515 additions and 32758 deletions

View File

@@ -6,7 +6,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Statistics do
alias Mobilizon.Service.Statistics, as: StatisticsModule
@doc """
Gets config.
Gets statistics.
"""
@spec get_statistics(any(), any(), any()) :: {:ok, map()}
def get_statistics(_parent, _params, _context) do
@@ -23,4 +23,12 @@ defmodule Mobilizon.GraphQL.Resolvers.Statistics do
number_of_instance_followers: StatisticsModule.get_cached_value(:instance_followers)
}}
end
@doc """
Gets category statistics
"""
@spec get_category_statistics(any(), any(), any()) :: {:ok, list()}
def get_category_statistics(_parent, _params, _context) do
{:ok, StatisticsModule.category_statistics()}
end
end