Skip to content

Commit

Permalink
improvement: move everything to pg
Browse files Browse the repository at this point in the history
improvement: add latest podcast
  • Loading branch information
zachdaniel committed Jan 24, 2024
1 parent 7edb988 commit 650d168
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 76 deletions.
24 changes: 12 additions & 12 deletions lib/ash_hq/docs/resources/dsl/dsl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ defmodule AshHq.Docs.Dsl do
data_layer: AshPostgres.DataLayer,
extensions: [AshHq.Docs.Extensions.Search, AshHq.Docs.Extensions.RenderMarkdown]

postgres do
table "dsls"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
reference :dsl, on_delete: :delete
end

migration_defaults optional_args: "[]"
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -123,6 +111,18 @@ defmodule AshHq.Docs.Dsl do
has_many :dsls, __MODULE__
end

postgres do
table "dsls"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
reference :dsl, on_delete: :delete
end

migration_defaults optional_args: "[]"
end

code_interface do
define_for AshHq.Docs
define :read
Expand Down
18 changes: 9 additions & 9 deletions lib/ash_hq/docs/resources/extension/extension.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ defmodule AshHq.Docs.Extension do
use Ash.Resource,
data_layer: AshPostgres.DataLayer

postgres do
table "extensions"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -56,6 +47,15 @@ defmodule AshHq.Docs.Extension do
has_many :options, AshHq.Docs.Option
end

postgres do
table "extensions"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

code_interface do
define_for AshHq.Docs

Expand Down
18 changes: 9 additions & 9 deletions lib/ash_hq/docs/resources/function/function.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ defmodule AshHq.Docs.Function do
data_layer: AshPostgres.DataLayer,
extensions: [AshHq.Docs.Extensions.Search, AshHq.Docs.Extensions.RenderMarkdown]

postgres do
table "functions"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -115,6 +106,15 @@ defmodule AshHq.Docs.Function do
end
end

postgres do
table "functions"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

code_interface do
define_for AshHq.Docs
end
Expand Down
18 changes: 9 additions & 9 deletions lib/ash_hq/docs/resources/guide/guide.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ defmodule AshHq.Docs.Guide do
AshAdmin.Resource
]

postgres do
repo AshHq.Repo
table "guides"

references do
reference :library_version, on_delete: :delete
end
end

actions do
defaults [:create, :update, :destroy]

Expand Down Expand Up @@ -121,6 +112,15 @@ defmodule AshHq.Docs.Guide do
end
end

postgres do
repo AshHq.Repo
table "guides"

references do
reference :library_version, on_delete: :delete
end
end

code_interface do
define_for AshHq.Docs
end
Expand Down
10 changes: 5 additions & 5 deletions lib/ash_hq/docs/resources/library_version/library_version.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ defmodule AshHq.Docs.LibraryVersion do
data_layer: AshPostgres.DataLayer,
extensions: [AshHq.Docs.Extensions.Search, AshHq.Docs.Extensions.RenderMarkdown]

postgres do
table "library_versions"
repo AshHq.Repo
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -117,6 +112,11 @@ defmodule AshHq.Docs.LibraryVersion do
has_many :mix_tasks, AshHq.Docs.MixTask
end

postgres do
table "library_versions"
repo AshHq.Repo
end

code_interface do
define_for AshHq.Docs
define :build, args: [:library, :version]
Expand Down
18 changes: 9 additions & 9 deletions lib/ash_hq/docs/resources/mix_task/mix_task.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ defmodule AshHq.Docs.MixTask do
data_layer: AshPostgres.DataLayer,
extensions: [AshHq.Docs.Extensions.Search, AshHq.Docs.Extensions.RenderMarkdown]

postgres do
table "mix_tasks"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -93,6 +84,15 @@ defmodule AshHq.Docs.MixTask do
end
end

postgres do
table "mix_tasks"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

code_interface do
define_for AshHq.Docs
end
Expand Down
18 changes: 9 additions & 9 deletions lib/ash_hq/docs/resources/module/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ defmodule AshHq.Docs.Module do
data_layer: AshPostgres.DataLayer,
extensions: [AshHq.Docs.Extensions.Search, AshHq.Docs.Extensions.RenderMarkdown]

postgres do
table "modules"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -96,6 +87,15 @@ defmodule AshHq.Docs.Module do
has_many :functions, AshHq.Docs.Function
end

postgres do
table "modules"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
end
end

code_interface do
define_for AshHq.Docs
end
Expand Down
20 changes: 10 additions & 10 deletions lib/ash_hq/docs/resources/option/option.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ defmodule AshHq.Docs.Option do
data_layer: AshPostgres.DataLayer,
extensions: [AshHq.Docs.Extensions.Search, AshHq.Docs.Extensions.RenderMarkdown]

postgres do
table "options"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
reference :dsl, on_delete: :delete
end
end

actions do
defaults [:update, :destroy]

Expand Down Expand Up @@ -113,6 +103,16 @@ defmodule AshHq.Docs.Option do
end
end

postgres do
table "options"
repo AshHq.Repo

references do
reference :library_version, on_delete: :delete
reference :dsl, on_delete: :delete
end
end

code_interface do
define_for AshHq.Docs
define :read
Expand Down
16 changes: 12 additions & 4 deletions lib/ash_hq_web/pages/media.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,39 @@ defmodule AshHqWeb.Pages.Media do
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
frameborder="0"
height="175"
style="width:100%;max-width:660px;overflow:hidden;background:transparent;"
style="width:100%;max-width:660px;overflow:hidden;border-radius:10px;"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
src="https://embed.podcasts.apple.com/us/podcast/streamlining-development-with-ash-framework-emx-236/id1379029137?i=1000641182373"
/>
<iframe
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
frameborder="0"
height="175"
style="width:100%;max-width:660px;overflow:hidden;border-radius:10px;"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
src="https://embed.podcasts.apple.com/us/podcast/episode-61-zach-daniel-and-the-ash-framework/id1550737059?i=1000630232631"
/>
<iframe
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
frameborder="0"
height="175"
style="width:100%;max-width:660px;overflow:hidden;background:transparent;"
style="width:100%;max-width:660px;overflow:hidden;border-radius:10px;"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
src="https://embed.podcasts.apple.com/us/podcast/creating-powerful-applications-using-ash-framework/id1379029137?i=1000590178245"
/>
<iframe
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
frameborder="0"
height="175"
style="width:100%;max-width:660px;overflow:hidden;background:transparent;"
style="width:100%;max-width:660px;overflow:hidden;border-radius:10px;"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
src="https://embed.podcasts.apple.com/us/podcast/123-ash-framework-models-resources/id1516100616?i=1000584632201"
/>
<iframe
allow="autoplay *; encrypted-media *; fullscreen *; clipboard-write"
frameborder="0"
height="175"
style="width:100%;max-width:660px;overflow:hidden;background:transparent;"
style="width:100%;max-width:660px;overflow:hidden;border-radius:10px;"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation"
src="https://embed.podcasts.apple.com/us/podcast/27-ash-framework-with-zach-daniel/id1516100616?i=1000503190100"
/>
Expand Down

0 comments on commit 650d168

Please sign in to comment.