Fixes for the non-tup build of ctail

This commit is contained in:
Zahary Karadjov 2018-11-29 03:17:12 +02:00
parent 3b06528906
commit 322ea94b8b
4 changed files with 6 additions and 7 deletions

View File

@ -15,5 +15,5 @@ requires "nim >= 0.18.1",
"ranges",
"prompt",
"karax",
"websocket"
"websocket",
"jswebsockets"

View File

@ -132,8 +132,8 @@ if program.len == 0:
quit 1
proc parseFilter*(s: string): SqlNode =
let sqlNodes = parseSql("SELECT * FROM DUMMY WHERE " & s & ";")
let whereClause = sqlNodes[0][^1]
let selectStmt = parseSql("SELECT * FROM DUMMY WHERE " & s & ";")[0]
let whereClause = selectStmt[selectStmt.len - 1]
assert whereClause.kind == nkWhere and whereClause.len == 1
return whereClause[0]

View File

@ -3,7 +3,7 @@ include
import
jsconsole, jscore, jsffi, jswebsockets,
chronicles_tail/jsplugins
../chronicles_tail/jsplugins
type
ChroniclesPrompt = object

View File

@ -1,7 +1,7 @@
import
macros, json, random, times, strutils, os,
asynchttpserver, asyncnet, asyncdispatch, websocket,
chronicles_tail/configuration
../chronicles_tail/configuration
const
indexFile = staticRead "karax_app.html"
@ -14,7 +14,6 @@ template fileContents(file: string): string =
const contents = staticRead(file)
contents
type
WebuiServer* = ref object
httpServer: AsyncHttpServer