Skip to content

Commit

Permalink
chore: migrate to PhoenixHTMLHelpers (#2172)
Browse files Browse the repository at this point in the history
* deps(mix): install phoenix_html_helpers

* chore: migrate to PhoenixHTMLHelpers

* chore: remove unused alias
  • Loading branch information
thecristen authored Sep 17, 2024
1 parent 26dec61 commit ba474ab
Show file tree
Hide file tree
Showing 37 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions lib/build_calendar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ defmodule BuildCalendar do
url: nil,
today?: false

import Phoenix.HTML.Tag
import Phoenix.HTML.Link
import PhoenixHTMLHelpers.Tag
import PhoenixHTMLHelpers.Link

@spec td(t) :: Phoenix.HTML.Safe.t()
def td(%Day{month_relation: :previous} = day) do
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom/body_tag.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule Dotcom.BodyTag do
UI elements.
"""

alias Phoenix.HTML.Tag
alias PhoenixHTMLHelpers.Tag

@spec render(Plug.Conn.t()) :: Phoenix.HTML.Safe.t()
def render(conn) do
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom/components/buttons/button_group/arguments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Dotcom.Components.Buttons.ButtonGroup do
@moduledoc """
Convenience function for rendering a formatted list of links. Links should be passed as
a list of [{text, href}]. The link text can either be a string, or a list of child elements
like what would be passed to Phoenix.HTML.Link.
like what would be passed to PhoenixHTMLHelpers.Link.
"""
defstruct class: "",
id: nil,
Expand Down
7 changes: 3 additions & 4 deletions lib/dotcom/components/buttons/button_group/component.html.eex
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<% alias Phoenix.HTML.{Tag, Link} %>
<%= Tag.content_tag :div, class: String.trim("button-group #{args.class}"), id: args.id do %>
<%= PhoenixHTMLHelpers.Tag.content_tag :div, class: String.trim("button-group #{args.class}"), id: args.id do %>
<%= for {text, href} <- args.links do %>
<%= Tag.content_tag :div, class: "button-container" do %>
<%= Link.link(text, to: href, class: "btn button") %>
<%= PhoenixHTMLHelpers.Tag.content_tag :div, class: "button-container" do %>
<%= PhoenixHTMLHelpers.Link.link(text, to: href, class: "btn button") %>
<% end %>
<% end %>
<% end %>
2 changes: 1 addition & 1 deletion lib/dotcom/components/icons/svg_icon/arguments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Dotcom.Components.Icons.SvgIcon do
Deprecated, please add new svgs to the image directory in assets and use the site_web/views/helpers.ex "svg" method
"""

alias Phoenix.HTML.Tag
alias PhoenixHTMLHelpers.Tag

defstruct icon: :bus, class: "", show_tooltip?: true

Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom/components/tabs/tab_selector/component.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
selected_class = if selected?(tab_item_name, args.selected), do: "tab-select-btn-selected", else: ""
slug = slug(title)
%>
<%= Phoenix.HTML.Link.link to: "#{href}\##{slug}", data: [scroll: "false"], id: slug, class: "btn #{selected_class}" do %>
<%= PhoenixHTMLHelpers.Link.link to: "#{href}\##{slug}", data: [scroll: "false"], id: slug, class: "btn #{selected_class}" do %>
<%= if icon = args.icon_map[title] do %>
<%= icon %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom/content_rewriters/liquid_objects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Dotcom.ContentRewriters.LiquidObjects do
"""

import Phoenix.HTML, only: [raw: 1, safe_to_string: 1]
import Phoenix.HTML.Tag, only: [content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 3]
import DotcomWeb.PartialView.SvgIconWithCircle, only: [svg_icon_with_circle: 1]
import DotcomWeb.ViewHelpers, only: [fa: 1, svg: 1]

Expand Down
4 changes: 2 additions & 2 deletions lib/dotcom/schedule_note.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ defmodule Dotcom.ScheduleNote do
Represents text describing the schedule for a subway route
"""

import Phoenix.HTML.Tag
import Phoenix.HTML.Link
import PhoenixHTMLHelpers.Tag
import PhoenixHTMLHelpers.Link

alias DotcomWeb.Router.Helpers
alias Phoenix.HTML
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom/trip_plan/related_link.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Dotcom.TripPlan.RelatedLink do
# Need a view in order to use the components. Ideally we'd have a separate
# module, but that doesn't work at the moment.
import DotcomWeb.Router.Helpers
import Phoenix.HTML.Link, only: [link: 2]
import PhoenixHTMLHelpers.Link, only: [link: 2]

alias DotcomWeb.PartialView.SvgIconWithCircle
alias Routes.Route
Expand Down
4 changes: 3 additions & 1 deletion lib/dotcom_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ defmodule DotcomWeb do
defp view_helpers do
quote do
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
import Phoenix.HTML
import PhoenixHTMLHelpers.Form
use PhoenixHTMLHelpers

# Import LiveView and .heex helpers (live_render, live_patch, <.form>, etc)
import Phoenix.LiveView.Helpers
Expand Down
4 changes: 2 additions & 2 deletions lib/dotcom_web/ambiguous_alert.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defimpl DotcomWeb.AmbiguousAlert, for: Alerts.Alert do
active_periods
|> Enum.map(fn {start_date, end_date} ->
if start_date || end_date do
Phoenix.HTML.Tag.content_tag(
PhoenixHTMLHelpers.Tag.content_tag(
:div,
[
DotcomWeb.ViewHelpers.fa("calendar", class: "mr-025"),
Expand All @@ -75,7 +75,7 @@ defimpl DotcomWeb.AmbiguousAlert, for: Alerts.Alert do
defp date_tag(%DateTime{} = date) do
with iso <- DateTime.to_iso8601(date),
{:ok, readable} <- Timex.format(date, "{Mshort} {D} {YYYY} {h24}:{m}") do
Phoenix.HTML.Tag.content_tag(:time, readable, datetime: iso)
PhoenixHTMLHelpers.Tag.content_tag(:time, readable, datetime: iso)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/controllers/mode/bus.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule DotcomWeb.Mode.BusController do
"Schedule information for MBTA bus routes in the Greater Boston region, " <>
"including real-time updates and arrival predictions."

import Phoenix.HTML.Tag, only: [content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 3]
import Phoenix.HTML, only: [safe_to_string: 1]

def route_type, do: 3
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/controllers/mode/commuter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule DotcomWeb.Mode.CommuterRailController do
"Schedule information for MBTA Commuter Rail lines in the Greater Boston region, " <>
"including real-time updates and arrival predictions."

import Phoenix.HTML.Link, only: [link: 2]
import PhoenixHTMLHelpers.Link, only: [link: 2]

def route_type, do: 2

Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/templates/alert/_t-alerts.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a href="https://alerts.mbta.com/login/new" class="m-alerts-ad__link m-alerts-ad__link--login">Sign in</a>
</div>
<div class="m-alerts-ad__image">
<%= DotcomWeb.Endpoint |> static_url("/images/t-alerts-phone.png") |> Phoenix.HTML.Tag.img_tag() %>
<%= DotcomWeb.Endpoint |> static_url("/images/t-alerts-phone.png") |> PhoenixHTMLHelpers.Tag.img_tag() %>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion lib/dotcom_web/templates/partial/_search_input.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%>
<div id="search-<%= @prefix %>__container" class="c-form__input-container">
<label for="search-<%= @prefix %>__input" class="sr-only"><%= @aria_label %></label>
<%= Phoenix.HTML.Form.text_input(
<%= PhoenixHTMLHelpers.Form.text_input(
Map.get(assigns, :form, :query),
Map.get(assigns, :field, :input),
id: "search-#{@prefix}__input",
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/alert_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule DotcomWeb.AlertView do
use DotcomWeb, :view

import DotcomWeb.ViewHelpers
import Phoenix.HTML.Tag, only: [content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 3]
import DotcomWeb.PartialView.SvgIconWithCircle, only: [svg_icon_with_circle: 1]

alias Alerts.{Alert, InformedEntity, InformedEntitySet, URLParsingHelpers}
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/customer_support_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule DotcomWeb.CustomerSupportView do
"""
use DotcomWeb, :view
alias Routes.Route
import Phoenix.HTML.Tag, only: [content_tag: 2, content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 2, content_tag: 3]

alias Feedback.Message

Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/date_time_selector.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule DateTimeSelector do

use DotcomWeb, :view

import Phoenix.HTML.Tag
import PhoenixHTMLHelpers.Tag

alias DotcomWeb.PartialView.SvgIconWithCircle
alias Phoenix.{HTML.Form}
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/error_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule DotcomWeb.ErrorHelpers do
Conveniences for translating and building error messages.
"""

use Phoenix.HTML
use PhoenixHTMLHelpers

@doc """
Generates tag for inlined form input errors.
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/event_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule DotcomWeb.EventView do
@moduledoc "Module to display fields on the events view"
use DotcomWeb, :view

import Phoenix.HTML.Link
import PhoenixHTMLHelpers.Link

import Dotcom.FontAwesomeHelpers

Expand Down
2 changes: 0 additions & 2 deletions lib/dotcom_web/views/fare_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ defmodule DotcomWeb.FareView do
"""
use DotcomWeb, :view

alias CMS.Field.Link

alias CMS.Partial.Paragraph.{
Description,
DescriptionList
Expand Down
4 changes: 2 additions & 2 deletions lib/dotcom_web/views/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ defmodule DotcomWeb.ViewHelpers do
import Dotcom.ContentRewriters.LiquidObjects.Fare, only: [fare_object_request: 1]
import DotcomWeb.Router.Helpers, only: [redirect_path: 3, stop_path: 3]
import Phoenix.HTML, only: [raw: 1]
import Phoenix.HTML.Link, only: [link: 2]
import Phoenix.HTML.Tag, only: [content_tag: 2, content_tag: 3, tag: 2]
import PhoenixHTMLHelpers.Link, only: [link: 2]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 2, content_tag: 3, tag: 2]
import Plug.Conn

alias Phoenix.HTML.Safe
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/helpers/cms_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule DotcomWeb.CMSHelpers do

import DotcomWeb.ViewHelpers, only: [route_to_class: 1]
import CSSHelpers, only: [string_to_class: 1]
import Phoenix.HTML.Link
import PhoenixHTMLHelpers.Link

alias CMS.API
alias Routes.{Repo, Route}
Expand Down
4 changes: 2 additions & 2 deletions lib/dotcom_web/views/helpers/search_helpers.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule DotcomWeb.SearchHelpers do
import Phoenix.HTML.Tag, only: [content_tag: 3]
import Phoenix.HTML.Form, only: [form_for: 4, search_input: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 3]
import PhoenixHTMLHelpers.Form, only: [form_for: 4, search_input: 3]
import DotcomWeb.Router.Helpers, only: [search_path: 2]

@form_options [as: :search, method: :get]
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/page_view.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule DotcomWeb.PageView do
@moduledoc false
import Phoenix.HTML.Tag
import PhoenixHTMLHelpers.Tag
import DotcomWeb.CMSHelpers
import DotcomWeb.CMS.ParagraphView, only: [render_paragraph: 2]

Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/partial/fullscreen_error.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule DotcomWeb.PartialView.FullscreenError do
@moduledoc """
Struct for an error message that appears fullscreen.
"""
import Phoenix.HTML.Tag, only: [content_tag: 2, content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 2, content_tag: 3]
import DotcomWeb.ViewHelpers, only: [fa: 1]

alias Phoenix.HTML
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/partial/header_tabs.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule DotcomWeb.PartialView.HeaderTabs do
use DotcomWeb, :view
alias Phoenix.HTML
alias Phoenix.HTML.Link
alias PhoenixHTMLHelpers.Link
alias DotcomWeb.PartialView.{HeaderTab, HeaderTabBadge}

@spec render_tabs([HeaderTab.t()], Keyword.t()) :: HTML.safe()
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/partial/svg_icon_with_circle.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule DotcomWeb.PartialView.SvgIconWithCircle do
alias Dotcom.Components.Icons.SvgIcon
alias DotcomWeb.ViewHelpers
alias Phoenix.HTML.Tag
alias PhoenixHTMLHelpers.Tag
alias Routes.Route

defstruct icon: nil,
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/schedule/timetable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule DotcomWeb.ScheduleView.Timetable do
Functions for showing timetable content.
"""

import Phoenix.HTML.Tag, only: [content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 3]

alias DotcomWeb.PartialView.SvgIconWithCircle
alias DotcomWeb.ViewHelpers, as: Helpers
Expand Down
2 changes: 1 addition & 1 deletion lib/dotcom_web/views/search_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule DotcomWeb.SearchView do

defdelegate fa_icon_for_file_type(mime), to: Dotcom.FontAwesomeHelpers

@spec render_filter_option(Phoenix.HTML.Form, atom, map) :: Phoenix.HTML.safe()
@spec render_filter_option(PhoenixHTMLHelpers.Form, atom, map) :: Phoenix.HTML.safe()
def render_filter_option(form, type, option) do
id = "#{type}_#{option.value}"
name = "search[#{type}][#{option.value}]"
Expand Down
13 changes: 7 additions & 6 deletions lib/dotcom_web/views/trip_plan_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ defmodule DotcomWeb.TripPlanView do
use DotcomWeb, :view
require Routes.Route
alias Fares.{Fare, Format}
alias Phoenix.{HTML}
alias Routes.Route
alias Dotcom.TripPlan.{ItineraryRow, Query}
alias DotcomWeb.PartialView.SvgIconWithCircle
Expand Down Expand Up @@ -434,11 +433,13 @@ defmodule DotcomWeb.TripPlanView do
defp transfer_note_text(nil), do: nil

defp transfer_note_text(_) do
HTML.Tag.content_tag(
PhoenixHTMLHelpers.Tag.content_tag(
:span,
[
"Total may be less with ",
HTML.Tag.content_tag(:a, "transfers", href: "https://www.mbta.com/fares/transfers")
PhoenixHTMLHelpers.Tag.content_tag(:a, "transfers",
href: "https://www.mbta.com/fares/transfers"
)
]
)
end
Expand All @@ -450,7 +451,7 @@ defmodule DotcomWeb.TripPlanView do
defp transfer_note_calculator_text(nil), do: nil

defp transfer_note_calculator_text(_) do
HTML.Tag.content_tag(
PhoenixHTMLHelpers.Tag.content_tag(
:span,
[
"Total Fare Estimate*"
Expand All @@ -459,7 +460,7 @@ defmodule DotcomWeb.TripPlanView do
end

def render_to_string(template, data) do
template |> render(data) |> HTML.safe_to_string()
template |> render(data) |> Phoenix.HTML.safe_to_string()
end

def itinerary_map(map_data) do
Expand Down Expand Up @@ -487,7 +488,7 @@ defmodule DotcomWeb.TripPlanView do
itinerary_row_list: itinerary_row_list
)

access_html = i |> accessibility_icon() |> HTML.safe_to_string()
access_html = i |> accessibility_icon() |> Phoenix.HTML.safe_to_string()

one_way_total_fare = get_one_way_total_by_type(i, :highest_one_way_fare)

Expand Down
2 changes: 1 addition & 1 deletion lib/journey.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Journey do
@moduledoc """
Represents a schedule at a stop (origin or destination) or a pair of stops (origin and destination)
"""
alias Phoenix.HTML.Tag
alias PhoenixHTMLHelpers.Tag
alias Predictions.Prediction
alias Schedules.{Schedule, Trip}

Expand Down
2 changes: 1 addition & 1 deletion lib/util/breadcrumb_html.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Util.BreadcrumbHTML do
import Phoenix.HTML, only: [raw: 1]

alias Phoenix.HTML.Link
alias PhoenixHTMLHelpers.Link

@spec breadcrumb_trail(Plug.Conn.t()) :: Phoenix.HTML.safe()
def breadcrumb_trail(%Plug.Conn{assigns: %{breadcrumbs: []}}), do: raw("")
Expand Down
3 changes: 1 addition & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ defmodule DotCom.Mixfile do
# latest version 1.7.14
{:phoenix, "~> 1.7"},
{:phoenix_ecto, "4.6.2"},
# latest version 4.1.1; cannot upgrade because we use Phoenix.HTML
{:phoenix_html, "3.3.3"},
{:phoenix_html_helpers, "1.0.1"},
{:phoenix_live_dashboard, "0.8.4"},
{:phoenix_live_reload, "1.5.3", [only: :dev]},
# currently release candidate, but used in Phoenix 1.7 generator: https://github.com/phoenix-diff/phoenix-diff/blob/f320791d24bc3248fbdde557978235829313aa06/priv/data/sample-app/1.7.14/default/mix.exs#L42
Expand Down
3 changes: 2 additions & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"},
"phoenix": {:hex, :phoenix, "1.7.14", "a7d0b3f1bc95987044ddada111e77bd7f75646a08518942c72a8440278ae7825", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.7", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "c7859bc56cc5dfef19ecfc240775dae358cbaa530231118a9e014df392ace61a"},
"phoenix_ecto": {:hex, :phoenix_ecto, "4.6.2", "3b83b24ab5a2eb071a20372f740d7118767c272db386831b2e77638c4dcc606d", [:mix], [{:ecto, "~> 3.5", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.1", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.16 or ~> 1.0", [hex: :postgrex, repo: "hexpm", optional: true]}], "hexpm", "3f94d025f59de86be00f5f8c5dd7b5965a3298458d21ab1c328488be3b5fcd59"},
"phoenix_html": {:hex, :phoenix_html, "3.3.3", "380b8fb45912b5638d2f1d925a3771b4516b9a78587249cabe394e0a5d579dc9", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "923ebe6fec6e2e3b3e569dfbdc6560de932cd54b000ada0208b5f45024bdd76c"},
"phoenix_html": {:hex, :phoenix_html, "4.1.1", "4c064fd3873d12ebb1388425a8f2a19348cef56e7289e1998e2d2fa758aa982e", [:mix], [], "hexpm", "f2f2df5a72bc9a2f510b21497fd7d2b86d932ec0598f0210fed4114adc546c6f"},
"phoenix_html_helpers": {:hex, :phoenix_html_helpers, "1.0.1", "7eed85c52eff80a179391036931791ee5d2f713d76a81d0d2c6ebafe1e11e5ec", [:mix], [{:phoenix_html, "~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "cffd2385d1fa4f78b04432df69ab8da63dc5cf63e07b713a4dcf36a3740e3090"},
"phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.8.4", "4508e481f791ce62ec6a096e13b061387158cbeefacca68c6c1928e1305e23ed", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.5", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:ecto_sqlite3_extras, "~> 1.1.7 or ~> 1.2.0", [hex: :ecto_sqlite3_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.19 or ~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6 or ~> 1.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "2984aae96994fbc5c61795a73b8fb58153b41ff934019cfb522343d2d3817d59"},
"phoenix_live_reload": {:hex, :phoenix_live_reload, "1.5.3", "f2161c207fda0e4fb55165f650f7f8db23f02b29e3bff00ff7ef161d6ac1f09d", [:mix], [{:file_system, "~> 0.3 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "b4ec9cd73cb01ff1bd1cac92e045d13e7030330b74164297d1aee3907b54803c"},
"phoenix_live_view": {:hex, :phoenix_live_view, "1.0.0-rc.6", "47d2669995ea326e5c71f5c1bc9177109cebf211385c638faa7b5862a401e516", [:mix], [{:floki, "~> 0.36", [hex: :floki, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix, "~> 1.6.15 or ~> 1.7.0", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 3.3 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.15", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "e56e4f1642a0b20edc2488cab30e5439595e0d8b5b259f76ef98b1c4e2e5b527"},
Expand Down
2 changes: 1 addition & 1 deletion test/dotcom_web/views/helpers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule DotcomWeb.ViewHelpersTest do
use DotcomWeb.ConnCase, async: true

import DotcomWeb.ViewHelpers
import Phoenix.HTML.Tag, only: [tag: 2, content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [tag: 2, content_tag: 3]
import Phoenix.HTML, only: [safe_to_string: 1, html_escape: 1]
alias Routes.{Repo, Route}

Expand Down
2 changes: 1 addition & 1 deletion test/dotcom_web/views/schedule_view_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule DotcomWeb.ScheduleViewTest do

import DotcomWeb.ScheduleView
import Mox
import Phoenix.HTML.Tag, only: [content_tag: 3]
import PhoenixHTMLHelpers.Tag, only: [content_tag: 3]
import Phoenix.HTML, only: [safe_to_string: 1]

setup :verify_on_exit!
Expand Down

0 comments on commit ba474ab

Please sign in to comment.