From 3a57a1334d628eb186c54ffff6145ae2546f4d2f Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Wed, 1 Oct 2025 21:44:24 +0200 Subject: [PATCH 1/3] update npm mods --- frontend/package.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 0b42352..456fff4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,20 +9,20 @@ "preview": "vite preview" }, "devDependencies": { - "@playwright/test": "^1.40.1", - "@types/d3": "^7.4.1", - "@types/node": "^20.11.4", - "autoprefixer": "^10.4.14", - "postcss": "^8.4.21", - "sass": "^1.60.0", - "tailwindcss": "^3.3.1", - "typescript": "^4.9.5", - "vite": "^4.2.0", - "vite-plugin-static-copy": "^0.13.1" + "@playwright/test": "^1.55.1", + "@types/d3": "^7.4.3", + "@types/node": "^24.6.1", + "autoprefixer": "^10.4.21", + "postcss": "^8.5.6", + "sass": "^1.93.2", + "tailwindcss": "^4.1.14", + "typescript": "^5.9.3", + "vite": "^7.1.7", + "vite-plugin-static-copy": "^3.1.3" }, "dependencies": { - "choices.js": "^10.2.0", - "d3": "^7.8.5", - "terser": "^5.21.0" + "choices.js": "^11.1.0", + "d3": "^7.9.0", + "terser": "^5.44.0" } } -- 2.49.1 From 9203c615411e6cc05537c76a93e912dd09ac6fa9 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Wed, 1 Oct 2025 22:07:21 +0200 Subject: [PATCH 2/3] fix ci? --- frontend/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/main.ts b/frontend/main.ts index fc4a377..5a7bc92 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -425,8 +425,8 @@ function initNewChoice(select: HTMLInputElement) { maxItemText: (maxItemCount) => { return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`; }, - callbackOnInit: function () { - this._currentState.items.forEach(function (obj) { + callbackOnInit: function (this: Choices) { + this._currentState.items.forEach(function (obj: any) { if (boat_in_ottensheim && obj.customProperties) { if (obj.customProperties.is_racing) { const coxSelect = ( -- 2.49.1 From 7f26710a40f8b2b3f17bf0543a53c719f3ebef57 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Wed, 1 Oct 2025 22:24:13 +0200 Subject: [PATCH 3/3] fix ci? --- frontend/main.ts | 4 +++- frontend/package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/main.ts b/frontend/main.ts index 5a7bc92..f393d48 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -426,7 +426,9 @@ function initNewChoice(select: HTMLInputElement) { return `Nur ${maxItemCount} Ruderer können hinzugefügt werden`; }, callbackOnInit: function (this: Choices) { - this._currentState.items.forEach(function (obj: any) { + const items = this.getValue(); // Get all selected items + const itemsArray = Array.isArray(items) ? items : [items]; + itemsArray.forEach((obj: any) => { if (boat_in_ottensheim && obj.customProperties) { if (obj.customProperties.is_racing) { const coxSelect = ( diff --git a/frontend/package.json b/frontend/package.json index 456fff4..09560f2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -15,7 +15,7 @@ "autoprefixer": "^10.4.21", "postcss": "^8.5.6", "sass": "^1.93.2", - "tailwindcss": "^4.1.14", + "tailwindcss": "^3.4.18", "typescript": "^5.9.3", "vite": "^7.1.7", "vite-plugin-static-copy": "^3.1.3" -- 2.49.1