ncy 3
This commit is contained in:
parent
6daa3aa443
commit
b04edfd913
@ -5,7 +5,7 @@
|
|||||||
defaults: {
|
defaults: {
|
||||||
name: {value:"Chats Out"},
|
name: {value:"Chats Out"},
|
||||||
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
||||||
recipient: {value:"", type:'numberRecipient', required:false}
|
recipient: {value:"", type:'number-recipient', required:false}
|
||||||
},
|
},
|
||||||
outputs:0,
|
outputs:0,
|
||||||
inputs:1,
|
inputs:1,
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
defaults: {
|
defaults: {
|
||||||
name: {value:"Group Message"},
|
name: {value:"Group Message"},
|
||||||
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
whatsappLink: {value:"whatsapp-web", type:'whatsappLink'},
|
||||||
recipient: {value:"", type:'groupRecipient', required:false}
|
recipient: {value:"", type:'group-recipient', required:false}
|
||||||
},
|
},
|
||||||
outputs:0,
|
outputs:0,
|
||||||
inputs:1,
|
inputs:1,
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('groupRecipient', {
|
RED.nodes.registerType('group-recipient', {
|
||||||
category: 'config',
|
category: 'config',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value: ""},
|
name: {value: ""},
|
||||||
@ -11,7 +11,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" data-template-name="groupRecipient">
|
<script type="text/html" data-template-name="group-recipient">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||||
<input type="text" id="node-config-input-name" placeholder="Name">
|
<input type="text" id="node-config-input-name" placeholder="Name">
|
||||||
@ -26,7 +26,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" data-help-name="groupRecipient">
|
<script type="text/html" data-help-name="group-recipient">
|
||||||
<p>Configuration node for a WhatsApp group recipient.</p>
|
<p>Configuration node for a WhatsApp group recipient.</p>
|
||||||
<h3>Details</h3>
|
<h3>Details</h3>
|
||||||
<p>This configuration node stores a group ID that can be reused across multiple group output nodes.</p>
|
<p>This configuration node stores a group ID that can be reused across multiple group output nodes.</p>
|
||||||
|
|||||||
@ -4,5 +4,5 @@ module.exports = function(RED) {
|
|||||||
this.groupId = n.groupId;
|
this.groupId = n.groupId;
|
||||||
this.name = n.name;
|
this.name = n.name;
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("groupRecipient", GroupRecipientNode);
|
RED.nodes.registerType("group-recipient", GroupRecipientNode);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('numberRecipient', {
|
RED.nodes.registerType('number-recipient', {
|
||||||
category: 'config',
|
category: 'config',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: {value: ""},
|
name: {value: ""},
|
||||||
@ -11,7 +11,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" data-template-name="numberRecipient">
|
<script type="text/html" data-template-name="number-recipient">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||||
<input type="text" id="node-config-input-name" placeholder="Name">
|
<input type="text" id="node-config-input-name" placeholder="Name">
|
||||||
@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" data-help-name="numberRecipient">
|
<script type="text/html" data-help-name="number-recipient">
|
||||||
<p>Configuration node for a WhatsApp chat recipient.</p>
|
<p>Configuration node for a WhatsApp chat recipient.</p>
|
||||||
<h3>Details</h3>
|
<h3>Details</h3>
|
||||||
<p>This configuration node stores a phone number that can be reused across multiple chat output nodes.</p>
|
<p>This configuration node stores a phone number that can be reused across multiple chat output nodes.</p>
|
||||||
|
|||||||
@ -4,5 +4,5 @@ module.exports = function(RED) {
|
|||||||
this.number = n.number;
|
this.number = n.number;
|
||||||
this.name = n.name;
|
this.name = n.name;
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("numberRecipient", NumberRecipientNode);
|
RED.nodes.registerType("number-recipient", NumberRecipientNode);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user