diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5e2f444..9c0b286 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,12 +12,9 @@ jobs: - name: Install OTP and Elixir uses: erlef/setup-beam@v1 with: - otp-version: 27 - elixir-version: 1.17.3 + otp-version: 27.2.2 + elixir-version: 1.18.2 - run: mix deps.get - run: MIX_ENV=test mix deps.compile - run: MIX_ENV=test mix lint - - uses: hoverkraft-tech/compose-action@v2.0.2 - with: - compose-file: docker-compose.yaml - run: mix test --warnings-as-errors diff --git a/Dockerfile b/Dockerfile index 8c3925e..adeb70c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,13 @@ # This file is based on these images: # # - https://hub.docker.com/r/hexpm/elixir/tags - for the build image -# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20250113-slim - for the release image +# - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20250203-slim - for the release image # - https://pkgs.org/ - resource for finding needed packages -# - Ex: hexpm/elixir:1.18.2-erlang-27.2.1-debian-bullseye-20250113-slim +# - Ex: hexpm/elixir:1.18.2-erlang-27.2.2-debian-bullseye-20250203-slim # ARG ELIXIR_VERSION=1.18.2 -ARG OTP_VERSION=27.2.1 -ARG DEBIAN_VERSION=bullseye-20250113-slim +ARG OTP_VERSION=27.2.2 +ARG DEBIAN_VERSION=bullseye-20250203-slim ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}" diff --git a/lib/dash_web.ex b/lib/dash_web.ex index 99258de..4308bc8 100644 --- a/lib/dash_web.ex +++ b/lib/dash_web.ex @@ -17,7 +17,9 @@ defmodule DashWeb do those modules here. """ - def static_paths, do: ~w(assets fonts images favicon.svg favicon.ico site.webmanifest favicon-48x48.png apple-touch-icon.png web-app-manifest-192x192.png web-app-manifest-512x512.png robots.txt) + def static_paths, + do: + ~w(assets fonts images favicon.svg favicon.ico site.webmanifest favicon-48x48.png apple-touch-icon.png web-app-manifest-192x192.png web-app-manifest-512x512.png robots.txt) def router do quote do diff --git a/lib/dash_web/components/core_components.ex b/lib/dash_web/components/core_components.ex index 32cb89b..41efc12 100644 --- a/lib/dash_web/components/core_components.ex +++ b/lib/dash_web/components/core_components.ex @@ -79,7 +79,7 @@ defmodule DashWeb.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}
@@ -157,7 +157,7 @@ defmodule DashWeb.CoreComponents do phx-connected={hide("#client-error")} hidden > - <%= gettext("Attempting to reconnect") %> + {gettext("Attempting to reconnect")} <.icon name="hero-arrow-path" class="ml-1 h-3 w-3 animate-spin" /> @@ -169,7 +169,7 @@ defmodule DashWeb.CoreComponents do phx-connected={hide("#server-error")} hidden > - <%= gettext("Hang in there while we get back on track") %> + {gettext("Hang in there while we get back on track")} <.icon name="hero-arrow-path" class="ml-1 h-3 w-3 animate-spin" /> @@ -203,9 +203,9 @@ defmodule DashWeb.CoreComponents do ~H""" <.form :let={f} for={@for} as={@as} {@rest}><.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 @@ -431,13 +431,13 @@ defmodule DashWeb.CoreComponents do- <%= render_slot(@subtitle) %> + {render_slot(@subtitle)}
| <%= col[:label] %> | +{col[:label]} | - <%= gettext("Actions") %> + {gettext("Actions")} |
|---|