feat: migration to phoenix 1.8 - merge changed files
This commit is contained in:
parent
50832da885
commit
0334260de5
13 changed files with 233 additions and 453 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue