1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

lower case node name and pusher in fixes

fixed lower case node name and replace input node to ‘pusher in’
This commit is contained in:
hdoukas 2014-05-19 11:08:15 +02:00
parent 863ff7f18b
commit f831f0f502
2 changed files with 10 additions and 10 deletions

View File

@ -16,7 +16,7 @@
--> -->
<script type="text/x-red" data-template-name="Pusher"> <script type="text/x-red" data-template-name="pusher in">
<div class="form-row"> <div class="form-row">
<label for="node-input-topic"><i class="icon-tasks"></i>App Key:</label> <label for="node-input-topic"><i class="icon-tasks"></i>App Key:</label>
<input type="text" id="node-input-appkey_sub" placeholder="apikey"> <input type="text" id="node-input-appkey_sub" placeholder="apikey">
@ -40,13 +40,13 @@
</script> </script>
<!-- Next, some simple help text is provided for the node. --> <!-- Next, some simple help text is provided for the node. -->
<script type="text/x-red" data-help-name="Pusher"> <script type="text/x-red" data-help-name="pusher in">
<p>Pusher input mode. Use this node to subscribe to a Pusher channel/event. You need a valid Pusher App key.</p> <p>Pusher input mode. Use this node to subscribe to a Pusher channel/event. You need a valid Pusher App key.</p>
</script> </script>
<!-- Finally, the node type is registered along with all of its properties --> <!-- Finally, the node type is registered along with all of its properties -->
<script type="text/javascript"> <script type="text/javascript">
RED.nodes.registerType('Pusher',{ RED.nodes.registerType('pusher in',{
category: 'social-output', // the palette category category: 'social-output', // the palette category
color:"#A9D0F5", color:"#A9D0F5",
defaults: { // defines the editable properties of the node defaults: { // defines the editable properties of the node
@ -59,7 +59,7 @@
outputs:1, // set the number of outputs - 0 to n outputs:1, // set the number of outputs - 0 to n
icon: "pusher.png", // set the icon (held in public/icons) icon: "pusher.png", // set the icon (held in public/icons)
label: function() { // sets the default label contents label: function() { // sets the default label contents
return this.name||this.topic||"Pusher"; return this.name||this.topic||"pusher";
}, },
labelStyle: function() { // sets the class to apply to the label labelStyle: function() { // sets the class to apply to the label
return this.name?"node_label_italic":""; return this.name?"node_label_italic":"";
@ -87,7 +87,7 @@
}); });
</script> </script>
<script type="text/x-red" data-template-name="Pusher out"> <script type="text/x-red" data-template-name="pusher out">
<div class="form-row"> <div class="form-row">
<label for="node-input-topic"><i class="icon-tasks"></i>App ID:</label> <label for="node-input-topic"><i class="icon-tasks"></i>App ID:</label>
<input type="text" id="node-input-appid" placeholder="appid"> <input type="text" id="node-input-appid" placeholder="appid">
@ -121,13 +121,13 @@
</script> </script>
<!-- Next, some simple help text is provided for the node. --> <!-- Next, some simple help text is provided for the node. -->
<script type="text/x-red" data-help-name="Pusher out"> <script type="text/x-red" data-help-name="pusher out">
<p>Pusher output node for sending messages to a specific channel/event. You need an App key, secret and ID of a Pusher app. The node will send the payload of the incoming message.</p> <p>Pusher output node for sending messages to a specific channel/event. You need an App key, secret and ID of a Pusher app. The node will send the payload of the incoming message.</p>
</script> </script>
<!-- Finally, the node type is registered along with all of its properties --> <!-- Finally, the node type is registered along with all of its properties -->
<script type="text/javascript"> <script type="text/javascript">
RED.nodes.registerType('Pusher out',{ RED.nodes.registerType('pusher out',{
category: 'social-input', // the palette category category: 'social-input', // the palette category
color:"#A9D0F5", color:"#A9D0F5",
defaults: { // defines the editable properties of the node defaults: { // defines the editable properties of the node
@ -143,7 +143,7 @@
icon: "pusher.png", // set the icon (held in public/icons) icon: "pusher.png", // set the icon (held in public/icons)
align: "right", align: "right",
label: function() { // sets the default label contents label: function() { // sets the default label contents
return this.name||this.topic||"Pusher"; return this.name||this.topic||"pusher";
}, },
labelStyle: function() { // sets the class to apply to the label labelStyle: function() { // sets the class to apply to the label
return this.name?"node_label_italic":""; return this.name?"node_label_italic":"";

View File

@ -128,8 +128,8 @@ var displayError = function(err) {
// Register the node by name. This must be called before overriding any of the // Register the node by name. This must be called before overriding any of the
// Node functions. // Node functions.
RED.nodes.registerType("Pusher out",PusherNodeSend); RED.nodes.registerType("pusher out",PusherNodeSend);
RED.nodes.registerType("Pusher",PusherNode); RED.nodes.registerType("pusher in",PusherNode);
var querystring = require('querystring'); var querystring = require('querystring');