mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
add loggers actions
This commit is contained in:
parent
59398d14ba
commit
12d4db370f
22 changed files with 517 additions and 218 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue