iobroker.staticsfilefolder 0.0.13 → 0.0.18
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/LICENSE +1 -1
- package/README.md +24 -5
- package/admin/staticsfilefolder.png +0 -0
- package/io-package.json +63 -50
- package/lib/web.js +2 -2
- package/main.js +1 -1
- package/package.json +9 -18
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2026 gokturk413 <gokturk413@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -55,15 +55,34 @@ Once configured and the instance is running (green status):
|
|
|
55
55
|
---
|
|
56
56
|
|
|
57
57
|
### Requirements
|
|
58
|
-
* Node.js
|
|
59
|
-
* ioBroker JS-Controller >=
|
|
58
|
+
* Node.js 22.x or higher
|
|
59
|
+
* ioBroker JS-Controller >= 6.0.11
|
|
60
60
|
* ioBroker Web Adapter >= 4.0.0
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
## Changelog
|
|
63
|
+
<!--
|
|
64
|
+
Placeholder for the next version (at the beginning of the line):
|
|
65
|
+
### **WORK IN PROGRESS**
|
|
66
|
+
-->
|
|
67
|
+
### 0.0.18
|
|
68
|
+
* Cleaned up npm lockfile and forced hoisting of test dependencies.
|
|
69
|
+
|
|
70
|
+
### 0.0.15
|
|
71
|
+
* Reverted minimum Node.js engine requirement to 20 to support GitHub Actions runners.
|
|
72
|
+
|
|
73
|
+
### 0.0.13
|
|
74
|
+
* Fixed repochecker error validation requirements (gitignore and dependabot ignore rules).
|
|
75
|
+
|
|
76
|
+
### 0.0.12
|
|
77
|
+
* Automatically detect ioBroker system language. Added German and Russian translations.
|
|
78
|
+
|
|
79
|
+
### 0.0.11
|
|
80
|
+
* Added multi-language support (English and Azerbaijani) with English as the default.
|
|
81
|
+
|
|
82
|
+
### 0.0.1
|
|
64
83
|
* (gokturk413) initial release: SPA, Offline document viewers, Chokidar file observer.
|
|
65
84
|
|
|
66
|
-
|
|
85
|
+
## License
|
|
67
86
|
MIT License
|
|
68
87
|
|
|
69
88
|
Copyright (c) 2026 gokturk413 <gokturk413@gmail.com>
|
|
Binary file
|
package/io-package.json
CHANGED
|
@@ -1,59 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "staticsfilefolder",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.18",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.0.18": {
|
|
7
|
+
"en": "Cleaned up npm lockfile and forced hoisting of test dependencies.",
|
|
8
|
+
"de": "Npm-Lockfile bereinigt und das Hosten von Test-Abhängigkeiten erzwungen.",
|
|
9
|
+
"ru": "Очищен npm lockfile и принудительно подняты зависимости для тестирования.",
|
|
10
|
+
"pt": "Limpo o lockfile do npm e forçado o hoisting das dependências de teste.",
|
|
11
|
+
"nl": "Npm lockfile opgeschoond en hoisting van test-afhankelijkheden geforceerd.",
|
|
12
|
+
"fr": "Nettoyage du fichier de verrouillage npm et forçage du hoisting des dépendances de test.",
|
|
13
|
+
"it": "Pulito il file di blocco npm e forzato l'hoisting delle dipendenze di test.",
|
|
14
|
+
"es": "Se limpió el archivo de bloqueo npm y se forzó la elevación de las dependencias de prueba.",
|
|
15
|
+
"pl": "Oczyszczono plik blokady npm i wymuszono hoisting zależności testowych.",
|
|
16
|
+
"uk": "Очищено файл блокування npm та примусово піднято залежності для тестування.",
|
|
17
|
+
"zh-cn": "清理了npm锁文件并强制提升测试依赖项。"
|
|
18
|
+
},
|
|
19
|
+
"0.0.15": {
|
|
20
|
+
"en": "Reverted minimum Node.js engine requirement to 20 to support GitHub Actions runners.",
|
|
21
|
+
"de": "Mindestanforderung für Node.js auf 20 zurückgesetzt, um GitHub Actions-Runner zu unterstützen.",
|
|
22
|
+
"ru": "Требование минимальной версии Node.js возвращено на 20 для поддержки GitHub Actions.",
|
|
23
|
+
"pt": "Requisito mínimo do Node.js revertido para 20 para suportar os runners do GitHub Actions.",
|
|
24
|
+
"nl": "Minimale Node.js-vereiste teruggebracht naar 20 ter ondersteuning van GitHub Actions-runners.",
|
|
25
|
+
"fr": "Exigence minimale de Node.js rétablie à 20 pour prendre en charge les runners GitHub Actions.",
|
|
26
|
+
"it": "Requisito minimo di Node.js ripristinato a 20 per supportare i runner di GitHub Actions.",
|
|
27
|
+
"es": "Requisito mínimo de Node.js revertido a 20 para admitir los runners de GitHub Actions.",
|
|
28
|
+
"pl": "Wymaganie minimalnej wersji Node.js przywrócone do 20 w celu obsługi runnerów GitHub Actions.",
|
|
29
|
+
"uk": "Мінімальна вимога Node.js повернута до 20 для підтримки GitHub Actions.",
|
|
30
|
+
"zh-cn": "将最低Node.js引擎要求恢复为20以支持GitHub Actions运行器。"
|
|
31
|
+
},
|
|
6
32
|
"0.0.13": {
|
|
7
|
-
"en": "Fixed repochecker error validation requirements (gitignore and dependabot ignore rules)."
|
|
33
|
+
"en": "Fixed repochecker error validation requirements (gitignore and dependabot ignore rules).",
|
|
34
|
+
"de": "Fehlerhafte Repochecker-Validierungsanforderungen behoben (gitignore- und dependabot-Ignorierregeln).",
|
|
35
|
+
"ru": "Исправлены ошибки валидации repochecker (правила gitignore и dependabot).",
|
|
36
|
+
"pt": "Corrigidos requisitos de validação do repochecker (regras gitignore e dependabot).",
|
|
37
|
+
"nl": "Repochecker-validatievereisten opgelost (gitignore- en dependabot-regels).",
|
|
38
|
+
"fr": "Correction des exigences de validation du repochecker (règles gitignore et dependabot).",
|
|
39
|
+
"it": "Corretti i requisiti di validazione del repochecker (regole gitignore e dependabot).",
|
|
40
|
+
"es": "Se corrigieron los requisitos de validación del repochecker (reglas gitignore y dependabot).",
|
|
41
|
+
"pl": "Naprawiono wymagania walidacji repochecker (reguły gitignore i dependabot).",
|
|
42
|
+
"uk": "Виправлено вимоги валідації repochecker (правила gitignore та dependabot).",
|
|
43
|
+
"zh-cn": "修复了repochecker错误验证要求(gitignore和dependabot忽略规则)。"
|
|
8
44
|
},
|
|
9
45
|
"0.0.12": {
|
|
10
|
-
"en": "Automatically detect ioBroker system language. Added German and Russian translations."
|
|
46
|
+
"en": "Automatically detect ioBroker system language. Added German and Russian translations.",
|
|
47
|
+
"de": "ioBroker-Systemsprache automatisch erkennen. Deutsche und russische Übersetzungen hinzugefügt.",
|
|
48
|
+
"ru": "Автоматическое определение языка системы ioBroker. Добавлены немецкий и русский переводы.",
|
|
49
|
+
"pt": "Detectar automaticamente o idioma do sistema ioBroker. Adicionadas traduções em alemão e russo.",
|
|
50
|
+
"nl": "Automatische detectie van de ioBroker-systeemtaal. Duitse en Russische vertalingen toegevoegd.",
|
|
51
|
+
"fr": "Détection automatique de la langue du système ioBroker. Ajout de traductions en allemand et en russe.",
|
|
52
|
+
"it": "Rilevamento automatico della lingua del sistema ioBroker. Aggiunte traduzioni in tedesco e russo.",
|
|
53
|
+
"es": "Detectar automáticamente el idioma del sistema ioBroker. Se agregaron traducciones en alemán y ruso.",
|
|
54
|
+
"pl": "Automatyczne wykrywanie języka systemu ioBroker. Dodano tłumaczenia na niemiecki i rosyjski.",
|
|
55
|
+
"uk": "Автоматичне визначення мови системи ioBroker. Додано переклади німецькою та російською.",
|
|
56
|
+
"zh-cn": "自动检测ioBroker系统语言。添加了德语和俄语翻译。"
|
|
11
57
|
},
|
|
12
58
|
"0.0.11": {
|
|
13
|
-
"en": "Added multi-language support (English and Azerbaijani) with English as the default."
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"0.0.7": {
|
|
25
|
-
"en": "Removed white background square from the adapter logo to make it transparent."
|
|
26
|
-
},
|
|
27
|
-
"0.0.6": {
|
|
28
|
-
"en": "Changed adapter mode to daemon so the main process runs and observes files correctly."
|
|
29
|
-
},
|
|
30
|
-
"0.0.5": {
|
|
31
|
-
"en": "Added print, download, and file-navigation controls inside the file viewer modal."
|
|
32
|
-
},
|
|
33
|
-
"0.0.4": {
|
|
34
|
-
"en": "Defined latest_file_url and latest_file_path states in instanceObjects so they are created automatically upon installation."
|
|
35
|
-
},
|
|
36
|
-
"0.0.3": {
|
|
37
|
-
"en": "Fixed UI theme button visibility in dark mode and resolved PDF opening issue."
|
|
38
|
-
},
|
|
39
|
-
"0.0.2": {
|
|
40
|
-
"en": "Added UI Theme support, fixed Node.js version compatibility issues and updated tests."
|
|
41
|
-
},
|
|
42
|
-
"0.0.1": {
|
|
43
|
-
"en": "initial release",
|
|
44
|
-
"de": "Erstveröffentlichung",
|
|
45
|
-
"ru": "Начальная версия",
|
|
46
|
-
"pt": "lançamento inicial",
|
|
47
|
-
"nl": "Eerste uitgave",
|
|
48
|
-
"fr": "Première version",
|
|
49
|
-
"it": "Versione iniziale",
|
|
50
|
-
"es": "Versión inicial",
|
|
51
|
-
"pl": "Pierwsze wydanie",
|
|
52
|
-
"uk": "Початкова версія",
|
|
53
|
-
"zh-cn": "首次出版"
|
|
59
|
+
"en": "Added multi-language support (English and Azerbaijani) with English as the default.",
|
|
60
|
+
"de": "Mehrsprachige Unterstützung (Englisch und Aserbaidschanisch) hinzugefügt, mit Englisch als Standard.",
|
|
61
|
+
"ru": "Добавлена многоязычная поддержка (английский и азербайджанский) с английским по умолчанию.",
|
|
62
|
+
"pt": "Adicionado suporte multilíngue (inglês e azerbaijano) com inglês como padrão.",
|
|
63
|
+
"nl": "Meertalige ondersteuning toegevoegd (Engels en Azerbeidzjaans) met Engels als standaard.",
|
|
64
|
+
"fr": "Ajout du support multilingue (anglais et azerbaïdjanais) avec l'anglais par défaut.",
|
|
65
|
+
"it": "Aggiunto supporto multilingue (inglese e azerbaigiano) con inglese come predefinito.",
|
|
66
|
+
"es": "Se agregó soporte multilingüe (inglés y azerbaiyano) con inglés como predeterminado.",
|
|
67
|
+
"pl": "Dodano obsługę wielu języków (angielski i azerski) z angielskim jako domyślnym.",
|
|
68
|
+
"uk": "Додано багатомовну підтримку (англійська та азербайджанська) з англійською за замовчуванням.",
|
|
69
|
+
"zh-cn": "添加了多语言支持(英语和阿塞拜疆语),默认为英语。"
|
|
54
70
|
}
|
|
55
71
|
},
|
|
56
|
-
"title": "Static Files Folder",
|
|
57
72
|
"titleLang": {
|
|
58
73
|
"en": "Static Files Folder",
|
|
59
74
|
"de": "Statischer Dateiordner",
|
|
@@ -84,6 +99,7 @@
|
|
|
84
99
|
"gokturk413 <gokturk413@gmail.com>"
|
|
85
100
|
],
|
|
86
101
|
"keywords": [
|
|
102
|
+
"ioBroker",
|
|
87
103
|
"Static Files Directory Browsing"
|
|
88
104
|
],
|
|
89
105
|
"licenseInformation": {
|
|
@@ -91,7 +107,6 @@
|
|
|
91
107
|
"license": "MIT"
|
|
92
108
|
},
|
|
93
109
|
"platform": "Javascript/Node.js",
|
|
94
|
-
"main": "main.js",
|
|
95
110
|
"icon": "staticsfilefolder.png",
|
|
96
111
|
"enabled": true,
|
|
97
112
|
"extIcon": "https://raw.githubusercontent.com/gokturk413/ioBroker.staticsfilefolder/main/admin/staticsfilefolder.png",
|
|
@@ -109,19 +124,17 @@
|
|
|
109
124
|
},
|
|
110
125
|
"dependencies": [
|
|
111
126
|
{
|
|
112
|
-
"js-controller": ">=
|
|
127
|
+
"js-controller": ">=6.0.11",
|
|
113
128
|
"web": ">=4.0.0"
|
|
114
129
|
}
|
|
115
130
|
],
|
|
116
131
|
"globalDependencies": [
|
|
117
132
|
{
|
|
118
|
-
"admin": ">=
|
|
133
|
+
"admin": ">=7.6.20"
|
|
119
134
|
}
|
|
120
135
|
]
|
|
121
136
|
},
|
|
122
137
|
"native": {
|
|
123
|
-
"option1": true,
|
|
124
|
-
"option2": "42",
|
|
125
138
|
"webInstance": "*"
|
|
126
139
|
},
|
|
127
140
|
"objects": [],
|
package/lib/web.js
CHANGED
package/main.js
CHANGED
|
@@ -62,7 +62,7 @@ class Staticsfilefolder extends utils.Adapter {
|
|
|
62
62
|
this.log.info("Starting file observer on: " + this.config.dirname);
|
|
63
63
|
try {
|
|
64
64
|
const chokidar = require("chokidar");
|
|
65
|
-
const path = require("path");
|
|
65
|
+
const path = require("node:path");
|
|
66
66
|
|
|
67
67
|
this.watcher = chokidar.watch(this.config.dirname, {
|
|
68
68
|
ignored: /(^|[/\\])\../, // ignore dotfiles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.staticsfilefolder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "Static Files Folder",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "gokturk413",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"homepage": "https://github.com/gokturk413/ioBroker.staticsfilefolder",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"keywords": [
|
|
12
|
+
"ioBroker",
|
|
12
13
|
"Static Files Directory Browsing"
|
|
13
14
|
],
|
|
14
15
|
"repository": {
|
|
@@ -16,35 +17,25 @@
|
|
|
16
17
|
"url": "https://github.com/gokturk413/ioBroker.staticsfilefolder.git"
|
|
17
18
|
},
|
|
18
19
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
20
|
+
"node": ">= 22"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@iobroker/adapter-core": "^3.
|
|
23
|
+
"@iobroker/adapter-core": "^3.4.1",
|
|
23
24
|
"chokidar": "^5.0.0",
|
|
24
25
|
"express": "^4.18.3"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@alcalzone/release-script": "^
|
|
28
|
-
"@alcalzone/release-script-plugin-iobroker": "^
|
|
29
|
-
"@alcalzone/release-script-plugin-license": "^
|
|
30
|
-
"@alcalzone/release-script-plugin-manual-review": "^
|
|
28
|
+
"@alcalzone/release-script": "^5.2.1",
|
|
29
|
+
"@alcalzone/release-script-plugin-iobroker": "^5.2.0",
|
|
30
|
+
"@alcalzone/release-script-plugin-license": "^5.2.0",
|
|
31
|
+
"@alcalzone/release-script-plugin-manual-review": "^5.2.0",
|
|
31
32
|
"@iobroker/adapter-dev": "^1.3.0",
|
|
32
|
-
"@iobroker/testing": "^
|
|
33
|
+
"@iobroker/testing": "^5.2.2",
|
|
33
34
|
"@tsconfig/node18": "^18.2.2",
|
|
34
|
-
"@types/chai": "^4.3.12",
|
|
35
|
-
"@types/chai-as-promised": "^7.1.8",
|
|
36
|
-
"@types/mocha": "^10.0.6",
|
|
37
35
|
"@types/node": "^18.19.24",
|
|
38
36
|
"@types/proxyquire": "^1.3.31",
|
|
39
|
-
"@types/sinon": "^17.0.3",
|
|
40
|
-
"@types/sinon-chai": "^3.2.12",
|
|
41
|
-
"chai": "^4.4.1",
|
|
42
|
-
"chai-as-promised": "^7.1.1",
|
|
43
37
|
"eslint": "^8.57.0",
|
|
44
|
-
"mocha": "^10.3.0",
|
|
45
38
|
"proxyquire": "^2.1.3",
|
|
46
|
-
"sinon": "^17.0.1",
|
|
47
|
-
"sinon-chai": "^3.7.0",
|
|
48
39
|
"typescript": "~5.0.4"
|
|
49
40
|
},
|
|
50
41
|
"main": "main.js",
|