From 28f823d6910c9d66f6c6b1472e87a646e359c3df Mon Sep 17 00:00:00 2001 From: Pascal Schmid Date: Thu, 26 Dec 2024 22:33:09 +0100 Subject: [PATCH] Run new formatter --- .../components/core_components.ex | 54 +++++++++---------- .../components/layouts/app.html.heex | 2 +- .../components/layouts/root.html.heex | 4 +- .../live/components/day_component.ex | 2 +- .../components/file_input_component.html.heex | 4 +- .../live/components/result_component.ex | 4 +- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/lib/mihainator_web/components/core_components.ex b/lib/mihainator_web/components/core_components.ex index 988afe2..fb27305 100644 --- a/lib/mihainator_web/components/core_components.ex +++ b/lib/mihainator_web/components/core_components.ex @@ -78,7 +78,7 @@ defmodule MihainatorWeb.CoreComponents do
- <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}
@@ -123,9 +123,9 @@ defmodule MihainatorWeb.CoreComponents do

<.icon :if={@kind == :info} name="hero-information-circle-mini" class="h-4 w-4" /> <.icon :if={@kind == :error} name="hero-exclamation-circle-mini" class="h-4 w-4" /> - <%= @title %> + {@title}

-

<%= msg %>

+

{msg}

@@ -201,9 +201,9 @@ defmodule MihainatorWeb.CoreComponents do ~H""" <.form :let={f} for={@for} as={@as} {@rest}>
- <%= render_slot(@inner_block, f) %> + {render_slot(@inner_block, f)}
- <%= render_slot(action, f) %> + {render_slot(action, f)}
@@ -235,7 +235,7 @@ defmodule MihainatorWeb.CoreComponents do ]} {@rest} > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -319,9 +319,9 @@ defmodule MihainatorWeb.CoreComponents do class="rounded border-zinc-300 text-zinc-900 focus:ring-0" {@rest} /> - <%= @label %> + {@label} - <.error :for={msg <- @errors}><%= msg %> + <.error :for={msg <- @errors}>{msg} """ end @@ -329,7 +329,7 @@ defmodule MihainatorWeb.CoreComponents do def input(%{type: "select"} = assigns) do ~H"""
- <.label for={@id}><%= @label %> + <.label for={@id}>{@label} - <.error :for={msg <- @errors}><%= msg %> + <.error :for={msg <- @errors}>{msg}
""" end @@ -348,7 +348,7 @@ defmodule MihainatorWeb.CoreComponents do def input(%{type: "textarea"} = assigns) do ~H"""
- <.label for={@id}><%= @label %> + <.label for={@id}>{@label} - <.error :for={msg <- @errors}><%= msg %> + <.error :for={msg <- @errors}>{msg}
""" end @@ -368,7 +368,7 @@ defmodule MihainatorWeb.CoreComponents do def input(assigns) do ~H"""
- <.label for={@id}><%= @label %> + <.label for={@id}>{@label} - <.error :for={msg <- @errors}><%= msg %> + <.error :for={msg <- @errors}>{msg}
""" end @@ -395,7 +395,7 @@ defmodule MihainatorWeb.CoreComponents do def label(assigns) do ~H""" """ end @@ -409,7 +409,7 @@ defmodule MihainatorWeb.CoreComponents do ~H"""

<.icon name="hero-exclamation-circle-mini" class="mt-0.5 h-5 w-5 flex-none" /> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}

""" end @@ -428,13 +428,13 @@ defmodule MihainatorWeb.CoreComponents do

- <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}

- <%= render_slot(@subtitle) %> + {render_slot(@subtitle)}

-
<%= render_slot(@actions) %>
+
{render_slot(@actions)}
""" end @@ -475,7 +475,7 @@ defmodule MihainatorWeb.CoreComponents do - + @@ -495,7 +495,7 @@ defmodule MihainatorWeb.CoreComponents do
- <%= render_slot(col, @row_item.(row)) %> + {render_slot(col, @row_item.(row))}
@@ -506,7 +506,7 @@ defmodule MihainatorWeb.CoreComponents do :for={action <- @action} class="relative ml-4 font-semibold leading-6 text-zinc-900 hover:text-zinc-700" > - <%= render_slot(action, @row_item.(row)) %> + {render_slot(action, @row_item.(row))} @@ -536,8 +536,8 @@ defmodule MihainatorWeb.CoreComponents do
-
<%= item.title %>
-
<%= render_slot(item) %>
+
{item.title}
+
{render_slot(item)}
@@ -562,7 +562,7 @@ defmodule MihainatorWeb.CoreComponents do class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700" > <.icon name="hero-arrow-left-solid" class="h-3 w-3" /> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ diff --git a/lib/mihainator_web/components/layouts/app.html.heex b/lib/mihainator_web/components/layouts/app.html.heex index 67b0e98..c55ab2e 100644 --- a/lib/mihainator_web/components/layouts/app.html.heex +++ b/lib/mihainator_web/components/layouts/app.html.heex @@ -40,6 +40,6 @@
<.flash_group flash={@flash} /> - <%= @inner_content %> + {@inner_content}
diff --git a/lib/mihainator_web/components/layouts/root.html.heex b/lib/mihainator_web/components/layouts/root.html.heex index af8c6e4..a7ae302 100644 --- a/lib/mihainator_web/components/layouts/root.html.heex +++ b/lib/mihainator_web/components/layouts/root.html.heex @@ -5,13 +5,13 @@ <.live_title suffix=" ยท Phoenix Framework"> - <%= assigns[:page_title] || "Threema history checker" %> + {assigns[:page_title] || "Threema history checker"} - <%= @inner_content %> + {@inner_content} diff --git a/lib/mihainator_web/live/components/day_component.ex b/lib/mihainator_web/live/components/day_component.ex index 4899241..5ff6b03 100644 --- a/lib/mihainator_web/live/components/day_component.ex +++ b/lib/mihainator_web/live/components/day_component.ex @@ -7,7 +7,7 @@ defmodule MihainatorWeb.DayComponent do def render(assigns) do ~H""" """ end diff --git a/lib/mihainator_web/live/components/file_input_component.html.heex b/lib/mihainator_web/live/components/file_input_component.html.heex index ff216e7..de618f8 100644 --- a/lib/mihainator_web/live/components/file_input_component.html.heex +++ b/lib/mihainator_web/live/components/file_input_component.html.heex @@ -66,7 +66,7 @@
<%!-- Phoenix.Component.upload_errors/2 returns a list of error atoms --%> <%= for err <- upload_errors(@uploads.history, entry) do %> -

<%= error_to_string(err) %>

+

{error_to_string(err)}

<% end %>
<% end %> @@ -75,7 +75,7 @@
<%!-- Phoenix.Component.upload_errors/1 returns a list of error atoms --%> <%= for err <- upload_errors(@uploads.history) do %> -

<%= error_to_string(err) %>

+

{error_to_string(err)}

<% end %>
diff --git a/lib/mihainator_web/live/components/result_component.ex b/lib/mihainator_web/live/components/result_component.ex index f3e63ae..5fd8532 100644 --- a/lib/mihainator_web/live/components/result_component.ex +++ b/lib/mihainator_web/live/components/result_component.ex @@ -28,8 +28,8 @@ defmodule MihainatorWeb.ResultComponent do ~H"""
- <%= @formatted_month %> - <%= @year %> + {@formatted_month} + {@year}
"""
<%= col[:label] %>{col[:label]} Actions