Skip to content

Commit b5b007c

Browse files
Fixed GUI error: #2067 (#2068)
1 parent c699785 commit b5b007c

File tree

4 files changed

+14
-27
lines changed

4 files changed

+14
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Executes Javascript, Typescript Scripts.
2626
<!--
2727
### **WORK IN PROGRESS**
2828
-->
29-
### 9.0.12 (2025-12-01)
29+
### **WORK IN PROGRESS**
3030
* (@GermanBluefox) Added possibility to encrypt scripts with password (only for vendors)
3131

3232
### 9.0.11 (2025-07-29)

io-package.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,6 @@
4040
"Matthias Kleine <info@haus-automatisierung.com>"
4141
],
4242
"news": {
43-
"9.0.12": {
44-
"en": "Added possibility to encrypt scripts with password (only for vendors)",
45-
"de": "Zusätzliche Möglichkeit, Skripte mit Passwort zu verschlüsseln (nur für Hersteller)",
46-
"ru": "Добавлена возможность шифрования скриптов с помощью пароля (только для продавцов)",
47-
"pt": "Adicionada possibilidade de criptografar scripts com senha (somente para fornecedores)",
48-
"nl": "Toegevoegd mogelijkheid om scripts te versleutelen met wachtwoord (alleen voor leveranciers)",
49-
"fr": "Ajout de la possibilité de chiffrer les scripts avec le mot de passe (seulement pour les fournisseurs)",
50-
"it": "Aggiunta possibilità di crittografare gli script con password (solo per i fornitori)",
51-
"es": "Añadido posibilidad de cifrar scripts con contraseña (sólo para proveedores)",
52-
"pl": "Dodano możliwość szyfrowania skryptów hasłem (tylko dla sprzedawców)",
53-
"uk": "Додана можливість шифрування сценаріїв з паролем (тільки для постачальників)",
54-
"zh-cn": "添加使用密码加密脚本的可能性( 只针对供应商)"
55-
},
5643
"9.0.11": {
5744
"en": "Corrected the rule editor if the condition is empty\nCorrected types for TypeScript",
5845
"de": "Korrektur des Regeleditors, wenn die Bedingung leer ist\nKorrigierte Typen für TypeScript",

src-admin/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@
1111
"npm": "npm i -f"
1212
},
1313
"devDependencies": {
14-
"@iobroker/adapter-react-v5": "8.0.7",
15-
"@iobroker/json-config": "7.6.20",
16-
"@module-federation/runtime": "^0.15.0",
17-
"@module-federation/vite": "^1.4.1",
18-
"@mui/icons-material": "^6.4.12",
19-
"@mui/material": "^6.4.12",
14+
"@iobroker/adapter-react-v5": "8.0.13",
15+
"@iobroker/json-config": "8.0.6",
16+
"@module-federation/runtime": "^0.21.4",
17+
"@module-federation/vite": "^1.9.0",
18+
"@mui/icons-material": "^6.5.0",
19+
"@mui/material": "^6.5.0",
2020
"@mui/x-date-pickers": "^7.29.4",
21-
"@types/leaflet": "^1.9.18",
22-
"@types/react": "^18.3.23",
21+
"@types/leaflet": "^1.9.21",
22+
"@types/react": "^18.3.26",
2323
"@types/react-dom": "^18.3.7",
24-
"@vitejs/plugin-react": "^4.5.2",
24+
"@vitejs/plugin-react": "^5.1.1",
2525
"date-fns": "^4.1.0",
2626
"leaflet": "^1.9.4",
2727
"react": "^18.3.1",
2828
"react-dom": "^18.3.1",
2929
"react-leaflet": "^4.2.1",
3030
"react-refresh": "^0.18.0",
31-
"vite": "7.1.12",
31+
"vite": "7.2.2",
3232
"vite-plugin-commonjs": "^0.10.4",
3333
"vite-plugin-svgr": "^4.5.0",
3434
"vite-tsconfig-paths": "^5.1.4"

src-editor/src/Editor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ class Editor extends React.Component<EditorProps, EditorState> {
692692
// take a new script if it not yet changed
693693
if (!this.state.changed[id]) {
694694
// just use new value
695-
if (this.props.password && this.objects[id].native.protected) {
695+
if (this.props.password && this.objects[id].native?.protected) {
696696
this.scripts[id].source = decryptText(
697697
this.props.password,
698698
this.objects[id].common.source,
@@ -1055,7 +1055,7 @@ class Editor extends React.Component<EditorProps, EditorState> {
10551055
/>
10561056
);
10571057
}
1058-
if (!this.props.password && this.props.objects[id].native.protected) {
1058+
if (!this.props.password && this.props.objects[id].native?.protected) {
10591059
return null;
10601060
}
10611061

@@ -2111,7 +2111,7 @@ class Editor extends React.Component<EditorProps, EditorState> {
21112111
return undefined;
21122112
}
21132113
const result = JSON.parse(JSON.stringify(this.props.objects[id].common)) as ioBroker.ScriptCommon;
2114-
if (this.props.objects[id].native.protected && this.props.password) {
2114+
if (this.props.objects[id].native?.protected && this.props.password) {
21152115
result.source = decryptText(this.props.password, result.source);
21162116
}
21172117
return result;

0 commit comments

Comments
 (0)