Skip to content

Commit

Permalink
Update Elixir, Erlang, and Phoenix (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic authored Dec 6, 2024
1 parent 0df8f70 commit cafb0d3
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
elixir 1.17.2-otp-27
erlang 27.0.1
nodejs 20.14.0
elixir 1.17.3-otp-27
erlang 27.1.3
nodejs 20.18.1
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# - https://pkgs.org/ - resource for finding needed packages
# - Ex: hexpm/elixir:1.17.1-erlang-27.0-debian-bullseye-20240612-slim
#
ARG ELIXIR_VERSION=1.17.2
ARG OTP_VERSION=27.0.1
ARG DEBIAN_VERSION=bullseye-20240904-slim
ARG ELIXIR_VERSION=1.17.3
ARG OTP_VERSION=27.1.3
ARG DEBIAN_VERSION=bullseye-20241202-slim

ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
Expand Down
6 changes: 3 additions & 3 deletions lib/phx_tools_web/components/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ defmodule PhxToolsWeb.CoreComponents do
<p :if={@title} class="flex items-center gap-1.5 text-[0.8125rem] font-semibold leading-6">
<Heroicons.information_circle :if={@kind == :info} mini class="h-4 w-4" />
<Heroicons.exclamation_circle :if={@kind == :error} mini class="h-4 w-4" />
<%= @title %>
{@title}
</p>
<p class="mt-2 text-[0.8125rem] leading-5"><%= msg %></p>
<p class="mt-2 text-[0.8125rem] leading-5">{msg}</p>
<button
:if={@close}
type="button"
Expand Down Expand Up @@ -92,7 +92,7 @@ defmodule PhxToolsWeb.CoreComponents do
class="text-sm font-semibold leading-6 text-zinc-900 hover:text-zinc-700"
>
<Heroicons.arrow_left solid class="w-3 h-3 stroke-current inline" />
<%= render_slot(@inner_block) %>
{render_slot(@inner_block)}
</.link>
</div>
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/phx_tools_web/components/layouts/app.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
>
Attempting to reconnect <Heroicons.arrow_path class="ml-1 w-3 h-3 inline animate-spin" />
</.flash>
<%= @inner_content %>
{@inner_content}
</div>
</main>
4 changes: 2 additions & 2 deletions lib/phx_tools_web/components/layouts/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="csrf-token" content={get_csrf_token()} />
<SeoMetaTagComponent.seo_meta_tags attributes={assigns[:seo_attributes]} />
<.live_title>
<%= assigns[:page_title] || "PhxTools" %>
{assigns[:page_title] || "PhxTools"}
</.live_title>
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
<link rel="preconnect" href="https://asciinema.org/" />
Expand All @@ -21,6 +21,6 @@
</head>

<body class="bg-[#110A33] mx-auto sm:px-2 md:px-7 lg:w-9/12 sm:py-8">
<%= @inner_content %>
{@inner_content}
</body>
</html>
10 changes: 5 additions & 5 deletions lib/phx_tools_web/live/phx_tools_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule PhxToolsWeb.PhxToolsComponents do
</.link>
</div>
<p class="font-semibold text-center text-white text-xs md:text-sm lg:text-base font-montserrat">
Copyright <span>&copy; <%= Date.utc_today().year %></span> Optimum
Copyright <span>&copy; {Date.utc_today().year}</span> Optimum
</p>
"""
end
Expand Down Expand Up @@ -70,7 +70,7 @@ defmodule PhxToolsWeb.PhxToolsComponents do
installation_instructions={installation_instructions(@os_type)}
os_type={@os_type}
>
<%= raw(installation_instruction) %>
{raw(installation_instruction)}
</.os_instructions>
</div>
<div class="justify-center gap-4 mt-2 flex">
Expand All @@ -83,7 +83,7 @@ defmodule PhxToolsWeb.PhxToolsComponents do
<div class="w-[100%] flex flex-col gap-8 items-center justify-center">
<div class="md:w-[65%]">
<p class="text-xs px-2 leading-5 text-center text-white font-martian md:text-sm md:leading-6 lg:text-base">
<%= phx_tools_description() %>
{phx_tools_description()}
</p>
</div>
<div
Expand Down Expand Up @@ -137,12 +137,12 @@ defmodule PhxToolsWeb.PhxToolsComponents do
<div class="h-full shadow-custom shadow-md rounded-md pb-2">
<div class="text-start px-[3%] lg:text-xl md:text-lg sm:text-md">
<h1 class="text-white text-center text-sm md:text-base lg:text-lg lg:my-[5%] md:my-[2%] sm:my-[2%] lg:pt-5">
<%= Index.get_operating_system(@os_type) %> installation process
{Index.get_operating_system(@os_type)} installation process
</h1>
<ol class="list-decimal ml-3 pl-5 text-xs md:text-sm lg:text-base text-white lg:mt-4 sm:mt-2 leading-6">
<%= for instruction <- @installation_instructions do %>
<li class="mb-2">
<%= render_slot(@inner_block, instruction) %>
{render_slot(@inner_block, instruction)}
</li>
<% end %>
</ol>
Expand Down
16 changes: 8 additions & 8 deletions mix.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions priv/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ white='\033[0;37m'
green='\033[0;32m'
cyan='\033[0;36m'

elixir_version=1.17.2-otp-27
erlang_version=27.0.1
phoenix_version=1.7.14
elixir_version=1.17.3-otp-27
erlang_version=27.1.3
phoenix_version=1.7.17
postgres_version=15.1

case "${SHELL:-}" in
Expand Down

0 comments on commit cafb0d3

Please sign in to comment.