mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-08 13:51:05 +12:00
chore: format
This commit is contained in:
parent
2221ef824d
commit
56823dc9d9
15 changed files with 17 additions and 9 deletions
|
@ -7,8 +7,6 @@
|
|||
:ash_graphql,
|
||||
:ash_admin,
|
||||
:ash_csv,
|
||||
:ash_authentication,
|
||||
:ash_authentication_phoenix,
|
||||
:ash_oban
|
||||
],
|
||||
inputs: [
|
||||
|
|
|
@ -61,6 +61,7 @@ defmodule AshHq.Blog.Post do
|
|||
|
||||
attribute :tag_names, {:array, :ci_string} do
|
||||
public? true
|
||||
|
||||
constraints items: [
|
||||
match: ~r/^[a-zA-Z]*$/,
|
||||
casing: :lower
|
||||
|
@ -83,6 +84,7 @@ defmodule AshHq.Blog.Post do
|
|||
relationships do
|
||||
has_many :tags, AshHq.Blog.Tag do
|
||||
public? true
|
||||
|
||||
manual fn posts, %{query: query} ->
|
||||
all_tags = Enum.flat_map(posts, &(&1.tag_names || []))
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ defmodule AshHq.Discord.Message do
|
|||
attribute :content, :string do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :content_html, :string do
|
||||
public? true
|
||||
end
|
||||
|
|
|
@ -66,6 +66,7 @@ defmodule AshHq.Discord.Thread do
|
|||
|
||||
attributes do
|
||||
integer_primary_key :id, generated?: false, writable?: true
|
||||
|
||||
attribute :type, :integer do
|
||||
public? true
|
||||
end
|
||||
|
|
|
@ -101,12 +101,15 @@ defmodule AshHq.Docs.Dsl do
|
|||
attribute :arg_defaults, :map do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :path, {:array, :string} do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :recursive_as, :string do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :order, :integer do
|
||||
public? true
|
||||
allow_nil? false
|
||||
|
@ -135,9 +138,11 @@ defmodule AshHq.Docs.Dsl do
|
|||
belongs_to :dsl, __MODULE__ do
|
||||
public? true
|
||||
end
|
||||
|
||||
has_many :options, AshHq.Docs.Option do
|
||||
public? true
|
||||
end
|
||||
|
||||
has_many :dsls, __MODULE__ do
|
||||
public? true
|
||||
end
|
||||
|
|
|
@ -51,6 +51,7 @@ defmodule AshHq.Docs.Extension do
|
|||
has_many :dsls, AshHq.Docs.Dsl do
|
||||
public? true
|
||||
end
|
||||
|
||||
has_many :options, AshHq.Docs.Option do
|
||||
public? true
|
||||
end
|
||||
|
@ -66,7 +67,6 @@ defmodule AshHq.Docs.Extension do
|
|||
end
|
||||
|
||||
code_interface do
|
||||
|
||||
define :destroy
|
||||
end
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ defmodule AshHq.Docs.Function do
|
|||
attribute :file, :string do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :line, :integer do
|
||||
public? true
|
||||
end
|
||||
|
@ -132,7 +133,6 @@ defmodule AshHq.Docs.Function do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
resource do
|
||||
description "A function in a module exposed by an Ash library"
|
||||
end
|
||||
|
|
|
@ -131,7 +131,6 @@ defmodule AshHq.Docs.Guide do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
resource do
|
||||
description "Represents a markdown guide exposed by a library"
|
||||
end
|
||||
|
|
|
@ -114,12 +114,15 @@ defmodule AshHq.Docs.LibraryVersion do
|
|||
has_many :extensions, AshHq.Docs.Extension do
|
||||
public? true
|
||||
end
|
||||
|
||||
has_many :guides, AshHq.Docs.Guide do
|
||||
public? true
|
||||
end
|
||||
|
||||
has_many :modules, AshHq.Docs.Module do
|
||||
public? true
|
||||
end
|
||||
|
||||
has_many :mix_tasks, AshHq.Docs.MixTask do
|
||||
public? true
|
||||
end
|
||||
|
|
|
@ -105,7 +105,6 @@ defmodule AshHq.Docs.MixTask do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
resource do
|
||||
description "Represents a mix task that has been exposed by a library"
|
||||
end
|
||||
|
|
|
@ -108,7 +108,6 @@ defmodule AshHq.Docs.Module do
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
resource do
|
||||
description "Represents a module that has been exposed by a library"
|
||||
end
|
||||
|
|
|
@ -95,9 +95,11 @@ defmodule AshHq.Docs.Option do
|
|||
attribute :default, :string do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :path, {:array, :string} do
|
||||
public? true
|
||||
end
|
||||
|
||||
attribute :order, :integer do
|
||||
public? true
|
||||
allow_nil? false
|
||||
|
|
|
@ -48,7 +48,6 @@ defmodule AshHq.Github.Contributor do
|
|||
end
|
||||
|
||||
code_interface do
|
||||
|
||||
define :in_order
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -49,7 +49,6 @@ defmodule AshHqWeb.AppViewLive do
|
|||
<div
|
||||
id="main-container"
|
||||
class={classes([
|
||||
|
||||
"w-full min-h-screen bg-white dark:bg-base-dark-850 dark:text-white flex flex-col items-stretch",
|
||||
"h-screen overflow-y-auto": @live_action != :docs_dsl
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue