mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update all node icons to SVG
When listing icons provided by a module, if there is a png and svg with the same name, only the svg will be listed. If a node asks for a png icon which is not known, but there is a corresponding svg, that will be used instead.
This commit is contained in:
@@ -168,7 +168,7 @@
|
||||
once: {value:false},
|
||||
onceDelay: {value:0.1}
|
||||
},
|
||||
icon: "inject.png",
|
||||
icon: "inject.svg",
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
outputLabels: function(index) {
|
||||
|
@@ -34,7 +34,7 @@
|
||||
},
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "alert.png",
|
||||
icon: "alert.svg",
|
||||
label: function() {
|
||||
if (this.name) {
|
||||
return this.name;
|
||||
|
@@ -22,14 +22,14 @@
|
||||
<script type="text/javascript">
|
||||
RED.nodes.registerType('status',{
|
||||
category: 'input',
|
||||
color:"#c0edc0",
|
||||
color:"#d9f4fd",
|
||||
defaults: {
|
||||
name: {value:""},
|
||||
scope: {value:null}
|
||||
},
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "alert.png",
|
||||
icon: "alert.svg",
|
||||
label: function() {
|
||||
return this.name||(this.scope?this._("status.statusNodes",{number:this.scope.length}):this._("status.status"));
|
||||
},
|
||||
|
@@ -65,7 +65,7 @@
|
||||
color:"#87a980",
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
icon: "debug.png",
|
||||
icon: "debug.svg",
|
||||
align: "right",
|
||||
button: {
|
||||
toggle: "active",
|
||||
|
@@ -170,7 +170,7 @@
|
||||
},
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "link-out.png",
|
||||
icon: "link-out.svg",
|
||||
outputLabels: function(i) {
|
||||
return this.name||this._("link.linkIn");
|
||||
},
|
||||
@@ -200,7 +200,7 @@
|
||||
align:"right",
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
icon: "link-out.png",
|
||||
icon: "link-out.svg",
|
||||
inputLabels: function(i) {
|
||||
return this.name||this._("link.linkOut");
|
||||
},
|
||||
|
@@ -73,7 +73,7 @@
|
||||
this._("exec.label.retcode")
|
||||
][i];
|
||||
},
|
||||
icon: "arrow-in.png",
|
||||
icon: "arrow-in.svg",
|
||||
align: "right",
|
||||
label: function() {
|
||||
return this.name||this.command||(this.useSpawn=="true"?this._("exec.spawn"):this._("exec.exec"));
|
||||
|
@@ -31,7 +31,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "function.png",
|
||||
icon: "function.svg",
|
||||
label: function() {
|
||||
return this.name||this._("function.function");
|
||||
},
|
||||
|
@@ -63,7 +63,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "template.png",
|
||||
icon: "template.svg",
|
||||
label: function() {
|
||||
return this.name||this._("template.template");;
|
||||
},
|
||||
|
@@ -114,7 +114,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "timer.png",
|
||||
icon: "timer.svg",
|
||||
label: function() {
|
||||
if (this.name) {
|
||||
return this.name;
|
||||
|
@@ -87,7 +87,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "trigger.png",
|
||||
icon: "trigger.svg",
|
||||
label: function() {
|
||||
if (this.duration > 0) {
|
||||
return this.name|| this._("trigger.label.trigger")+" "+this.duration+this.units;
|
||||
|
@@ -20,7 +20,7 @@
|
||||
},
|
||||
inputs:0,
|
||||
outputs:0,
|
||||
icon: "comment.png",
|
||||
icon: "comment.svg",
|
||||
label: function() {
|
||||
return this.name||this._("comment.comment");
|
||||
},
|
||||
|
@@ -57,7 +57,7 @@
|
||||
color:"#d8bfd8",
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "bridge.png",
|
||||
icon: "bridge.svg",
|
||||
label: function() {
|
||||
return this.name||this.topic||"mqtt";
|
||||
},
|
||||
@@ -118,7 +118,7 @@
|
||||
color:"#d8bfd8",
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
icon: "bridge.png",
|
||||
icon: "bridge.svg",
|
||||
align: "right",
|
||||
label: function() {
|
||||
return this.name||this.topic||"mqtt";
|
||||
|
@@ -77,7 +77,7 @@
|
||||
},
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "white-globe.png",
|
||||
icon: "white-globe.svg",
|
||||
label: function() {
|
||||
if (this.name) {
|
||||
return this.name;
|
||||
@@ -152,7 +152,7 @@
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
align: "right",
|
||||
icon: "white-globe.png",
|
||||
icon: "white-globe.svg",
|
||||
label: function() {
|
||||
return this.name||("http"+(this.statusCode?" ("+this.statusCode+")":""));
|
||||
},
|
||||
|
@@ -117,7 +117,7 @@
|
||||
obj: this._("httpin.label.jsonObject")
|
||||
}[this.ret]);
|
||||
},
|
||||
icon: "white-globe.png",
|
||||
icon: "white-globe.svg",
|
||||
label: function() {
|
||||
return this.name||this._("httpin.httpreq");
|
||||
},
|
||||
|
@@ -106,7 +106,7 @@
|
||||
color:"rgb(215, 215, 160)",
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "white-globe.png",
|
||||
icon: "white-globe.svg",
|
||||
labelStyle: function() {
|
||||
return this.name?"node_label_italic":"";
|
||||
},
|
||||
@@ -125,7 +125,7 @@
|
||||
color:"rgb(215, 215, 160)",
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
icon: "white-globe.png",
|
||||
icon: "white-globe.svg",
|
||||
align: "right",
|
||||
labelStyle: function() {
|
||||
return this.name?"node_label_italic":"";
|
||||
|
@@ -42,7 +42,7 @@
|
||||
color:"BurlyWood",
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "watch.png",
|
||||
icon: "watch.svg",
|
||||
label: function() {
|
||||
return this.name||this.files||this._("watch.watch");
|
||||
},
|
||||
|
@@ -72,7 +72,7 @@
|
||||
},
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "bridge-dash.png",
|
||||
icon: "bridge-dash.svg",
|
||||
label: function() {
|
||||
return this.name || "tcp:"+(this.host?this.host+":":"")+this.port;
|
||||
},
|
||||
@@ -155,7 +155,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
icon: "bridge-dash.png",
|
||||
icon: "bridge-dash.svg",
|
||||
align: "right",
|
||||
label: function() {
|
||||
return this.name || "tcp:"+(this.host?this.host+":":"")+this.port;
|
||||
@@ -226,7 +226,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "bridge-dash.png",
|
||||
icon: "bridge-dash.svg",
|
||||
label: function() {
|
||||
return this.name || "tcp:"+(this.server?this.server+":":"")+this.port;
|
||||
},
|
||||
|
@@ -70,7 +70,7 @@
|
||||
},
|
||||
inputs:0,
|
||||
outputs:1,
|
||||
icon: "bridge-dash.png",
|
||||
icon: "bridge-dash.svg",
|
||||
label: function() {
|
||||
if (this.multicast=="false") {
|
||||
return this.name||"udp "+this.port;
|
||||
@@ -173,7 +173,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:0,
|
||||
icon: "bridge-dash.png",
|
||||
icon: "bridge-dash.svg",
|
||||
align: "right",
|
||||
label: function() {
|
||||
return this.name||"udp "+(this.addr+":"+this.port);
|
||||
|
@@ -117,7 +117,7 @@
|
||||
return label;
|
||||
}
|
||||
},
|
||||
icon: "switch.png",
|
||||
icon: "switch.svg",
|
||||
label: function() {
|
||||
return this.name||this._("switch.switch");
|
||||
},
|
||||
|
@@ -28,7 +28,7 @@
|
||||
},
|
||||
inputs: 1,
|
||||
outputs: 1,
|
||||
icon: "swap.png",
|
||||
icon: "swap.svg",
|
||||
label: function() {
|
||||
function prop2name(type, key) {
|
||||
var result = RED.utils.parseContextKey(key);
|
||||
|
@@ -52,7 +52,7 @@
|
||||
},
|
||||
inputs: 1,
|
||||
outputs: 1,
|
||||
icon: "range.png",
|
||||
icon: "range.svg",
|
||||
label: function() {
|
||||
if (this.minout !== "" && this.maxout !== "") { return this.name||this.minout + " - " + this.maxout; }
|
||||
else { return this.name||this._("range.range"); }
|
||||
|
@@ -61,7 +61,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "split.png",
|
||||
icon: "split.svg",
|
||||
label: function() {
|
||||
return this.name||this._("split.split");
|
||||
},
|
||||
@@ -218,7 +218,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "join.png",
|
||||
icon: "join.svg",
|
||||
label: function() {
|
||||
return this.name||this._("join.join");
|
||||
},
|
||||
|
@@ -75,7 +75,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "sort.png",
|
||||
icon: "sort.svg",
|
||||
label: function() {
|
||||
return this.name||this._("sort.sort");
|
||||
},
|
||||
|
@@ -81,7 +81,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "batch.png",
|
||||
icon: "batch.svg",
|
||||
label: function() {
|
||||
return this.name||this._("batch.batch");;
|
||||
},
|
||||
|
@@ -78,7 +78,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "parser-csv.png",
|
||||
icon: "parser-csv.svg",
|
||||
label: function() {
|
||||
return this.name||"csv";
|
||||
},
|
||||
|
@@ -49,7 +49,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "parser-html.png",
|
||||
icon: "parser-html.svg",
|
||||
label: function() {
|
||||
return this.name||this.tag||"html";
|
||||
},
|
||||
|
@@ -37,7 +37,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "parser-json.png",
|
||||
icon: "parser-json.svg",
|
||||
label: function() {
|
||||
return this.name||"json";
|
||||
},
|
||||
|
@@ -32,7 +32,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "parser-xml.png",
|
||||
icon: "parser-xml.svg",
|
||||
label: function() {
|
||||
return this.name||"xml";
|
||||
},
|
||||
|
@@ -20,7 +20,7 @@
|
||||
},
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "parser-yaml.png",
|
||||
icon: "parser-yaml.svg",
|
||||
label: function() {
|
||||
return this.name||"yaml";
|
||||
},
|
||||
|
@@ -205,7 +205,7 @@
|
||||
color:"BurlyWood",
|
||||
inputs:1,
|
||||
outputs:1,
|
||||
icon: "file-out.png",
|
||||
icon: "file-out.svg",
|
||||
label: function() {
|
||||
if (this.overwriteFile === "delete") {
|
||||
return this.name||this._("file.label.deletelabel",{file:this.filename});
|
||||
@@ -273,7 +273,7 @@
|
||||
outputLabels: function(i) {
|
||||
return (this._((this.format === "utf8") ? "file.label.utf8String" : "file.label.binaryBuffer"));
|
||||
},
|
||||
icon: "file-in.png",
|
||||
icon: "file-in.svg",
|
||||
label: function() {
|
||||
return this.name||this.filename||this._("file.label.filelabel");
|
||||
},
|
||||
|
Reference in New Issue
Block a user