iobroker.eos-admin 7.9.39 → 7.9.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -173,3 +173,8 @@ If an older installation has stale update-blocking object flags, repair them onc
173
173
  cd /opt/iobroker
174
174
  node /opt/iobroker/node_modules/iobroker.eos-admin/tools/nexowatt-repair-eos-admin-update.cjs
175
175
  ```
176
+
177
+
178
+ ## NexoWatt EOS v7.9.40 Update-Hinweis
179
+
180
+ Diese Version korrigiert den Repository-Update-Pfad für den eigenständigen Adapter `eos-admin`. Der Repository-Eintrag muss `packetName: "iobroker.eos-admin"` enthalten, damit ioBroker beim Update nicht den falschen Paketpräfix verwendet. Technische Paketnamen in Befehls-/npm-Dialogen werden nicht mehr zu Branding-Text umgeschrieben, damit Fehlermeldungen eindeutig bleiben.
@@ -3526,3 +3526,5 @@ html.eos-objects-surface #eos-assist-root {
3526
3526
  bottom: 26px !important;
3527
3527
  z-index: 1200 !important;
3528
3528
  }
3529
+
3530
+ /* === NexoWatt EOS v40: keep command dialogs technically accurate ========= */
@@ -31,7 +31,7 @@
31
31
  rel="stylesheet"
32
32
  href="css/leaflet.css"
33
33
  />
34
- <link rel="stylesheet" href="./css/eos-branding.css?v=39" />
34
+ <link rel="stylesheet" href="./css/eos-branding.css?v=40" />
35
35
  <link
36
36
  rel="manifest"
37
37
  href="manifest.json"
@@ -154,10 +154,10 @@
154
154
  <script type="module" crossorigin src="./assets/index-CQZugZ1z.js"></script>
155
155
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-BDBacUwf.js">
156
156
  <link rel="modulepreload" crossorigin href="./assets/iobroker_admin__mf_v__runtimeInit__mf_v__-g2X2zhAf.js">
157
- <script defer src="./js/eos-branding.js?v=39"></script>
158
- <script defer src="./js/eos-security-ui.js?v=39"></script>
159
- <script defer src="./js/eos-assistant.js?v=39"></script>
160
- <script defer src="./js/eos-objects-state-tools.js?v=39"></script>
157
+ <script defer src="./js/eos-branding.js?v=40"></script>
158
+ <script defer src="./js/eos-security-ui.js?v=40"></script>
159
+ <script defer src="./js/eos-assistant.js?v=40"></script>
160
+ <script defer src="./js/eos-objects-state-tools.js?v=40"></script>
161
161
  </head>
162
162
  <body>
163
163
  <noscript>You need to enable JavaScript to run this app.</noscript>
@@ -1,7 +1,7 @@
1
1
  (() => {
2
2
  'use strict';
3
3
 
4
- window.NEXOWATT_EOS_UI_VERSION = 'v39-object-state-tools';
4
+ window.NEXOWATT_EOS_UI_VERSION = 'v40-update-package-mapping';
5
5
 
6
6
  const BRAND = 'NexoWatt EOS';
7
7
  const EOS_MEANING = 'Energy Operation System';
@@ -156,10 +156,19 @@
156
156
  return next;
157
157
  };
158
158
 
159
+ const isCommandOrTechnicalOutput = el => {
160
+ if (!el || !el.closest) return false;
161
+ if (el.closest('textarea, pre, code, samp, kbd, .xterm, .xterm-screen, .terminal, [class*=\"Terminal\"], [class*=\"terminal\"], [class*=\"Console\"], [class*=\"console\"]')) return true;
162
+ const dialog = el.closest('.MuiDialog-root, [role=\"dialog\"]');
163
+ if (!dialog) return false;
164
+ const text = dialog.textContent || '';
165
+ return /(?:Befehl ausführen|Process exited|npm error|npm ERR|upgrade\s+eos-admin|Installing\s+iobroker\.|Installing\s+NexoWatt\s+EOS\.|NPM version|debug-0\.log)/i.test(text);
166
+ };
167
+
159
168
  const skipElement = el => {
160
169
  if (!el || el.nodeType !== 1) return false;
161
170
  const tag = el.tagName;
162
- return tag === 'SCRIPT' || tag === 'STYLE' || tag === 'TEXTAREA' || tag === 'INPUT' || tag === 'CODE' || tag === 'PRE';
171
+ return tag === 'SCRIPT' || tag === 'STYLE' || tag === 'TEXTAREA' || tag === 'INPUT' || tag === 'CODE' || tag === 'PRE' || tag === 'SAMP' || tag === 'KBD' || isCommandOrTechnicalOutput(el);
163
172
  };
164
173
 
165
174
  const patchTextNode = node => {