From b6f6cc160e3f9d7c6e5d1ee37350b956a091952a Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Mon, 15 Sep 2014 14:54:01 -0700 Subject: [PATCH] Added 'defaults' to config.js --- client/index.html | 20 ++++++------ config.js | 80 ++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 86 insertions(+), 14 deletions(-) diff --git a/client/index.html b/client/index.html index dcfcf6e..07d1276 100644 --- a/client/index.html +++ b/client/index.html @@ -12,7 +12,7 @@ - + @@ -91,17 +91,17 @@
- +
- +
- +
@@ -109,12 +109,12 @@
- +
@@ -126,20 +126,20 @@
- +
- +
- +
@@ -223,7 +223,7 @@

- You're currently running version <%=version%>
+ You're currently running version <%= version %>
Check for updates

diff --git a/config.js b/config.js index 85142c7..cf23a8c 100644 --- a/config.js +++ b/config.js @@ -7,9 +7,9 @@ module.exports = { // // @type boolean // @default false - // + // public: true, - + // // Allow connections from this host. // @@ -17,7 +17,7 @@ module.exports = { // @default "0.0.0.0" // host: "0.0.0.0", - + // // Set the port to listen on. // @@ -50,5 +50,77 @@ module.exports = { // @type string // @default false // - debug: false + debug: false, + + // + // Default values for the 'Connect' form. + // + // @type object + // @default {} + // + defaults: { + // + // Name + // + // @type string + // @default "Freenode" + // + name: "Freenode", + + // + // Host + // + // @type string + // @default "irc.freenode.org" + // + host: "irc.freenode.org", + + // + // Port + // + // @type int + // @default 6697 + // + port: 6697, + + // + // Password + // + // @type string + // @default "" + // + password: "", + + // + // Enable TLS/SSL + // + // @type boolean + // @default true + // + tls: true, + + // + // Nick + // + // @type string + // @default "shout-user" + // + nick: "shout-user", + + // + // Real Name + // + // @type string + // @default "Shout User" + // + realname: "Shout User", + + // + // Channels + // + // @type string + // @default "#foo, #shout-irc" + // + join: "#foo, #shout-irc" + } };