feat: Upgrade web development framework to Phoenix 1.7 (#3615)

* Upgrade to phoenix 1.7.0
The minimal changes necessary to compile the application

* Import Phoenix.Component instead of LiveView

* Fix compilation warnings

* mix format

* Update tests to trim newline characters

* mix gettext.extract --merge

* style: correct linting

* rebuild gettext

* fix: correct spacing before unit for energy added

* fix: use unicode character for whitespace

* fix: spacing with witespace

* fix: use numeric value for charge_energy_added in charging test

* fix: avoid warning about unsued function, which is actually used in plug

* fix: use whitespace in test before charge_energy_added

---------

Co-authored-by: JakobLichterfeld <jakob-lichterfeld@gmx.de>
This commit is contained in:
marvelm
2024-02-07 19:23:53 +01:00
committed by GitHub
co-authored by JakobLichterfeld
parent acbeb5e9d6
commit da819054f6
39 changed files with 3321 additions and 2677 deletions
+3 -2
View File
@@ -49,11 +49,12 @@ defmodule TeslaMate.MixProject do
{:jason, "~> 1.0"},
{:mock, "~> 0.3", only: :test},
{:nimble_csv, "~> 1.1"},
{:phoenix, "~> 1.6.0"},
{:phoenix, "~> 1.7.0"},
{:phoenix_view, "~> 2.0"},
{:phoenix_ecto, "~> 4.0"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.17.0"},
{:phoenix_live_view, "~> 0.18.18"},
{:phoenix_pubsub, "~> 2.0"},
{:plug_cowboy, "~> 2.0"},
{:postgrex, ">= 0.0.0"},