Renamed modules
This commit is contained in:
@@ -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": {
|
||||||
|
|||||||
@@ -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;
|
||||||
@@ -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,
|
||||||
@@ -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"}
|
||||||
@@ -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: {
|
||||||
@@ -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 => {
|
||||||
@@ -41,7 +41,7 @@ const nodeInit: NodeInitializer = (RED): void => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RED.nodes.registerType("ts3-event", Ts3Event);
|
RED.nodes.registerType("TS3Event", Ts3Event);
|
||||||
};
|
};
|
||||||
|
|
||||||
export = nodeInit;
|
export = nodeInit;
|
||||||
@@ -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,
|
||||||
Reference in New Issue
Block a user