Skip to content

Commit 41af779

Browse files
committed
Add paredown dep
1 parent 3d99d14 commit 41af779

File tree

8 files changed

+10
-218
lines changed

8 files changed

+10
-218
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
nodejs 12.16.1
2-
elixir 1.8.2
2+
elixir 1.10.3-otp-22
33
erlang 22.3.3
44
python 3.7.3

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ install_assets:
99
cd apps/components_guide_web/assets/ && npm ci
1010

1111
test_watch:
12-
watchexec -e ex,exs mix test
12+
watchexec -e ex,exs mix test
1313

1414
dev:
1515
iex -S mix phx.server

apps/components_guide_web/lib/components_guide_web.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule ComponentsGuideWeb do
4545
# import Phoenix.LiveView.Helpers
4646
import Phoenix.LiveView, only: [live_render: 2, live_render: 3]
4747

48-
import ComponentsGuideWeb.DownView
48+
import Paredown
4949
alias ComponentsGuideWeb.StylingHelpers, as: Styling
5050
end
5151
end

apps/components_guide_web/lib/components_guide_web/templates/accessibility_first/properties-cheatsheet.html.eex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
<p>You can hide using a large range of techniques. What you first want to ask is, from whom do I want to hide the content?
3838

3939
<ul>
40-
<li><%= down "Hide to **everyone**." %>
41-
<li><%= down "**Screen reader affordance:** hide to sighted users, but show to screen reader users." %>
42-
<li><%= down "**Visual affordance:** hide to screen reader users, but show to sighted users." %>
40+
<li><%= line "Hide to **everyone**." %>
41+
<li><%= line "**Screen reader affordance:** hide to sighted users, but show to screen reader users." %>
42+
<li><%= line "**Visual affordance:** hide to screen reader users, but show to sighted users." %>
4343
</ul>
4444

4545
<section aria-labelledby="hidden-all-heading">
@@ -134,7 +134,7 @@
134134
</article>
135135

136136
<article aria-labelledby="current" class="space-y-4">
137-
<%= h2.(down("I want to make an element **current**"), id: "current") %>
137+
<%= h2.(line("I want to make an element **current**"), id: "current") %>
138138

139139
<p>You can hide using a large range of techniques. What you first want to ask is, from whom do I want to hide the content?
140140
</article>

apps/components_guide_web/lib/components_guide_web/views/down_view.ex

Lines changed: 0 additions & 144 deletions
This file was deleted.

apps/components_guide_web/mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ defmodule ComponentsGuideWeb.MixProject do
3939
[
4040
{:phoenix, "~> 1.4.6"},
4141
{:phoenix_pubsub, "~> 1.1"},
42-
{:phoenix_html, "~> 2.11"},
42+
{:phoenix_html, "~> 2.13"},
4343
{:phoenix_ecto, "~> 4.0"},
4444
{:phoenix_live_view, github: "phoenixframework/phoenix_live_view"},
4545
{:phoenix_live_reload, "~> 1.2", only: :dev},
4646
{:gettext, "~> 0.11"},
4747
{:components_guide, in_umbrella: true},
4848
{:jason, "~> 1.0"},
4949
{:plug_cowboy, "~> 2.0"},
50+
{:paredown, "~> 0.1.0"},
5051
{:benchee, "~> 1.0", only: :dev}
5152
]
5253
end

apps/components_guide_web/test/collected_live_web/views/down_view_test.exs

Lines changed: 0 additions & 66 deletions
This file was deleted.

mix.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"mime": {:hex, :mime, "1.3.1", "30ce04ab3175b6ad0bdce0035cba77bba68b813d523d1aac73d9781b4d193cf8", [:mix], [], "hexpm", "6cbe761d6a0ca5a31a0931bf4c63204bceb64538e664a8ecf784a9a6f3b875f1"},
2222
"mint": {:hex, :mint, "1.0.0", "ca5ab33497ba2bdcc42f6cdd3927420a6159116be87c8173658e93c8746703da", [:mix], [{:castore, "~> 0.1.0", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "b8943ef1e630879538dd6620bfc189d4d75fab3ad39f3fe9c50539879f7efd84"},
2323
"mojito": {:hex, :mojito, "0.6.3", "1d9af4bee09c5489d189263c4558c1d5b0cc2c2a6d94d2426590077a6b4287ef", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}], "hexpm", "99c40fe806bfc8bdecdd9b8ac111cc3834ae638afd3e233be554f3ed5811c1f9"},
24+
"paredown": {:hex, :paredown, "0.1.1", "3d5560a77f143d87c506638d4059896414677fdbcd7b7bdd26230357fb4a78cc", [:mix], [{:phoenix_html, "~> 2.13", [hex: :phoenix_html, repo: "hexpm", optional: false]}], "hexpm", "743f76c7f2500e8a9fc933d9f81d1a706a5b907cc4eb2ada15bb2c17c7188197"},
2425
"phoenix": {:hex, :phoenix, "1.4.6", "8535f4a01291f0fbc2c30c78c4ca6a2eacc148db5178ad76e8b2fc976c590115", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 1.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 1.0 or ~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}], "hexpm", "17aa6f4909e41eebfa7589b61c71f0ebe8fdea997194fd85596e629bbf8d3e15"},
2526
"phoenix_ecto": {:hex, :phoenix_ecto, "4.0.0", "c43117a136e7399ea04ecaac73f8f23ee0ffe3e07acfcb8062fe5f4c9f0f6531", [:mix], [{:ecto, "~> 3.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.9", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "fe15d9fee5b82f5e64800502011ffe530650d42e1710ae9b14bc4c9be38bf303"},
2627
"phoenix_html": {:hex, :phoenix_html, "2.13.2", "f5d27c9b10ce881a60177d2b5227314fc60881e6b66b41dfe3349db6ed06cf57", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "346764ebecf5e7d318ec64db92a2aa9ef17fcb2ae0b001791cd37a0223f724ba"},

0 commit comments

Comments
 (0)