iobroker.gotify-ws 0.1.4 → 0.1.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
@@ -65,6 +65,14 @@ You can then configure a notification service of your choice for forwarding.
65
65
  ---
66
66
  <!-- ### **WORK IN PROGRESS** -->
67
67
  ## Changelog
68
+ ### 0.1.6 (2024-09-10)
69
+ * (simatec) Fix Adapter Check
70
+ * (simatec) Dependencies updated
71
+ * (simatec) Responsive Design added
72
+
73
+ ### 0.1.5 (2024-07-22)
74
+ * (simatec) small fix
75
+
68
76
  ### 0.1.4 (2024-07-19)
69
77
  * (simatec) Dependencies updated
70
78
 
@@ -8,17 +8,22 @@
8
8
  "newLine": true,
9
9
  "style": {
10
10
  "fontSize": 20
11
- }
11
+ },
12
+ "xs": 10,
13
+ "sm": 10
12
14
  },
13
15
  "gotifySettings": {
14
16
  "newLine": true,
15
17
  "type": "header",
16
18
  "text": "Gotify Settings",
17
- "size": 2
19
+ "size": 2,
20
+ "xs": 12,
21
+ "sm": 12
18
22
  },
19
23
  "ip": {
20
24
  "type": "text",
21
25
  "label": "Gotify IP or Domain",
26
+ "xs": 12,
22
27
  "sm": 12,
23
28
  "md": 8,
24
29
  "lg": 4,
@@ -29,6 +34,7 @@
29
34
  "newLine": true
30
35
  },
31
36
  "port": {
37
+ "xs": 12,
32
38
  "sm": 12,
33
39
  "md": 8,
34
40
  "lg": 4,
@@ -45,6 +51,7 @@
45
51
  "type": "password",
46
52
  "visible": true,
47
53
  "label": "Gotify Token",
54
+ "xs": 12,
48
55
  "sm": 12,
49
56
  "md": 8,
50
57
  "lg": 4,
@@ -56,11 +63,14 @@
56
63
  "newLine": true,
57
64
  "type": "header",
58
65
  "text": "Notification Settings",
59
- "size": 2
66
+ "size": 2,
67
+ "xs": 12,
68
+ "sm": 12
60
69
  },
61
70
  "notificationType": {
62
71
  "type": "select",
63
72
  "label": "Notification type",
73
+ "xs": 12,
64
74
  "sm": 12,
65
75
  "md": 8,
66
76
  "lg": 4,
@@ -107,6 +117,7 @@
107
117
  "jsonData": "{ \"type\": \"email\" }",
108
118
  "hidden": "data.notificationType !== 'email'",
109
119
  "label": "E-Mail Instance",
120
+ "xs": 12,
110
121
  "sm": 12,
111
122
  "md": 8,
112
123
  "lg": 4,
@@ -116,6 +127,7 @@
116
127
  "type": "text",
117
128
  "hidden": "data.notificationType !== 'email'",
118
129
  "label": "E-Mail Receiver",
130
+ "xs": 12,
119
131
  "sm": 12,
120
132
  "md": 8,
121
133
  "lg": 4,
@@ -129,6 +141,7 @@
129
141
  "type": "text",
130
142
  "hidden": "data.notificationType !== 'email'",
131
143
  "label": "E-Mail Sender",
144
+ "xs": 12,
132
145
  "sm": 12,
133
146
  "md": 8,
134
147
  "lg": 4,
@@ -143,6 +156,7 @@
143
156
  "jsonData": "{ \"type\": \"matrix-org\" }",
144
157
  "hidden": "data.notificationType !== 'matrix-org'",
145
158
  "label": "Matrix Instance",
159
+ "xs": 12,
146
160
  "sm": 12,
147
161
  "md": 8,
148
162
  "lg": 4,
@@ -154,6 +168,7 @@
154
168
  "jsonData": "{ \"type\": \"notification-manager\" }",
155
169
  "hidden": "data.notificationType !== 'notification-manager'",
156
170
  "label": "Notification-Manager Instance",
171
+ "xs": 12,
157
172
  "sm": 12,
158
173
  "md": 8,
159
174
  "lg": 4,
@@ -165,6 +180,7 @@
165
180
  "jsonData": "{ \"type\": \"pushover\" }",
166
181
  "hidden": "data.notificationType !== 'pushover'",
167
182
  "label": "Pushover Instance",
183
+ "xs": 12,
168
184
  "sm": 12,
169
185
  "md": 8,
170
186
  "lg": 4,
@@ -174,6 +190,7 @@
174
190
  "type": "text",
175
191
  "hidden": "data.notificationType !== 'pushover'",
176
192
  "label": "Device ID",
193
+ "xs": 12,
177
194
  "sm": 12,
178
195
  "md": 8,
179
196
  "lg": 4,
@@ -184,6 +201,7 @@
184
201
  "type": "checkbox",
185
202
  "hidden": "data.notificationType !== 'pushover'",
186
203
  "label": "Silent Notice",
204
+ "xs": 12,
187
205
  "sm": 12,
188
206
  "md": 8,
189
207
  "lg": 4
@@ -194,6 +212,7 @@
194
212
  "jsonData": "{ \"type\": \"discord\" }",
195
213
  "hidden": "data.notificationType !== 'discord'",
196
214
  "label": "Discord Instance",
215
+ "xs": 12,
197
216
  "sm": 12,
198
217
  "md": 8,
199
218
  "lg": 4,
@@ -205,6 +224,7 @@
205
224
  "jsonData": "{ \"instance\": \"${data.discordInstance}\" }",
206
225
  "hidden": "data.notificationType !== 'discord'",
207
226
  "label": "Discord Target",
227
+ "xs": 12,
208
228
  "sm": 12,
209
229
  "md": 8,
210
230
  "lg": 4,
@@ -217,6 +237,7 @@
217
237
  "jsonData": "{ \"type\": \"signal-cmb\" }",
218
238
  "hidden": "data.notificationType !== 'signal-cmb'",
219
239
  "label": "Signal Instance",
240
+ "xs": 12,
220
241
  "sm": 12,
221
242
  "md": 8,
222
243
  "lg": 4,
@@ -228,6 +249,7 @@
228
249
  "jsonData": "{ \"type\": \"telegram\" }",
229
250
  "hidden": "data.notificationType !== 'telegram'",
230
251
  "label": "Telegram Instance",
252
+ "xs": 12,
231
253
  "sm": 12,
232
254
  "md": 8,
233
255
  "lg": 4,
@@ -240,6 +262,7 @@
240
262
  "hidden": "data.notificationType !== 'telegram'",
241
263
  "label": "Telegram User",
242
264
  "noTranslation": false,
265
+ "xs": 12,
243
266
  "sm": 12,
244
267
  "md": 8,
245
268
  "lg": 4,
@@ -251,6 +274,7 @@
251
274
  "jsonData": "{ \"type\": \"whatsapp-cmb\" }",
252
275
  "hidden": "data.notificationType !== 'whatsapp-cmb'",
253
276
  "label": "Whatsapp Instance",
277
+ "xs": 12,
254
278
  "sm": 12,
255
279
  "md": 8,
256
280
  "lg": 4,
@@ -259,27 +283,37 @@
259
283
  "_helpLine2": {
260
284
  "newLine": true,
261
285
  "type": "divider",
262
- "color": "secondary"
286
+ "color": "secondary",
287
+ "xs": 12,
288
+ "sm": 12
263
289
  },
264
290
  "_donateTxt": {
265
291
  "type": "staticText",
266
292
  "text": "If you like this project and would like to support its development, you are welcome to leave a donation.",
267
- "newLine": true
293
+ "newLine": true,
294
+ "xs": 12,
295
+ "sm": 12
268
296
  },
269
297
  "_donate": {
270
298
  "type": "staticImage",
271
299
  "tooltip": "PayPal.Me",
272
300
  "noTranslation": true,
273
301
  "href": "https://paypal.me/mk1676",
274
- "src": "https://camo.githubusercontent.com/bf0ea06ef4d9aa4dcb2f2990d99371e7a68e543ec49b788e481568a88c745502/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652532302537432532307370656e64656e2d626c75652e737667",
275
- "newLine": true
302
+ "src": "https://camo.githubusercontent.com/8402c5000216b140cf892ba21d3367647e0cc370ba89b3a8da1bc1b37a9e0696/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652532302537432532307370656e64656e2d626c75652e737667",
303
+ "newLine": true,
304
+ "xs": 6,
305
+ "sm": 6,
306
+ "lg": 1.1
276
307
  },
277
308
  "_githubSponsor": {
278
309
  "type": "staticImage",
279
310
  "tooltip": "GitHub Sponsors",
280
311
  "noTranslation": true,
281
312
  "href": "https://github.com/sponsors/simatec",
282
- "src": "https://camo.githubusercontent.com/365a269ff418d24bdf194ab15958a7545e2d9cc794be9e42933e57519e315b51/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d47697448756226636f6c6f723d253233666538653836"
313
+ "src": "https://camo.githubusercontent.com/6d24ad1fc18fa9d263cacee4c5d9aa8e15128bd5f3f3184f6f54d20e6a4ab63b/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d53706f6e736f72266d6573736167653d254532253944254134266c6f676f3d47697448756226636f6c6f723d253233666538653836",
314
+ "xs": 6,
315
+ "sm": 6,
316
+ "lg": 0.8
283
317
  }
284
318
  }
285
- }
319
+ }
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "gotify-ws",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
5
5
  "news": {
6
+ "0.1.6": {
7
+ "en": "Fix Adapter Check\nDependencies updated\nResponsive Design added",
8
+ "de": "Fix Adapter Überprüfung\nAusgaben aktualisiert\nResponsive Design hinzugefügt",
9
+ "ru": "Fix Adapter Проверка\nОбновленные данные о зависимостях\nResponsive Design",
10
+ "pt": "Adaptador de fixação Verificação\nDependências atualizadas\nDesign responsivo adicionado",
11
+ "nl": "Repareren Adapter Controleren\nAfhankelijkheden bijgewerkt\nResponsive Design toegevoegd",
12
+ "fr": "Correction de l'adaptateur Vérifier\nDépendances actualisées\nDesign sensible ajouté",
13
+ "it": "Adattatore di fissaggio Check\nDipendenze aggiornate\nResponsive Design aggiunto",
14
+ "es": "Adaptador de fijación Check\nActualización de las dependencias\nDiseño responsable añadido",
15
+ "pl": "Napraw adapter Sprawdź\nAktualizacja zależności\nDodano projekt odpowiedzialny",
16
+ "uk": "Фіксований адаптер Зареєструватися\nЗалежність оновлено\nДодано адаптивний дизайн",
17
+ "zh-cn": "修复适配器 检查\n更新的依赖关系\n添加响应设计"
18
+ },
19
+ "0.1.5": {
20
+ "en": "small fix",
21
+ "de": "kleine fix",
22
+ "ru": "небольшое исправление",
23
+ "pt": "pequena correção",
24
+ "nl": "kleine fix",
25
+ "fr": "petite fixation",
26
+ "it": "piccola correzione",
27
+ "es": "pequeño",
28
+ "pl": "mały fix",
29
+ "uk": "невелика фіксація",
30
+ "zh-cn": "小修补"
31
+ },
6
32
  "0.1.4": {
7
33
  "en": "Dependencies updated",
8
34
  "de": "Ausgaben aktualisiert",
@@ -67,19 +93,6 @@
67
93
  "pl": "Pierwsze wydanie",
68
94
  "uk": "(simatec) Перший реліз",
69
95
  "zh-cn": "第一次发布"
70
- },
71
- "0.0.1": {
72
- "en": "initial release",
73
- "de": "Erstveröffentlichung",
74
- "ru": "Начальная версия",
75
- "pt": "lançamento inicial",
76
- "nl": "Eerste uitgave",
77
- "fr": "Première version",
78
- "it": "Versione iniziale",
79
- "es": "Versión inicial",
80
- "pl": "Pierwsze wydanie",
81
- "zh-cn": "首次出版",
82
- "uk": "початковий випуск"
83
96
  }
84
97
  },
85
98
  "titleLang": {
@@ -144,7 +157,7 @@
144
157
  },
145
158
  "dependencies": [
146
159
  {
147
- "js-controller": ">=4.0.0"
160
+ "js-controller": ">=5.0.19"
148
161
  }
149
162
  ],
150
163
  "globalDependencies": [
package/main.js CHANGED
@@ -33,15 +33,15 @@ class GotifyWs extends utils.Adapter {
33
33
  systemLang = sysLang.common.language;
34
34
  }
35
35
 
36
- await this.setStateAsync('info.connection', false, true);
36
+ this.setState('info.connection', false, true);
37
37
  this.connectWebSocket();
38
38
  }
39
39
 
40
40
  /**
41
41
  * @param {() => void} callback
42
42
  */
43
- async onUnload(callback) {
44
- await this.setStateAsync('info.connection', false, true);
43
+ onUnload(callback) {
44
+ this.setState('info.connection', false, true);
45
45
 
46
46
  try {
47
47
  if (ws) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.gotify-ws",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Gotify web socket for connection to various notification systems",
5
5
  "author": {
6
6
  "name": "simatec",
@@ -9,6 +9,7 @@
9
9
  "homepage": "https://github.com/simatec/ioBroker.gotify-ws",
10
10
  "license": "MIT",
11
11
  "keywords": [
12
+ "ioBroker",
12
13
  "Gotify",
13
14
  "Websocket",
14
15
  "Telegram",
@@ -29,19 +30,19 @@
29
30
  "dependencies": {
30
31
  "@iobroker/adapter-core": "^3.1.6",
31
32
  "ws": "^8.18.0",
32
- "axios": "^1.7.2"
33
+ "axios": "^1.7.7"
33
34
  },
34
35
  "devDependencies": {
35
- "@alcalzone/release-script": "^3.7.3",
36
+ "@alcalzone/release-script": "^3.8.0",
36
37
  "@alcalzone/release-script-plugin-iobroker": "^3.7.2",
37
38
  "@alcalzone/release-script-plugin-license": "^3.7.0",
38
39
  "@alcalzone/release-script-plugin-manual-review": "^3.7.0",
39
40
  "@iobroker/adapter-dev": "^1.3.0",
40
41
  "@iobroker/testing": "^4.1.3",
41
- "chai": "^4.3.10",
42
+ "chai": "^4.5.0",
42
43
  "chai-as-promised": "^7.1.2",
43
- "eslint": "^9.7.0",
44
- "mocha": "^10.6.0",
44
+ "eslint": "^9.10.0",
45
+ "mocha": "^10.7.3",
45
46
  "sinon": "^18.0.0",
46
47
  "sinon-chai": "^3.7.0"
47
48
  },
@@ -49,7 +50,20 @@
49
50
  "files": [
50
51
  "admin{,/!(src)/**}/!(tsconfig|tsconfig.*|.eslintrc).json",
51
52
  "admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
53
+ "admin{,/!(i18n)/**}/flat.txt",
52
54
  "lib/",
55
+ "!lib/**/*.{sh,bat,log}",
56
+ "!.dev-server",
57
+ "!.vscode",
58
+ "!.github",
59
+ "!.git",
60
+ "!.DS_Store",
61
+ "!.gitignore",
62
+ "!.gitattributes",
63
+ "!node_modules",
64
+ "!tasks",
65
+ "!.idea",
66
+ "!test",
53
67
  "www/",
54
68
  "io-package.json",
55
69
  "LICENSE",