Skip to content

Commit

Permalink
Bump mix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkonidas committed Oct 8, 2024
1 parent 5d977e6 commit c580585
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 23 deletions.
4 changes: 2 additions & 2 deletions lib/plexus_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule PlexusWeb do
layouts: [html: PlexusWeb.Layouts]

import Plug.Conn
import PlexusWeb.Gettext
use Gettext, backend: PlexusWebApp.Gettext

unquote(verified_routes())
end
Expand Down Expand Up @@ -89,11 +89,11 @@ defmodule PlexusWeb do

defp html_helpers do
quote do
use Gettext, backend: PlexusWebApp.Gettext
# HTML escaping functionality
import Phoenix.HTML
# Core UI components and translation
import PlexusWeb.CoreComponents
import PlexusWeb.Gettext

# Shortcut for generating JS commands
alias Phoenix.LiveView.JS
Expand Down
3 changes: 1 addition & 2 deletions lib/plexus_web/components/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ defmodule PlexusWeb.CoreComponents do
Icons are provided by [heroicons](https://heroicons.com). See `icon/1` for usage.
"""
use Phoenix.Component

import PlexusWeb.Gettext
use Gettext, backend: PlexusWeb.Gettext

alias Phoenix.LiveView.JS
alias Plexus.Schemas.Score
Expand Down
2 changes: 1 addition & 1 deletion lib/plexus_web/controllers/api/v1/rating_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ defmodule PlexusWeb.API.V1.RatingController do

defp rating_type_enum do
values = Ecto.Enum.values(Plexus.Schemas.Rating, :rating_type)
{:parameterized, Ecto.Enum, Ecto.Enum.init(values: values)}
{:parameterized, {Ecto.Enum, Ecto.Enum.init(values: values)}}
end

defp build_opts(params) do
Expand Down
2 changes: 1 addition & 1 deletion lib/plexus_web/gettext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ defmodule PlexusWeb.Gettext do
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
"""
use Gettext, otp_app: :plexus
use Gettext.Backend, otp_app: :plexus
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule Plexus.MixProject do
{:bandit, ">= 0.6.9"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:scrivener_ecto, "~> 2.0"},
{:scrivener_ecto, "~> 3.0"},
{:nimble_totp, "~> 1.0"},
{:plug_cowboy, "~> 2.6"},
{:swoosh, "~> 1.3"},
Expand Down
Loading

0 comments on commit c580585

Please sign in to comment.