fix tests
This commit is contained in:
@ -5,7 +5,7 @@ defmodule LokalWeb.Component.Topbar do
|
||||
"""
|
||||
|
||||
use LokalWeb, :component
|
||||
alias LokalWeb.{PageLive}
|
||||
alias LokalWeb.PageLive
|
||||
|
||||
def topbar(assigns) do
|
||||
assigns =
|
||||
|
@ -1,4 +1,8 @@
|
||||
defmodule LokalWeb.UserAuth do
|
||||
@moduledoc """
|
||||
Module for any user authentication functions
|
||||
"""
|
||||
|
||||
import Plug.Conn
|
||||
import Phoenix.Controller
|
||||
|
||||
|
@ -1,7 +1,11 @@
|
||||
defmodule LokalWeb.LiveHelpers do
|
||||
@moduledoc """
|
||||
Contains resuable methods for all liveviews
|
||||
"""
|
||||
|
||||
import Phoenix.LiveView.Helpers
|
||||
import Phoenix.LiveView, only: [assign_new: 3]
|
||||
alias Lokal.{Accounts}
|
||||
alias Lokal.Accounts
|
||||
|
||||
@doc """
|
||||
Renders a component inside the `LokalWeb.ModalComponent` component.
|
||||
|
@ -1,4 +1,8 @@
|
||||
defmodule LokalWeb.ModalComponent do
|
||||
@moduledoc """
|
||||
Component that provides a floating modal
|
||||
"""
|
||||
|
||||
use LokalWeb, :live_component
|
||||
|
||||
@impl true
|
||||
|
@ -1,4 +1,8 @@
|
||||
defmodule LokalWeb.PageLive do
|
||||
@moduledoc """
|
||||
Liveview for the main home page
|
||||
"""
|
||||
|
||||
use LokalWeb, :live_view
|
||||
|
||||
@impl true
|
||||
|
@ -1,4 +1,8 @@
|
||||
defmodule LokalWeb.Telemetry do
|
||||
@moduledoc """
|
||||
Telemetry genserver
|
||||
"""
|
||||
|
||||
use Supervisor
|
||||
import Telemetry.Metrics
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
defmodule LokalWeb.LayoutView do
|
||||
use LokalWeb, :view
|
||||
alias LokalWeb.{PageLive}
|
||||
alias LokalWeb.PageLive
|
||||
|
||||
# Phoenix LiveDashboard is available only in development by default,
|
||||
# so we instruct Elixir to not warn if the dashboard route is missing.
|
||||
|
Reference in New Issue
Block a user