Promote Collection to proper namespace

This commit is contained in:
Claudio Ortolina
2024-11-20 15:26:31 +00:00
parent c465db4981
commit b8f3bb9b2c
9 changed files with 50 additions and 50 deletions
@@ -1,4 +1,4 @@
defmodule MusicLibraryWeb.RecordLive.Index do defmodule MusicLibraryWeb.CollectionLive.Index do
use MusicLibraryWeb, :live_view use MusicLibraryWeb, :live_view
import MusicLibraryWeb.Pagination import MusicLibraryWeb.Pagination
@@ -1,4 +1,4 @@
defmodule MusicLibraryWeb.RecordLive.Show do defmodule MusicLibraryWeb.CollectionLive.Show do
use MusicLibraryWeb, :live_view use MusicLibraryWeb, :live_view
alias MusicLibrary.Records alias MusicLibrary.Records
+5 -5
View File
@@ -32,12 +32,12 @@ defmodule MusicLibraryWeb.Router do
live "/", StatsLive.Index, :index live "/", StatsLive.Index, :index
live "/records", RecordLive.Index, :index live "/records", CollectionLive.Index, :index
live "/records/import", RecordLive.Index, :import live "/records/import", CollectionLive.Index, :import
live "/records/:id/edit", RecordLive.Index, :edit live "/records/:id/edit", CollectionLive.Index, :edit
live "/records/:id", RecordLive.Show, :show live "/records/:id", CollectionLive.Show, :show
live "/records/:id/show/edit", RecordLive.Show, :edit live "/records/:id/show/edit", CollectionLive.Show, :edit
live "/wishlist", WishlistLive.Index, :index live "/wishlist", WishlistLive.Index, :index
live "/wishlist/import", WishlistLive.Index, :import live "/wishlist/import", WishlistLive.Index, :import
+40 -40
View File
@@ -16,8 +16,8 @@ msgstr ""
msgid "Actions" msgid "Actions"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:185 #: lib/music_library_web/live/collection_live/index.html.heex:185
#: lib/music_library_web/live/record_live/show.html.heex:61 #: lib/music_library_web/live/collection_live/show.html.heex:61
#: lib/music_library_web/live/wishlist_live/index.html.heex:195 #: lib/music_library_web/live/wishlist_live/index.html.heex:195
#: lib/music_library_web/live/wishlist_live/show.html.heex:61 #: lib/music_library_web/live/wishlist_live/show.html.heex:61
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -29,7 +29,7 @@ msgstr ""
msgid "Attempting to reconnect" msgid "Attempting to reconnect"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:154 #: lib/music_library_web/live/collection_live/show.html.heex:154
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Back to records" msgid "Back to records"
msgstr "" msgstr ""
@@ -51,7 +51,7 @@ msgid "Choose a value"
msgstr "" msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:13 #: lib/music_library_web/components/layouts/app.html.heex:13
#: lib/music_library_web/live/record_live/index.ex:74 #: lib/music_library_web/live/collection_live/index.ex:74
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Collection" msgid "Collection"
msgstr "" msgstr ""
@@ -61,18 +61,18 @@ msgstr ""
msgid "Cover art" msgid "Cover art"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:187 #: lib/music_library_web/live/collection_live/index.html.heex:187
#: lib/music_library_web/live/record_live/show.html.heex:67 #: lib/music_library_web/live/collection_live/show.html.heex:67
#: lib/music_library_web/live/wishlist_live/index.html.heex:197 #: lib/music_library_web/live/wishlist_live/index.html.heex:197
#: lib/music_library_web/live/wishlist_live/show.html.heex:67 #: lib/music_library_web/live/wishlist_live/show.html.heex:67
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.ex:55 #: lib/music_library_web/live/collection_live/index.ex:55
#: lib/music_library_web/live/record_live/index.html.heex:176 #: lib/music_library_web/live/collection_live/index.html.heex:176
#: lib/music_library_web/live/record_live/show.ex:92 #: lib/music_library_web/live/collection_live/show.ex:92
#: lib/music_library_web/live/record_live/show.html.heex:32 #: lib/music_library_web/live/collection_live/show.html.heex:32
#: lib/music_library_web/live/wishlist_live/index.ex:55 #: lib/music_library_web/live/wishlist_live/index.ex:55
#: lib/music_library_web/live/wishlist_live/index.html.heex:176 #: lib/music_library_web/live/wishlist_live/index.html.heex:176
#: lib/music_library_web/live/wishlist_live/show.ex:90 #: lib/music_library_web/live/wishlist_live/show.ex:90
@@ -81,7 +81,7 @@ msgstr ""
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.ex:121 #: lib/music_library_web/live/collection_live/index.ex:121
#: lib/music_library_web/live/stats_live/index.ex:70 #: lib/music_library_web/live/stats_live/index.ex:70
#: lib/music_library_web/live/stats_live/index.ex:76 #: lib/music_library_web/live/stats_live/index.ex:76
#: lib/music_library_web/live/wishlist_live/index.ex:117 #: lib/music_library_web/live/wishlist_live/index.ex:117
@@ -105,7 +105,7 @@ msgstr ""
msgid "Formats" msgid "Formats"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:76 #: lib/music_library_web/live/collection_live/show.html.heex:76
#: lib/music_library_web/live/wishlist_live/show.html.heex:77 #: lib/music_library_web/live/wishlist_live/show.html.heex:77
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Genres" msgid "Genres"
@@ -116,19 +116,19 @@ msgstr ""
msgid "Hang in there while we get back on track" msgid "Hang in there while we get back on track"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:17 #: lib/music_library_web/live/collection_live/index.html.heex:17
#: lib/music_library_web/live/wishlist_live/index.html.heex:17 #: lib/music_library_web/live/wishlist_live/index.html.heex:17
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Import" msgid "Import"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.ex:41 #: lib/music_library_web/live/collection_live/index.ex:41
#: lib/music_library_web/live/wishlist_live/index.ex:41 #: lib/music_library_web/live/wishlist_live/index.ex:41
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Import from MusicBrainz" msgid "Import from MusicBrainz"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:129 #: lib/music_library_web/live/collection_live/show.html.heex:129
#: lib/music_library_web/live/wishlist_live/show.html.heex:122 #: lib/music_library_web/live/wishlist_live/show.html.heex:122
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Inserted at" msgid "Inserted at"
@@ -154,8 +154,8 @@ msgstr ""
msgid "Logout" msgid "Logout"
msgstr "" msgstr ""
#: lib/music_library_web/live/collection_live/show.html.heex:84
#: lib/music_library_web/live/record_live/form_component.ex:46 #: lib/music_library_web/live/record_live/form_component.ex:46
#: lib/music_library_web/live/record_live/show.html.heex:84
#: lib/music_library_web/live/wishlist_live/show.html.heex:85 #: lib/music_library_web/live/wishlist_live/show.html.heex:85
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MusicBrainz ID" msgid "MusicBrainz ID"
@@ -177,7 +177,7 @@ msgstr ""
msgid "No results" msgid "No results"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:121 #: lib/music_library_web/live/collection_live/index.html.heex:121
#: lib/music_library_web/live/stats_live/index.html.heex:155 #: lib/music_library_web/live/stats_live/index.html.heex:155
#: lib/music_library_web/live/wishlist_live/index.html.heex:121 #: lib/music_library_web/live/wishlist_live/index.html.heex:121
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -205,12 +205,12 @@ msgstr ""
msgid "Purchased at" msgid "Purchased at"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:106 #: lib/music_library_web/live/collection_live/show.html.heex:106
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Purchased on" msgid "Purchased on"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.ex:112 #: lib/music_library_web/live/collection_live/index.ex:112
#: lib/music_library_web/live/stats_live/index.ex:62 #: lib/music_library_web/live/stats_live/index.ex:62
#: lib/music_library_web/live/wishlist_live/index.ex:109 #: lib/music_library_web/live/wishlist_live/index.ex:109
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -238,7 +238,7 @@ msgstr ""
msgid "Saving..." msgid "Saving..."
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:10 #: lib/music_library_web/live/collection_live/index.html.heex:10
#: lib/music_library_web/live/wishlist_live/index.html.heex:10 #: lib/music_library_web/live/wishlist_live/index.html.heex:10
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Search" msgid "Search"
@@ -254,15 +254,15 @@ msgstr ""
msgid "Search for records" msgid "Search for records"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:156 #: lib/music_library_web/live/collection_live/index.html.heex:156
#: lib/music_library_web/live/record_live/show.ex:91 #: lib/music_library_web/live/collection_live/show.ex:91
#: lib/music_library_web/live/wishlist_live/index.html.heex:156 #: lib/music_library_web/live/wishlist_live/index.html.heex:156
#: lib/music_library_web/live/wishlist_live/show.ex:89 #: lib/music_library_web/live/wishlist_live/show.ex:89
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Show" msgid "Show"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:23 #: lib/music_library_web/live/collection_live/index.html.heex:23
#: lib/music_library_web/live/wishlist_live/index.html.heex:23 #: lib/music_library_web/live/wishlist_live/index.html.heex:23
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Showing <b>%{visible}</b> of <b>%{total}</b> records" msgid "Showing <b>%{visible}</b> of <b>%{total}</b> records"
@@ -284,8 +284,8 @@ msgstr ""
msgid "Success!" msgid "Success!"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.ex:18 #: lib/music_library_web/live/collection_live/index.ex:18
#: lib/music_library_web/live/record_live/show.ex:19 #: lib/music_library_web/live/collection_live/show.ex:19
#: lib/music_library_web/live/wishlist_live/index.ex:18 #: lib/music_library_web/live/wishlist_live/index.ex:18
#: lib/music_library_web/live/wishlist_live/show.ex:19 #: lib/music_library_web/live/wishlist_live/show.ex:19
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -312,13 +312,13 @@ msgstr ""
msgid "Types" msgid "Types"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:137 #: lib/music_library_web/live/collection_live/show.html.heex:137
#: lib/music_library_web/live/wishlist_live/show.html.heex:130 #: lib/music_library_web/live/wishlist_live/show.html.heex:130
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Updated at" msgid "Updated at"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:166 #: lib/music_library_web/live/collection_live/index.html.heex:166
#: lib/music_library_web/live/wishlist_live/index.html.heex:166 #: lib/music_library_web/live/wishlist_live/index.html.heex:166
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "View on MusicBrainz" msgid "View on MusicBrainz"
@@ -351,13 +351,13 @@ msgstr ""
msgid "close" msgid "close"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:94 #: lib/music_library_web/live/collection_live/show.html.heex:94
#: lib/music_library_web/live/wishlist_live/show.html.heex:95 #: lib/music_library_web/live/wishlist_live/show.html.heex:95
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Copy MusicBrainz ID to clipboard" msgid "Copy MusicBrainz ID to clipboard"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:148 #: lib/music_library_web/live/collection_live/show.html.heex:148
#: lib/music_library_web/live/wishlist_live/show.html.heex:141 #: lib/music_library_web/live/wishlist_live/show.html.heex:141
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MusicBrainz data" msgid "MusicBrainz data"
@@ -383,29 +383,29 @@ msgstr ""
msgid "Wishlisted" msgid "Wishlisted"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:71 #: lib/music_library_web/live/collection_live/index.html.heex:71
#: lib/music_library_web/live/record_live/index.html.heex:97 #: lib/music_library_web/live/collection_live/index.html.heex:97
#: lib/music_library_web/live/wishlist_live/index.html.heex:71 #: lib/music_library_web/live/wishlist_live/index.html.heex:71
#: lib/music_library_web/live/wishlist_live/index.html.heex:97 #: lib/music_library_web/live/wishlist_live/index.html.heex:97
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Number of included records" msgid "Number of included records"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:117 #: lib/music_library_web/live/collection_live/show.html.heex:117
#: lib/music_library_web/live/wishlist_live/show.html.heex:110 #: lib/music_library_web/live/wishlist_live/show.html.heex:110
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Includes" msgid "Includes"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.ex:61 #: lib/music_library_web/live/collection_live/show.ex:61
#: lib/music_library_web/live/record_live/show.ex:81 #: lib/music_library_web/live/collection_live/show.ex:81
#: lib/music_library_web/live/wishlist_live/show.ex:59 #: lib/music_library_web/live/wishlist_live/show.ex:59
#: lib/music_library_web/live/wishlist_live/show.ex:79 #: lib/music_library_web/live/wishlist_live/show.ex:79
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Error refreshing MusicBrainz data" msgid "Error refreshing MusicBrainz data"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.ex:53 #: lib/music_library_web/live/collection_live/show.ex:53
#: lib/music_library_web/live/wishlist_live/show.ex:51 #: lib/music_library_web/live/wishlist_live/show.ex:51
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MusicBrainz data refreshed successfully" msgid "MusicBrainz data refreshed successfully"
@@ -416,26 +416,26 @@ msgstr ""
msgid "Refresh LastFm Feed" msgid "Refresh LastFm Feed"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.ex:73 #: lib/music_library_web/live/collection_live/show.ex:73
#: lib/music_library_web/live/wishlist_live/show.ex:71 #: lib/music_library_web/live/wishlist_live/show.ex:71
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Cover refreshed successfully" msgid "Cover refreshed successfully"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:44 #: lib/music_library_web/live/collection_live/show.html.heex:44
#: lib/music_library_web/live/wishlist_live/show.html.heex:44 #: lib/music_library_web/live/wishlist_live/show.html.heex:44
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Cover" msgid "Cover"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:56 #: lib/music_library_web/live/collection_live/show.html.heex:56
#: lib/music_library_web/live/wishlist_live/show.html.heex:56 #: lib/music_library_web/live/wishlist_live/show.html.heex:56
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MB Data" msgid "MB Data"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:37 #: lib/music_library_web/live/collection_live/show.html.heex:37
#: lib/music_library_web/live/record_live/show.html.heex:49 #: lib/music_library_web/live/collection_live/show.html.heex:49
#: lib/music_library_web/live/wishlist_live/show.html.heex:37 #: lib/music_library_web/live/wishlist_live/show.html.heex:37
#: lib/music_library_web/live/wishlist_live/show.html.heex:49 #: lib/music_library_web/live/wishlist_live/show.html.heex:49
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -1,4 +1,4 @@
defmodule MusicLibraryWeb.RecordIndexTest do defmodule MusicLibraryWeb.CollectionLive.IndexTest do
use MusicLibraryWeb.ConnCase use MusicLibraryWeb.ConnCase
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
@@ -1,4 +1,4 @@
defmodule MusicLibraryWeb.RecordShowTest do defmodule MusicLibraryWeb.CollectionLive.ShowTest do
use MusicLibraryWeb.ConnCase use MusicLibraryWeb.ConnCase
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
@@ -1,4 +1,4 @@
defmodule MusicLibraryWeb.StatsIndexTest do defmodule MusicLibraryWeb.StatsLive.IndexTest do
use MusicLibraryWeb.ConnCase use MusicLibraryWeb.ConnCase
import Phoenix.LiveViewTest import Phoenix.LiveViewTest