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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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