]> jfr.im git - irc/quakenet/qwebirc.git/blame - bin/pages.py
fix debug javascript ending up in css
[irc/quakenet/qwebirc.git] / bin / pages.py
CommitLineData
01a3d0e1 1#!/usr/bin/env python
cc608160 2IRC_BASE = ["ircconnection", "irclib", "numerics", "baseircclient", "irctracker", "commandparser", "commands", "ircclient", "commandhistory", "nicknamevalidator"]
f3d0c9f5 3PANES = ["connect", "embed", "options", "about", "privacypolicy", "feedback", "faq"]
4dd199c3 4UI_BASE = ["menuitems", "baseui", "baseuiwindow", "colour", "url", "theme", "notifications", "tabcompleter", "style"]
f3d0c9f5 5UI_BASE.extend(["panes/%s" % x for x in PANES])
01a3d0e1
CP
6
7DEBUG_BASE = ["qwebirc", "version", "jslib", "crypto", "md5", ["irc/%s" % x for x in IRC_BASE], ["ui/%s" % x for x in UI_BASE], "qwebircinterface", "auth", "sound"]
8BUILD_BASE = ["qwebirc"]
e3c38d61 9JS_BASE = ["mootools-1.2.5-core", "mootools-1.2.5.1-more"]
60ce7bee 10JS_EXTRA = ["soundmanager2"]
01a3d0e1
CP
11
12UIs = {
13 "qui": {
14 "class": "QUI",
4dd199c3 15 "nocss": True,
01a3d0e1
CP
16 "uifiles": ["qui"],
17 "doctype": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"" + "\n" \
18 " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
01a3d0e1
CP
19 }
20}
21
22def flatten(y):
23 for x in y:
24 if isinstance(x, list):
25 for x in flatten(x):
26 yield x
27 else:
28 yield x
29
30DEBUG_BASE = list(flatten(DEBUG_BASE))
31DEBUG = ["debug/%s" % x for x in DEBUG_BASE]