diff --git a/package.json b/package.json index fa877c2..098efd5 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ ], "node-red": { "nodes": { - "ts3-config": "dist/nodes/ts3-config/ts3-config.js", - "ts3-get": "dist/nodes/ts3-call/ts3-call.js", - "ts3-event": "dist/nodes/ts3-event/ts3-event.js" + "TS3Config": "dist/nodes/TS3Config/TS3Config.js", + "TS3Get": "dist/nodes/TS3Call/TS3Call.js", + "TS3Event": "dist/nodes/TS3Event/TS3Event.js" } }, "dependencies": { diff --git a/src/nodes/ts3-call/ts3-call.ts b/src/nodes/TS3Call/TS3Call.ts similarity index 93% rename from src/nodes/ts3-call/ts3-call.ts rename to src/nodes/TS3Call/TS3Call.ts index 464b8ad..819359e 100644 --- a/src/nodes/ts3-call/ts3-call.ts +++ b/src/nodes/TS3Call/TS3Call.ts @@ -1,6 +1,6 @@ import { NodeInitializer } from "node-red"; import { TeamSpeak } from "ts3-nodejs-library"; -import { Ts3ConfigNode } from "../ts3-config/types"; +import { Ts3ConfigNode } from "../TS3Config/types"; import { Ts3CallConfig, Ts3CallNode } from "./types"; 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; diff --git a/src/nodes/ts3-call/types.ts b/src/nodes/TS3Call/types.ts similarity index 100% rename from src/nodes/ts3-call/types.ts rename to src/nodes/TS3Call/types.ts diff --git a/src/nodes/ts3-call/ui/editor.html b/src/nodes/TS3Call/ui/editor.html similarity index 100% rename from src/nodes/ts3-call/ui/editor.html rename to src/nodes/TS3Call/ui/editor.html diff --git a/src/nodes/ts3-call/ui/help.html b/src/nodes/TS3Call/ui/help.html similarity index 100% rename from src/nodes/ts3-call/ui/help.html rename to src/nodes/TS3Call/ui/help.html diff --git a/src/nodes/ts3-call/ui/index.ts b/src/nodes/TS3Call/ui/index.ts similarity index 76% rename from src/nodes/ts3-call/ui/index.ts rename to src/nodes/TS3Call/ui/index.ts index a42df26..80d0589 100644 --- a/src/nodes/ts3-call/ui/index.ts +++ b/src/nodes/TS3Call/ui/index.ts @@ -3,12 +3,12 @@ import { Ts3CallEditorNodeProperties } from "../types"; declare const RED: EditorRED; -RED.nodes.registerType('ts3-call',{ +RED.nodes.registerType('TS3Call',{ category: 'function', color: '#a6bbcf', defaults: { name: {value:""}, - configid: { type:"ts3-config", value: "" }, + configid: { type:"TS3Config", value: "" }, selection: { value:"version" } }, inputs: 1, diff --git a/src/nodes/ts3-config/ts3-config.ts b/src/nodes/TS3Config/TS3Config.ts similarity index 97% rename from src/nodes/ts3-config/ts3-config.ts rename to src/nodes/TS3Config/TS3Config.ts index 4babe8f..24eeb46 100644 --- a/src/nodes/ts3-config/ts3-config.ts +++ b/src/nodes/TS3Config/TS3Config.ts @@ -65,7 +65,7 @@ const nodeInit: NodeInitializer = (RED): void => { }) } - RED.nodes.registerType("ts3-config", Ts3Config,{ + RED.nodes.registerType("TS3Config", Ts3Config,{ credentials: { username: {type: "text"}, password: {type: "password"} diff --git a/src/nodes/ts3-config/types.ts b/src/nodes/TS3Config/types.ts similarity index 100% rename from src/nodes/ts3-config/types.ts rename to src/nodes/TS3Config/types.ts diff --git a/src/nodes/ts3-config/ui/editor.html b/src/nodes/TS3Config/ui/editor.html similarity index 100% rename from src/nodes/ts3-config/ui/editor.html rename to src/nodes/TS3Config/ui/editor.html diff --git a/src/nodes/ts3-config/ui/help.html b/src/nodes/TS3Config/ui/help.html similarity index 100% rename from src/nodes/ts3-config/ui/help.html rename to src/nodes/TS3Config/ui/help.html diff --git a/src/nodes/ts3-config/ui/index.ts b/src/nodes/TS3Config/ui/index.ts similarity index 96% rename from src/nodes/ts3-config/ui/index.ts rename to src/nodes/TS3Config/ui/index.ts index 3f35333..9ad1bd2 100644 --- a/src/nodes/ts3-config/ui/index.ts +++ b/src/nodes/TS3Config/ui/index.ts @@ -3,7 +3,7 @@ import { Ts3ConfigCreds, Ts3ConfigEditorNodeProperties } from "../types"; declare const RED: EditorRED; -RED.nodes.registerType('ts3-config',{ +RED.nodes.registerType('TS3Config',{ category: 'config', color: '#a6bbcf', defaults: { diff --git a/src/nodes/ts3-event/ts3-event.ts b/src/nodes/TS3Event/TS3Event.ts similarity index 91% rename from src/nodes/ts3-event/ts3-event.ts rename to src/nodes/TS3Event/TS3Event.ts index 6678682..64f8f84 100644 --- a/src/nodes/ts3-event/ts3-event.ts +++ b/src/nodes/TS3Event/TS3Event.ts @@ -1,5 +1,5 @@ import { NodeInitializer } from "node-red"; -import { Ts3ConfigNode } from "../ts3-config/types"; +import { Ts3ConfigNode } from "../TS3Config/types"; import { Ts3EventConfig, Ts3EventNode } from "./types"; 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; diff --git a/src/nodes/ts3-event/types.ts b/src/nodes/TS3Event/types.ts similarity index 100% rename from src/nodes/ts3-event/types.ts rename to src/nodes/TS3Event/types.ts diff --git a/src/nodes/ts3-event/ui/editor.html b/src/nodes/TS3Event/ui/editor.html similarity index 100% rename from src/nodes/ts3-event/ui/editor.html rename to src/nodes/TS3Event/ui/editor.html diff --git a/src/nodes/ts3-event/ui/help.html b/src/nodes/TS3Event/ui/help.html similarity index 100% rename from src/nodes/ts3-event/ui/help.html rename to src/nodes/TS3Event/ui/help.html diff --git a/src/nodes/ts3-event/ui/index.ts b/src/nodes/TS3Event/ui/index.ts similarity index 75% rename from src/nodes/ts3-event/ui/index.ts rename to src/nodes/TS3Event/ui/index.ts index 38526e8..bf86bb3 100644 --- a/src/nodes/ts3-event/ui/index.ts +++ b/src/nodes/TS3Event/ui/index.ts @@ -3,12 +3,12 @@ import { Ts3EventEditorNodeProperties } from "../types"; declare const RED: EditorRED; -RED.nodes.registerType('ts3-event',{ +RED.nodes.registerType('TS3Event',{ category: 'function', color: '#a6bbcf', defaults: { name: {value:""}, - configid: { type:"ts3-config", value: "" }, + configid: { type:"TS3Config", value: "" }, selection: { value:"" } }, inputs: 0,