add loggers actions

This commit is contained in:
Tykayn 2025-06-26 23:14:22 +02:00 committed by tykayn
parent 59398d14ba
commit 12d4db370f
22 changed files with 517 additions and 218 deletions

View file

@ -36,9 +36,8 @@ import {
toggleCompletionInfo,
updateMapHeightForLargeScreens
} from './utils.js';
// import Tablesort from 'tablesort';
import TableSort from 'table-sort-js/table-sort.js';
console.log('TableSort', TableSort)
import tableSortJs from 'table-sort-js/table-sort.js';
console.log('TableSort', tableSortJs)
// Charger table-sortable (version non minifiée locale)
// import '../assets/js/table-sortable.js';
@ -203,11 +202,10 @@ document.addEventListener('DOMContentLoaded', () => {
adjustListGroupFontSize('.list-group-item');
// Activer le tri naturel sur tous les tableaux avec la classe table-sort
if(TableSort){
document.querySelectorAll('table.table-sort')?.forEach(table => {
new TableSort(table);
});
if (tableSortJs) {
tableSortJs();
}else{
console.log('pas de tablesort')
}
// Initialisation du tri et filtrage sur les tableaux du dashboard et de la page stats

View file

@ -31,6 +31,11 @@ body {
color: #df5a0d;
}
table {
max-height: 100vh;
max-width: 100vw;
}
table.js-sort-table th {
cursor: pointer;
}
@ -141,7 +146,7 @@ img {
}
#completionHistoryChart{
#completionHistoryChart {
min-height: 500px;
}