Skip to content
Permalink
Browse files

Add a way to force quit the server, and add a news tab.

  • Loading branch information...
roncli committed Jun 26, 2015
1 parent 4154492 commit 04edde03b6ac6c460090fb00f6b70d0b5dc56fad
Showing with 25 additions and 3 deletions.
  1. +8 −0 index.js
  2. +5 −3 public/index.html
  3. +4 −0 public/templates/error.hbs
  4. +4 −0 public/templates/news.hbs
  5. +1 −0 public/templates/offline.hbs
  6. +3 −0 public/templates/server-tabs.hbs
@@ -16,6 +16,14 @@ app.use(function(req, res, next) {

app.use(express.static("public"));

app.get("/quit", function(req, res) {
"use strict";

res.status(200).send("Descent DSN has been force quit. You should close all other running Descent 3 servers manually.");

process.exit();
});

app.listen(20920);

// Setup web sockets.
@@ -10,8 +10,10 @@
<div class="jumbotron text-center">
<h1>Descent DSN</h1>
</div>
<ul id="server-tabs" class="nav nav-pills"></ul>
<ul id="menu-tabs" class="nav nav-pills"></ul>
<div id="content"></div>
<div id="content">
<ul id="server-tabs" class="nav nav-pills"></ul>
<ul id="menu-tabs" class="nav nav-pills"></ul>
<div id="feature"></div>
</div>
</body>
</html>
@@ -0,0 +1,4 @@
<h1 class="text-center">There was an error communicating with the server.</h1>
<h3>Please contact <a href="mailto:roncli@roncli.com">roncli</a> with the following information:</h3>
<h3>{{error}}</h3>
You may try to refresh this page. If you continue to have problems, visit <a href="http://localhost:20920/quit">http://localhost:20920/quit</a> to shut down the application.
@@ -0,0 +1,4 @@
<h1>Version 0.1</h1>
<div>
Welcome to the first release Descent Dedicated Server Network! The Descent DSN client is an easy-to-use yet powerful server manager for Descent 3. This tab will contain news about new features and bug fixes to the application.
</div>
@@ -0,0 +1 @@
<h1 class="text-center">The server has shutdown and is offline.</h1>
@@ -1,3 +1,6 @@
<li role="presentation">
<button id="news" class="btn btn-primary"><span class="glyphicon glyphicon-home"></span> News</button>
</li>
<li role="presentation">
<button id="dashboard" class="btn btn-primary"><span class="glyphicon glyphicon-dashboard"></span> Dashboard</button>
</li>

0 comments on commit 04edde0

Please sign in to comment.
You can’t perform that action at this time.