浏览代码

Stripped out the date/time in node status

master
Massimo 5 年前
父节点
当前提交
941cb399f1
共有 5 个文件被更改,包括 11 次插入4 次删除
  1. +4
    -0
      CHANGELOG.md
  2. +2
    -1
      boolean-logic-ultimate/BooleanLogicUltimate.js
  3. +2
    -1
      boolean-logic-ultimate/FilterUltimate.js
  4. +2
    -1
      boolean-logic-ultimate/InvertUltimate.js
  5. +1
    -1
      package.json

+ 4
- 0
CHANGELOG.md 查看文件

@@ -1,5 +1,9 @@
# node-red-contrib-boolean-logic-ultimate
<p>
<b>Version 1.0.6</b><br/>
- Stripped out the date/time in node status<br/>
</p>
<p>
<b>Version 1.0.5</b><br/>
- Added the Last value change date/time in the status.<br/>
- Correction in the in-line help<br/>

+ 2
- 1
boolean-logic-ultimate/BooleanLogicUltimate.js 查看文件

@@ -163,7 +163,8 @@ module.exports = function(RED) {

function setNodeStatus({fill, shape, text})
{
node.status({fill: fill,shape: shape,text: text + " (Last " + new Date().toLocaleString() + ")"})
var dDate = new Date();
node.status({fill: fill,shape: shape,text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")"})
}

function CalculateResult(_operation) {

+ 2
- 1
boolean-logic-ultimate/FilterUltimate.js 查看文件

@@ -35,7 +35,8 @@ module.exports = function(RED) {
function setNodeStatus({fill, shape, text})
{
node.status({fill: fill,shape: shape,text: text + " (Last " + new Date().toLocaleString() + ")"})
var dDate = new Date();
node.status({fill: fill,shape: shape,text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")"})
}


+ 2
- 1
boolean-logic-ultimate/InvertUltimate.js 查看文件

@@ -40,7 +40,8 @@ module.exports = function(RED) {

function setNodeStatus({fill, shape, text})
{
node.status({fill: fill,shape: shape,text: text + " (Last " + new Date().toLocaleString() + ")"})
var dDate = new Date();
node.status({fill: fill,shape: shape,text: text + " (" + dDate.getDate() + ", " + dDate.toLocaleTimeString() + ")"})
}
}

+ 1
- 1
package.json 查看文件

@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-boolean-logic-ultimate",
"version": "1.0.5",
"version": "1.0.6",
"description": "A set of Node-RED enhanced boolean logic, with persisten values after reboot and more",
"author": "Supergiovane (https://github.com/Supergiovane)",
"dependencies": {

正在加载...
取消
保存