renamed to ts3-call
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"node-red": {
|
||||
"nodes": {
|
||||
"ts3-config": "dist/nodes/ts3-config/ts3-config.js",
|
||||
"ts3-get": "dist/nodes/ts3-get/ts3-get.js"
|
||||
"ts3-get": "dist/nodes/ts3-call/ts3-call.js"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -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;
|
||||
15
src/nodes/ts3-call/types.ts
Normal file
15
src/nodes/ts3-call/types.ts
Normal 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 {}
|
||||
1
src/nodes/ts3-call/ui/help.html
Normal file
1
src/nodes/ts3-call/ui/help.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>Call a function on a Teamspeak 3 server.</p>
|
||||
@@ -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;
|
||||
}
|
||||
});
|
||||
@@ -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 {}
|
||||
@@ -1 +0,0 @@
|
||||
<p>Get information from a Teamspeak 3 server.</p>
|
||||
Reference in New Issue
Block a user