Skip to content

Commit

Permalink
chore: release v2.0.3
Browse files Browse the repository at this point in the history
- (@GermanBluefox) Corrected the convert functionality
  • Loading branch information
GermanBluefox committed Jan 8, 2025
1 parent dc3e448 commit 0829234
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ You can debug view charts locally with:
-->

## Changelog
### **WORK IN PROGRESS**
### 2.0.3 (2025-01-08)

- (@GermanBluefox) Corrected the convert functionality

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion admin/chart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
document.head.appendChild(script);
</script>
<title>Echarts [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-C-7EcNoE.js"></script>
<script type="module" crossorigin src="./assets/index-BCztFPsf.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-VI9R7d-i.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion build-backend/lib/ChartModel.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build-backend/lib/ChartModel.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "echarts",
"version": "2.0.2",
"version": "2.0.3",
"news": {
"2.0.3": {
"en": "Corrected the convert functionality",
"de": "Korrektur der Konvertierungsfunktionalität",
"ru": "Исправлена функция конвертации",
"pt": "Corrigido a funcionalidade de conversão",
"nl": "Gecorrigeerd de convert functionaliteit",
"fr": "Correction de la fonctionnalité de conversion",
"it": "Corretto la funzionalità di conversione",
"es": "Corregido la funcionalidad de conversión",
"pl": "Korekta funkcji konwersji",
"uk": "Виправлено функціонал перетворення",
"zh-cn": "纠正了转换功能"
},
"2.0.2": {
"en": "Project was completely rewritten with TypeScript\nBetter mobile layouts added",
"de": "Projekt wurde komplett mit TypeScript neu geschrieben\nBessere mobile Layouts hinzugefügt",
Expand Down Expand Up @@ -80,19 +93,6 @@
"pl": "Wstępna możliwość ukrywania wartości w przyszłości",
"uk": "Додана можливість приховати значення в майбутньому",
"zh-cn": "增加今后隐藏价值的选择"
},
"1.7.1": {
"en": "Added X-Label offset\nCorrected icons in the object selection dialog",
"de": "X-Label Offset hinzugefügt\nKorrigierte Icons im Objektauswahldialog",
"ru": "Добавлена компенсация X-Label\nИсправлены иконки в диалоге выбора объекта",
"pt": "Adicionado X-Label offset\nÍcones corrigidos na caixa de diálogo seleção de objetos",
"nl": "Vertaling:\nVertaling:",
"fr": "Ajout de X-Label\nLes icônes corrigées dans le dialogue de sélection d'objets",
"it": "Aggiunto X-Label offset\nLe icone corrette nella finestra di dialogo selezione oggetto",
"es": "Offset X-Label\nIconos corregidos en el diálogo de selección de objetos",
"pl": "Added X-Label offset\nKwalifikowane ikony w dialogach do wyboru obiektów",
"uk": "Доданий X-Label зсув\nВиправлені іконки в діалоговому вікні вибору об'єкта",
"zh-cn": "增加X-Label抵消\n目标选择口号中的对应线"
}
},
"titleLang": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.echarts",
"version": "2.0.2",
"version": "2.0.3",
"description": "Build useful charts in ioBroker",
"author": {
"name": "bluefox",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ChartModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ class ChartModel {
convert = `return ${convert}`;
}
try {
convertFunc = new Function('val', convert) as (val: number) => number;
this.convertFunctions[line.convert.trim()] = new Function('val', convert) as (val: number) => number;
} catch (e) {
console.error(`[ChartModel] Cannot parse convert function: ${e}`);
}
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
document.head.appendChild(script);
</script>
<title>Echarts [ioBroker]</title>
<script type="module" crossorigin src="./assets/index-C-7EcNoE.js"></script>
<script type="module" crossorigin src="./assets/index-BCztFPsf.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-VI9R7d-i.css">
</head>
<body>
Expand Down

0 comments on commit 0829234

Please sign in to comment.