renamed to ts3-call

This commit is contained in:
2021-04-26 20:34:01 +02:00
parent c943e8e5df
commit f7c0d1783d
8 changed files with 25 additions and 25 deletions

View File

@@ -1,12 +1,12 @@
import { NodeInitializer } from "node-red";
import { TeamSpeak } from "ts3-nodejs-library";
import { Ts3ConfigNode } from "../ts3-config/types";
import { Ts3GetConfig, Ts3GetNode } from "./types";
import { Ts3CallConfig, Ts3CallNode } from "./types";
const nodeInit: NodeInitializer = (RED): void => {
function Ts3Get(
this: Ts3GetNode,
config: Ts3GetConfig
function Ts3Call(
this: Ts3CallNode,
config: Ts3CallConfig
): void {
RED.nodes.createNode(this, config);
@@ -48,7 +48,7 @@ const nodeInit: NodeInitializer = (RED): void => {
})
}
RED.nodes.registerType("ts3-get", Ts3Get);
RED.nodes.registerType("ts3-call", Ts3Call);
};
export = nodeInit;

View File

@@ -0,0 +1,15 @@
import { NodeDef, Node, EditorNodeProperties } from "node-red";
export interface Ts3CallProps {
configid: string
selection: string
}
export interface Ts3CallData {
}
export interface Ts3CallConfig extends NodeDef, Ts3CallProps { }
export interface Ts3CallNode extends Node, Ts3CallData {}
export interface Ts3CallEditorNodeProperties extends EditorNodeProperties,Ts3CallProps {}

View File

@@ -0,0 +1 @@
<p>Call a function on a Teamspeak 3 server.</p>

View File

@@ -1,9 +1,9 @@
import { EditorRED } from "node-red";
import { Ts3GetEditorNodeProperties } from "../types";
import { Ts3CallEditorNodeProperties } from "../types";
declare const RED: EditorRED;
RED.nodes.registerType<Ts3GetEditorNodeProperties>('ts3-get',{
RED.nodes.registerType<Ts3CallEditorNodeProperties>('ts3-call',{
category: 'function',
color: '#a6bbcf',
defaults: {
@@ -14,6 +14,6 @@ RED.nodes.registerType<Ts3GetEditorNodeProperties>('ts3-get',{
inputs: 1,
outputs: 1,
label: function() {
return this.name || "TS3 Get " + this.selection;
return this.name || "TS3 " + this.selection;
}
});

View File

@@ -1,15 +0,0 @@
import { NodeDef, Node, EditorNodeProperties } from "node-red";
export interface Ts3GetProps {
configid: string
selection: string
}
export interface Ts3GetData {
}
export interface Ts3GetConfig extends NodeDef, Ts3GetProps { }
export interface Ts3GetNode extends Node, Ts3GetData {}
export interface Ts3GetEditorNodeProperties extends EditorNodeProperties,Ts3GetProps {}

View File

@@ -1 +0,0 @@
<p>Get information from a Teamspeak 3 server.</p>