alias endpoint

This commit is contained in:
shibao 2022-11-18 22:30:33 -05:00
parent 6f80ef35a1
commit 3c250e9064
10 changed files with 15 additions and 15 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.

View File

@ -90,7 +90,7 @@ msgstr ""
msgid "User registered on"
msgstr ""
#: lib/memex_web/components/invite_card.ex:20
#: lib/memex_web/components/invite_card.ex:19
#, elixir-autogen, elixir-format
msgid "Uses Left:"
msgstr ""
@ -125,7 +125,7 @@ msgstr ""
msgid "confirm new password"
msgstr ""
#: lib/memex_web/components/notes_table_component.ex:49
#: lib/memex_web/components/notes_table_component.ex:48
#: lib/memex_web/live/note_live/form_component.html.heex:23
#, elixir-autogen, elixir-format
msgid "content"
@ -217,7 +217,7 @@ msgstr ""
msgid "instance information"
msgstr ""
#: lib/memex_web/components/invite_card.ex:25
#: lib/memex_web/components/invite_card.ex:24
#, elixir-autogen, elixir-format
msgid "invite disabled"
msgstr ""
@ -353,18 +353,18 @@ msgstr ""
msgid "tag1,tag2"
msgstr ""
#: lib/memex_web/components/notes_table_component.ex:50
#: lib/memex_web/components/notes_table_component.ex:49
#, elixir-autogen, elixir-format
msgid "tags"
msgstr ""
#: lib/memex_web/components/notes_table_component.ex:48
#: lib/memex_web/components/notes_table_component.ex:47
#: lib/memex_web/live/note_live/form_component.html.heex:14
#, elixir-autogen, elixir-format
msgid "title"
msgstr ""
#: lib/memex_web/components/invite_card.ex:21
#: lib/memex_web/components/invite_card.ex:20
#, elixir-autogen, elixir-format
msgid "unlimited"
msgstr ""
@ -389,7 +389,7 @@ msgstr ""
msgid "view the source code"
msgstr ""
#: lib/memex_web/components/notes_table_component.ex:51
#: lib/memex_web/components/notes_table_component.ex:50
#, elixir-autogen, elixir-format
msgid "visibility"
msgstr ""