alias endpoint
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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"""
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 =
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 =
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -90,7 +90,7 @@ msgstr ""
 | 
				
			|||||||
msgid "User registered on"
 | 
					msgid "User registered on"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/components/invite_card.ex:20
 | 
					#: lib/memex_web/components/invite_card.ex:19
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "Uses Left:"
 | 
					msgid "Uses Left:"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
@@ -125,7 +125,7 @@ msgstr ""
 | 
				
			|||||||
msgid "confirm new password"
 | 
					msgid "confirm new password"
 | 
				
			||||||
msgstr ""
 | 
					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
 | 
					#: lib/memex_web/live/note_live/form_component.html.heex:23
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "content"
 | 
					msgid "content"
 | 
				
			||||||
@@ -217,7 +217,7 @@ msgstr ""
 | 
				
			|||||||
msgid "instance information"
 | 
					msgid "instance information"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/components/invite_card.ex:25
 | 
					#: lib/memex_web/components/invite_card.ex:24
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "invite disabled"
 | 
					msgid "invite disabled"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
@@ -353,18 +353,18 @@ msgstr ""
 | 
				
			|||||||
msgid "tag1,tag2"
 | 
					msgid "tag1,tag2"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/components/notes_table_component.ex:50
 | 
					#: lib/memex_web/components/notes_table_component.ex:49
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "tags"
 | 
					msgid "tags"
 | 
				
			||||||
msgstr ""
 | 
					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
 | 
					#: lib/memex_web/live/note_live/form_component.html.heex:14
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "title"
 | 
					msgid "title"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/components/invite_card.ex:21
 | 
					#: lib/memex_web/components/invite_card.ex:20
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "unlimited"
 | 
					msgid "unlimited"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
@@ -389,7 +389,7 @@ msgstr ""
 | 
				
			|||||||
msgid "view the source code"
 | 
					msgid "view the source code"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/components/notes_table_component.ex:51
 | 
					#: lib/memex_web/components/notes_table_component.ex:50
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "visibility"
 | 
					msgid "visibility"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user