@93 - Wantlist

This commit is contained in:
Damien Broqua 2024-06-15 10:13:22 +02:00
parent bed5139a27
commit a4a3933c6d
24 changed files with 1137 additions and 70 deletions

View file

@ -2,7 +2,7 @@
<h1>
<template v-for="artist in item.artists">
<a :href="`/ma-collection?page=1&limit=16&sort=year&order=asc&artist=${artist.name}`">{{artist.name}}</a>
<a :href="`/<%= page.action === 'album' ? 'ma-collection' : 'ma-liste-de-souhaits' %>?page=1&limit=16&sort=year&order=asc&artist=${artist.name}`">{{artist.name}}</a>
<template v-if="artist.join">&nbsp;{{artist.join}}&nbsp;</template>
</template>
- {{item.title}}
@ -96,5 +96,6 @@
<script>
const item = <%- JSON.stringify(page.item) %>;
const action = "<%- page.action %>";
const canShareItem = <%= user.mastodon?.publish || false %>;
</script>

View file

@ -1,5 +1,9 @@
<main class="layout-maxed" id="exporter">
<h1>Exporter ma collection</h1>
<% if (page.action === 'albums') { %>
<h1>Exporter ma collection</h1>
<% } else { %>
<h1>Exporter ma liste de souhaits</h1>
<% } %>
<p>
Les formats CSV et Excel sont facilement lisiblent par un humain. Dans ces 2 formats vous trouverez seulement les informations principales de vos albums, à savoir :
</p>
@ -44,4 +48,8 @@
Exporter
</button>
</form>
</main>
</main>
<script>
const action = "<%- page.action %>";
</script>

View file

@ -1,7 +1,11 @@
<main class="layout-maxed" id="importer">
<h1>Importer une collection</h1>
<% if (page.action === 'albums') { %>
<h1>Importer une collection</h1>
<% } else { %>
<h1>Importer une liste de souhaits</h1>
<% } %>
<p>
Il est actuellement possible d'importer une collection provenant de discogs.
Il est actuellement possible d'importer <%= page.action === 'albums' ? "une collection" : "une liste de souhaits" %> provenant de discogs.
<br />
Vous devez dans un premier temps vous rendre sur la page <a href="https://www.discogs.com/fr/users/export" target="_blank" rel="noopener noreferrer">Exporter</a> de discogs.
<br />
@ -40,4 +44,8 @@
<span v-if="state === 'done'">Importatation terminée</span>
</button>
</form>
</main>
</main>
<script>
const action = "<%- page.action %>";
</script>