Pārlūkot izejas kodu

Fixed conflict issue if you have the old boolean logic installed

master
Massimo pirms 5 gadiem
vecāks
revīzija
7a5c1698be
4 mainītis faili ar 14 papildinājumiem un 10 dzēšanām
  1. +4
    -0
      CHANGELOG.md
  2. +6
    -6
      boolean-logic-ultimate/InvertUltimate.html
  3. +2
    -2
      boolean-logic-ultimate/InvertUltimate.js
  4. +2
    -2
      package.json

+ 4
- 0
CHANGELOG.md Parādīt failu

@@ -1,5 +1,9 @@
# node-red-contrib-boolean-logic-ultimate
<p>
<b>Version 0.0.4</b><br/>
- Fixed conflict issue if you have the old boolean logic installed<br/>
</p>
<p>
<b>Version 0.0.3</b><br/>
- Fixed status display<br/>
</p>

boolean-logic-ultimate/Invert.html → boolean-logic-ultimate/InvertUltimate.html Parādīt failu

@@ -1,10 +1,10 @@
<script type="text/javascript">
RED.nodes.registerType('Invert',{
RED.nodes.registerType('InvertUltimate',{
category: 'boolean logic ultimate',
color: '#ff8080',
defaults: {
name: {
value: "Invert"
value: "InvertUltimate"
}
},
inputs:1,
@@ -12,22 +12,22 @@
icon: "serial.png",
label:
function() {
return this.name||"Invert";
return this.name||"InvertUltimate";
},
paletteLabel: function() {
return "Invert";
return "InvertUltimate";
}
});
</script>

<script type="text/x-red" data-template-name="Invert">
<script type="text/x-red" data-template-name="InvertUltimate">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>

<script type="text/x-red" data-help-name="Invert">
<script type="text/x-red" data-help-name="InvertUltimate">
<p>A node that emits the inverted input value.<br/>
The status indicator represents the output value.
</p>

boolean-logic-ultimate/Invert.js → boolean-logic-ultimate/InvertUltimate.js Parādīt failu

@@ -1,5 +1,5 @@
module.exports = function(RED) {
function Invert(config) {
function InvertUltimate(config) {
RED.nodes.createNode(this,config);
this.config = config;
var node = this;
@@ -39,5 +39,5 @@ module.exports = function(RED) {
}
RED.nodes.registerType("Invert",Invert);
RED.nodes.registerType("InvertUltimate",InvertUltimate);
}

+ 2
- 2
package.json Parādīt failu

@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-boolean-logic-ultimate",
"version": "0.0.3",
"version": "0.0.4",
"description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more",
"author": "Supergiovane (https://github.com/Supergiovane)",
"dependencies": {
@@ -19,7 +19,7 @@
"node-red": {
"nodes": {
"BooleanLogicUltimate": "boolean-logic-ultimate/BooleanLogicUltimate.js",
"Invert": "boolean-logic-ultimate/Invert.js"
"InvertUltimate": "boolean-logic-ultimate/InvertUltimate.js"
}
}
}

Notiek ielāde…
Atcelt
Saglabāt