Skip to content

Commit 29aa875

Browse files
committed
Node-RED Scorecard
1 parent 3335718 commit 29aa875

8 files changed

Lines changed: 18 additions & 12 deletions

File tree

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ indent_style = tab
1313
indent_style = tab
1414

1515
[*.json]
16-
indent_size = 2
17-
indent_style = space
16+
indent_style = tab
1817

1918
[*.md]
2019
indent_size = 4

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ Meant to be combined with [node-red-contrib-chunks-to-lines](https://github.com/
88

99
Screenshot in the Node-RED Dashboard:
1010

11-
![Node-RED Dashboard upload widget](doc/dashboard.png)
11+
![Node-RED Dashboard upload widget](examples/dashboard.png)
1212

1313
In a Node-RED flow, this *Upload node* (using *text* transfer type) can advantageously be connected to some standard nodes such as:
1414

1515
* *Split node* using the option *Handle as a stream of messages*: to read one line at a time (works well, also for very large uploaded files)
1616
* *Join node* using the *automatic* mode: to reassemble the uploaded chunks into one single message / string (only for relatively small uploaded files, which can fit in memory)
1717

18-
Example: [flow.json](doc/flow.json)
18+
Example: [flow.json](examples/flow.json)
1919

20-
![Node-RED flow](doc/flow.png)
20+
![Node-RED flow](examples/flow.png)
2121

2222
But this node really shines when combined with the [node-red-contrib-chunks-to-lines](https://github.com/alexandrainst/node-red-contrib-chunks-to-lines) node, which can split in a more efficient way, e.g. safe for Unicode and with built-in backpressure for automatic buffering optimisation.
2323

24-
Example: [flow.json](https://github.com/alexandrainst/node-red-contrib-chunks-to-lines/blob/master/doc/flow.json)
24+
Example: [flow.json](https://github.com/alexandrainst/node-red-contrib-chunks-to-lines/blob/master/examples/flow.json)
2525

26-
![Node-RED flow](https://raw.githubusercontent.com/alexandrainst/node-red-contrib-chunks-to-lines/master/doc/flow.png)
26+
![Node-RED flow](https://raw.githubusercontent.com/alexandrainst/node-red-contrib-chunks-to-lines/master/examples/flow.png)
2727

2828
See also a more advanced [example of upload of a large CSV file to an SQL database](https://flows.nodered.org/flow/687918dd5cb66a3bfc2a661e15ef4237).
2929

@@ -49,6 +49,6 @@ This backpressure mechanism also gives time to other nodes communicating on the
4949

5050
## Credits
5151

52-
License: [Apache 2.0](LICENSE.md), 2020.
52+
License: [Apache 2.0](LICENSE.md), 2020-2022.
5353

5454
Originally made by [Alexandre Alapetite](https://alexandra.dk/alexandre.alapetite) at the [Alexandra Institute](https://alexandra.dk).
File renamed without changes.
File renamed without changes.

package-lock.json

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-contrib-ui-upload",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Node-RED Dashboard UI widget node for uploading a file content by Socket.io streaming",
55
"keywords": [
66
"upload",
@@ -19,7 +19,11 @@
1919
},
2020
"license": "Apache-2.0",
2121
"main": "ui_upload.js",
22+
"engines": {
23+
"node": ">=8"
24+
},
2225
"node-red": {
26+
"version": ">=0.20.0",
2327
"nodes": {
2428
"ui_upload": "ui_upload.js"
2529
}

ui_upload.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<p>UI widget node for uploading files content by Socket.io streaming</p>
3535
</script>
3636

37-
<script>
37+
<script type="text/javascript">
3838
/* global RED:false, $:false */
3939

4040
function uiUploadConf(NAME) {

0 commit comments

Comments
 (0)