Compare commits

...

2 Commits

Author SHA1 Message Date
c07330a7c3 removed log 2021-04-27 21:36:56 +02:00
c52b113c6a Renamed modules 2021-04-27 21:35:17 +02:00
16 changed files with 14 additions and 14 deletions

View File

@@ -12,9 +12,9 @@
], ],
"node-red": { "node-red": {
"nodes": { "nodes": {
"ts3-config": "dist/nodes/ts3-config/ts3-config.js", "TS3Config": "dist/nodes/TS3Config/TS3Config.js",
"ts3-get": "dist/nodes/ts3-call/ts3-call.js", "TS3Get": "dist/nodes/TS3Call/TS3Call.js",
"ts3-event": "dist/nodes/ts3-event/ts3-event.js" "TS3Event": "dist/nodes/TS3Event/TS3Event.js"
} }
}, },
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
import { NodeInitializer } from "node-red"; import { NodeInitializer } from "node-red";
import { TeamSpeak } from "ts3-nodejs-library"; import { TeamSpeak } from "ts3-nodejs-library";
import { Ts3ConfigNode } from "../ts3-config/types"; import { Ts3ConfigNode } from "../TS3Config/types";
import { Ts3CallConfig, Ts3CallNode } from "./types"; import { Ts3CallConfig, Ts3CallNode } from "./types";
const nodeInit: NodeInitializer = (RED): void => { const nodeInit: NodeInitializer = (RED): void => {
@@ -54,7 +54,7 @@ const nodeInit: NodeInitializer = (RED): void => {
} }
RED.nodes.registerType("ts3-call", Ts3Call); RED.nodes.registerType("TS3Call", Ts3Call);
}; };
export = nodeInit; export = nodeInit;

View File

@@ -3,12 +3,12 @@ import { Ts3CallEditorNodeProperties } from "../types";
declare const RED: EditorRED; declare const RED: EditorRED;
RED.nodes.registerType<Ts3CallEditorNodeProperties>('ts3-call',{ RED.nodes.registerType<Ts3CallEditorNodeProperties>('TS3Call',{
category: 'function', category: 'function',
color: '#a6bbcf', color: '#a6bbcf',
defaults: { defaults: {
name: {value:""}, name: {value:""},
configid: { type:"ts3-config", value: "" }, configid: { type:"TS3Config", value: "" },
selection: { value:"version" } selection: { value:"version" }
}, },
inputs: 1, inputs: 1,

View File

@@ -65,7 +65,7 @@ const nodeInit: NodeInitializer = (RED): void => {
}) })
} }
RED.nodes.registerType("ts3-config", Ts3Config,{ RED.nodes.registerType("TS3Config", Ts3Config,{
credentials: { credentials: {
username: {type: "text"}, username: {type: "text"},
password: {type: "password"} password: {type: "password"}

View File

@@ -3,7 +3,7 @@ import { Ts3ConfigCreds, Ts3ConfigEditorNodeProperties } from "../types";
declare const RED: EditorRED; declare const RED: EditorRED;
RED.nodes.registerType<Ts3ConfigEditorNodeProperties,Ts3ConfigCreds>('ts3-config',{ RED.nodes.registerType<Ts3ConfigEditorNodeProperties,Ts3ConfigCreds>('TS3Config',{
category: 'config', category: 'config',
color: '#a6bbcf', color: '#a6bbcf',
defaults: { defaults: {

View File

@@ -1,5 +1,5 @@
import { NodeInitializer } from "node-red"; import { NodeInitializer } from "node-red";
import { Ts3ConfigNode } from "../ts3-config/types"; import { Ts3ConfigNode } from "../TS3Config/types";
import { Ts3EventConfig, Ts3EventNode } from "./types"; import { Ts3EventConfig, Ts3EventNode } from "./types";
const nodeInit: NodeInitializer = (RED): void => { const nodeInit: NodeInitializer = (RED): void => {
@@ -26,7 +26,7 @@ const nodeInit: NodeInitializer = (RED): void => {
(async() =>{ (async() =>{
const client = await ts3Config.getConnection() const client = await ts3Config.getConnection()
this.warn("added: " + config.selection)
// HACK: like above i dont know how to use typescript // HACK: like above i dont know how to use typescript
client.addListener(config.selection,(event: any)=>{ client.addListener(config.selection,(event: any)=>{
let msg = { let msg = {
@@ -41,7 +41,7 @@ const nodeInit: NodeInitializer = (RED): void => {
} }
RED.nodes.registerType("ts3-event", Ts3Event); RED.nodes.registerType("TS3Event", Ts3Event);
}; };
export = nodeInit; export = nodeInit;

View File

@@ -3,12 +3,12 @@ import { Ts3EventEditorNodeProperties } from "../types";
declare const RED: EditorRED; declare const RED: EditorRED;
RED.nodes.registerType<Ts3EventEditorNodeProperties>('ts3-event',{ RED.nodes.registerType<Ts3EventEditorNodeProperties>('TS3Event',{
category: 'function', category: 'function',
color: '#a6bbcf', color: '#a6bbcf',
defaults: { defaults: {
name: {value:""}, name: {value:""},
configid: { type:"ts3-config", value: "" }, configid: { type:"TS3Config", value: "" },
selection: { value:"" } selection: { value:"" }
}, },
inputs: 0, inputs: 0,