mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Slight tweak to text spacing in IRC node
(Thanks to _jhr007_ for spotting) Also taking chance to update to fa icons. Closes #359
This commit is contained in:
		| @@ -16,15 +16,15 @@ | ||||
|  | ||||
| <script type="text/x-red" data-template-name="irc in"> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-ircserver"><i class="icon-tasks"></i> IRC Server</label> | ||||
|         <label for="node-input-ircserver"><i class="fa fa-globe"></i> IRC Server</label> | ||||
|         <input type="text" id="node-input-ircserver"> | ||||
|     </div> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-channel"><i class="icon-tasks"></i> Channel</label> | ||||
|         <label for="node-input-channel"><i class="fa fa-random"></i> Channel</label> | ||||
|         <input type="text" id="node-input-channel" placeholder="#nodered"> | ||||
|     </div> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-name"><i class="icon-tag"></i> Name</label> | ||||
|         <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> | ||||
|         <input type="text" id="node-input-name" placeholder="Name"> | ||||
|     </div> | ||||
|     <div class="form-tips">The channel to join must start with a # (as per normal irc rules...)</div> | ||||
| @@ -114,15 +114,15 @@ | ||||
|  | ||||
| <script type="text/x-red" data-template-name="irc out"> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-ircserver"><i class="icon-tasks"></i> IRC Server</label> | ||||
|         <label for="node-input-ircserver"><i class="fa fa-globe"></i> IRC Server</label> | ||||
|         <input type="text" id="node-input-ircserver"> | ||||
|     </div> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-channel"><i class="icon-tasks"></i> Channel</label> | ||||
|         <label for="node-input-channel"><i class="fa fa-random"></i> Channel</label> | ||||
|         <input type="text" id="node-input-channel" placeholder="#nodered"> | ||||
|     </div> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-sendObject"><i class="icon-check"></i> Action</label> | ||||
|         <label for="node-input-sendObject"><i class="fa fa-arrows"></i> Action</label> | ||||
|         <select type="text" id="node-input-sendObject" style="display: inline-block; vertical-align: middle; width:70%;"> | ||||
|             <option value="pay">Send to channel</option> | ||||
|             <option value="true">Send to userid in msg.topic as PRIVMSG</option> | ||||
| @@ -130,7 +130,7 @@ | ||||
|         </select> | ||||
|     </div> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-input-name"><i class="icon-tag"></i> Name</label> | ||||
|         <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> | ||||
|         <input type="text" id="node-input-name" placeholder="Name"> | ||||
|     </div> | ||||
|     <div class="form-tips">The channel to join must start with a # (as per normal irc rules...)<br/> | ||||
| @@ -176,11 +176,11 @@ | ||||
|  | ||||
| <script type="text/x-red" data-template-name="irc-server"> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-config-input-server"><i class="icon-tasks"></i> IRC Server</label> | ||||
|         <label for="node-config-input-server"><i class="fa fa-globe"></i> IRC Server</label> | ||||
|         <input type="text" id="node-config-input-server" placeholder="irc.freenode.net"> | ||||
|     </div> | ||||
|     <div class="form-row"> | ||||
|         <label for="node-config-input-nickname"><i class="icon-tasks"></i> Nickname</label> | ||||
|         <label for="node-config-input-nickname"><i class="fa fa-user"></i> Nickname</label> | ||||
|         <input type="text" id="node-config-input-nickname" placeholder="joe123"> | ||||
|     </div> | ||||
| </script> | ||||
|   | ||||
| @@ -75,12 +75,12 @@ module.exports = function(RED) { | ||||
|         this.ircclient.addListener('part', function(channel, who, reason) { | ||||
|             var msg = { "payload": { "type":"part", "who":who, "channel":channel, "reason":reason } }; | ||||
|             node.send([null,msg]); | ||||
|             node.log(who+'has left '+channel+': '+reason); | ||||
|             node.log(who+' has left '+channel+': '+reason); | ||||
|         }); | ||||
|         this.ircclient.addListener('quit', function(nick, reason, channels, message) { | ||||
|             var msg = { "payload": { "type":"quit", "who":nick, "channel":channels, "reason":reason } }; | ||||
|             node.send([null,msg]); | ||||
|             node.log(nick+'has quit '+channels+': '+reason); | ||||
|             node.log(nick+' has quit '+channels+': '+reason); | ||||
|         }); | ||||
|         this.ircclient.addListener('kick', function(channel, who, by, reason) { | ||||
|             var msg = { "payload": { "type":"kick", "who":who, "channel":channel, "by":by, "reason":reason } }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user