s/redesign/frontend/

This commit is contained in:
Dominik Picheta 2018-05-17 16:16:45 +01:00
commit 825c1d6548
27 changed files with 8 additions and 10 deletions

View file

@ -13,8 +13,8 @@ import
import cgi except setCookie import cgi except setCookie
import options import options
import redesign/threadlist except User import frontend/threadlist except User
import redesign/[ import frontend/[
category, postlist, error, header, post, profile, user, karaxutils category, postlist, error, header, post, profile, user, karaxutils
] ]
@ -346,8 +346,7 @@ proc getBanErrorMsg(banValue: string; rank: Rank): string =
if banValue.len > 0: if banValue.len > 0:
return "You have been banned: " & banValue return "You have been banned: " & banValue
case rank case rank
of Spammer: return "You are a spammer." of Spammer, Troll, Banned: return "You have been banned."
of Troll: return "You have been banned."
of EmailUnconfirmed: of EmailUnconfirmed:
return "You need to confirm your email first." return "You need to confirm your email first."
of Moderated, Rank.User, Moderator, Admin: of Moderated, Rank.User, Moderator, Admin:
@ -1202,11 +1201,11 @@ routes:
resp data resp data
get "/karax/nimforum.css": get "/karax/nimforum.css":
resp readFile("redesign/nimforum.css"), "text/css" resp readFile("frontend/nimforum.css"), "text/css"
get "/karax/nimcache/forum.js": get "/karax/nimcache/forum.js":
resp readFile("redesign/nimcache/forum.js"), "application/javascript" resp readFile("frontend/nimcache/forum.js"), "application/javascript"
get "/karax/images/crown.png": get "/karax/images/crown.png":
resp readFile("redesign/images/crown.png"), "image/png" resp readFile("frontend/images/crown.png"), "image/png"
get "/karax/threads.json": get "/karax/threads.json":
@ -1563,7 +1562,7 @@ routes:
resp Http400, $(%exc.data), "application/json" resp Http400, $(%exc.data), "application/json"
get re"/karax/(.+)?": get re"/karax/(.+)?":
resp readFile("redesign/karax.html") resp readFile("frontend/karax.html")
get "/threadActivity.xml": get "/threadActivity.xml":
createTFD() createTFD()

@ -1 +0,0 @@
Subproject commit 7a6af53bca72b549b2cbf1948763348bd5b30dcd

View file

@ -7,7 +7,7 @@ from times import getTime, getGMTime, format
let let
UsernameIdent* = IdentChars # TODO: Double check that everyone follows this. UsernameIdent* = IdentChars # TODO: Double check that everyone follows this.
import redesign/karaxutils import frontend/karaxutils
export parseInt export parseInt
proc `%`*[T](opt: Option[T]): JsonNode = proc `%`*[T](opt: Option[T]): JsonNode =