alias endpoint

This commit is contained in:
shibao 2022-11-18 22:30:33 -05:00
parent b641e96601
commit 3dbbb7e21c
9 changed files with 8 additions and 8 deletions

View File

@ -23,6 +23,7 @@ defmodule MemexWeb do
import Plug.Conn import Plug.Conn
import MemexWeb.Gettext import MemexWeb.Gettext
alias MemexWeb.Endpoint
alias MemexWeb.Router.Helpers, as: Routes alias MemexWeb.Router.Helpers, as: Routes
end end
end end
@ -98,6 +99,7 @@ defmodule MemexWeb do
import Phoenix.View import Phoenix.View
import MemexWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers} import MemexWeb.{ErrorHelpers, Gettext, LiveHelpers, ViewHelpers}
alias MemexWeb.Endpoint
alias MemexWeb.Router.Helpers, as: Routes alias MemexWeb.Router.Helpers, as: Routes
end end
end end

View File

@ -4,7 +4,6 @@ defmodule MemexWeb.Components.InviteCard do
""" """
use MemexWeb, :component use MemexWeb, :component
alias MemexWeb.Endpoint
def invite_card(assigns) do def invite_card(assigns) do
~H""" ~H"""

View File

@ -5,7 +5,6 @@ defmodule MemexWeb.Components.NotesTableComponent do
use MemexWeb, :live_component use MemexWeb, :live_component
alias Ecto.UUID alias Ecto.UUID
alias Memex.{Accounts.User, Notes, Notes.Note} alias Memex.{Accounts.User, Notes, Notes.Note}
alias MemexWeb.Endpoint
alias Phoenix.LiveView.{Rendered, Socket} alias Phoenix.LiveView.{Rendered, Socket}
@impl true @impl true

View File

@ -6,7 +6,7 @@ defmodule MemexWeb.Components.Topbar do
use MemexWeb, :component use MemexWeb, :component
alias Memex.Accounts alias Memex.Accounts
alias MemexWeb.{Endpoint, HomeLive} alias MemexWeb.HomeLive
def topbar(assigns) do def topbar(assigns) do
assigns = assigns =

View File

@ -3,7 +3,7 @@ defmodule MemexWeb.UserRegistrationController do
import MemexWeb.Gettext import MemexWeb.Gettext
alias Memex.{Accounts, Invites} alias Memex.{Accounts, Invites}
alias Memex.Accounts.User alias Memex.Accounts.User
alias MemexWeb.{Endpoint, HomeLive} alias MemexWeb.HomeLive
def new(conn, %{"invite" => invite_token}) do def new(conn, %{"invite" => invite_token}) do
invite = Invites.get_invite_by_token(invite_token) invite = Invites.get_invite_by_token(invite_token)

View File

@ -6,7 +6,7 @@ defmodule MemexWeb.InviteLive.Index do
use MemexWeb, :live_view use MemexWeb, :live_view
import MemexWeb.Components.{InviteCard, UserCard} import MemexWeb.Components.{InviteCard, UserCard}
alias Memex.{Accounts, Invites, Invites.Invite} alias Memex.{Accounts, Invites, Invites.Invite}
alias MemexWeb.{Endpoint, HomeLive} alias MemexWeb.HomeLive
alias Phoenix.LiveView.JS alias Phoenix.LiveView.JS
@impl true @impl true

View File

@ -2,7 +2,7 @@ defmodule MemexWeb.EmailView do
@moduledoc """ @moduledoc """
A view for email-related helper functions A view for email-related helper functions
""" """
alias MemexWeb.{Endpoint, HomeLive} alias MemexWeb.HomeLive
use MemexWeb, :view use MemexWeb, :view
end end

View File

@ -1,7 +1,7 @@
defmodule MemexWeb.ErrorView do defmodule MemexWeb.ErrorView do
use MemexWeb, :view use MemexWeb, :view
import MemexWeb.Components.Topbar import MemexWeb.Components.Topbar
alias MemexWeb.{Endpoint, HomeLive} alias MemexWeb.HomeLive
def template_not_found(error_path, _assigns) do def template_not_found(error_path, _assigns) do
error_string = error_string =

View File

@ -1,7 +1,7 @@
defmodule MemexWeb.LayoutView do defmodule MemexWeb.LayoutView do
use MemexWeb, :view use MemexWeb, :view
import MemexWeb.Components.Topbar import MemexWeb.Components.Topbar
alias MemexWeb.{Endpoint, HomeLive} alias MemexWeb.HomeLive
# Phoenix LiveDashboard is available only in development by default, # Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing. # so we instruct Elixir to not warn if the dashboard route is missing.