From fd583f29412514745fc35cad2b7c1b2d91c0afd4 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 19 Nov 2022 13:16:13 -0500 Subject: [PATCH] add ids to some cards --- lib/cannery_web/components/ammo_group_table_component.ex | 4 ++-- lib/cannery_web/components/invite_card.ex | 7 +++++-- priv/gettext/de/LC_MESSAGES/default.po | 4 ++-- priv/gettext/default.pot | 4 ++-- priv/gettext/en/LC_MESSAGES/default.po | 4 ++-- priv/gettext/es/LC_MESSAGES/default.po | 4 ++-- priv/gettext/fr/LC_MESSAGES/default.po | 4 ++-- priv/gettext/ga/LC_MESSAGES/default.po | 4 ++-- 8 files changed, 19 insertions(+), 16 deletions(-) diff --git a/lib/cannery_web/components/ammo_group_table_component.ex b/lib/cannery_web/components/ammo_group_table_component.ex index 256f7ce..9530ddf 100644 --- a/lib/cannery_web/components/ammo_group_table_component.ex +++ b/lib/cannery_web/components/ammo_group_table_component.ex @@ -117,10 +117,10 @@ defmodule CanneryWeb.Components.AmmoGroupTableComponent do @impl true def render(assigns) do ~H""" -
+
<.live_component module={CanneryWeb.Components.TableComponent} - id={@id} + id={"table-#{@id}"} columns={@columns} rows={@rows} /> diff --git a/lib/cannery_web/components/invite_card.ex b/lib/cannery_web/components/invite_card.ex index fcb838a..0aefe18 100644 --- a/lib/cannery_web/components/invite_card.ex +++ b/lib/cannery_web/components/invite_card.ex @@ -15,9 +15,12 @@ defmodule CanneryWeb.Components.InviteCard do assigns = assigns |> assign_new(:code_actions, fn -> [] end) ~H""" -
+ transition-all duration-300 ease-in-out" + >

<%= @invite.name %>

diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index dd6d3ae..320bd56 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -202,7 +202,7 @@ msgstr "Brandmunition" msgid "Instance Information" msgstr "Instanzinformationen" -#: lib/cannery_web/components/invite_card.ex:32 +#: lib/cannery_web/components/invite_card.ex:35 #, elixir-autogen, elixir-format msgid "Invite Disabled" msgstr "Einladung deaktiviert" @@ -450,7 +450,7 @@ msgstr "Art:" msgid "Users" msgstr "Benutzer" -#: lib/cannery_web/components/invite_card.ex:27 +#: lib/cannery_web/components/invite_card.ex:30 #, elixir-autogen, elixir-format msgid "Uses Left:" msgstr "Verbleibende Nutzung:" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 18328af..af3596c 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -187,7 +187,7 @@ msgstr "" msgid "Instance Information" msgstr "" -#: lib/cannery_web/components/invite_card.ex:32 +#: lib/cannery_web/components/invite_card.ex:35 #, elixir-autogen, elixir-format msgid "Invite Disabled" msgstr "" @@ -433,7 +433,7 @@ msgstr "" msgid "Users" msgstr "" -#: lib/cannery_web/components/invite_card.ex:27 +#: lib/cannery_web/components/invite_card.ex:30 #, elixir-autogen, elixir-format msgid "Uses Left:" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index e690011..e99fca3 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -188,7 +188,7 @@ msgstr "" msgid "Instance Information" msgstr "" -#: lib/cannery_web/components/invite_card.ex:32 +#: lib/cannery_web/components/invite_card.ex:35 #, elixir-autogen, elixir-format msgid "Invite Disabled" msgstr "" @@ -434,7 +434,7 @@ msgstr "" msgid "Users" msgstr "" -#: lib/cannery_web/components/invite_card.ex:27 +#: lib/cannery_web/components/invite_card.ex:30 #, elixir-autogen, elixir-format msgid "Uses Left:" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index f273158..0326c73 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -202,7 +202,7 @@ msgstr "" msgid "Instance Information" msgstr "" -#: lib/cannery_web/components/invite_card.ex:32 +#: lib/cannery_web/components/invite_card.ex:35 #, elixir-autogen, elixir-format msgid "Invite Disabled" msgstr "" @@ -448,7 +448,7 @@ msgstr "" msgid "Users" msgstr "" -#: lib/cannery_web/components/invite_card.ex:27 +#: lib/cannery_web/components/invite_card.ex:30 #, elixir-autogen, elixir-format msgid "Uses Left:" msgstr "" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 642b42f..b4139b0 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -202,7 +202,7 @@ msgstr "Incendiaire" msgid "Instance Information" msgstr "Information de l’instance" -#: lib/cannery_web/components/invite_card.ex:32 +#: lib/cannery_web/components/invite_card.ex:35 #, elixir-autogen, elixir-format msgid "Invite Disabled" msgstr "Invitation désactivée" @@ -452,7 +452,7 @@ msgstr "Type :" msgid "Users" msgstr "Utilisateurs" -#: lib/cannery_web/components/invite_card.ex:27 +#: lib/cannery_web/components/invite_card.ex:30 #, elixir-autogen, elixir-format msgid "Uses Left:" msgstr "Utilisations restantes :" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index 5701f5a..f1bf245 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -198,7 +198,7 @@ msgstr "" msgid "Instance Information" msgstr "" -#: lib/cannery_web/components/invite_card.ex:32 +#: lib/cannery_web/components/invite_card.ex:35 #, elixir-autogen, elixir-format msgid "Invite Disabled" msgstr "" @@ -444,7 +444,7 @@ msgstr "" msgid "Users" msgstr "" -#: lib/cannery_web/components/invite_card.ex:27 +#: lib/cannery_web/components/invite_card.ex:30 #, elixir-autogen, elixir-format msgid "Uses Left:" msgstr ""