Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Update deps (closes #119, closes #120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ceolin committed Feb 2, 2024
1 parent 7945133 commit cc737ae
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
9 changes: 6 additions & 3 deletions lib/accounts/user_live/registration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ defmodule UneebeeWeb.Live.Registration do
defp get_school_user_attrs(_user, false), do: %{role: :student}

defp get_terms(terms_of_use) do
"auth" |> dgettext("terms of use") |> get_terms_link(terms_of_use) |> HTML.safe_to_string()
"auth" |> dgettext("terms of use") |> get_terms_link(terms_of_use)
end

defp get_privacy(privacy_policy) do
"auth" |> dgettext("privacy policy") |> get_terms_link(privacy_policy) |> HTML.safe_to_string()
"auth" |> dgettext("privacy policy") |> get_terms_link(privacy_policy)
end

defp get_terms_link(label, link), do: HTML.Link.link(label, to: URI.parse(link), class: "text-indigo-500 hover:underline")
defp get_terms_link(label, link) do
escaped_link = link |> HTML.html_escape() |> HTML.safe_to_string()
"<a href=\"#{escaped_link}\" class=\"text-indigo-500 hover:underline\">#{label}</a>"
end

defp terms_label(%School{terms_of_use: nil, privacy_policy: nil}), do: nil

Expand Down
24 changes: 12 additions & 12 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,37 @@ defmodule Uneebee.MixProject do
[
{:aws_signature, "~> 0.3.1"},
{:bcrypt_elixir, "~> 3.0"},
{:credo, "~> 1.7.2", only: [:dev, :test], runtime: false},
{:credo, "~> 1.7.3", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4.3", only: [:dev, :test], runtime: false},
{:ecto_sql, "~> 3.11.1"},
{:esbuild, "~> 0.8.1", runtime: Mix.env() == :dev},
{:finch, "~> 0.13"},
{:floki, "~> 0.35.2", only: :test},
{:finch, "~> 0.17"},
{:floki, "~> 0.35.3", only: :test},
{:gettext, "~> 0.24.0"},
{:hackney, "~> 1.20.1"},
{:jason, "~> 1.2"},
{:mix_audit, "~> 2.1.1", only: [:dev, :test], runtime: false},
{:mix_audit, "~> 2.1.2", only: [:dev, :test], runtime: false},
{:multipart, "~> 0.4.0"},
{:mock, "~> 0.3.0", only: :test},
{:money, "~> 1.12.3"},
{:money, "~> 1.12.4"},
{:phoenix_ecto, "~> 4.4.3"},
{:phoenix_html, "~> 3.3.3"},
{:phoenix_html, "~> 4.0.0"},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.20.3"},
{:phoenix, "~> 1.7.10"},
{:plug_cowboy, "~> 2.5"},
{:phoenix_live_view, "~> 0.20.4"},
{:phoenix, "~> 1.7.11"},
{:plug_cowboy, "~> 2.7"},
{:postgrex, "~> 0.17.4"},
{:req, "~> 0.4.8"},
{:resend, "~> 0.4.1"},
{:sentry, "~> 10.1.0"},
{:sobelow, "~> 0.13.0", only: [:dev, :test], runtime: false},
{:stripity_stripe, "~> 3.1.1"},
{:styler, "~> 0.11.1", only: [:dev, :test], runtime: false},
{:swoosh, "~> 1.14.3"},
{:styler, "~> 0.11.9", only: [:dev, :test], runtime: false},
{:swoosh, "~> 1.15.1"},
{:tailwind, "~> 0.2.2", runtime: Mix.env() == :dev},
{:tailwind_formatter, "~> 0.4.0", only: [:dev, :test], runtime: false},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_metrics, "~> 0.6.2"},
{:telemetry_poller, "~> 1.0"}
]
end
Expand Down
Loading

0 comments on commit cc737ae

Please sign in to comment.