iobroker.sbfspot 4.0.7 → 4.1.1
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/.github/workflows/test-and-release.yml +6 -5
- package/LICENSE +18 -4
- package/README.md +9 -2
- package/io-package.json +25 -1
- package/lib/tools.js +2 -2
- package/main.js +119 -312
- package/package.json +16 -17
- package/sbfspot.njsproj +9 -4
- package/widgets/sbfspot/lib/js/flot/jquery.flot.hover.js +2 -0
- package/widgets/sbfspot/lib/js/flot/jquery.flot.js +148 -13
- package/widgets/sbfspot/lib/js/flot/jquery.flot.time.js +6 -7
- package/widgets/sbfspot/lib/js/lib/globalize.culture.en-US.js +33 -0
- package/widgets/sbfspot/lib/js/lib/globalize.js +1601 -0
- package/widgets/sbfspot/lib/js/lib/jquery.event.drag.js +145 -0
- package/widgets/sbfspot/lib/js/lib/jquery.mousewheel.js +86 -0
- package/widgets/sbfspot.html +123 -18
- package/lib/support_tools.js +0 -371
- package/widgets/sbfspot/lib/js/flot/jquery.flot.axislabels_V2.js +0 -469
- package/widgets/sbfspot/lib/js/flot/jquery.flot.axislabels_V3.js +0 -221
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
node-version: [12.x]
|
|
29
29
|
|
|
30
30
|
steps:
|
|
31
|
-
- uses: actions/checkout@
|
|
31
|
+
- uses: actions/checkout@v2
|
|
32
32
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
33
33
|
uses: actions/setup-node@v1
|
|
34
34
|
with:
|
|
@@ -51,14 +51,14 @@ jobs:
|
|
|
51
51
|
runs-on: ${{ matrix.os }}
|
|
52
52
|
strategy:
|
|
53
53
|
matrix:
|
|
54
|
-
node-version: [
|
|
54
|
+
node-version: [12.x, 14.x, 16.x]
|
|
55
55
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
56
56
|
exclude:
|
|
57
57
|
# Don't test Node.js 8 on Windows. npm is weird here
|
|
58
58
|
- os: windows-latest
|
|
59
59
|
node-version: 8.x
|
|
60
60
|
steps:
|
|
61
|
-
- uses: actions/checkout@
|
|
61
|
+
- uses: actions/checkout@v2
|
|
62
62
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
63
63
|
uses: actions/setup-node@v1
|
|
64
64
|
with:
|
|
@@ -78,7 +78,7 @@ jobs:
|
|
|
78
78
|
if: startsWith(runner.OS, 'windows')
|
|
79
79
|
run: set DEBUG=testing:* & npm run test:integration
|
|
80
80
|
|
|
81
|
-
# TODO: To enable automatic npm releases, create a token on npmjs.org
|
|
81
|
+
# TODO: To enable automatic npm releases, create a token on npmjs.org
|
|
82
82
|
# Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
|
|
83
83
|
# Then uncomment the following block:
|
|
84
84
|
|
|
@@ -90,6 +90,7 @@ jobs:
|
|
|
90
90
|
# if: |
|
|
91
91
|
# contains(github.event.head_commit.message, '[skip ci]') == false &&
|
|
92
92
|
# github.event_name == 'push' &&
|
|
93
|
+
# github.event.base_ref == 'refs/heads/master' &&
|
|
93
94
|
# startsWith(github.ref, 'refs/tags/v')
|
|
94
95
|
#
|
|
95
96
|
# runs-on: ubuntu-latest
|
|
@@ -98,7 +99,7 @@ jobs:
|
|
|
98
99
|
# node-version: [12.x]
|
|
99
100
|
#
|
|
100
101
|
# steps:
|
|
101
|
-
# - uses: actions/checkout@
|
|
102
|
+
# - uses: actions/checkout@v2
|
|
102
103
|
# - name: Use Node.js ${{ matrix.node-version }}
|
|
103
104
|
# uses: actions/setup-node@v1
|
|
104
105
|
# with:
|
package/LICENSE
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2017-2022 rg-engineering <info@rg-engineering.eu>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -51,7 +51,14 @@ sometimes npm intall must be called more then one time to successfully install a
|
|
|
51
51
|
|
|
52
52
|
## Changelog
|
|
53
53
|
|
|
54
|
-
### 4.
|
|
54
|
+
### 4.1.1 (2022-08-18)
|
|
55
|
+
* (René) tooltip in wizard added
|
|
56
|
+
* (René) flot and dependencies updated
|
|
57
|
+
|
|
58
|
+
### 4.0.8 (2021-07-11)
|
|
59
|
+
* (René) bug fix color of labels in widget
|
|
60
|
+
|
|
61
|
+
### 4.0.7 (2021-10-30)
|
|
55
62
|
* (René) see issue #62: avoid endless loop
|
|
56
63
|
* (René) update flot to 4.2.2
|
|
57
64
|
|
|
@@ -179,7 +186,7 @@ sometimes npm intall must be called more then one time to successfully install a
|
|
|
179
186
|
|
|
180
187
|
|
|
181
188
|
## License
|
|
182
|
-
Copyright (C) <2017-
|
|
189
|
+
Copyright (C) <2017-2022> <info@rg-engineering.eu>
|
|
183
190
|
|
|
184
191
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
185
192
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "sbfspot",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"4.1.1": {
|
|
7
|
+
"en": "widget with tooltip",
|
|
8
|
+
"de": "Widget mit Tooltip",
|
|
9
|
+
"ru": "виджет с подсказкой",
|
|
10
|
+
"pt": "widget com dica de ferramenta",
|
|
11
|
+
"nl": "widget met knopinfo",
|
|
12
|
+
"fr": "widget avec info-bulle",
|
|
13
|
+
"it": "widget con descrizione comando",
|
|
14
|
+
"es": "widget con información sobre herramientas",
|
|
15
|
+
"pl": "widżet z podpowiedź",
|
|
16
|
+
"zh-cn": "带有工具提示的小部件"
|
|
17
|
+
},
|
|
18
|
+
"4.0.8": {
|
|
19
|
+
"en": "bug fix color of labels in widget",
|
|
20
|
+
"de": "Fehlerkorrektur Farbe der Labels im Widget",
|
|
21
|
+
"ru": "исправлена ошибка цвета меток в виджете",
|
|
22
|
+
"pt": "correção de bug de cor de rótulos no widget",
|
|
23
|
+
"nl": "bug fix kleur van labels in widget",
|
|
24
|
+
"fr": "correction de bogues couleur des étiquettes dans le widget",
|
|
25
|
+
"it": "bug fix colore delle etichette nel widget",
|
|
26
|
+
"es": "corrección de errores de color de las etiquetas en el widget",
|
|
27
|
+
"pl": "naprawa błędu koloru etykiet w widżecie",
|
|
28
|
+
"zh-cn": "错误修复小部件中标签的颜色"
|
|
29
|
+
},
|
|
6
30
|
"4.0.7": {
|
|
7
31
|
"en": "avoid endles loops",
|
|
8
32
|
"de": "Endlosschleifen vermeiden",
|
package/lib/tools.js
CHANGED
|
@@ -56,7 +56,7 @@ async function translateYandex(text, targetLang, apiKey) {
|
|
|
56
56
|
}
|
|
57
57
|
try {
|
|
58
58
|
const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${apiKey}&text=${encodeURIComponent(text)}&lang=en-${targetLang}`;
|
|
59
|
-
const response = await axios({url, timeout: 15000});
|
|
59
|
+
const response = await axios({ url, timeout: 15000 });
|
|
60
60
|
if (response.data && response.data.text && isArray(response.data.text)) {
|
|
61
61
|
return response.data.text[0];
|
|
62
62
|
}
|
|
@@ -75,7 +75,7 @@ async function translateYandex(text, targetLang, apiKey) {
|
|
|
75
75
|
async function translateGoogle(text, targetLang) {
|
|
76
76
|
try {
|
|
77
77
|
const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(text)}&ie=UTF-8&oe=UTF-8`;
|
|
78
|
-
const response = await axios({url, timeout: 15000});
|
|
78
|
+
const response = await axios({ url, timeout: 15000 });
|
|
79
79
|
if (isArray(response.data)) {
|
|
80
80
|
// we got a valid response
|
|
81
81
|
return response.data[0][0][0];
|