UI improvements
This commit is contained in:
@@ -7,6 +7,7 @@ RED.nodes.registerType<Ts3ConfigEditorNodeProperties,Ts3ConfigCreds>('ts3-config
|
|||||||
category: 'config',
|
category: 'config',
|
||||||
color: '#a6bbcf',
|
color: '#a6bbcf',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
name: {value:""},
|
||||||
host: { value: ""},
|
host: { value: ""},
|
||||||
nickname: {value: "ServerQuery"}
|
nickname: {value: "ServerQuery"}
|
||||||
},
|
},
|
||||||
@@ -15,6 +16,6 @@ RED.nodes.registerType<Ts3ConfigEditorNodeProperties,Ts3ConfigCreds>('ts3-config
|
|||||||
password: {type: "password"}
|
password: {type: "password"}
|
||||||
},
|
},
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name || "Ts3 Config";
|
return this.name || "TS3 Config";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<input type="text" id="node-input-name">
|
<input type="text" id="node-input-name">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-configid"><i class="fa fa-database"></i> Connection</label>
|
<label for="node-input-configid"><i class="fa fa-server"></i> Connection</label>
|
||||||
<input type="text" id="node-input-configid">
|
<input type="text" id="node-input-configid">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-configid"><i class="fa fa-database"></i> Connection</label>
|
<label for="node-input-configid"><i class="fa fa-terminal"></i> Function</label>
|
||||||
<select class="form-select" id="node-input-selection">
|
<select class="form-select" id="node-input-selection">
|
||||||
<option value="version" selected>version</option>
|
<option value="version" selected>version</option>
|
||||||
<option value="apiKeyList">apiKeyList</option>
|
<option value="apiKeyList">apiKeyList</option>
|
||||||
@@ -76,4 +76,8 @@
|
|||||||
<option value="downloadIcon">downloadIcon</option>
|
<option value="downloadIcon">downloadIcon</option>
|
||||||
<option value="getIconId">getIconId</option>
|
<option value="getIconId">getIconId</option>
|
||||||
</select>
|
</select>
|
||||||
|
<div class="form-row">
|
||||||
|
You can find documentation for all functions
|
||||||
|
<a target="_blank" href="https://multivit4min.github.io/TS3-NodeJS-Library/classes/teamspeak.teamspeak-2.html"> here</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -7,12 +7,13 @@ RED.nodes.registerType<Ts3GetEditorNodeProperties>('ts3-get',{
|
|||||||
category: 'function',
|
category: 'function',
|
||||||
color: '#a6bbcf',
|
color: '#a6bbcf',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
name: {value:""},
|
||||||
configid: { type:"ts3-config", value: "" },
|
configid: { type:"ts3-config", value: "" },
|
||||||
selection: { value:"" }
|
selection: { value:"version" }
|
||||||
},
|
},
|
||||||
inputs: 1,
|
inputs: 1,
|
||||||
outputs: 1,
|
outputs: 1,
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name || "Ts3 Get";
|
return this.name || "TS3 Get";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user