diff --git a/elixir/apps/web/lib/web/components/core_components.ex b/elixir/apps/web/lib/web/components/core_components.ex index 827ed0b7e..6e76fcb76 100644 --- a/elixir/apps/web/lib/web/components/core_components.ex +++ b/elixir/apps/web/lib/web/components/core_components.ex @@ -21,7 +21,7 @@ defmodule Web.CoreComponents do
Firezone Logo

- <%= @text %> + {@text}

""" @@ -49,7 +49,7 @@ defmodule Web.CoreComponents do """ def p(assigns) do ~H""" -

<%= render_slot(@inner_block) %>

+

{render_slot(@inner_block)}

""" end @@ -207,7 +207,7 @@ defmodule Web.CoreComponents do <%= if tab.icon do %> <.icon name={tab.icon} class="h-4 w-4 mr-2" /> <% end %> - <%= tab.label %> + {tab.label} @@ -222,7 +222,7 @@ defmodule Web.CoreComponents do role="tabpanel" aria-labelledby={"#{tab.id}-tab"} > - <%= render_slot(tab) %> + {render_slot(tab)} <% end %> @@ -258,16 +258,16 @@ defmodule Web.CoreComponents do

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

- <%= render_slot(@actions) %> + {render_slot(@actions)}
- <%= render_slot(help) %> + {render_slot(help)}
""" @@ -281,7 +281,7 @@ defmodule Web.CoreComponents do <.flash kind={:info} flash={@flash} /> <.flash kind={:info} phx-mounted={show("#flash")}>Welcome Back! """ - attr :id, :string, default: "flash", doc: "the optional id of flash container" + attr :id, :string, default: nil, doc: "the optional id of flash container" attr :flash, :map, default: %{}, doc: "the map of flash messages to display" attr :title, :string, default: nil @@ -315,9 +315,9 @@ defmodule Web.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}

- <%= maybe_render_changeset_as_flash(msg) %> + {maybe_render_changeset_as_flash(msg)} """ end @@ -326,10 +326,10 @@ defmodule Web.CoreComponents do assigns = %{message: message, errors: errors} ~H""" - <%= @message %>: + {@message}: """ @@ -375,7 +375,7 @@ defmodule Web.CoreComponents do def label(assigns) do ~H""" """ end @@ -400,7 +400,7 @@ defmodule Web.CoreComponents do {@rest} > <.icon name="hero-exclamation-circle-mini" class="h-4 w-4 flex-none" /> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}

""" end @@ -428,7 +428,7 @@ defmodule Web.CoreComponents do {@rest} > <.icon name="hero-exclamation-circle-mini" class="mt-0.5 h-5 w-5 flex-none" /> - <%= translate_error(@error) %> + {translate_error(@error)}

""" end @@ -452,8 +452,8 @@ defmodule Web.CoreComponents do
-
<%= item.title %>
-
<%= render_slot(item) %>
+
{item.title}
+
{render_slot(item)}
@@ -770,20 +770,20 @@ defmodule Web.CoreComponents do def intersperse_blocks(assigns) do ~H""" <%= if Enum.empty?(@item) do %> - <%= render_slot(@empty) %> + {render_slot(@empty)} <% else %> <%= for item <- Enum.intersperse(@item, :separator) do %> <%= if item == :separator do %> - <%= render_slot(@separator) %> + {render_slot(@separator)} <% else %> - <%= render_slot( + {render_slot( item, cond do item == List.first(@item) -> :first item == List.last(@item) -> :last true -> :middle end - ) %> + )} <% end %> <% end %> <% end %> @@ -834,22 +834,22 @@ defmodule Web.CoreComponents do ~H"""
<%= if Enum.empty?(@peek.items) do %> - <%= render_slot(@empty) %> + {render_slot(@empty)} <% else %> <% items = if @separator, do: Enum.intersperse(@peek.items, :separator), else: @peek.items %> <%= for item <- items do %> <%= if item == :separator do %> - <%= render_slot(@separator) %> + {render_slot(@separator)} <% else %> - <%= render_slot(@item, item) %> + {render_slot(@item, item)} <% end %> <% end %> <%= if @peek.count > length(@peek.items) do %> - <%= render_slot(@tail, @peek.count - length(@peek.items)) %> + {render_slot(@tail, @peek.count - length(@peek.items))} <% end %> - <%= render_slot(@call_to_action) %> + {render_slot(@call_to_action)} <% end %>
""" @@ -882,7 +882,7 @@ defmodule Web.CoreComponents do ]} {@rest} > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -932,7 +932,7 @@ defmodule Web.CoreComponents do "text-xs rounded-l py-0.5 pl-2.5 pr-1.5", @colors[@type]["dark"] ]}> - <%= render_slot(@left) %> + {render_slot(@left)} - <%= render_slot(@right) %> + {render_slot(@right)} """ @@ -955,7 +955,7 @@ defmodule Web.CoreComponents do def datetime(assigns) do ~H""" - <%= Cldr.DateTime.to_string!(@datetime, Web.CLDR, format: @format) %> + {Cldr.DateTime.to_string!(@datetime, Web.CLDR, format: @format)} """ end @@ -980,17 +980,17 @@ defmodule Web.CoreComponents do "underline underline-offset-2 decoration-1 decoration-dotted", DateTime.compare(@datetime, @relative_to) == :lt && @negative_class ]}> - <%= Cldr.DateTime.Relative.to_string!(@datetime, Web.CLDR, relative_to: @relative_to) - |> String.capitalize() %> + {Cldr.DateTime.Relative.to_string!(@datetime, Web.CLDR, relative_to: @relative_to) + |> String.capitalize()} <:content> - <%= @datetime %> + {@datetime} - <%= Cldr.DateTime.Relative.to_string!(@datetime, Web.CLDR, relative_to: @relative_to) - |> String.capitalize() %> + {Cldr.DateTime.Relative.to_string!(@datetime, Web.CLDR, relative_to: @relative_to) + |> String.capitalize()} Never @@ -1017,7 +1017,7 @@ defmodule Web.CoreComponents do data-popover-target-id={@target_id} data-popover-placement={@placement} > - <%= render_slot(@target) %> + {render_slot(@target)} @@ -1055,7 +1055,7 @@ defmodule Web.CoreComponents do else: "Never connected" } > - <%= if @schema.online?, do: "Online", else: "Offline" %> + {if @schema.online?, do: "Online", else: "Offline"} """ @@ -1184,7 +1184,7 @@ defmodule Web.CoreComponents do class="text-accent-500 hover:underline" navigate={~p"/#{@schema.account_id}/actors/#{@schema.verified_by_identity.actor_id}"} > - <%= assigns.schema.verified_by_actor.name %> + {assigns.schema.verified_by_actor.name} """ @@ -1202,7 +1202,7 @@ defmodule Web.CoreComponents do def actor_link(%{actor: %Domain.Actors.Actor{type: :api_client}} = assigns) do ~H""" <.link class={link_style()} navigate={~p"/#{@account}/settings/api_clients/#{@actor}"}> - <%= assigns.actor.name %> + {assigns.actor.name} """ end @@ -1210,7 +1210,7 @@ defmodule Web.CoreComponents do def actor_link(assigns) do ~H""" <.link class={link_style()} navigate={~p"/#{@account}/actors/#{@actor}"}> - <%= assigns.actor.name %> + {assigns.actor.name} """ end @@ -1248,7 +1248,7 @@ defmodule Web.CoreComponents do bg-neutral-50 ]}> - <%= get_identity_email(@identity) %> + {get_identity_email(@identity)} @@ -1310,7 +1310,7 @@ defmodule Web.CoreComponents do bg-neutral-50 ]} > - <%= @group.name %> + {@group.name} """ @@ -1324,15 +1324,15 @@ defmodule Web.CoreComponents do def last_seen(assigns) do ~H""" - <%= @schema.last_seen_remote_ip %> + {@schema.last_seen_remote_ip} - <%= [ + {[ Domain.Geo.country_common_name!(@schema.last_seen_remote_ip_location_region), @schema.last_seen_remote_ip_location_city ] |> Enum.reject(&is_nil/1) - |> Enum.join(", ") %> + |> Enum.join(", ")} - <%= Web.CLDR.Number.Cardinal.pluralize(@number, :en, @opts) %> + {Web.CLDR.Number.Cardinal.pluralize(@number, :en, @opts)} """ end @@ -1461,10 +1461,10 @@ defmodule Web.CoreComponents do ~H"""

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

- <%= render_slot(@content) %> + {render_slot(@content)}
""" diff --git a/elixir/apps/web/lib/web/components/form_components.ex b/elixir/apps/web/lib/web/components/form_components.ex index 78c1ccea8..27bf07047 100644 --- a/elixir/apps/web/lib/web/components/form_components.ex +++ b/elixir/apps/web/lib/web/components/form_components.ex @@ -115,8 +115,8 @@ defmodule Web.FormComponents do ]} {@rest} /> - <%= @label %> - <%= if @inner_block, do: render_slot(@inner_block) %> + {@label} + {if @inner_block, do: render_slot(@inner_block)} """ @@ -167,10 +167,10 @@ defmodule Web.FormComponents do ]} {@rest} /> - <%= @label %> + {@label} <.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg} """ @@ -179,7 +179,7 @@ defmodule Web.FormComponents do def input(%{type: "group_select"} = assigns) do ~H"""
- <.label :if={@label} for={@id}><%= @label %> + <.label :if={@label} for={@id}>{@label} - + <%= for {label, options} <- @options do %> <%= if label == nil do %> - <%= Phoenix.HTML.Form.options_for_select(options, @value) %> + {Phoenix.HTML.Form.options_for_select(options, @value)} <% else %> - <%= Phoenix.HTML.Form.options_for_select(options, @value) %> + {Phoenix.HTML.Form.options_for_select(options, @value)} <% end %> <% end %> <.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg}
""" @@ -221,7 +221,7 @@ defmodule Web.FormComponents do def input(%{type: "select"} = assigns) do ~H"""
- <.label :if={@label} for={@id}><%= @label %> + <.label :if={@label} for={@id}>{@label} - - <%= Phoenix.HTML.Form.options_for_select(@options, @value) %> + + {Phoenix.HTML.Form.options_for_select(@options, @value)} <.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg}
""" @@ -254,7 +254,7 @@ defmodule Web.FormComponents do def input(%{type: "textarea"} = assigns) do ~H"""
- <.label :if={@label} for={@id}><%= @label %> + <.label :if={@label} for={@id}>{@label} <.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg}
""" @@ -291,9 +291,9 @@ defmodule Web.FormComponents do def input(%{type: "readonly"} = assigns) do ~H"""
- <.label :if={@label}><%= @label %> + <.label :if={@label}>{@label}
- <%= assigns.value %> + {assigns.value}
<.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg}
""" @@ -313,7 +313,7 @@ defmodule Web.FormComponents do def input(%{type: "text", prefix: prefix} = assigns) when not is_nil(prefix) do ~H"""
- <.label :if={@label} for={@id}><%= @label %> + <.label :if={@label} for={@id}>{@label}
- <%= @prefix %> + {@prefix}
<.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg}
""" @@ -357,7 +357,7 @@ defmodule Web.FormComponents do def input(assigns) do ~H"""
- <.label :if={@label} for={@id}><%= @label %> + <.label :if={@label} for={@id}>{@label} <.error :for={msg <- @errors} inline={@inline_errors} data-validation-error-for={@name}> - <%= msg %> + {msg}
""" @@ -417,7 +417,7 @@ defmodule Web.FormComponents do

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

- <%= render_slot(@dialog_content) %> + {render_slot(@dialog_content)}
<.button @@ -439,7 +439,7 @@ defmodule Web.FormComponents do style="info" class="px-5 py-2.5" > - <%= render_slot(@dialog_cancel_button) %> + {render_slot(@dialog_cancel_button)} <.button data-dialog-action="confirm" @@ -450,7 +450,7 @@ defmodule Web.FormComponents do value="confirm" class="py-2.5 px-5 ms-3" > - <%= render_slot(@dialog_confirm_button) %> + {render_slot(@dialog_confirm_button)}
@@ -465,7 +465,7 @@ defmodule Web.FormComponents do disabled={@disabled} phx-hook="ConfirmDialog" > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -510,7 +510,7 @@ defmodule Web.FormComponents do ~H""" <.link class={button_style(@style) ++ button_size(@size) ++ [@class]} navigate={@navigate} {@rest}> <.icon :if={@icon} name={@icon} class="h-3.5 w-3.5 mr-2" /> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -519,7 +519,7 @@ defmodule Web.FormComponents do ~H""" """ end @@ -542,7 +542,7 @@ defmodule Web.FormComponents do ~H"""
<.button type="submit" style={@style} {@rest}> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}
""" @@ -564,7 +564,7 @@ defmodule Web.FormComponents do def delete_button(assigns) do ~H""" <.button style="danger" size={@size} icon="hero-trash-solid" {@rest}> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -585,7 +585,7 @@ defmodule Web.FormComponents do def add_button(assigns) do ~H""" <.button style="primary" class={@class} navigate={@navigate} icon="hero-plus"> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end @@ -605,7 +605,7 @@ defmodule Web.FormComponents do def edit_button(assigns) do ~H""" <.button style="primary" navigate={@navigate} icon="hero-pencil-solid"> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end diff --git a/elixir/apps/web/lib/web/components/form_components/select_with_groups.ex b/elixir/apps/web/lib/web/components/form_components/select_with_groups.ex index 3d80c01dd..34b1f28f8 100644 --- a/elixir/apps/web/lib/web/components/form_components/select_with_groups.ex +++ b/elixir/apps/web/lib/web/components/form_components/select_with_groups.ex @@ -148,7 +148,7 @@ defmodule Web.Components.FormComponents.SelectWithGroups do |> JS.set_attribute({"aria-expanded", "false"}, to: "##{@id}-input") } > - <.label :if={@label} for={"#{@id}-input"}><%= @label %> + <.label :if={@label} for={"#{@id}-input"}>{@label}
@@ -240,7 +240,7 @@ defmodule Web.Components.FormComponents.SelectWithGroups do <%= if @no_search_results == [] do %> Nothing has been found. <% else %> - <%= render_slot(@no_search_results, @search_query) %> + {render_slot(@no_search_results, @search_query)} <% end %>
- <%= render_slot(@options_group, group) %> + {render_slot(@options_group, group)}
@@ -314,11 +314,11 @@ defmodule Web.Components.FormComponents.SelectWithGroups do
<.error :for={message <- @errors} data-validation-error-for={@name <> "_name"}> - <%= message %> + {message} <%= if @options == [] and is_nil(@value) and @no_options != [] and @search_query in [nil, ""] do %> - <%= render_slot(@no_options, @name <> "_name") %> + {render_slot(@no_options, @name <> "_name")} <% end %> """ diff --git a/elixir/apps/web/lib/web/components/layouts/app.html.heex b/elixir/apps/web/lib/web/components/layouts/app.html.heex index f64e04b1e..a383c91db 100644 --- a/elixir/apps/web/lib/web/components/layouts/app.html.heex +++ b/elixir/apps/web/lib/web/components/layouts/app.html.heex @@ -100,7 +100,7 @@
<.flash :if={@account.warning} kind={:warning} class="m-1"> - <%= @account.warning %>. + {@account.warning}. Please <.link navigate={~p"/#{@account}/settings/billing"} class={link_style()}> @@ -128,8 +128,8 @@ <% trial_ends_in_days = DateTime.diff(trial_ends_at, DateTime.utc_now(), :day) %> <.flash :if={5 > trial_ends_in_days and trial_ends_in_days > 0} kind={:info} class="m-1"> - Your Enterprise pilot period will expire in <%= trial_ends_in_days %> - <%= if trial_ends_in_days == 1, do: "day", else: "days" %>. + Your Enterprise pilot period will expire in {trial_ends_in_days} + {if trial_ends_in_days == 1, do: "day", else: "days"}. Please contact your sales representative to extend it. @@ -139,5 +139,5 @@ <% end %> - <%= @inner_content %> + {@inner_content}
diff --git a/elixir/apps/web/lib/web/components/layouts/public.html.heex b/elixir/apps/web/lib/web/components/layouts/public.html.heex index 513af85a4..509b93af5 100644 --- a/elixir/apps/web/lib/web/components/layouts/public.html.heex +++ b/elixir/apps/web/lib/web/components/layouts/public.html.heex @@ -1,4 +1,4 @@ <.trackers />
- <%= @inner_content %> + {@inner_content}
diff --git a/elixir/apps/web/lib/web/components/layouts/root.html.heex b/elixir/apps/web/lib/web/components/layouts/root.html.heex index f6dad3242..c2fb47890 100644 --- a/elixir/apps/web/lib/web/components/layouts/root.html.heex +++ b/elixir/apps/web/lib/web/components/layouts/root.html.heex @@ -11,7 +11,7 @@ <.live_title suffix=" · Firezone"> - <%= assigns[:page_title] || "Firezone" %> + {assigns[:page_title] || "Firezone"} - <%= @inner_content %> + {@inner_content} diff --git a/elixir/apps/web/lib/web/components/navigation_components.ex b/elixir/apps/web/lib/web/components/navigation_components.ex index 76b08773e..d2612f8a8 100644 --- a/elixir/apps/web/lib/web/components/navigation_components.ex +++ b/elixir/apps/web/lib/web/components/navigation_components.ex @@ -66,10 +66,10 @@ defmodule Web.NavigationComponents do ~H"""
- <%= @subject.actor.name %> + {@subject.actor.name} - <%= @subject.identity.provider_identifier %> + {@subject.identity.provider_identifier}
@@ -267,7 +267,7 @@ defmodule Web.NavigationComponents do <.icon name="hero-home-solid" class="w-3.5 h-3.5 mr-2" /> Home - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} @@ -290,11 +290,11 @@ defmodule Web.NavigationComponents do navigate={@path} class="ml-1 text-neutral-700 hover:text-neutral-900 md:ml-2" > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} @@ -319,7 +319,7 @@ defmodule Web.NavigationComponents do class="text-sm font-semibold leading-6 text-neutral-900 hover:text-neutral-700" > <.icon name="hero-arrow-left-solid" class="h-3 w-3" /> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ @@ -347,7 +347,7 @@ defmodule Web.NavigationComponents do target="_blank" {@rest} > - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end diff --git a/elixir/apps/web/lib/web/components/page_components.ex b/elixir/apps/web/lib/web/components/page_components.ex index ec33e38b6..1ee0d491d 100644 --- a/elixir/apps/web/lib/web/components/page_components.ex +++ b/elixir/apps/web/lib/web/components/page_components.ex @@ -20,15 +20,15 @@ defmodule Web.PageComponents do ]}> <.header> <:title> - <%= render_slot(@title) %> + {render_slot(@title)} <:actions :for={action <- @action} :if={not Enum.empty?(@action)}> - <%= render_slot(action) %> + {render_slot(action)} <:help :for={help <- @help} :if={not Enum.empty?(@help)}> - <%= render_slot(help) %> + {render_slot(help)} @@ -37,7 +37,7 @@ defmodule Web.PageComponents do <.flash kind={:info} flash={Map.get(content, :flash)} style="wide" /> <.flash kind={:error} flash={Map.get(content, :flash)} style="wide" /> - <%= render_slot(content) %> + {render_slot(content)} """ @@ -55,11 +55,11 @@ defmodule Web.PageComponents do <:title>Danger Zone <:action :for={action <- @action} :if={not Enum.empty?(@action)}> - <%= render_slot(action) %> + {render_slot(action)} <:content :for={content <- @content}> - <%= render_slot(content) %> + {render_slot(content)} """ diff --git a/elixir/apps/web/lib/web/components/table_components.ex b/elixir/apps/web/lib/web/components/table_components.ex index 900ed457f..61acc0f6c 100644 --- a/elixir/apps/web/lib/web/components/table_components.ex +++ b/elixir/apps/web/lib/web/components/table_components.ex @@ -22,7 +22,7 @@ defmodule Web.TableComponents do :for={col <- @columns} class={["px-4 py-3 font-medium whitespace-nowrap", Map.get(col, :class, "")]} > - <%= col[:label] %> + {col[:label]} <.table_header_order_buttons :if={col[:field]} field={col[:field]} @@ -31,7 +31,7 @@ defmodule Web.TableComponents do /> - <%= gettext("Actions") %> + {gettext("Actions")} @@ -90,7 +90,7 @@ defmodule Web.TableComponents do @click && "hover:cursor-pointer" ]} > - <%= render_slot(col, @mapper.(@row)) %> + {render_slot(col, @mapper.(@row))} <% # this is a hack which allows to hide empty action dropdowns, # because LiveView doesn't allow to do <:slot :let={x} :if={x} /> @@ -102,7 +102,7 @@ defmodule Web.TableComponents do
- <%= render_slot(action, @mapper.(@row)) %> + {render_slot(action, @mapper.(@row))}
@@ -177,7 +177,7 @@ defmodule Web.TableComponents do
- <%= render_slot(@empty) %> + {render_slot(@empty)}
""" @@ -237,7 +237,7 @@ defmodule Web.TableComponents do - <%= render_slot(@group, group) %> + {render_slot(@group, group)} @@ -253,7 +253,7 @@ defmodule Web.TableComponents do
- <%= render_slot(@empty) %> + {render_slot(@empty)}
""" end @@ -292,7 +292,7 @@ defmodule Web.TableComponents do ~H""" - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}
""" @@ -332,10 +332,10 @@ defmodule Web.TableComponents do @label_class ]} > - <%= render_slot(@label) %> + {render_slot(@label)} - <%= render_slot(@value) %> + {render_slot(@value)} """ @@ -351,7 +351,7 @@ defmodule Web.TableComponents do def action_link(assigns) do ~H""" <.link navigate={@navigate} class="block py-2 px-4 hover:bg-neutral-100"> - <%= render_slot(@inner_block) %> + {render_slot(@inner_block)} """ end diff --git a/elixir/apps/web/lib/web/controllers/home_html.ex b/elixir/apps/web/lib/web/controllers/home_html.ex index ea8877ec7..9a5606e10 100644 --- a/elixir/apps/web/lib/web/controllers/home_html.ex +++ b/elixir/apps/web/lib/web/controllers/home_html.ex @@ -76,7 +76,7 @@ defmodule Web.HomeHTML do border border-neutral-200 hover:bg-neutral-100 hover:text-neutral-900 ]}> - <%= @account.name %> + {@account.name} <.icon name="hero-shield-check" class="w-4 h-4" /> diff --git a/elixir/apps/web/lib/web/controllers/sign_in_html.ex b/elixir/apps/web/lib/web/controllers/sign_in_html.ex index 1590304fc..c13d99075 100644 --- a/elixir/apps/web/lib/web/controllers/sign_in_html.ex +++ b/elixir/apps/web/lib/web/controllers/sign_in_html.ex @@ -17,7 +17,7 @@ defmodule Web.SignInHTML do <.live_title suffix=" · Firezone"> - <%= assigns[:page_title] || "Firezone" %> + {assigns[:page_title] || "Firezone"} - <%= @actor.name %> + {@actor.name} (admin) diff --git a/elixir/apps/web/lib/web/live/actors/edit.ex b/elixir/apps/web/lib/web/live/actors/edit.ex index f4f381ec4..d3b559034 100644 --- a/elixir/apps/web/lib/web/live/actors/edit.ex +++ b/elixir/apps/web/lib/web/live/actors/edit.ex @@ -31,7 +31,7 @@ defmodule Web.Actors.Edit do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/actors"}>Actors <.breadcrumb path={~p"/#{@account}/actors/#{@actor}"}> - <%= @actor.name %> + {@actor.name} <.breadcrumb path={~p"/#{@account}/actors/#{@actor}/edit"}> Edit @@ -40,7 +40,7 @@ defmodule Web.Actors.Edit do <.section> <:title> - Edit <%= actor_type(@actor.type) %>: <%= @actor.name %> + Edit {actor_type(@actor.type)}: {@actor.name} <:content>
diff --git a/elixir/apps/web/lib/web/live/actors/groups.ex b/elixir/apps/web/lib/web/live/actors/groups.ex index 33ea59d90..5c8e0583f 100644 --- a/elixir/apps/web/lib/web/live/actors/groups.ex +++ b/elixir/apps/web/lib/web/live/actors/groups.ex @@ -54,7 +54,7 @@ defmodule Web.Actors.EditGroups do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/actors"}>Actors <.breadcrumb path={~p"/#{@account}/actors/#{@actor}"}> - <%= @actor.name %> + {@actor.name} <.breadcrumb path={~p"/#{@account}/actors/#{@actor}/edit_groups"}> Group Memberships @@ -62,7 +62,7 @@ defmodule Web.Actors.EditGroups do <.section> <:title> - Group Memberships: <%= @actor.name %> + Group Memberships: {@actor.name} <:help> Add or remove Groups for a given Actor. @@ -100,7 +100,7 @@ defmodule Web.Actors.EditGroups do end ++ ["text-accent-500", "hover:underline"] } > - <%= group.name %> + {group.name} <:col :let={group}> @@ -149,7 +149,7 @@ defmodule Web.Actors.EditGroups do > <:dialog_title>Confirm changes to Actor Groups <:dialog_content> - <%= confirm_message(@added, @removed) %> + {confirm_message(@added, @removed)} <:dialog_confirm_button> Save diff --git a/elixir/apps/web/lib/web/live/actors/index.ex b/elixir/apps/web/lib/web/live/actors/index.ex index f191a0d1a..92e62da31 100644 --- a/elixir/apps/web/lib/web/live/actors/index.ex +++ b/elixir/apps/web/lib/web/live/actors/index.ex @@ -48,11 +48,11 @@ defmodule Web.Actors.Index do def render(assigns) do ~H""" <.breadcrumbs account={@account}> - <.breadcrumb path={~p"/#{@account}/actors"}><%= @page_title %> + <.breadcrumb path={~p"/#{@account}/actors"}>{@page_title} <.section> - <:title><%= @page_title %> + <:title>{@page_title} <:action> <.docs_action path="/deploy/users" /> @@ -106,7 +106,7 @@ defmodule Web.Actors.Index do link_style() ]} > - <%= @actor_groups[actor.id].count %> + {@actor_groups[actor.id].count} <:content> @@ -123,7 +123,7 @@ defmodule Web.Actors.Index do <:tail :let={count}> - and <%= count %> more. + and {count} more. @@ -155,7 +155,7 @@ defmodule Web.Actors.Index do navigate={~p"/#{@account}/actors/#{actor}?#clients"} class={["inline-flex ml-1", link_style()]} > - <%= count %> more + {count} more . diff --git a/elixir/apps/web/lib/web/live/actors/new.ex b/elixir/apps/web/lib/web/live/actors/new.ex index b005b8b2f..7ea33eb83 100644 --- a/elixir/apps/web/lib/web/live/actors/new.ex +++ b/elixir/apps/web/lib/web/live/actors/new.ex @@ -18,7 +18,7 @@ defmodule Web.Actors.New do <.breadcrumb path={~p"/#{@account}/actors/new"}>Add <.section> - <:title><%= @page_title %> + <:title>{@page_title} <:content>

Choose type

diff --git a/elixir/apps/web/lib/web/live/actors/service_accounts/new.ex b/elixir/apps/web/lib/web/live/actors/service_accounts/new.ex index e81efbf08..fafae636c 100644 --- a/elixir/apps/web/lib/web/live/actors/service_accounts/new.ex +++ b/elixir/apps/web/lib/web/live/actors/service_accounts/new.ex @@ -24,7 +24,7 @@ defmodule Web.Actors.ServiceAccounts.New do <.section> - <:title><%= @page_title %> + <:title>{@page_title} <:content>
<.flash kind={:error} flash={@flash} /> diff --git a/elixir/apps/web/lib/web/live/actors/service_accounts/new_identity.ex b/elixir/apps/web/lib/web/live/actors/service_accounts/new_identity.ex index f4eed891d..c0ea04ad5 100644 --- a/elixir/apps/web/lib/web/live/actors/service_accounts/new_identity.ex +++ b/elixir/apps/web/lib/web/live/actors/service_accounts/new_identity.ex @@ -32,7 +32,7 @@ defmodule Web.Actors.ServiceAccounts.NewIdentity do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/actors"}>Actors <.breadcrumb path={~p"/#{@account}/actors/#{@actor}"}> - <%= @actor.name %> + {@actor.name} <.breadcrumb path={~p"/#{@account}/actors/service_accounts/#{@actor}/new_identity"}> Create Token @@ -40,7 +40,7 @@ defmodule Web.Actors.ServiceAccounts.NewIdentity do <.section> - <:title><%= @page_title %> + <:title>{@page_title} <:content>
<.flash kind={:error} flash={@flash} /> diff --git a/elixir/apps/web/lib/web/live/actors/show.ex b/elixir/apps/web/lib/web/live/actors/show.ex index ba9b43f11..c6c88bfb7 100644 --- a/elixir/apps/web/lib/web/live/actors/show.ex +++ b/elixir/apps/web/lib/web/live/actors/show.ex @@ -139,20 +139,20 @@ defmodule Web.Actors.Show do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/actors"}>Actors <.breadcrumb path={~p"/#{@account}/actors/#{@actor}"}> - <%= @actor.name %> + {@actor.name} <.section> <:title> - <%= actor_type(@actor.type) %>: <%= @actor.name %> + {actor_type(@actor.type)}: {@actor.name} (you) (deleted) (disabled) <:action :if={is_nil(@actor.deleted_at)}> <.edit_button navigate={~p"/#{@account}/actors/#{@actor}/edit"}> - Edit <%= actor_type(@actor.type) %> + Edit {actor_type(@actor.type)} <:action :if={is_nil(@actor.deleted_at) and not Actors.actor_disabled?(@actor)}> @@ -165,15 +165,15 @@ defmodule Web.Actors.Show do > <:dialog_title>Confirm disabling the Actor <:dialog_content> - Are you sure you want to disable this <%= String.downcase(actor_type(@actor.type)) %> and revoke all its tokens? + Are you sure you want to disable this {String.downcase(actor_type(@actor.type))} and revoke all its tokens? <:dialog_confirm_button> - Disable <%= actor_type(@actor.type) %> + Disable {actor_type(@actor.type)} <:dialog_cancel_button> Cancel - Disable <%= actor_type(@actor.type) %> + Disable {actor_type(@actor.type)} <:action :if={is_nil(@actor.deleted_at) and Actors.actor_disabled?(@actor)}> @@ -186,15 +186,15 @@ defmodule Web.Actors.Show do > <:dialog_title>Confirm enabling the Actor <:dialog_content> - Are you sure you want to enable this <%= String.downcase(actor_type(@actor.type)) %>? + Are you sure you want to enable this {String.downcase(actor_type(@actor.type))}? <:dialog_confirm_button> - Enable <%= actor_type(@actor.type) %> + Enable {actor_type(@actor.type)} <:dialog_cancel_button> Cancel - Enable <%= actor_type(@actor.type) %> + Enable {actor_type(@actor.type)} <:content flash={@flash}> @@ -202,14 +202,14 @@ defmodule Web.Actors.Show do <.vertical_table_row> <:label>Name <:value> - <%= @actor.name %> + {@actor.name} <.vertical_table_row> <:label>Role <:value> - <%= actor_role(@actor.type) %> + {actor_role(@actor.type)} @@ -378,7 +378,7 @@ defmodule Web.Actors.Show do metadata={@tokens_metadata} > <:col :let={token} label="type" class="w-1/12"> - <%= token.type %> + {token.type} <:col :let={token} :if={@actor.type != :service_account} label="identity" class="w-3/12"> <.identity_identifier account={@account} identity={token.identity} /> @@ -391,14 +391,14 @@ defmodule Web.Actors.Show do <:item :for={client <- token.clients}> <.link navigate={~p"/#{@account}/clients/#{client.id}"} class={[link_style()]}> - <%= client.name %> + {client.name} N/A <:col :let={token} :if={@actor.type == :service_account} label="name" class="w-2/12"> - <%= token.name %> + {token.name} <:col :let={token} label="created" class="w-2/12"> <.created_by account={@account} schema={token} /> @@ -482,7 +482,7 @@ defmodule Web.Actors.Show do <:col :let={client} field={{:clients, :name}} label="name">
<.link navigate={~p"/#{@account}/clients/#{client.id}"} class={[link_style()]}> - <%= client.name %> + {client.name} <.icon :if={not is_nil(client.verified_at)} @@ -535,17 +535,17 @@ defmodule Web.Actors.Show do <:col :let={flow} label="client"> <.link navigate={~p"/#{@account}/clients/#{flow.client_id}"} class={link_style()}> - <%= flow.client.name %> + {flow.client.name}
- <%= flow.client_remote_ip %> + {flow.client_remote_ip} <:col :let={flow} label="gateway"> <.link navigate={~p"/#{@account}/gateways/#{flow.gateway_id}"} class={[link_style()]}> - <%= flow.gateway.group.name %>-<%= flow.gateway.name %> + {flow.gateway.group.name}-{flow.gateway.name}
- <%= flow.gateway_remote_ip %> + {flow.gateway_remote_ip} <:col :let={flow} :if={@flow_activities_enabled?} label="activity" class="w-1/12"> <.link navigate={~p"/#{@account}/flows/#{flow.id}"} class={[link_style()]}> @@ -596,17 +596,17 @@ defmodule Web.Actors.Show do icon="hero-trash-solid" on_confirm="delete" > - <:dialog_title>Confirm <%= actor_type(@actor.type) %> deletion + <:dialog_title>Confirm {actor_type(@actor.type)} deletion <:dialog_content> - Are you sure you want to delete this <%= String.downcase(actor_type(@actor.type)) %> along with all associated identities? + Are you sure you want to delete this {String.downcase(actor_type(@actor.type))} along with all associated identities? <:dialog_confirm_button> - Delete <%= actor_type(@actor.type) %> + Delete {actor_type(@actor.type)} <:dialog_cancel_button> Cancel - Delete <%= actor_type(@actor.type) %> + Delete {actor_type(@actor.type)} diff --git a/elixir/apps/web/lib/web/live/actors/users/new.ex b/elixir/apps/web/lib/web/live/actors/users/new.ex index 62e46e51b..e9e3a4e7d 100644 --- a/elixir/apps/web/lib/web/live/actors/users/new.ex +++ b/elixir/apps/web/lib/web/live/actors/users/new.ex @@ -24,7 +24,7 @@ defmodule Web.Actors.Users.New do <.section> - <:title><%= @page_title %> + <:title>{@page_title} <:content>
<.flash kind={:error} flash={@flash} /> diff --git a/elixir/apps/web/lib/web/live/actors/users/new_identity.ex b/elixir/apps/web/lib/web/live/actors/users/new_identity.ex index 23b236bc0..89b44e1c2 100644 --- a/elixir/apps/web/lib/web/live/actors/users/new_identity.ex +++ b/elixir/apps/web/lib/web/live/actors/users/new_identity.ex @@ -44,14 +44,14 @@ defmodule Web.Actors.Users.NewIdentity do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/actors"}>Actors <.breadcrumb path={~p"/#{@account}/actors/#{@actor}"}> - <%= @actor.name %> + {@actor.name} <.breadcrumb path={~p"/#{@account}/actors/users/#{@actor}/new_identity"}> Add Identity <.section> - <:title><%= @page_title %> + <:title>{@page_title} <:content>
<.flash kind={:error} flash={@flash} /> diff --git a/elixir/apps/web/lib/web/live/clients/components.ex b/elixir/apps/web/lib/web/live/clients/components.ex index 1c27530d4..5b1d68043 100644 --- a/elixir/apps/web/lib/web/live/clients/components.ex +++ b/elixir/apps/web/lib/web/live/clients/components.ex @@ -6,7 +6,7 @@ defmodule Web.Clients.Components do ~H"""
<.client_os_icon client={@client} /> - <%= get_client_os_name_and_version(@client.last_seen_user_agent) %> + {get_client_os_name_and_version(@client.last_seen_user_agent)}
""" end @@ -24,7 +24,7 @@ defmodule Web.Clients.Components do def client_os_name_and_version(assigns) do ~H""" - <%= get_client_os_name_and_version(@client.last_seen_user_agent) %> + {get_client_os_name_and_version(@client.last_seen_user_agent)} """ end @@ -37,7 +37,7 @@ defmodule Web.Clients.Components do <:content>
- <%= @client.name %> + {@client.name} <.icon :if={not is_nil(@client.verified_at)} name="hero-shield-check" diff --git a/elixir/apps/web/lib/web/live/clients/edit.ex b/elixir/apps/web/lib/web/live/clients/edit.ex index 44951702b..d3d4bb697 100644 --- a/elixir/apps/web/lib/web/live/clients/edit.ex +++ b/elixir/apps/web/lib/web/live/clients/edit.ex @@ -25,7 +25,7 @@ defmodule Web.Clients.Edit do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/clients"}>Clients <.breadcrumb path={~p"/#{@account}/clients/#{@client}"}> - <%= @client.name %> + {@client.name} <.breadcrumb path={~p"/#{@account}/clients/#{@client}/edit"}> Edit @@ -34,7 +34,7 @@ defmodule Web.Clients.Edit do <.section> <:title> - Editing client: <%= @client.name %> + Editing client: {@client.name} <:content>
diff --git a/elixir/apps/web/lib/web/live/clients/index.ex b/elixir/apps/web/lib/web/live/clients/index.ex index 97cba41e9..401fe1626 100644 --- a/elixir/apps/web/lib/web/live/clients/index.ex +++ b/elixir/apps/web/lib/web/live/clients/index.ex @@ -85,7 +85,7 @@ defmodule Web.Clients.Index do <:col :let={client} field={{:clients, :name}} label="name">
<.link navigate={~p"/#{@account}/clients/#{client.id}"} class={[link_style()]}> - <%= client.name %> + {client.name} <.icon :if={not is_nil(client.verified_at)} diff --git a/elixir/apps/web/lib/web/live/clients/show.ex b/elixir/apps/web/lib/web/live/clients/show.ex index 8316692c1..c07e36e1a 100644 --- a/elixir/apps/web/lib/web/live/clients/show.ex +++ b/elixir/apps/web/lib/web/live/clients/show.ex @@ -67,7 +67,7 @@ defmodule Web.Clients.Show do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/clients"}>Clients <.breadcrumb path={~p"/#{@account}/clients/#{@client.id}"}> - <%= @client.name %> + {@client.name} @@ -96,11 +96,11 @@ defmodule Web.Clients.Show do - <:value><%= @client.id %> + <:value>{@client.id} <.vertical_table_row> <:label>Name - <:value><%= @client.name %> + <:value>{@client.name} <.vertical_table_row> <:label>Status @@ -110,7 +110,7 @@ defmodule Web.Clients.Show do <:label>Owner <:value> <.link navigate={~p"/#{@account}/actors/#{@client.actor.id}"} class={[link_style()]}> - <%= @client.actor.name %> + {@client.actor.name} @@ -136,7 +136,7 @@ defmodule Web.Clients.Show do } class={[link_style()]} > - <%= @client.last_used_token.name %> + {@client.last_used_token.name} (deleted) @@ -146,12 +146,12 @@ defmodule Web.Clients.Show do <.vertical_table_row> <:label>Version - <:value><%= @client.last_seen_version %> + <:value>{@client.last_seen_version} <.vertical_table_row> <:label>User agent <:value> - <%= @client.last_seen_user_agent %> + {@client.last_seen_user_agent} <.vertical_table_row> @@ -236,22 +236,22 @@ defmodule Web.Clients.Show do - <:value><%= @client.external_id %> + <:value>{@client.external_id} <.vertical_table_row :for={{{title, helptext}, value} <- hardware_ids(@client)}> <:label> <.popover :if={not is_nil(helptext)}> <:target> - <%= title %> + {title} <.icon name="hero-question-mark-circle" class="w-3 h-3 mb-1 text-neutral-400" /> <:content> - <%= helptext %> + {helptext} - <%= title %> + {title} - <:value><%= value %> + <:value>{value} <.vertical_table_row> @@ -307,7 +307,7 @@ defmodule Web.Clients.Show do <.relative_datetime datetime={flow.inserted_at} /> <:col :let={flow} label="remote ip" class="w-3/12"> - <%= flow.client_remote_ip %> + {flow.client_remote_ip} <:col :let={flow} label="policy"> <.link navigate={~p"/#{@account}/policies/#{flow.policy_id}"} class={[link_style()]}> @@ -316,10 +316,10 @@ defmodule Web.Clients.Show do <:col :let={flow} label="gateway" class="w-3/12"> <.link navigate={~p"/#{@account}/gateways/#{flow.gateway_id}"} class={[link_style()]}> - <%= flow.gateway.group.name %>-<%= flow.gateway.name %> + {flow.gateway.group.name}-{flow.gateway.name}
- <%= flow.gateway_remote_ip %> + {flow.gateway_remote_ip} <:col :let={flow} :if={@flow_activities_enabled?} label="activity"> <.link navigate={~p"/#{@account}/flows/#{flow.id}"} class={[link_style()]}> diff --git a/elixir/apps/web/lib/web/live/flows/show.ex b/elixir/apps/web/lib/web/live/flows/show.ex index b3f7a5aa8..535854867 100644 --- a/elixir/apps/web/lib/web/live/flows/show.ex +++ b/elixir/apps/web/lib/web/live/flows/show.ex @@ -63,13 +63,13 @@ defmodule Web.Flows.Show do <.breadcrumbs account={@account}> <.breadcrumb>Flows <.breadcrumb path={~p"/#{@account}/flows/#{@flow.id}"}> - <%= @flow.client.name %> flow + {@flow.client.name} flow <.section> <:title> - Flow for: <%= @flow.client.name %> + Flow for: {@flow.client.name} <:action> <.button @@ -105,20 +105,20 @@ defmodule Web.Flows.Show do <:label>Client <:value> <.link navigate={~p"/#{@account}/clients/#{@flow.client_id}"} class={link_style()}> - <%= @flow.client.name %> + {@flow.client.name} -
Remote IP: <%= @flow.client_remote_ip %>
-
User Agent: <%= @flow.client_user_agent %>
+
Remote IP: {@flow.client_remote_ip}
+
User Agent: {@flow.client_user_agent}
<.vertical_table_row> <:label>Gateway <:value> <.link navigate={~p"/#{@account}/gateways/#{@flow.gateway_id}"} class={link_style()}> - <%= @flow.gateway.group.name %>-<%= @flow.gateway.name %> + {@flow.gateway.group.name}-{@flow.gateway.name}
- Remote IP: <%= @flow.gateway_remote_ip %> + Remote IP: {@flow.gateway_remote_ip}
@@ -126,14 +126,14 @@ defmodule Web.Flows.Show do <:label>Resource <:value> <.link navigate={~p"/#{@account}/resources/#{@flow.resource_id}"} class={link_style()}> - <%= @flow.resource.name %> + {@flow.resource.name} <.vertical_table_row> <:label>Connectivity Type <:value> - <%= @last_used_connectivity_type %> + {@last_used_connectivity_type} @@ -162,19 +162,19 @@ defmodule Web.Flows.Show do <.relative_datetime datetime={activity.window_ended_at} /> <:col :let={activity} label="destination"> - <%= activity.destination %> + {activity.destination} <:col :let={activity} label="connectivity type"> - <%= activity.connectivity_type %> + {activity.connectivity_type} <:col :let={activity} label="rx"> - <%= Sizeable.filesize(activity.rx_bytes) %> + {Sizeable.filesize(activity.rx_bytes)} <:col :let={activity} label="tx"> - <%= Sizeable.filesize(activity.tx_bytes) %> + {Sizeable.filesize(activity.tx_bytes)} <:col :let={activity} label="blocked tx"> - <%= Sizeable.filesize(activity.blocked_tx_bytes) %> + {Sizeable.filesize(activity.blocked_tx_bytes)} <:empty>
No metrics to display.
diff --git a/elixir/apps/web/lib/web/live/gateways/show.ex b/elixir/apps/web/lib/web/live/gateways/show.ex index a952e6aeb..70a0b441b 100644 --- a/elixir/apps/web/lib/web/live/gateways/show.ex +++ b/elixir/apps/web/lib/web/live/gateways/show.ex @@ -27,18 +27,18 @@ defmodule Web.Gateways.Show do <.breadcrumbs account={@account}> <.breadcrumb path={~p"/#{@account}/sites"}>Sites <.breadcrumb path={~p"/#{@account}/sites/#{@gateway.group}"}> - <%= @gateway.group.name %> + {@gateway.group.name} <.breadcrumb path={~p"/#{@account}/sites/#{@gateway.group}/gateways"}> Gateways <.breadcrumb path={~p"/#{@account}/gateways/#{@gateway}"}> - <%= @gateway.name %> + {@gateway.name} <.section> <:title> - Gateway: <%= @gateway.name %> + Gateway: {@gateway.name} (deleted) <:content> @@ -50,13 +50,13 @@ defmodule Web.Gateways.Show do navigate={~p"/#{@account}/sites/#{@gateway.group}"} class={["font-medium", link_style()]} > - <%= @gateway.group.name %> + {@gateway.group.name} <.vertical_table_row> <:label>Name - <:value><%= @gateway.name %> + <:value>{@gateway.name} <.vertical_table_row> <:label>Status @@ -87,13 +87,13 @@ defmodule Web.Gateways.Show do <.vertical_table_row> <:label>Version <:value> - <%= @gateway.last_seen_version %> + {@gateway.last_seen_version} <.vertical_table_row> <:label>User agent <:value> - <%= @gateway.last_seen_user_agent %> + {@gateway.last_seen_user_agent}