Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for the Issue Phoenix.HTML is no longer supported in v4.0 #148

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/exq_ui_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ defmodule ExqUIWeb do
defp view_helpers do
quote do
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
import Phoenix.HTML
import Phoenix.HTML.Form
use PhoenixHTMLHelpers

import Phoenix.Component
# Import LiveView helpers (live_render, live_component, live_patch, etc)
Expand Down
4 changes: 3 additions & 1 deletion lib/exq_ui_web/views/helpers.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
defmodule ExqUIWeb.Helpers do
@moduledoc false
use Phoenix.HTML
import Phoenix.HTML

Check warning on line 3 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 24 / Elixir 1.12.3

unused import Phoenix.HTML

Check warning on line 3 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 24 / Elixir 1.13.4

unused import Phoenix.HTML

Check warning on line 3 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 25.2.1 / Elixir 1.14.3

unused import Phoenix.HTML
import Phoenix.HTML.Form

Check warning on line 4 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 24 / Elixir 1.12.3

unused import Phoenix.HTML.Form

Check warning on line 4 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 24 / Elixir 1.13.4

unused import Phoenix.HTML.Form

Check warning on line 4 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 25.2.1 / Elixir 1.14.3

unused import Phoenix.HTML.Form
use PhoenixHTMLHelpers
import Phoenix.LiveView.Helpers

def nav_link(socket, name, link) do
Expand All @@ -11,7 +13,7 @@
""
end

live_redirect(name, to: link, class: "nav-link" <> active)

Check warning on line 16 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 24 / Elixir 1.13.4

Phoenix.LiveView.Helpers.live_redirect/2 is deprecated. Use <.link> instead

Check warning on line 16 in lib/exq_ui_web/views/helpers.ex

View workflow job for this annotation

GitHub Actions / OTP 25.2.1 / Elixir 1.14.3

Phoenix.LiveView.Helpers.live_redirect/2 is deprecated. Use <.link> instead
end

def human_time(nil) do
Expand Down
3 changes: 2 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ defmodule ExqUI.MixProject do
[
{:exq, ">= 0.16.2"},
{:exq_scheduler, "~> 1.0", optional: true},
{:phoenix_live_view, "~> 0.18"},
{:phoenix_live_view, "~> 0.20"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_view, "~> 2.0"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
Expand Down
Loading
Loading