mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-19 12:53:49 +12:00
improvement: add ash_phoenix and ash_postgres to default selected
chore: update spark
This commit is contained in:
parent
b00d56b5c2
commit
59fecc19df
5 changed files with 9 additions and 7 deletions
|
@ -21,6 +21,7 @@ config :ash_hq, AshHq.Repo,
|
|||
|
||||
config :spark, :formatter,
|
||||
remove_parens?: true,
|
||||
"Ash.Registry": [],
|
||||
"Ash.Resource": [
|
||||
type: Ash.Resource,
|
||||
section_order: [
|
||||
|
|
|
@ -7,7 +7,8 @@ defmodule AshHq.Accounts.User do
|
|||
extensions: [AshAuthentication]
|
||||
|
||||
require Ash.Query
|
||||
alias AshHq.Accounts.Preparations, warn: false
|
||||
|
||||
alias AshHq.Calculations.Decrypt
|
||||
|
||||
authentication do
|
||||
api AshHq.Accounts
|
||||
|
@ -264,7 +265,7 @@ defmodule AshHq.Accounts.User do
|
|||
end
|
||||
|
||||
calculations do
|
||||
calculate :address, :string, {AshHq.Calculations.Decrypt, field: :encrypted_address}
|
||||
calculate :name, :string, {AshHq.Calculations.Decrypt, field: :encrypted_name}
|
||||
calculate :address, :string, {Decrypt, field: :encrypted_address}
|
||||
calculate :name, :string, {Decrypt, field: :encrypted_name}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -311,7 +311,7 @@ defmodule AshHqWeb.AppViewLive do
|
|||
|
||||
selected_versions =
|
||||
Enum.reduce(libraries, configured_library_versions, fn library, acc ->
|
||||
if library.name == "ash" do
|
||||
if library.name in ["ash", "ash_phoenix", "ash_postgres"] do
|
||||
Map.put_new(acc, library.id, "latest")
|
||||
else
|
||||
Map.put_new(acc, library.id, "")
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -61,7 +61,7 @@ defmodule AshHq.MixProject do
|
|||
# Other
|
||||
{:absinthe_plug, "~> 1.5"},
|
||||
{:nimble_options, "~> 0.5.1", override: true},
|
||||
{:spark, "~> 0.3", override: true},
|
||||
{:spark, "~> 0.4", override: true},
|
||||
{:surface, "~> 0.9.1"},
|
||||
{:surface_heroicons, "~> 0.6.0"},
|
||||
# Syntax Highlighting
|
||||
|
|
4
mix.lock
4
mix.lock
|
@ -104,8 +104,8 @@
|
|||
"salsa20": {:hex, :salsa20, "1.0.4", "404cbea1fa8e68a41bcc834c0a2571ac175580fec01cc38cc70c0fb9ffc87e9b", [:mix], [], "hexpm", "745ddcd8cfa563ddb0fd61e7ce48d5146279a2cf7834e1da8441b369fdc58ac6"},
|
||||
"slugify": {:hex, :slugify, "1.3.1", "0d3b8b7e5c1eeaa960e44dce94382bee34a39b3ea239293e457a9c5b47cc6fd3", [:mix], [], "hexpm", "cb090bbeb056b312da3125e681d98933a360a70d327820e4b7f91645c4d8be76"},
|
||||
"sobelow": {:hex, :sobelow, "0.11.1", "23438964486f8112b41e743bbfd402da3e5b296fdc9eacab29914b79c48916dd", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "9897363a7eff96f4809304a90aad819e2ad5e5d24db547af502885146746a53c"},
|
||||
"sourceror": {:hex, :sourceror, "0.11.2", "549ce48be666421ac60cfb7f59c8752e0d393baa0b14d06271d3f6a8c1b027ab", [:mix], [], "hexpm", "9ab659118896a36be6eec68ff7b0674cba372fc8e210b1e9dc8cf2b55bb70dfb"},
|
||||
"spark": {:hex, :spark, "0.3.5", "99905e681156050a713218e2b57956870b88b660dff57e7ee061b0245fc5dd50", [:mix], [{:nimble_options, "~> 0.5", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:sourceror, "~> 0.1", [hex: :sourceror, repo: "hexpm", optional: false]}], "hexpm", "f272fe581f37123bf90568974937dbc18ce575fc43580a5a658965b35b993520"},
|
||||
"sourceror": {:hex, :sourceror, "0.12.0", "b0a43f9b91d69fead8ffa307e203fadaf30001d8c2643f597518dd9508d6b32d", [:mix], [], "hexpm", "67dcc48a4d4bb8c397ad0b86cf0d4667e1b50ffdf31cda585524640d1caded85"},
|
||||
"spark": {:hex, :spark, "0.4.4", "440337d59c60c831e18fa31b8f2642cfbec9a7d6da3d73c754e98ba31e3879f3", [:mix], [{:nimble_options, "~> 0.5", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:sourceror, "~> 0.1", [hex: :sourceror, repo: "hexpm", optional: false]}], "hexpm", "c7119b2adf828fa8546fde9c8819fde30a0a829db1b0f6c5edd0ce3641adf922"},
|
||||
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"},
|
||||
"stream_data": {:hex, :stream_data, "0.5.0", "b27641e58941685c75b353577dc602c9d2c12292dd84babf506c2033cd97893e", [:mix], [], "hexpm", "012bd2eec069ada4db3411f9115ccafa38540a3c78c4c0349f151fc761b9e271"},
|
||||
"sunflower_ui": {:git, "https://github.com/zachdaniel/sunflower_ui.git", "3ec87f33e003693e6db2329f9d6d8ac59983cf17", []},
|
||||
|
|
Loading…
Reference in a new issue