addes storage-list and some supporting logic in storage-read
This commit is contained in:
49
storage/storage-list.html
Normal file
49
storage/storage-list.html
Normal file
@ -0,0 +1,49 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('storage-list',{
|
||||
|
||||
category: 'firebase-admin',
|
||||
color: '#a6bbcf',
|
||||
defaults: {
|
||||
name: {value:""},
|
||||
path: {value:""},
|
||||
bucket: {value:""},
|
||||
cred: {value: "", type: 'firebase-config'},
|
||||
delimiter: {value: '/'}
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "storage.png",
|
||||
label: function() {
|
||||
return this.name||"storage-list";
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-template-name="storage-list">
|
||||
<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="Cred">
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<label for="node-input-delimiter"><i class="icon-tag"></i> Delimiter</label>
|
||||
<input type="text" id="node-input-delimiter" placeholder="Delimiter">
|
||||
</div>
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="storage-list">
|
||||
<p>A node that list files from bucket path in google cloud storage</p>
|
||||
</script>
|
||||
Reference in New Issue
Block a user