debuglog for log prunes and small fix to pink theme

merge-requests/208/head
fatchan 5 years ago
parent 81fe42138e
commit d3566b634f
  1. 2
      gulp/res/css/themes/pink.css
  2. 5
      helpers/tasks.js

@ -2,7 +2,7 @@
:root {
--icon-color: invert(17%) sepia(89%) saturate(7057%) hue-rotate(2deg) brightness(93%) contrast(120%);
--alt-label-color: #ffcccb;
--alt-font-color:#c5c8c6;
--alt-font-color:#80002c;
--background-top:#ffe4e6;
--background-rest:#ffe4e6;
--navbar-color:#ffcccb;

@ -165,12 +165,13 @@ module.exports = {
const pruneLogs = [];
const pruneAfter = new Date(Date.now()-timeUtils.DAY*pruneAfterDays);
dates = dates.filter(date => {
console.log(date, pruneAfter)
const { year, month, day } = date.date;
if (new Date(year, month-1, day) > pruneAfter) { //-1 for 0-index months
return true;
}
pruneLogs.push(`${month}-${day}-${year}`);
const logName = `${month}-${day}-${year}`;
debugLogs && console.log('Pruning log', `${options.board._id}/${logName}`)
pruneLogs.push(logName);
return false;
});
if (pruneLogs.length > 0) {

Loading…
Cancel
Save