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

@@ -22,6 +22,7 @@ defmodule Mobilizon.GraphQL.Schema.AddressType do
field(:id, :id, description: "The address's ID")
field(:origin_id, :string, description: "The address's original ID from the provider")
field(:timezone, :string, description: "The (estimated) timezone of the location")
field(:picture_info, :picture_info, description: "A picture associated with the address")
end
@desc """
@@ -40,6 +41,20 @@ defmodule Mobilizon.GraphQL.Schema.AddressType do
field(:info, :string)
end
object :picture_info_element do
field(:name, :string)
field(:url, :string)
end
@desc """
A picture associated with an address
"""
object :picture_info do
field(:url, :string)
field(:author, :picture_info_element)
field(:source, :picture_info_element)
end
@desc """
An address input
"""

View File

@@ -26,10 +26,20 @@ defmodule Mobilizon.GraphQL.Schema.StatisticsType do
)
end
object :category_statistics do
field(:key, :string, description: "The key for the category")
field(:number, :integer, description: "The number of events for the given category")
end
object :statistics_queries do
@desc "Get the instance statistics"
field :statistics, :statistics do
resolve(&Statistics.get_statistics/3)
end
@desc "Get the instance's category statistics"
field :category_statistics, list_of(:category_statistics) do
resolve(&Statistics.get_category_statistics/3)
end
end
end