feat: alle KÜs Firmware update confirm

This commit is contained in:
ISA
2025-07-01 07:52:22 +02:00
parent ecb818e248
commit b0efd3aa0f
7 changed files with 28 additions and 6 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.511 NEXT_PUBLIC_APP_VERSION=1.6.512
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.511 NEXT_PUBLIC_APP_VERSION=1.6.512
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.512] 2025-07-01
- fix: hide Firmware update button if admin not loged in
---
## [1.6.511] 2025-07-01 ## [1.6.511] 2025-07-01
- feat: alle KÜs Firmware update - feat: alle KÜs Firmware update

View File

@@ -200,7 +200,14 @@ const GeneralSettings: React.FC = () => {
<button <button
type="button" type="button"
className="bg-littwin-blue text-white px-4 py-2 h-8 text-xs rounded whitespace-nowrap" className="bg-littwin-blue text-white px-4 py-2 h-8 text-xs rounded whitespace-nowrap"
onClick={handleKueFirmwareUpdate} onClick={() => {
const confirmed = window.confirm(
"⚠️ Wollen Sie wirklich ein Firmwareupdate für alle KÜ-Module starten?"
);
if (confirmed) {
handleKueFirmwareUpdate();
}
}}
> >
Firmwareupdate alle -Module Firmwareupdate alle -Module
</button> </button>

View File

@@ -1,4 +1,14 @@
[ [
{
"timestamp": "2025-07-01T05:48:51.161Z",
"command": "&KSU99=1",
"message": "Firmwareupdate an alle KÜ-Module ausgelöst (Mock)"
},
{
"timestamp": "2025-07-01T05:47:36.526Z",
"command": "&KSU99=1",
"message": "Firmwareupdate an alle KÜ-Module ausgelöst (Mock)"
},
{ {
"timestamp": "2025-06-30T13:30:18.185Z", "timestamp": "2025-06-30T13:30:18.185Z",
"command": "&KSU99=1", "command": "&KSU99=1",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.511", "version": "1.6.512",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.511", "version": "1.6.512",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^5.1.0", "@fontsource/roboto": "^5.1.0",
"@iconify-icons/ri": "^1.2.10", "@iconify-icons/ri": "^1.2.10",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.511", "version": "1.6.512",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",