refactord, tidied up, added icon for storage and a new node for writing buffers to storage files

This commit is contained in:
Peter Svensson
2019-07-02 20:43:04 +02:00
parent ae90a7c225
commit df5b5c8e82
26 changed files with 120 additions and 16 deletions

43
storage/storage-read.html Normal file
View File

@ -0,0 +1,43 @@
<script type="text/javascript">
RED.nodes.registerType('storage-read',{
category: 'firebase-admin',
color: '#a6bbcf',
defaults: {
name: {value:""},
path: {value:""},
bucket: {value:""},
cred: {value: "", type: 'firebase-config'}
},
inputs:1,
outputs:1,
icon: "storage.png",
label: function() {
return this.name||"storage-read";
}
});
</script>
<script type="text/x-red" data-template-name="storage-read">
<div class="form-row">
<label for="node-input-bucket"><i class="icon-tag"></i> Bucket Name</label>
<input type="text" id="node-input-bucket" placeholder="Bucket Name">
</div>
<div class="form-row">
<label for="node-input-path"><i class="icon-tag"></i> Path</label>
<input type="text" id="node-input-path" placeholder="Path">
</div>
<div class="form-row">
<label for="node-input-cred"><i class="icon-tag"></i> Credentials</label>
<input type="text" id="node-input-cred" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="storage-read">
<p>A node that read files from bucket path in google cloud storage</p>
</script>