(#1) - WebPack bundling of JS and CSS

This commit is contained in:
Martin Slachta
2026-06-12 11:25:57 +02:00
parent 0d829845c4
commit 2a630228ad
23 changed files with 115 additions and 70 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const RsvCalendarPicker = (() => {
export const RsvCalendarPicker = (() => {
function get_first_day_of_month(date) {
const day = new Date(date.getFullYear(), date.getMonth(), 1).getDay();
+4 -2
View File
@@ -2,7 +2,7 @@
* RSV Dynamic datagrid
* Allows fetching with JS instead of page reload.
*/
window.RsvDataGrid = window.RsvDataGrid || {
const RsvDataGrid = {
create_header(self, columns, has_actions) {
let thead = document.createElement('thead');
@@ -419,4 +419,6 @@ window.RsvDataGrid = window.RsvDataGrid || {
return state;
}
}
};
export { RsvDataGrid };
@@ -1,3 +1,5 @@
import { RsvCalendarPicker } from './RsvCalendar.js';
class RsvReservationSelector extends HTMLElement {
static get observedAttributes() {
return ['timetable-id', 'name', 'price-per-block'];
+2
View File
@@ -1,3 +1,5 @@
import { RsvTimetableService } from '../services/RsvTimetableService.js';
class RsvTimeline extends HTMLElement {
static get observedAttributes() {
return ['timetable-id', 'date'];