Enable quokka with :module_directives rule
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
defmodule MusicLibraryWeb.Auth do
|
||||
use Gettext, backend: MusicLibraryWeb.Gettext
|
||||
import Plug.Conn
|
||||
|
||||
import Phoenix.Controller, only: [put_flash: 3, redirect: 2]
|
||||
import Plug.Conn
|
||||
|
||||
def correct_login_password?(password) do
|
||||
Plug.Crypto.secure_compare(login_password(), password)
|
||||
|
||||
@@ -15,9 +15,9 @@ defmodule MusicLibraryWeb.CoreComponents do
|
||||
Icons are provided by [heroicons](https://heroicons.com). See `icon/1` for usage.
|
||||
"""
|
||||
use Phoenix.Component
|
||||
use Gettext, backend: MusicLibraryWeb.Gettext
|
||||
|
||||
alias Phoenix.LiveView.JS
|
||||
use Gettext, backend: MusicLibraryWeb.Gettext
|
||||
|
||||
defdelegate badge(assigns), to: Fluxon.Components.Badge
|
||||
defdelegate button(assigns), to: Fluxon.Components.Button
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
defmodule MusicLibraryWeb.ArtistLive.Show do
|
||||
use MusicLibraryWeb, :live_view
|
||||
|
||||
alias MusicLibrary.Artists.ArtistInfo
|
||||
alias MusicLibrary.{Artists, Records}
|
||||
|
||||
import MusicLibraryWeb.RecordComponents,
|
||||
only: [record_grid: 1, toggle_actions_menu: 1, close_actions_menu: 1, country_label: 1]
|
||||
|
||||
alias MusicLibrary.Artists.ArtistInfo
|
||||
alias MusicLibrary.{Artists, Records}
|
||||
|
||||
attr :country, :map, required: true
|
||||
|
||||
defp country_flag(assigns) do
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
defmodule MusicLibraryWeb.CollectionLive.Index do
|
||||
use MusicLibraryWeb, :live_view
|
||||
|
||||
import MusicLibraryWeb.BarcodeScannerComponent, only: [barcode_icon: 1]
|
||||
import MusicLibraryWeb.PaginationComponent
|
||||
import MusicLibraryWeb.RecordComponents
|
||||
import MusicLibraryWeb.BarcodeScannerComponent, only: [barcode_icon: 1]
|
||||
|
||||
alias MusicLibrary.Collection
|
||||
alias MusicLibrary.Records
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
defmodule MusicLibraryWeb.StatsLive.Index do
|
||||
use MusicLibraryWeb, :live_view
|
||||
|
||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||
import MusicLibraryWeb.ChartComponents
|
||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||
|
||||
alias MusicLibrary.{Collection, Records, ScrobbleActivity, Wishlist}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
defmodule MusicLibraryWeb.WishlistLive.Index do
|
||||
use MusicLibraryWeb, :live_view
|
||||
|
||||
import MusicLibraryWeb.PaginationComponent
|
||||
import MusicLibraryWeb.RecordComponents
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ defmodule MusicLibraryWeb.Router do
|
||||
|
||||
if Application.compile_env(:music_library, :monitoring_routes) do
|
||||
use ErrorTracker.Web, :router
|
||||
|
||||
import Phoenix.LiveDashboard.Router
|
||||
|
||||
scope "/dev" do
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
defmodule MusicLibraryWeb.Telemetry do
|
||||
use Supervisor
|
||||
|
||||
import Telemetry.Metrics
|
||||
|
||||
def start_link(arg) do
|
||||
|
||||
Reference in New Issue
Block a user