Move /dev/maintenance to /maintenance
This commit is contained in:
@@ -255,7 +255,7 @@ All authenticated routes live inside a single `live_session` with three `on_moun
|
|||||||
| `ScrobbledTracksLive.Index` | `/scrobbled-tracks` | Browse/search Last.fm history |
|
| `ScrobbledTracksLive.Index` | `/scrobbled-tracks` | Browse/search Last.fm history |
|
||||||
| `ScrobbleRulesLive.Index` | `/scrobble-rules` | Browse/search/sort scrobble remapping rules (paginated, 50 per page) |
|
| `ScrobbleRulesLive.Index` | `/scrobble-rules` | Browse/search/sort scrobble remapping rules (paginated, 50 per page) |
|
||||||
| `OnlineStoreTemplateLive.Index` | `/online-store-templates` | Manage store URL templates |
|
| `OnlineStoreTemplateLive.Index` | `/online-store-templates` | Manage store URL templates |
|
||||||
| `MaintenanceLive.Index` | `/dev/maintenance` | Admin: batch jobs, DB maintenance (conditional on `:monitoring_routes` config, outside main `live_session`) |
|
| `MaintenanceLive.Index` | `/maintenance` | Admin: batch jobs, DB maintenance |
|
||||||
|
|
||||||
### LiveComponents
|
### LiveComponents
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
<.dropdown_nav
|
<.dropdown_nav
|
||||||
current_section={@current_section}
|
current_section={@current_section}
|
||||||
section={:maintenance}
|
section={:maintenance}
|
||||||
route={~p"/dev/maintenance"}
|
route={~p"/maintenance"}
|
||||||
icon="hero-wrench-screwdriver"
|
icon="hero-wrench-screwdriver"
|
||||||
>
|
>
|
||||||
{gettext("Maintenance")}
|
{gettext("Maintenance")}
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ defmodule MusicLibraryWeb.UniversalSearchLive.Index do
|
|||||||
},
|
},
|
||||||
%{
|
%{
|
||||||
label: "Maintenance",
|
label: "Maintenance",
|
||||||
path: ~p"/dev/maintenance",
|
path: ~p"/maintenance",
|
||||||
icon: "hero-wrench-screwdriver",
|
icon: "hero-wrench-screwdriver",
|
||||||
keywords: ["maintenance", "admin", "vacuum"]
|
keywords: ["maintenance", "admin", "vacuum"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,8 @@ defmodule MusicLibraryWeb.Router do
|
|||||||
|
|
||||||
live "/scrobble", ScrobbleLive.Index, :index
|
live "/scrobble", ScrobbleLive.Index, :index
|
||||||
live "/scrobble/:release_id", ScrobbleLive.Show, :show
|
live "/scrobble/:release_id", ScrobbleLive.Show, :show
|
||||||
|
|
||||||
|
live "/maintenance", MaintenanceLive.Index, :index
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -156,8 +158,6 @@ defmodule MusicLibraryWeb.Router do
|
|||||||
script: :script_nonce
|
script: :script_nonce
|
||||||
}
|
}
|
||||||
|
|
||||||
live "/maintenance", MusicLibraryWeb.MaintenanceLive.Index, :index
|
|
||||||
|
|
||||||
error_tracker_dashboard "/errors",
|
error_tracker_dashboard "/errors",
|
||||||
csp_nonce_assign_key: %{
|
csp_nonce_assign_key: %{
|
||||||
img: :img_nonce,
|
img: :img_nonce,
|
||||||
|
|||||||
Reference in New Issue
Block a user