update elixir deps
This commit is contained in:
		| @@ -69,6 +69,7 @@ defmodule MemexWeb do | ||||
|  | ||||
|   def html do | ||||
|     quote do | ||||
|       # credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse | ||||
|       use Phoenix.Component | ||||
|  | ||||
|       # Import convenience functions from controllers | ||||
| @@ -82,11 +83,8 @@ defmodule MemexWeb do | ||||
|  | ||||
|   defp html_helpers do | ||||
|     quote do | ||||
|       # credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse | ||||
|       use Phoenix.HTML | ||||
|  | ||||
|       # credo:disable-for-next-line Credo.Check.Consistency.MultiAliasImportRequireUse | ||||
|       import Phoenix.Component | ||||
|       use PhoenixHTMLHelpers | ||||
|       import Phoenix.{Component, HTML, HTML.Form} | ||||
|       import MemexWeb.{ErrorHelpers, Gettext, CoreComponents, HTMLHelpers} | ||||
|  | ||||
|       # Shortcut for generating JS commands | ||||
|   | ||||
| @@ -2,6 +2,7 @@ defmodule MemexWeb.CoreComponents do | ||||
|   @moduledoc """ | ||||
|   Provides core UI components. | ||||
|   """ | ||||
|   use PhoenixHTMLHelpers | ||||
|   use Phoenix.Component | ||||
|   use MemexWeb, :verified_routes | ||||
|   import MemexWeb.{Gettext, HTMLHelpers} | ||||
| @@ -163,7 +164,7 @@ defmodule MemexWeb.CoreComponents do | ||||
|       content, | ||||
|       fn _whole_match, link -> | ||||
|         link = | ||||
|           HTML.Link.link( | ||||
|           link( | ||||
|             link, | ||||
|             to: link, | ||||
|             class: "link inline", | ||||
| @@ -185,7 +186,7 @@ defmodule MemexWeb.CoreComponents do | ||||
|       content, | ||||
|       fn _whole_match, prefix, slug, suffix -> | ||||
|         link = | ||||
|           HTML.Link.link( | ||||
|           link( | ||||
|             "[[[#{slug}]]]", | ||||
|             to: ~p"/note/#{slug}", | ||||
|             class: "link inline" | ||||
| @@ -212,7 +213,7 @@ defmodule MemexWeb.CoreComponents do | ||||
|           end | ||||
|  | ||||
|         link = | ||||
|           HTML.Link.link( | ||||
|           link( | ||||
|             "[[#{slug}]]", | ||||
|             to: target, | ||||
|             class: "link inline" | ||||
| @@ -240,7 +241,7 @@ defmodule MemexWeb.CoreComponents do | ||||
|           end | ||||
|  | ||||
|         link = | ||||
|           HTML.Link.link( | ||||
|           link( | ||||
|             "[#{slug}]", | ||||
|             to: target, | ||||
|             class: "link inline" | ||||
|   | ||||
| @@ -3,8 +3,8 @@ defmodule MemexWeb.ErrorHelpers do | ||||
|   Conveniences for translating and building error messages. | ||||
|   """ | ||||
|  | ||||
|   use Phoenix.HTML | ||||
|   import Phoenix.Component | ||||
|   use PhoenixHTMLHelpers | ||||
|   import Phoenix.{Component, HTML.Form} | ||||
|   alias Ecto.Changeset | ||||
|   alias Phoenix.{HTML.Form, LiveView.Rendered} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user