22 lines
565 B
TypeScript
22 lines
565 B
TypeScript
import { EditorRED } from "node-red";
|
|
import { Ts3ConfigCreds, Ts3ConfigEditorNodeProperties } from "../types";
|
|
|
|
declare const RED: EditorRED;
|
|
|
|
RED.nodes.registerType<Ts3ConfigEditorNodeProperties,Ts3ConfigCreds>('ts3-config',{
|
|
category: 'config',
|
|
color: '#a6bbcf',
|
|
defaults: {
|
|
name: {value:""},
|
|
host: { value: ""},
|
|
nickname: {value: "ServerQuery"}
|
|
},
|
|
credentials: {
|
|
username: {type: "text"},
|
|
password: {type: "password"}
|
|
},
|
|
label: function() {
|
|
return this.name || "TS3 Config";
|
|
}
|
|
});
|