iobroker.staticsfilefolder 0.0.2 → 0.0.4
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/io-package.json +35 -2
- package/package.json +1 -1
- package/www/app.js +1 -1
- package/www/style.css +1 -0
package/io-package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "staticsfilefolder",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.0.4": {
|
|
7
|
+
"en": "Defined latest_file_url and latest_file_path states in instanceObjects so they are created automatically upon installation."
|
|
8
|
+
},
|
|
9
|
+
"0.0.3": {
|
|
10
|
+
"en": "Fixed UI theme button visibility in dark mode and resolved PDF opening issue."
|
|
11
|
+
},
|
|
6
12
|
"0.0.2": {
|
|
7
13
|
"en": "Added UI Theme support, fixed Node.js version compatibility issues and updated tests."
|
|
8
14
|
},
|
|
@@ -92,5 +98,32 @@
|
|
|
92
98
|
"webInstance": "*"
|
|
93
99
|
},
|
|
94
100
|
"objects": [],
|
|
95
|
-
"instanceObjects": [
|
|
101
|
+
"instanceObjects": [
|
|
102
|
+
{
|
|
103
|
+
"_id": "latest_file_url",
|
|
104
|
+
"type": "state",
|
|
105
|
+
"common": {
|
|
106
|
+
"name": "Latest File URL",
|
|
107
|
+
"type": "string",
|
|
108
|
+
"role": "url",
|
|
109
|
+
"read": true,
|
|
110
|
+
"write": false,
|
|
111
|
+
"def": ""
|
|
112
|
+
},
|
|
113
|
+
"native": {}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"_id": "latest_file_path",
|
|
117
|
+
"type": "state",
|
|
118
|
+
"common": {
|
|
119
|
+
"name": "Latest File Path",
|
|
120
|
+
"type": "string",
|
|
121
|
+
"role": "value",
|
|
122
|
+
"read": true,
|
|
123
|
+
"write": false,
|
|
124
|
+
"def": ""
|
|
125
|
+
},
|
|
126
|
+
"native": {}
|
|
127
|
+
}
|
|
128
|
+
]
|
|
96
129
|
}
|
package/package.json
CHANGED
package/www/app.js
CHANGED
|
@@ -246,7 +246,7 @@ async function openPdf(url) {
|
|
|
246
246
|
viewerBody.innerHTML = '<h2>PDF Yüklənir...</h2>';
|
|
247
247
|
|
|
248
248
|
try {
|
|
249
|
-
const loadingTask = window.pdfjsLib.getDocument(url);
|
|
249
|
+
const loadingTask = window.pdfjsLib.getDocument({ url: url });
|
|
250
250
|
const pdf = await loadingTask.promise;
|
|
251
251
|
viewerBody.innerHTML = ''; // clear loading
|
|
252
252
|
|