tidy some labels

This commit is contained in:
Dave Conway-Jones 2018-04-14 22:43:14 +01:00
parent 99b83ea4bd
commit 025f97206f
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
9 changed files with 18 additions and 4 deletions

View File

@ -40,7 +40,6 @@
RED.nodes.registerType('data-generator',{
color:"rgb(243, 181, 103)",
category: 'function',
paletteLabel:"data generator",
defaults: {
name: {value:""},
field: {value:"payload"},
@ -51,6 +50,9 @@
inputs:1,
outputs:1,
icon: "template.png",
paletteLabel: function() {
return this._("datagen.datagen");
},
label: function() {
return this.name || "data generator";
},

View File

@ -1,5 +1,6 @@
{
"datagen": {
"datagen": "datagenerator",
"label": {
"syntax": "Return",
"text": "a text string",

View File

@ -33,6 +33,9 @@
inputs:0,
outputs:1,
icon: "alert.png",
paletteLabel: function() {
return this._("ping.ping");
},
label: function() {
return this.name||this.host;
},

View File

@ -1,5 +1,6 @@
{
"ping": {
"ping": "ping",
"label": {
"target": "Target",
"ping": "Ping (S)"

View File

@ -1,5 +1,6 @@
{
"ping": {
"ping": "ping",
"label": {
"target": "対象",
"ping": "Ping (秒)"

View File

@ -93,6 +93,9 @@
outputs:0,
icon: "envelope.png",
align: "right",
paletteLabel: function() {
return this._("email.email");
},
label: function() {
return this.dname||this.name||"email";
},
@ -246,7 +249,7 @@
outputs:1,
icon: "envelope.png",
paletteLabel: function() {
return this.name||this._("email.email");
return this._("email.email");
},
label: function() {
return this.name||this._("email.email");

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-email",
"version": "0.1.27",
"version": "0.1.28",
"description": "Node-RED nodes to send and receive simple emails",
"dependencies": {
"nodemailer": "^1.11.0",

View File

@ -34,6 +34,9 @@
inputs:0,
outputs:1,
icon: "feed.png",
paletteLabel: function() {
return this._("feedparse.feedparse");
},
label: function() {
return this.name||this.url||this._("feedparse.feedparse");
},

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-feedparser",
"version": "0.1.12",
"version": "0.1.13",
"description": "A Node-RED node to get RSS Atom feeds.",
"dependencies": {
"feedparser": "^2.2.9",