alias endpoint

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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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 =

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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 =

View File

@ -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.