mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-08-23 14:26:48 +00:00
Fixing build warning
This commit is contained in:
@@ -22,9 +22,7 @@ defmodule WandererApp.Map.Operations.Connections do
|
||||
|
||||
# System class constants
|
||||
@c1_system_class 1
|
||||
@c4_system_class 4
|
||||
@c13_system_class 13
|
||||
@ns_system_class 9
|
||||
|
||||
@doc """
|
||||
Creates a connection between two systems, applying special rules for C1, C13, and C4 wormholes.
|
||||
|
||||
@@ -213,7 +213,7 @@ defmodule WandererApp.Map.Server.ConnectionsImpl do
|
||||
solar_system_target_id
|
||||
)
|
||||
|> case do
|
||||
{:ok, %{id: connection_id} = connection} ->
|
||||
{:ok, %{id: connection_id}} ->
|
||||
connection_mark_eol_time = get_connection_mark_eol_time(map_id, connection_id, nil)
|
||||
locked_info = get_connection_locked_info(map_id, connection_id)
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ defmodule WandererAppWeb do
|
||||
|
||||
import Phoenix.LiveView.Controller
|
||||
import Plug.Conn
|
||||
import WandererAppWeb.Gettext
|
||||
use Gettext, backend: WandererAppWeb.Gettext
|
||||
|
||||
unquote(verified_routes())
|
||||
end
|
||||
@@ -102,7 +102,7 @@ defmodule WandererAppWeb do
|
||||
import Phoenix.HTML
|
||||
# Core UI components and translation
|
||||
import WandererAppWeb.CoreComponents
|
||||
import WandererAppWeb.Gettext
|
||||
use Gettext, backend: WandererAppWeb.Gettext
|
||||
import WandererAppWeb.Helpers.CSP
|
||||
|
||||
# Shortcut for generating JS commands
|
||||
|
||||
@@ -17,7 +17,7 @@ defmodule WandererAppWeb.CoreComponents do
|
||||
use Phoenix.Component
|
||||
|
||||
alias Phoenix.LiveView.JS
|
||||
import WandererAppWeb.Gettext
|
||||
use Gettext, backend: WandererAppWeb.Gettext
|
||||
|
||||
@image_base_url "https://images.evetech.net"
|
||||
|
||||
|
||||
@@ -154,10 +154,10 @@ defmodule WandererAppWeb.MapAuditAPIController do
|
||||
|
||||
result
|
||||
|> Map.put(:character, WandererAppWeb.MapEventHandler.map_ui_character_stat(character))
|
||||
|> Map.put(:event_name, WandererAppWeb.UserActivityItem.get_event_name(event_type))
|
||||
|> Map.put(:event_name, UserActivityItem.get_event_name(event_type))
|
||||
|> Map.put(
|
||||
:event_data,
|
||||
WandererAppWeb.UserActivityItem.get_event_data(
|
||||
UserActivityItem.get_event_data(
|
||||
event_type,
|
||||
Jason.decode!(event_data) |> Map.drop(["character_id"])
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ defmodule WandererAppWeb.Gettext do
|
||||
By using [Gettext](https://hexdocs.pm/gettext),
|
||||
your module gains a set of macros for translations, for example:
|
||||
|
||||
import WandererAppWeb.Gettext
|
||||
use Gettext, backend: WandererAppWeb.Gettext
|
||||
|
||||
# Simple translation
|
||||
gettext("Here is the string to translate")
|
||||
@@ -20,5 +20,5 @@ defmodule WandererAppWeb.Gettext do
|
||||
|
||||
See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
|
||||
"""
|
||||
use Gettext, otp_app: :wanderer_app
|
||||
use Gettext.Backend, otp_app: :wanderer_app
|
||||
end
|
||||
|
||||
@@ -242,8 +242,8 @@ defmodule WandererAppWeb.MapPingsEventHandler do
|
||||
# Catch-all for cancel_ping to debug why it doesn't match
|
||||
def handle_ui_event(
|
||||
"cancel_ping",
|
||||
event,
|
||||
%{assigns: assigns} = socket
|
||||
_event,
|
||||
socket
|
||||
) do
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user