mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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:
parent
8849f11eb5
commit
e256110eac
@ -16,15 +16,15 @@
|
|||||||
|
|
||||||
<script type="text/x-red" data-template-name="irc in">
|
<script type="text/x-red" data-template-name="irc in">
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-input-ircserver">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-input-channel" placeholder="#nodered">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-input-name" placeholder="Name">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-tips">The channel to join must start with a # (as per normal irc rules...)</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">
|
<script type="text/x-red" data-template-name="irc out">
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-input-ircserver">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-input-channel" placeholder="#nodered">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<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%;">
|
<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="pay">Send to channel</option>
|
||||||
<option value="true">Send to userid in msg.topic as PRIVMSG</option>
|
<option value="true">Send to userid in msg.topic as PRIVMSG</option>
|
||||||
@ -130,7 +130,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-input-name" placeholder="Name">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-tips">The channel to join must start with a # (as per normal irc rules...)<br/>
|
<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">
|
<script type="text/x-red" data-template-name="irc-server">
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-config-input-server" placeholder="irc.freenode.net">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<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">
|
<input type="text" id="node-config-input-nickname" placeholder="joe123">
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
@ -75,12 +75,12 @@ module.exports = function(RED) {
|
|||||||
this.ircclient.addListener('part', function(channel, who, reason) {
|
this.ircclient.addListener('part', function(channel, who, reason) {
|
||||||
var msg = { "payload": { "type":"part", "who":who, "channel":channel, "reason":reason } };
|
var msg = { "payload": { "type":"part", "who":who, "channel":channel, "reason":reason } };
|
||||||
node.send([null,msg]);
|
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) {
|
this.ircclient.addListener('quit', function(nick, reason, channels, message) {
|
||||||
var msg = { "payload": { "type":"quit", "who":nick, "channel":channels, "reason":reason } };
|
var msg = { "payload": { "type":"quit", "who":nick, "channel":channels, "reason":reason } };
|
||||||
node.send([null,msg]);
|
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) {
|
this.ircclient.addListener('kick', function(channel, who, by, reason) {
|
||||||
var msg = { "payload": { "type":"kick", "who":who, "channel":channel, "by":by, "reason":reason } };
|
var msg = { "payload": { "type":"kick", "who":who, "channel":channel, "by":by, "reason":reason } };
|
||||||
|
Loading…
Reference in New Issue
Block a user