Fixes for the non-tup build of ctail
This commit is contained in:
parent
3b06528906
commit
322ea94b8b
|
@ -15,5 +15,5 @@ requires "nim >= 0.18.1",
|
|||
"ranges",
|
||||
"prompt",
|
||||
"karax",
|
||||
"websocket"
|
||||
|
||||
"websocket",
|
||||
"jswebsockets"
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ include
|
|||
|
||||
import
|
||||
jsconsole, jscore, jsffi, jswebsockets,
|
||||
chronicles_tail/jsplugins
|
||||
../chronicles_tail/jsplugins
|
||||
|
||||
type
|
||||
ChroniclesPrompt = object
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue