summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-11 23:53:30 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-11 23:53:30 +0200
commit3a3d0fc3d4733f8908e23a03f860d76340479ec4 (patch)
treecf4b82f61d01d2a24836e9820d73972436847982 /WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js
parentc28c9fafa2c74b101f7ce777aac722dcdeecefc6 (diff)
Reorganize Project structure
Diffstat (limited to 'WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js')
-rw-r--r--WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js b/WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js
deleted file mode 100644
index bc5d8a7..0000000
--- a/WebInterface/NodeJSServer/src/js/modules/networking/commands/loginCmds.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import ListServers from './login/listServers';
-import CreateServer from './login/createServer';
-import Login from './login/login';
-
-/**
- * Manages commands related to the login page
- */
-export default class LoginCommands {
- /**
- * Initializes the login commands
- * @param {Interface} iface Interface for inter-object communication
- */
- constructor(iface) {
- this.iface = iface;
- this.cmds = [];
- this.registerCommands();
- }
-
- /**
- * Registers all the available commands
- */
- registerCommands() {
- this.cmds.push(new ListServers(this.iface));
- this.cmds.push(new CreateServer(this.iface));
- this.cmds.push(new Login(this.iface));
- }
-
- /**
- * Destroys all attached commands
- */
- destroy() {
- for (let cmd of this.cmds) {
- cmd.destroy();
- }
- }
-}