From 59d01d3659d28eb81734af8bcf16971b366d5b3f Mon Sep 17 00:00:00 2001 From: nelsonic Date: Sat, 8 Jun 2024 09:17:16 +0100 Subject: [PATCH] fix breaking changes due to update in phoenix_html --- BUILDIT.md | 4 ++++ lib/app_web/templates/layout/root.html.heex | 4 +++- lib/app_web/views/error_helpers.ex | 2 +- lib/app_web/views/layout_view.ex | 1 + mix.exs | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/BUILDIT.md b/BUILDIT.md index 6019650..c248280 100644 --- a/BUILDIT.md +++ b/BUILDIT.md @@ -3,6 +3,10 @@ # Build Log ๐Ÿ‘ฉโ€๐Ÿ’ป [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/dwyl/who/ci.yml?label=build&style=flat-square&branch=main)](https://github.com/dwyl/who/actions/workflows/ci.yml) +[![codecov.io](https://img.shields.io/codecov/c/github/dwyl/who/main.svg?style=flat-square)](http://codecov.io/github/dwyl/who?branch=main) +[![Hex.pm](https://img.shields.io/hexpm/v/elixir_auth_google?color=brightgreen&style=flat-square)](https://hex.pm/packages/elixir_auth_google) +[![contributions welcome](https://img.shields.io/badge/feedback-welcome-brightgreen.svg?style=flat-square)](https://github.com/dwyl/who/issues) +[![HitCount](https://hits.dwyl.com/dwyl/who-buildit.svg)](https://hits.dwyl.com/dwyl/who-buildit) This is a log of the steps taken diff --git a/lib/app_web/templates/layout/root.html.heex b/lib/app_web/templates/layout/root.html.heex index 9c97faf..fed63c4 100644 --- a/lib/app_web/templates/layout/root.html.heex +++ b/lib/app_web/templates/layout/root.html.heex @@ -5,7 +5,9 @@ - <%= live_title_tag assigns[:page_title] || "App", suffix: " ยท Phoenix Framework" %> + <.live_title suffix="- MyApp"> + <%= assigns[:page_title] || "Welcome" %> + diff --git a/lib/app_web/views/error_helpers.ex b/lib/app_web/views/error_helpers.ex index 8ce2aa5..c67c477 100644 --- a/lib/app_web/views/error_helpers.ex +++ b/lib/app_web/views/error_helpers.ex @@ -3,7 +3,7 @@ defmodule AppWeb.ErrorHelpers do Conveniences for translating and building error messages. """ - import Phoenix.HTML + # import Phoenix.HTML import Phoenix.HTML.Form use PhoenixHTMLHelpers diff --git a/lib/app_web/views/layout_view.ex b/lib/app_web/views/layout_view.ex index 69e85d2..ced2fed 100644 --- a/lib/app_web/views/layout_view.ex +++ b/lib/app_web/views/layout_view.ex @@ -1,5 +1,6 @@ defmodule AppWeb.LayoutView do use AppWeb, :view + use Phoenix.Component # Phoenix LiveDashboard is available only in development by default, # so we instruct Elixir to not warn if the dashboard route is missing. diff --git a/mix.exs b/mix.exs index 9bc53f0..17dca3c 100644 --- a/mix.exs +++ b/mix.exs @@ -79,7 +79,7 @@ defmodule App.MixProject do {:credo, "~> 1.7.0", only: [:dev, :test], runtime: false}, # Ref: github.com/dwyl/learn-tailwind - {:tailwind, "~> 0.1", runtime: Mix.env() == :dev}, + {:tailwind, "~> 0.2.2", runtime: Mix.env() == :dev}, # Elixir GitHub REST API lib: github.com/edgurgel/tentacat {:tentacat, "~> 2.0"}