iobroker.admin 5.4.4 → 5.4.6

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
@@ -90,8 +90,9 @@ The icons may not be reused in other projects without the proper flaticon licens
90
90
  -->
91
91
 
92
92
  ## Changelog
93
- ### 5.4.4 (2022-05-07)
93
+ ### 5.4.6 (2022-05-09)
94
94
  * (bluefox) Corrected readLogs command
95
+ * (bluefox) Corrected file deletion
95
96
 
96
97
  ### 5.4.3 (2022-05-06)
97
98
  * (bluefox) Used common sockets (could be buggy)
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "admin",
4
- "version": "5.4.4",
4
+ "version": "5.4.6",
5
5
  "titleLang": {
6
6
  "en": "Admin",
7
7
  "de": "Admin",
@@ -18,17 +18,17 @@
18
18
  "connectionType": "local",
19
19
  "dataSource": "push",
20
20
  "news": {
21
- "5.4.4": {
22
- "en": "Corrected readLogs command",
23
- "de": "readLogs-Befehl korrigiert",
24
- "ru": "Исправлена команда readLogs",
25
- "pt": "Comando readLogs corrigido",
26
- "nl": "Gecorrigeerde readLogs-opdracht",
27
- "fr": "Commande readLogs corrigée",
28
- "it": "Corretto il comando readLogs",
29
- "es": "Comando readLogs corregido",
30
- "pl": "Poprawiono polecenie readLogs",
31
- "zh-cn": "更正了 readLogs 命令"
21
+ "5.4.6": {
22
+ "en": "Corrected readLogs command\nCorrected file deletion",
23
+ "de": "readLogs-Befehl korrigiert\nKorrigierte Dateilöschung",
24
+ "ru": "Исправлена команда readLogs\nИсправлено удаление файла",
25
+ "pt": "Comando readLogs corrigido\nExclusão de arquivo corrigida",
26
+ "nl": "Gecorrigeerde readLogs-opdracht\nGecorrigeerde bestandsverwijdering",
27
+ "fr": "Commande readLogs corrigée\nSuppression de fichier corrigée",
28
+ "it": "Corretto il comando readLogs\nEliminazione file corretta",
29
+ "es": "Comando readLogs corregido\nEliminación de archivos corregidos",
30
+ "pl": "Poprawiono polecenie readLogs\nPoprawione usuwanie plików",
31
+ "zh-cn": "更正了 readLogs 命令\n更正文件删除"
32
32
  },
33
33
  "5.4.3": {
34
34
  "en": "Used common sockets (could be buggy)\nAdded chips to JSON config",
package/main.js CHANGED
@@ -18,7 +18,7 @@ const axios = require('axios');
18
18
  const fs = require('fs');
19
19
 
20
20
  const utils = require('@iobroker/adapter-core'); // Get common adapter utils
21
- const tools = require('@iobroker/js-controller-common').tools;
21
+ const tools = require(utils.controllerDir + '/lib/tools.js');
22
22
  const SocketAdmin = require('@iobroker/socket-classes').SocketAdmin;
23
23
  const ws = require('@iobroker/ws-server');
24
24
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "iobroker.admin",
3
3
  "description": "The adapter opens a webserver for the ioBroker admin UI.",
4
- "version": "5.4.4",
4
+ "version": "5.4.6",
5
5
  "contributors": [
6
6
  "bluefox <dogafox@gmail.com>",
7
7
  "apollon77",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@iobroker/adapter-core": "^2.6.0",
27
27
  "@iobroker/ws-server": "^2.0.0",
28
- "@iobroker/socket-classes": ">=0.1.8",
28
+ "@iobroker/socket-classes": ">=0.2.0",
29
29
  "body-parser": "^1.20.0",
30
30
  "compression": "^1.7.4",
31
31
  "connect-flash": "^0.1.1",
@@ -9,8 +9,8 @@
9
9
  "static/js/3.a2a63ebe.chunk.js": "./static/js/3.a2a63ebe.chunk.js",
10
10
  "static/js/3.a2a63ebe.chunk.js.map": "./static/js/3.a2a63ebe.chunk.js.map",
11
11
  "main.css": "./static/css/main.a362ebcf.chunk.css",
12
- "main.js": "./static/js/main.fbab4596.chunk.js",
13
- "main.js.map": "./static/js/main.fbab4596.chunk.js.map",
12
+ "main.js": "./static/js/main.002094c6.chunk.js",
13
+ "main.js.map": "./static/js/main.002094c6.chunk.js.map",
14
14
  "runtime-main.js": "./static/js/runtime-main.30dbb973.js",
15
15
  "runtime-main.js.map": "./static/js/runtime-main.30dbb973.js.map",
16
16
  "static/css/6.bf6a767f.chunk.css": "./static/css/6.bf6a767f.chunk.css",
@@ -469,7 +469,7 @@
469
469
  "static/js/2.a09bf46c.chunk.js.LICENSE.txt": "./static/js/2.a09bf46c.chunk.js.LICENSE.txt",
470
470
  "static/js/6.d1f21f08.chunk.js.LICENSE.txt": "./static/js/6.d1f21f08.chunk.js.LICENSE.txt",
471
471
  "static/js/8.428bbe53.chunk.js.LICENSE.txt": "./static/js/8.428bbe53.chunk.js.LICENSE.txt",
472
- "static/js/main.fbab4596.chunk.js.LICENSE.txt": "./static/js/main.fbab4596.chunk.js.LICENSE.txt",
472
+ "static/js/main.002094c6.chunk.js.LICENSE.txt": "./static/js/main.002094c6.chunk.js.LICENSE.txt",
473
473
  "static/media/Alarm Systems.svg": "./static/media/Alarm Systems.857ab9a8.svg",
474
474
  "static/media/Amplifier.svg": "./static/media/Amplifier.6f5d1804.svg",
475
475
  "static/media/Anteroom.svg": "./static/media/Anteroom.93a74213.svg",
@@ -638,6 +638,6 @@
638
638
  "static/css/6.bf6a767f.chunk.css",
639
639
  "static/js/6.d1f21f08.chunk.js",
640
640
  "static/css/main.a362ebcf.chunk.css",
641
- "static/js/main.fbab4596.chunk.js"
641
+ "static/js/main.002094c6.chunk.js"
642
642
  ]
643
643
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><meta name="theme-color" content="#000000"/><meta name="description" content="admin - ioBroker"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="stylesheet" href="./css/leaflet.css"/><link rel="manifest" href="./manifest.json"/><script type="text/javascript" onerror="setTimeout(function(){window.location.reload()}, 5000)" src="./lib/js/socket.io.js"></script><script type="text/javascript" src="./lib/js/sparkline.js"></script><title>Admin</title><script>window.loginHideLogo="@@loginHideLogo@@",window.loginMotto="@@loginMotto@@",window.login="@@auth@@",window.loginLogo="@@loginLogo@@",window.loginLink="@@loginLink@@",window.loginTitle="@@loginTitle@@",window.vendorPrefix="@@vendorPrefix@@",window.loginBackgroundColor="@@loginBackgroundColor@@",window.disableDataReporting="@@disableDataReporting@@"</script><style>body{background-color:@@loginBackgroundColor@@;background-image:url(@@loginBackgroundImage@@);background-size:cover}.root{background-color:rgba(255,255,255,.87);border-radius:10px}.unsupported{width:200px;background-color:#aaa;margin:auto;margin-top:3rem;padding:10px;line-height:25px;border-radius:4px;text-align:center}.leaflet-container{height:400px;width:100%}</style><script>window.addEventListener("load",(function e(n){window.removeEventListener("load",e,!1);if(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./)){const e=document.getElementById("root");e.classList.add("unsupported"),e.innerHTML="Browser is not supported. Please use Firefox or Chrome."}}),!1)</script><link href="./static/css/6.bf6a767f.chunk.css" rel="stylesheet"><link href="./static/css/main.a362ebcf.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],l=0,d=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(t);d.length;)d.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{7:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",7:"41d5431a",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===n||i===a))return t()}var l=document.getElementsByTagName("style");for(f=0;f<l.length;f++){var s;if((i=(s=l[f]).getAttribute("data-href"))===n||i===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],d.parentNode.removeChild(d),r(c)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"c09b4f8b",1:"646c1242",2:"a09bf46c",3:"a2a63ebe",7:"74947acd",8:"428bbe53",9:"baa4a83c",10:"f7657bca",11:"68c631d8",12:"6fe66e07",13:"3ef7ca28",14:"8b22b82b",15:"d0aff369",16:"98a955aa"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="./",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpsrc-rx"]=this["webpackJsonpsrc-rx"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var s=i;r()}([])</script><script src="./static/js/6.d1f21f08.chunk.js"></script><script src="./static/js/main.fbab4596.chunk.js"></script></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no"/><meta name="theme-color" content="#000000"/><meta name="description" content="admin - ioBroker"/><link rel="apple-touch-icon" href="./logo192.png"/><link rel="stylesheet" href="./css/leaflet.css"/><link rel="manifest" href="./manifest.json"/><script type="text/javascript" onerror="setTimeout(function(){window.location.reload()}, 5000)" src="./lib/js/socket.io.js"></script><script type="text/javascript" src="./lib/js/sparkline.js"></script><title>Admin</title><script>window.loginHideLogo="@@loginHideLogo@@",window.loginMotto="@@loginMotto@@",window.login="@@auth@@",window.loginLogo="@@loginLogo@@",window.loginLink="@@loginLink@@",window.loginTitle="@@loginTitle@@",window.vendorPrefix="@@vendorPrefix@@",window.loginBackgroundColor="@@loginBackgroundColor@@",window.disableDataReporting="@@disableDataReporting@@"</script><style>body{background-color:@@loginBackgroundColor@@;background-image:url(@@loginBackgroundImage@@);background-size:cover}.root{background-color:rgba(255,255,255,.87);border-radius:10px}.unsupported{width:200px;background-color:#aaa;margin:auto;margin-top:3rem;padding:10px;line-height:25px;border-radius:4px;text-align:center}.leaflet-container{height:400px;width:100%}</style><script>window.addEventListener("load",(function e(n){window.removeEventListener("load",e,!1);if(window.navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./)){const e=document.getElementById("root");e.classList.add("unsupported"),e.innerHTML="Browser is not supported. Please use Firefox or Chrome."}}),!1)</script><link href="./static/css/6.bf6a767f.chunk.css" rel="stylesheet"><link href="./static/css/main.a362ebcf.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],f=t[1],i=t[2],l=0,d=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(t);d.length;)d.shift()();return c.push.apply(c,i||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var f=r[o];0!==a[f]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{7:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",7:"41d5431a",8:"31d6cfe0",9:"31d6cfe0",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"31d6cfe0",14:"31d6cfe0",15:"31d6cfe0",16:"31d6cfe0"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===n||i===a))return t()}var l=document.getElementsByTagName("style");for(f=0;f<l.length;f++){var s;if((i=(s=l[f]).getAttribute("data-href"))===n||i===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],d.parentNode.removeChild(d),r(c)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"c09b4f8b",1:"646c1242",2:"a09bf46c",3:"a2a63ebe",7:"74947acd",8:"428bbe53",9:"baa4a83c",10:"f7657bca",11:"68c631d8",12:"6fe66e07",13:"3ef7ca28",14:"8b22b82b",15:"d0aff369",16:"98a955aa"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){f.onerror=f.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:f})}),12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="./",u.oe=function(e){throw console.error(e),e};var f=this["webpackJsonpsrc-rx"]=this["webpackJsonpsrc-rx"]||[],i=f.push.bind(f);f.push=t,f=f.slice();for(var l=0;l<f.length;l++)t(f[l]);var s=i;r()}([])</script><script src="./static/js/6.d1f21f08.chunk.js"></script><script src="./static/js/main.002094c6.chunk.js"></script></body></html>