From 1703661af7c411aea481421dab8ee9b6e8a130a6 Mon Sep 17 00:00:00 2001 From: shibao Date: Fri, 18 Nov 2022 22:30:33 -0500 Subject: [PATCH] alias endpoint --- lib/memex_web.ex | 2 ++ lib/memex_web/components/invite_card.ex | 1 - lib/memex_web/components/notes_table_component.ex | 1 - lib/memex_web/components/topbar.ex | 2 +- lib/memex_web/controllers/user_registration_controller.ex | 2 +- lib/memex_web/live/invite_live/index.ex | 2 +- lib/memex_web/views/email_view.ex | 2 +- lib/memex_web/views/error_view.ex | 2 +- lib/memex_web/views/layout_view.ex | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/memex_web.ex b/lib/memex_web.ex index bb8ed1d..8c93c39 100644 --- a/lib/memex_web.ex +++ b/lib/memex_web.ex @@ -23,6 +23,7 @@ defmodule MemexWeb do import Plug.Conn import MemexWeb.Gettext + alias MemexWeb.Endpoint alias MemexWeb.Router.Helpers, as: Routes end end @@ -98,6 +99,7 @@ defmodule MemexWeb do import Phoenix.View import MemexWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers} + alias MemexWeb.Endpoint alias MemexWeb.Router.Helpers, as: Routes end end diff --git a/lib/memex_web/components/invite_card.ex b/lib/memex_web/components/invite_card.ex index 2ff2e3e..4e21987 100644 --- a/lib/memex_web/components/invite_card.ex +++ b/lib/memex_web/components/invite_card.ex @@ -4,7 +4,6 @@ defmodule MemexWeb.Components.InviteCard do """ use MemexWeb, :component - alias MemexWeb.Endpoint def invite_card(assigns) do ~H""" diff --git a/lib/memex_web/components/notes_table_component.ex b/lib/memex_web/components/notes_table_component.ex index 731f588..21a595d 100644 --- a/lib/memex_web/components/notes_table_component.ex +++ b/lib/memex_web/components/notes_table_component.ex @@ -5,7 +5,6 @@ defmodule MemexWeb.Components.NotesTableComponent do use MemexWeb, :live_component alias Ecto.UUID alias Memex.{Accounts.User, Notes, Notes.Note} - alias MemexWeb.Endpoint alias Phoenix.LiveView.{Rendered, Socket} @impl true diff --git a/lib/memex_web/components/topbar.ex b/lib/memex_web/components/topbar.ex index 5506e00..48e24dc 100644 --- a/lib/memex_web/components/topbar.ex +++ b/lib/memex_web/components/topbar.ex @@ -6,7 +6,7 @@ defmodule MemexWeb.Components.Topbar do use MemexWeb, :component alias Memex.Accounts - alias MemexWeb.{Endpoint, HomeLive} + alias MemexWeb.HomeLive def topbar(assigns) do assigns = diff --git a/lib/memex_web/controllers/user_registration_controller.ex b/lib/memex_web/controllers/user_registration_controller.ex index 7f6a379..0b59d89 100644 --- a/lib/memex_web/controllers/user_registration_controller.ex +++ b/lib/memex_web/controllers/user_registration_controller.ex @@ -3,7 +3,7 @@ defmodule MemexWeb.UserRegistrationController do import MemexWeb.Gettext alias Memex.{Accounts, Invites} alias Memex.Accounts.User - alias MemexWeb.{Endpoint, HomeLive} + alias MemexWeb.HomeLive def new(conn, %{"invite" => invite_token}) do invite = Invites.get_invite_by_token(invite_token) diff --git a/lib/memex_web/live/invite_live/index.ex b/lib/memex_web/live/invite_live/index.ex index 95603bb..2e80d92 100644 --- a/lib/memex_web/live/invite_live/index.ex +++ b/lib/memex_web/live/invite_live/index.ex @@ -6,7 +6,7 @@ defmodule MemexWeb.InviteLive.Index do use MemexWeb, :live_view import MemexWeb.Components.{InviteCard, UserCard} alias Memex.{Accounts, Invites, Invites.Invite} - alias MemexWeb.{Endpoint, HomeLive} + alias MemexWeb.HomeLive alias Phoenix.LiveView.JS @impl true diff --git a/lib/memex_web/views/email_view.ex b/lib/memex_web/views/email_view.ex index 3db78e8..5937dc4 100644 --- a/lib/memex_web/views/email_view.ex +++ b/lib/memex_web/views/email_view.ex @@ -2,7 +2,7 @@ defmodule MemexWeb.EmailView do @moduledoc """ A view for email-related helper functions """ - alias MemexWeb.{Endpoint, HomeLive} + alias MemexWeb.HomeLive use MemexWeb, :view end diff --git a/lib/memex_web/views/error_view.ex b/lib/memex_web/views/error_view.ex index 216e156..677eccd 100644 --- a/lib/memex_web/views/error_view.ex +++ b/lib/memex_web/views/error_view.ex @@ -1,7 +1,7 @@ defmodule MemexWeb.ErrorView do use MemexWeb, :view import MemexWeb.Components.Topbar - alias MemexWeb.{Endpoint, HomeLive} + alias MemexWeb.HomeLive def template_not_found(error_path, _assigns) do error_string = diff --git a/lib/memex_web/views/layout_view.ex b/lib/memex_web/views/layout_view.ex index 97efe46..3bbb4b9 100644 --- a/lib/memex_web/views/layout_view.ex +++ b/lib/memex_web/views/layout_view.ex @@ -1,7 +1,7 @@ defmodule MemexWeb.LayoutView do use MemexWeb, :view import MemexWeb.Components.Topbar - alias MemexWeb.{Endpoint, HomeLive} + alias MemexWeb.HomeLive # Phoenix LiveDashboard is available only in development by default, # so we instruct Elixir to not warn if the dashboard route is missing.