Skip to content

Commit c580585

Browse files
committedOct 8, 2024··
Bump mix deps
1 parent 5d977e6 commit c580585

File tree

6 files changed

+22
-23
lines changed

6 files changed

+22
-23
lines changed
 

‎lib/plexus_web.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ defmodule PlexusWeb do
4545
layouts: [html: PlexusWeb.Layouts]
4646

4747
import Plug.Conn
48-
import PlexusWeb.Gettext
48+
use Gettext, backend: PlexusWebApp.Gettext
4949

5050
unquote(verified_routes())
5151
end
@@ -89,11 +89,11 @@ defmodule PlexusWeb do
8989

9090
defp html_helpers do
9191
quote do
92+
use Gettext, backend: PlexusWebApp.Gettext
9293
# HTML escaping functionality
9394
import Phoenix.HTML
9495
# Core UI components and translation
9596
import PlexusWeb.CoreComponents
96-
import PlexusWeb.Gettext
9797

9898
# Shortcut for generating JS commands
9999
alias Phoenix.LiveView.JS

‎lib/plexus_web/components/core_components.ex

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ defmodule PlexusWeb.CoreComponents do
1515
Icons are provided by [heroicons](https://heroicons.com). See `icon/1` for usage.
1616
"""
1717
use Phoenix.Component
18-
19-
import PlexusWeb.Gettext
18+
use Gettext, backend: PlexusWeb.Gettext
2019

2120
alias Phoenix.LiveView.JS
2221
alias Plexus.Schemas.Score

‎lib/plexus_web/controllers/api/v1/rating_controller.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ defmodule PlexusWeb.API.V1.RatingController do
9393

9494
defp rating_type_enum do
9595
values = Ecto.Enum.values(Plexus.Schemas.Rating, :rating_type)
96-
{:parameterized, Ecto.Enum, Ecto.Enum.init(values: values)}
96+
{:parameterized, {Ecto.Enum, Ecto.Enum.init(values: values)}}
9797
end
9898

9999
defp build_opts(params) do

‎lib/plexus_web/gettext.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ defmodule PlexusWeb.Gettext do
2020
2121
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
2222
"""
23-
use Gettext, otp_app: :plexus
23+
use Gettext.Backend, otp_app: :plexus
2424
end

‎mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ defmodule Plexus.MixProject do
5454
{:bandit, ">= 0.6.9"},
5555
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
5656
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
57-
{:scrivener_ecto, "~> 2.0"},
57+
{:scrivener_ecto, "~> 3.0"},
5858
{:nimble_totp, "~> 1.0"},
5959
{:plug_cowboy, "~> 2.6"},
6060
{:swoosh, "~> 1.3"},

0 commit comments

Comments
 (0)
Please sign in to comment.