Annotate templates with TODOs for markup replacement

To open source the project down the line, it makes sense to have either
everything custom or using OSS components in order to keep licensing as
simple as possible.
This commit is contained in:
Claudio Ortolina
2024-12-04 14:43:07 +00:00
parent a279d6175e
commit 24319b1bff
10 changed files with 50 additions and 39 deletions
@@ -1,3 +1,4 @@
<%!-- TODO: replace with OSS version --%>
<nav class="border-b border-slate-900/10 dark:border-slate-300/10">
<div class="mx-auto max-w-screen-xl px-4 sm:px-6 lg:px-8">
<div class="flex h-16 justify-between">
@@ -36,6 +36,7 @@
</head>
<body class="bg-white dark:bg-zinc-900">
{@inner_content}
<%!-- TODO: replace with OSS version --%>
<footer class="mt-8 border-t border-slate-900/10 dark:border-slate-300/10">
<div class="mx-auto max-w-7xl px-6 pb-8 lg:px-8">
<div class="pt-8 flex items-center justify-between">
@@ -11,6 +11,7 @@ defmodule MusicLibraryWeb.Pagination do
assigns = assign(assigns, :page_links, page_links)
~H"""
<%!-- TODO: replace with OSS version --%>
<div
:if={@page_links.total_pages > 1}
id={@id}
@@ -60,6 +60,7 @@
<h2 class="font-semibold text-base sm:text-lg leading-5 text-zinc-700 dark:text-zinc-300">
{gettext("Collection")}
</h2>
<%!-- TODO: replace with OSS version --%>
<ul
role="list"
class="mt-4 grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 lg:grid-cols-4 xl:gap-x-8"
@@ -98,6 +99,7 @@
<h2 class="font-semibold text-base sm:text-lg leading-5 text-zinc-700 dark:text-zinc-300">
{gettext("Wishlist")}
</h2>
<%!-- TODO: replace with OSS version --%>
<ul
role="list"
class="mt-4 grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 lg:grid-cols-4 xl:gap-x-8"
@@ -109,6 +109,7 @@
</span>
</p>
</div>
<%!-- TODO: replace with OSS version --%>
<div class="relative flex-none">
<button
type="button"
@@ -70,7 +70,7 @@
</nav>
</div>
<div>
<!-- TODO: extract to a component -->
<%!-- TODO: replace with OSS version --%>
<dl class="mt-4 divide-y divide-zinc-100 dark:divide-slate-300/30">
<div class="py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
<dt class="text-sm font-medium leading-6 text-zinc-900 dark:text-zinc-400">
@@ -2,6 +2,7 @@
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
{gettext("Basics")}
</h1>
<%!-- TODO: replace with OSS version --%>
<dl class="mt-5 grid grid-cols-2 gap-5 sm:grid-cols-5">
<.album_preview
record={@latest_record}
@@ -21,6 +22,7 @@
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
{gettext("Formats")}
</h1>
<%!-- TODO: replace with OSS version --%>
<dl class={[
"mt-5 grid divide-zinc-200 dark:divide-slate-300/50 overflow-hidden rounded-md bg-white dark:bg-zinc-800 shadow divide-x",
stats_class(@collection_count_by_format)
@@ -45,6 +47,7 @@
<h1 class="mt-5 text-base lg:text-2xl text-zinc-900 dark:text-zinc-200 font-semibold">
{gettext("Types")}
</h1>
<%!-- TODO: replace with OSS version --%>
<dl class={[
"mt-5 grid divide-zinc-200 dark:divide-slate-300/50 overflow-hidden rounded-md bg-white dark:bg-zinc-800 shadow divide-x",
stats_class(@collection_count_by_type)
@@ -79,6 +82,7 @@
<.icon name="hero-arrow-path" class="-mt-1 h-5 w-5" aria-hidden="true" data-slot="icon" />
</button>
</div>
<%!-- TODO: replace with OSS version --%>
<ul
id="scrobble-activity"
role="list"
@@ -109,6 +109,7 @@
</span>
</p>
</div>
<%!-- TODO: replace with OSS version --%>
<div class="relative flex-none">
<button
type="button"
@@ -71,7 +71,7 @@
</div>
<div>
<!-- TODO: extract to a component -->
<%!-- TODO: replace with OSS version --%>
<dl class="mt-4 divide-y divide-zinc-100 dark:divide-slate-300/30">
<div class="py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
<dt class="text-sm font-medium leading-6 text-zinc-900 dark:text-zinc-400">
+37 -37
View File
@@ -16,9 +16,9 @@ msgstr ""
msgid "Actions"
msgstr ""
#: lib/music_library_web/live/collection_live/index.html.heex:185
#: lib/music_library_web/live/collection_live/index.html.heex:186
#: 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:196
#: lib/music_library_web/live/wishlist_live/show.html.heex:61
#, elixir-autogen, elixir-format
msgid "Are you sure?"
@@ -50,7 +50,7 @@ msgstr ""
msgid "Choose a value"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:13
#: lib/music_library_web/components/layouts/app.html.heex:14
#: lib/music_library_web/live/artist_live/show.html.heex:61
#: lib/music_library_web/live/collection_live/index.ex:77
#: lib/music_library_web/live/collection_live/show.ex:102
@@ -64,18 +64,18 @@ msgstr ""
msgid "Cover art"
msgstr ""
#: lib/music_library_web/live/collection_live/index.html.heex:187
#: lib/music_library_web/live/collection_live/index.html.heex:188
#: 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:198
#: lib/music_library_web/live/wishlist_live/show.html.heex:67
#, elixir-autogen, elixir-format
msgid "Delete"
msgstr ""
#: lib/music_library_web/live/collection_live/index.html.heex:176
#: lib/music_library_web/live/collection_live/index.html.heex:177
#: lib/music_library_web/live/collection_live/show.ex:126
#: lib/music_library_web/live/collection_live/show.html.heex:32
#: lib/music_library_web/live/wishlist_live/index.html.heex:176
#: lib/music_library_web/live/wishlist_live/index.html.heex:177
#: lib/music_library_web/live/wishlist_live/show.ex:109
#: lib/music_library_web/live/wishlist_live/show.html.heex:32
#, elixir-autogen, elixir-format
@@ -100,7 +100,7 @@ msgstr ""
msgid "Format"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:22
#: lib/music_library_web/live/stats_live/index.html.heex:23
#, elixir-autogen, elixir-format
msgid "Formats"
msgstr ""
@@ -133,7 +133,7 @@ msgstr ""
msgid "Invalid password"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:8
#: lib/music_library_web/live/stats_live/index.html.heex:9
#, elixir-autogen, elixir-format
msgid "Latest purchase"
msgstr ""
@@ -144,7 +144,7 @@ msgstr ""
msgid "Login"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:28
#: lib/music_library_web/components/layouts/app.html.heex:29
#, elixir-autogen, elixir-format
msgid "Logout"
msgstr ""
@@ -156,8 +156,8 @@ msgstr ""
msgid "MusicBrainz ID"
msgstr ""
#: lib/music_library_web/components/pagination.ex:48
#: lib/music_library_web/components/pagination.ex:111
#: lib/music_library_web/components/pagination.ex:49
#: lib/music_library_web/components/pagination.ex:112
#, elixir-autogen, elixir-format
msgid "Next"
msgstr ""
@@ -172,8 +172,8 @@ msgstr ""
msgid "No results"
msgstr ""
#: lib/music_library_web/live/collection_live/index.html.heex:121
#: lib/music_library_web/live/wishlist_live/index.html.heex:121
#: lib/music_library_web/live/collection_live/index.html.heex:122
#: lib/music_library_web/live/wishlist_live/index.html.heex:122
#, elixir-autogen, elixir-format
msgid "Open options"
msgstr ""
@@ -183,13 +183,13 @@ msgstr ""
msgid "Password"
msgstr ""
#: lib/music_library_web/components/pagination.ex:35
#: lib/music_library_web/components/pagination.ex:133
#: lib/music_library_web/components/pagination.ex:36
#: lib/music_library_web/components/pagination.ex:134
#, elixir-autogen, elixir-format
msgid "Previous"
msgstr ""
#: lib/music_library_web/live/wishlist_live/index.html.heex:186
#: lib/music_library_web/live/wishlist_live/index.html.heex:187
#, elixir-autogen, elixir-format
msgid "Purchase"
msgstr ""
@@ -247,9 +247,9 @@ msgstr ""
msgid "Search for records"
msgstr ""
#: lib/music_library_web/live/collection_live/index.html.heex:156
#: lib/music_library_web/live/collection_live/index.html.heex:157
#: lib/music_library_web/live/collection_live/show.ex:125
#: lib/music_library_web/live/wishlist_live/index.html.heex:156
#: lib/music_library_web/live/wishlist_live/index.html.heex:157
#: lib/music_library_web/live/wishlist_live/show.ex:108
#, elixir-autogen, elixir-format
msgid "Show"
@@ -266,7 +266,7 @@ msgstr ""
msgid "Something went wrong!"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:7
#: lib/music_library_web/components/layouts/app.html.heex:8
#: lib/music_library_web/live/stats_live/index.ex:39
#, elixir-autogen, elixir-format
msgid "Stats"
@@ -285,12 +285,12 @@ msgstr ""
msgid "The application has been updated, please reload."
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:12
#: lib/music_library_web/live/stats_live/index.html.heex:13
#, elixir-autogen, elixir-format
msgid "Total collection"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:16
#: lib/music_library_web/live/stats_live/index.html.heex:17
#, elixir-autogen, elixir-format
msgid "Total wishlist"
msgstr ""
@@ -300,7 +300,7 @@ msgstr ""
msgid "Type"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:46
#: lib/music_library_web/live/stats_live/index.html.heex:48
#, elixir-autogen, elixir-format
msgid "Types"
msgstr ""
@@ -311,8 +311,8 @@ msgstr ""
msgid "Updated at"
msgstr ""
#: 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/collection_live/index.html.heex:167
#: lib/music_library_web/live/wishlist_live/index.html.heex:167
#, elixir-autogen, elixir-format
msgid "View on MusicBrainz"
msgstr ""
@@ -327,8 +327,8 @@ msgstr ""
msgid "Welcome to your Music Library"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:19
#: lib/music_library_web/live/artist_live/show.html.heex:99
#: lib/music_library_web/components/layouts/app.html.heex:20
#: lib/music_library_web/live/artist_live/show.html.heex:100
#: lib/music_library_web/live/wishlist_live/index.ex:75
#: lib/music_library_web/live/wishlist_live/show.ex:102
#, elixir-autogen, elixir-format
@@ -358,23 +358,23 @@ msgstr ""
msgid "MusicBrainz data"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:71
#: lib/music_library_web/live/stats_live/index.html.heex:74
#, elixir-autogen, elixir-format
msgid "Scrobble activity"
msgstr ""
#: lib/music_library_web/live/record_live/import_component.ex:80
#: lib/music_library_web/live/stats_live/index.html.heex:173
#: lib/music_library_web/live/stats_live/index.html.heex:177
#, elixir-autogen, elixir-format
msgid "Choose which format to import"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:141
#: lib/music_library_web/live/stats_live/index.html.heex:145
#, elixir-autogen, elixir-format
msgid "Collected"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:154
#: lib/music_library_web/live/stats_live/index.html.heex:158
#, elixir-autogen, elixir-format
msgid "Wishlisted"
msgstr ""
@@ -405,7 +405,7 @@ msgstr ""
msgid "MusicBrainz data refreshed successfully"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:78
#: lib/music_library_web/live/stats_live/index.html.heex:81
#, elixir-autogen, elixir-format
msgid "Refresh LastFm Feed"
msgstr ""
@@ -446,7 +446,7 @@ msgstr ""
msgid "Error refreshing cover"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:128
#: lib/music_library_web/live/stats_live/index.html.heex:132
#, elixir-autogen, elixir-format
msgid "No MB ID"
msgstr ""
@@ -467,18 +467,18 @@ msgstr ""
msgid "Import from MusicBrainz · Wishlist"
msgstr ""
#: lib/music_library_web/components/layouts/root.html.heex:58
#: lib/music_library_web/components/layouts/root.html.heex:59
#, elixir-autogen, elixir-format
msgid "Made by"
msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:25
#: lib/music_library_web/components/layouts/app.html.heex:26
#, elixir-autogen, elixir-format
msgid "Dev dashboard"
msgstr ""
#: lib/music_library_web/live/artist_live/show.html.heex:79
#: lib/music_library_web/live/artist_live/show.html.heex:117
#: lib/music_library_web/live/artist_live/show.html.heex:80
#: lib/music_library_web/live/artist_live/show.html.heex:119
#, elixir-autogen, elixir-format
msgid "View details"
msgstr ""