updated frontend builds (#5210)

* do not rely on node_modules path
* bump eslint to v9, run eslint via npm task, remove from build task
* loosen dependencies and update all packages
* rebuild assets with latest frontend packages
* bump webpack encore and dependencies
* bump to latest stable yarn
* explicitly mention dependencies
This commit is contained in:
Kevin Papst
2024-12-06 14:31:04 +01:00
committed by GitHub
parent 648686c001
commit 17a815e5a9
61 changed files with 2762 additions and 4055 deletions

View File

@@ -14,7 +14,7 @@ import dayGridPlugin from '@fullcalendar/daygrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import bootstrap5Plugin, { BootstrapTheme } from '@fullcalendar/bootstrap5';
import googlePlugin from '@fullcalendar/google-calendar';
import iCalendarPlugin from '@fullcalendar/icalendar'
import iCalendarPlugin from '@fullcalendar/icalendar';
import interactionPlugin, { Draggable } from '@fullcalendar/interaction';
import arLocale from '@fullcalendar/core/locales/ar';
import csLocale from '@fullcalendar/core/locales/cs';
@@ -264,7 +264,7 @@ export default class KimaiCalendar {
contextMenu.createFromApi(jsEvent, result);
}, (e) => { console.log('Failed to load actions for context menu', e); });
}
})
});
},
};
@@ -409,13 +409,13 @@ export default class KimaiCalendar {
this.hidePopover(info.el);
},
eventDrop: (eventDropInfo) => {
this.changeHandler(eventDropInfo)
this.changeHandler(eventDropInfo);
},
eventResizeStart: (info) => {
this.hidePopover(info.el);
},
eventResize: (eventResizeInfo) => {
this.changeHandler(eventResizeInfo)
this.changeHandler(eventResizeInfo);
},
}};
}
@@ -568,7 +568,7 @@ export default class KimaiCalendar {
color = apiItem.project.customer.color;
}
}
if (color == null) {
if (color === null) {
color = defaultColor;
}

View File

@@ -89,7 +89,7 @@ export default class KimaiContextMenu {
}
dropdownElement.removeEventListener('click', dropdownListener);
document.removeEventListener('click', dropdownListener);
}
};
dropdownElement.addEventListener('click', dropdownListener);
document.addEventListener('click', dropdownListener);

View File

@@ -61,7 +61,7 @@ export default class KimaiPaginatedBoxWidget {
// and this event will hide it afterwards
const hideOverlay = () => {
document.dispatchEvent(new Event('kimai.reloadedContent'));
}
};
window.kimai.getPlugin('fetch').fetch(url)
.then(response => {