Compare commits

..

No commits in common. "master" and "develop" have entirely different histories.

4 changed files with 39 additions and 57 deletions

View file

@ -1,9 +1,5 @@
@import '../node_modules/knacss/sass/knacss.scss'; @import '../node_modules/knacss/sass/knacss.scss';
table {
table-layout: unset;
}
// SPÉCIFIQUE AU SITE // SPÉCIFIQUE AU SITE
@import './fonts'; @import './fonts';
@import './colors'; @import './colors';

View file

@ -57,7 +57,7 @@ router
} }
return res.redirect(url); return res.redirect(url);
} }
return res.redirect("/ma-collection"); return res.redirect("/");
} }
); );
@ -79,7 +79,7 @@ if (registrationOpen) {
try { try {
await Auth.register(req); await Auth.register(req);
res.redirect("/ajouter-un-album"); res.redirect("/");
} catch (err) { } catch (err) {
res.redirect("/inscription"); res.redirect("/inscription");
} }

View file

@ -258,7 +258,7 @@
<br /> <br />
Le code source est sous licence <a href="https://www.gnu.org/licenses/gpl-3.0-standalone.html" target="_blank" rel="noopener noreferrer">GNU GPL-3.0-or-later <i class="icon-link"></i></a> et disponible sur <a href="https://forge.darkou.fr/contact/MusicTopus" target="_blank">forge.darkou.fr <i class="icon-link"></i></a>. Le code source est sous licence <a href="https://www.gnu.org/licenses/gpl-3.0-standalone.html" target="_blank" rel="noopener noreferrer">GNU GPL-3.0-or-later <i class="icon-link"></i></a> et disponible sur <a href="https://forge.darkou.fr/contact/MusicTopus" target="_blank">forge.darkou.fr <i class="icon-link"></i></a>.
<br /> <br />
Fait avec <span role="img" aria-label="amour">❤️</span> à Bordeaux depuis 2022 ! <img src="/img/emoji-lmhf.svg" class="lmhf" alt="lmhf" alt="Love Music, Hate Fascism" title="Love Music, Hate Fascism" /> Fait avec <span role="img" aria-label="amour">❤️</span> à Bordeaux. <img src="/img/emoji-lmhf.svg" class="lmhf" alt="lmhf" alt="Love Music, Hate Fascism" title="Love Music, Hate Fascism" />
</p> </p>
</footer> </footer>
</body> </body>

View file

@ -1,18 +1,17 @@
<!-- <main class="layout-maxed ma-collection-details" id="ma-collection-statistiques"> --> <main class="layout-maxed ma-collection-details" id="ma-collection-statistiques">
<main class="layout-maxed collection" id="mon-compte">
<h1> <h1>
Mes statistiques Mes statistiques
</h1> </h1>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10 mb-10"> <div class="grid grid-cols-1 md:grid-cols-2 gap-10 mb-10">
<div class="md:col-span-2 lg:col-span-3 box"> <div class="md:col-span-2 box">
<h2>Mon top 10</h2> <h2>Mon top 10</h2>
<table> <table>
<thead> <thead>
<tr> <tr>
<th></th> <th style="width: 60px;"></th>
<th>Artiste</th> <th>Artiste</th>
<th>Albums</th> <th style="width: 100px;">Albums</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -42,41 +41,28 @@
<canvas id="byFormats"></canvas> <canvas id="byFormats"></canvas>
</div> </div>
<div class="box col-span-full"> <div><!-- histoire de faire un break --></div>
<div class="box">
<h2><%= page.currentYear.year %> (<%= page.currentYear.total %> ajout<%= page.currentYear.total > 1 ? 's' : '' %>)</h2> <h2><%= page.currentYear.year %> (<%= page.currentYear.total %> ajout<%= page.currentYear.total > 1 ? 's' : '' %>)</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10">
<div>
<h3>Genres</h3> <h3>Genres</h3>
<canvas id="currentYearGenres"></canvas> <canvas id="currentYearGenres"></canvas>
</div>
<div>
<h3>Styles</h3> <h3>Styles</h3>
<canvas id="currentYearStyles"></canvas> <canvas id="currentYearStyles"></canvas>
</div>
<div>
<h3>Formats</h3> <h3>Formats</h3>
<canvas id="currentYearFormats"></canvas> <canvas id="currentYearFormats"></canvas>
</div> </div>
</div>
</div> <div class="box">
<div class="box col-span-full">
<h2><%= page.lastYear.year %> (<%= page.lastYear.total %> ajout<%= page.lastYear.total > 1 ? 's' : '' %>)</h2> <h2><%= page.lastYear.year %> (<%= page.lastYear.total %> ajout<%= page.lastYear.total > 1 ? 's' : '' %>)</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10">
<div>
<h3>Genres</h3> <h3>Genres</h3>
<canvas id="lastYearGenres"></canvas> <canvas id="lastYearGenres"></canvas>
</div>
<div>
<h3>Styles</h3> <h3>Styles</h3>
<canvas id="lastYearStyles"></canvas> <canvas id="lastYearStyles"></canvas>
</div>
<div>
<h3>Formats</h3> <h3>Formats</h3>
<canvas id="lastYearFormats"></canvas> <canvas id="lastYearFormats"></canvas>
</div> </div>
</div> </div>
</div>
</div>
</main> </main>
<script> <script>