Skip to content

Commit

Permalink
### 1.4.11 (2022-02-12)
Browse files Browse the repository at this point in the history
* (bluefox) Removed ES6 commands to be supported by older browsers
* (oweitman) Fixed problem with update of grouped widgets
* (stephanritscher) Added web manifest to be able to handle vis as the web app
  • Loading branch information
GermanBluefox committed Feb 12, 2022
1 parent 6fe4f64 commit 54ec004
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 21 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ Notice that these settings are valid only for reconnection and not for the first
### __WORK IN PROGRESS__
-->
## Changelog
### 1.4.10 (2022-02-12)
### 1.4.11 (2022-02-12)
* (bluefox) Removed ES6 commands to be supported by older browsers
* (oweitman) Fixed problem with update of grouped widgets
* (stephanritscher) Added web manifest to be able to handle vis as the web app

### 1.4.8 (2022-01-29)
* (bluefox) Added support for js-controller 4.x
Expand Down
24 changes: 12 additions & 12 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"common": {
"name": "vis",
"version": "1.4.10",
"version": "1.4.11",
"news": {
"1.4.10": {
"en": "Removed ES6 commands to be supported by older browsers",
"de": "Entfernte ES6-Befehle, die von älteren Browsern unterstützt werden sollen",
"ru": "Удалены команды ES6 для поддержки старых браузеров.",
"pt": "Comandos ES6 removidos para serem suportados por navegadores mais antigos",
"nl": "ES6-commando's verwijderd om door oudere browsers te worden ondersteund",
"fr": "Suppression des commandes ES6 pour qu'elles soient prises en charge par les anciens navigateurs",
"it": "Rimossi i comandi ES6 per essere supportati dai browser meno recenti",
"es": "Se eliminaron los comandos de ES6 para que sean compatibles con navegadores más antiguos.",
"pl": "Usunięto polecenia ES6, które mają być obsługiwane przez starsze przeglądarki",
"zh-cn": "删除了旧浏览器支持的 ES6 命令"
"1.4.11": {
"en": "Removed ES6 commands to be supported by older browsers\nFixed problem with update of grouped widgets\nAdded web manifest to be able to handle vis as the web app",
"de": "Entfernte ES6-Befehle, die von älteren Browsern unterstützt werden sollen\nProblem mit der Aktualisierung von gruppierten Widgets behoben\nWeb-Manifest hinzugefügt, um vis als Web-App handhaben zu können",
"ru": "Удалены команды ES6 для поддержки старых браузеров.\nИсправлена проблема с обновлением сгруппированных виджетов\nДобавлен веб-манифест, позволяющий обрабатывать vis как веб-приложение.",
"pt": "Comandos ES6 removidos para serem suportados por navegadores mais antigos\nCorrigido problema com atualização de widgets agrupados\nManifesto da web adicionado para poder lidar com vis como o aplicativo da web",
"nl": "ES6-commando's verwijderd om door oudere browsers te worden ondersteund\nProbleem opgelost met update van gegroepeerde widgets\nWebmanifest toegevoegd om vis als webapp te kunnen gebruiken",
"fr": "Suppression des commandes ES6 pour qu'elles soient prises en charge par les anciens navigateurs\nCorrection d'un problème avec la mise à jour des widgets groupés\nAjout d'un manifeste Web pour pouvoir gérer vis en tant qu'application Web",
"it": "Rimossi i comandi ES6 per essere supportati dai browser meno recenti\nRisolto il problema con l'aggiornamento dei widget raggruppati\nAggiunto manifesto web per poter gestire vis come app web",
"es": "Se eliminaron los comandos de ES6 para que sean compatibles con navegadores más antiguos.\nSolucionado el problema con la actualización de widgets agrupados\nSe agregó un manifiesto web para poder manejar vis como la aplicación web.",
"pl": "Usunięto polecenia ES6, które mają być obsługiwane przez starsze przeglądarki\nNaprawiono problem z aktualizacją zgrupowanych widżetów\nDodano manifest internetowy, aby móc obsługiwać vis jako aplikację internetową",
"zh-cn": "删除了旧浏览器支持的 ES6 命令\n修复了分组小部件更新的问题\n添加了 Web 清单,以便能够将 vis 作为 Web 应用程序处理"
},
"1.4.8": {
"en": "Added support for js-controller 4.x",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iobroker.vis",
"description": "Graphical user interface for ioBroker.",
"version": "1.4.10",
"version": "1.4.11",
"author": {
"name": "bluefox",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion www/cache.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CACHE MANIFEST
#
# vis Version 1.4.10
# vis Version 1.4.11
# dev build 0


Expand Down
2 changes: 1 addition & 1 deletion www/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--html manifest="cache.manifest" xmlns="http://www.w3.org/1999/html"--><html>
<head>

<!-- vis Version 1.4.10 -->
<!-- vis Version 1.4.11 -->

<!--
Use FireFox or Chrome with --allow-file-access-from-files flag to test DashUI local.
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!--html manifest="cache.manifest" xmlns="http://www.w3.org/1999/html"--><html>
<head>
<!-- vis Version 1.4.10 -->
<!-- vis Version 1.4.11 -->

<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand Down
6 changes: 4 additions & 2 deletions www/js/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ var FORBIDDEN_CHARS = /[^._\-/ :!#$%&()+=@^{}|~]+/g; // from https://github.com/
// var FORBIDDEN_CHARS = /[^._\-/ :!#$%&()+=@^{}|~\p{Ll}\p{Lu}\p{Nd}]+/gu; // it must be like this, but old browsers does not support Unicode

var vis = {
version: '1.4.10',
version: '1.4.11',
requiredServerVersion: '0.0.0',

storageKeyViews: 'visViews',
Expand Down Expand Up @@ -1119,7 +1119,9 @@ var vis = {
viewDiv = viewDiv || this.activeViewDiv;

this.destroyWidget(viewDiv, view, widget);
this.renderWidget(viewDiv, view, widget, !this.views[viewDiv] && viewDiv !== widget ? viewDiv : vis.views[view].widgets[widget].groupid ? vis.views[view].widgets[widget].groupid : null);
this.renderWidget(viewDiv, view, widget, !this.views[viewDiv] && viewDiv !== widget ?
viewDiv :
(vis.views[view].widgets[widget].groupid ? vis.views[view].widgets[widget].groupid : null));

updateContainers && this.updateContainers(viewDiv, view);
},
Expand Down
8 changes: 6 additions & 2 deletions www/js/visEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -6821,8 +6821,12 @@ vis = $.extend(true, vis, {
//var rect = this.editWidgetsRect(viewDiv, view, groupId);
for (w = 0; w < widgets.length; w++) {
if (!this.views[view].widgets[widgets[w]]) continue;
if (this.views[view].widgets[widgets[w]].grouped !== undefined) delete this.views[view].widgets[widgets[w]].grouped;
if (this.views[view].widgets[widgets[w]].groupid !== undefined) delete this.views[view].widgets[widgets[w]].groupid;
if (this.views[view].widgets[widgets[w]].grouped !== undefined) {
delete this.views[view].widgets[widgets[w]].grouped;
}
if (this.views[view].widgets[widgets[w]].groupid !== undefined) {
delete this.views[view].widgets[widgets[w]].groupid;
}
var wRect = this.editWidgetsRect(viewDiv, view, widgets[w]);
this.views[view].widgets[widgets[w]].style.top = wRect.top + 'px';
this.views[view].widgets[widgets[w]].style.left = wRect.left + 'px';
Expand Down

0 comments on commit 54ec004

Please sign in to comment.