Skip to content

Commit c1bd031

Browse files
committed
Add ability to control URL on embedded wizard page, as well as updating the about page and various other URLs.
1 parent d65d1ed commit c1bd031

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

bin/optionsgen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import config, simplejson
22

33
def get_options():
4-
options = dict(networkName=config.NETWORK_NAME, networkServices=[config.AUTH_SERVICE], loginRegex=config. AUTH_OK_REGEX, appTitle=config.APP_TITLE)
4+
options = dict(networkName=config.NETWORK_NAME, networkServices=[config.AUTH_SERVICE], loginRegex=config. AUTH_OK_REGEX, appTitle=config.APP_TITLE, baseURL=config.BASE_URL)
55
return simplejson.dumps(options)

config.py.example

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ REALNAME = "http://moo.com/"
88
MAXLINELEN = 600
99
IDENT = "webchat" # set this value to None if you'd like a hex representation of the IP
1010

11+
BASE_URL = "http://foo.foo.org/"
12+
1113
FEEDBACK_FROM = "[email protected]"
1214
FEEDBACK_TO = "[email protected]"
1315
FEEDBACK_SMTP_HOST = "127.0.0.1"

js/qwebircinterface.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ qwebirc.ui.Interface = new Class({
88
loginRegex: null,
99
appTitle: "ExampleNetwork Web IRC",
1010
searchURL: true,
11-
theme: undefined
11+
theme: undefined,
12+
baseURL: null
1213
},
1314
initialize: function(element, ui, options) {
1415
this.setOptions(options);

js/ui/baseui.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ qwebirc.ui.BaseUI = new Class({
3434
if(!this.firstClient) {
3535
this.firstClient = true;
3636
w.addLine("", "qwebirc v" + qwebirc.VERSION);
37-
w.addLine("", "Copyright (C) 2008-2009 Chris Porter. All rights reserved.");
38-
w.addLine("", "http://webchat.quakenet.org/");
39-
w.addLine("", "This is BETA quality software, please report bugs to [email protected]");
37+
w.addLine("", "Copyright (C) 2008-2009 Chris Porter and the qwebirc project.");
38+
w.addLine("", "http://www.qwebirc.org");
39+
w.addLine("", "Licensed under the GNU General Public License, Version 2.");
4040
}
4141
return w;
4242
},
@@ -260,7 +260,7 @@ qwebirc.ui.StandardUI = new Class({
260260
d.setSubWindow(ew);
261261
},
262262
embeddedWindow: function() {
263-
this.addCustomWindow("Embedding wizard", qwebirc.ui.EmbedWizard, "embeddedwizard");
263+
this.addCustomWindow("Embedding wizard", qwebirc.ui.EmbedWizard, "embeddedwizard", {baseURL: this.options.baseURL});
264264
},
265265
optionsWindow: function() {
266266
this.addCustomWindow("Options", qwebirc.ui.OptionsPane, "optionspane", this.uiOptions);

static/panes/about.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
</table>
99
</div>
1010
<div class="mainbody">
11-
Copyright &copy; 2008-2009 Chris Porter.<br/>All rights reserved.
12-
11+
Copyright &copy; 2008-2009 Chris Porter and the qwebirc project.<br/>All rights reserved.<br/><br/>
12+
Licensed under the GNU General Public License, version 2 only.
1313
<p>
14-
<a href="http://webchat.quakenet.org/" target="new">http://webchat.quakenet.org/</a><br/>
15-
For licensing questions please contact [email protected].
14+
<a href="http://www.qwebirc.org/" target="new">http://www.qwebirc.org/</a><br/>
1615
</p>
1716
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
1817
<p>This software contains portions by the following third parties:</p>

0 commit comments

Comments
 (0)