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