feat: migration to phoenix 1.8 - merge changed files

This commit is contained in:
Moritz 2025-07-09 20:04:26 +02:00
parent 50832da885
commit 0334260de5
Signed by: moritz
GPG key ID: 1020A035E5DD0824
13 changed files with 233 additions and 453 deletions

View file

@ -38,9 +38,7 @@ defmodule MvWeb do
def controller do
quote do
use Phoenix.Controller,
formats: [:html, :json],
layouts: [html: MvWeb.Layouts]
use Phoenix.Controller, formats: [:html, :json]
use Gettext, backend: MvWeb.Gettext
@ -52,10 +50,10 @@ defmodule MvWeb do
def live_view do
quote do
use Phoenix.LiveView,
layout: {MvWeb.Layouts, :app}
use Phoenix.LiveView
on_mount MvWeb.LiveHelpers
unquote(html_helpers())
end
end
@ -91,8 +89,9 @@ defmodule MvWeb do
# Core UI components
import MvWeb.CoreComponents
# Shortcut for generating JS commands
# Common modules used in templates
alias Phoenix.LiveView.JS
alias MvWeb.Layouts
# Routes generation with the ~p sigil
unquote(verified_routes())