Update Karax and small frontend fixes.
This commit is contained in:
parent
32dbf30781
commit
c566b05347
3 changed files with 5 additions and 6 deletions
|
|
@ -19,7 +19,7 @@ requires "hmac#9c61ebe2fd134cf97"
|
||||||
requires "recaptcha 1.0.2"
|
requires "recaptcha 1.0.2"
|
||||||
requires "sass#649e0701fa5c"
|
requires "sass#649e0701fa5c"
|
||||||
|
|
||||||
requires "https://github.com/dom96/karax#7a884fb"
|
requires "karax#9882d1aec2bb"
|
||||||
|
|
||||||
requires "webdriver#a2be578"
|
requires "webdriver#a2be578"
|
||||||
|
|
||||||
|
|
@ -58,4 +58,4 @@ task test, "Runs tester":
|
||||||
exec "nimble c -y -r tests/browsertester"
|
exec "nimble c -y -r tests/browsertester"
|
||||||
|
|
||||||
task fasttest, "Runs tester without recompiling backend":
|
task fasttest, "Runs tester without recompiling backend":
|
||||||
exec "nimble c -r tests/browsertester"
|
exec "nimble c -r tests/browsertester"
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="ROOT" />
|
<div id="ROOT"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="/js/forum.js?t=$timestamp"></script>
|
<script type="text/javascript" src="/js/forum.js?t=$timestamp"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -88,9 +88,8 @@ when defined(js):
|
||||||
state.shown = false
|
state.shown = false
|
||||||
|
|
||||||
proc onChange(e: Event, n: VNode, state: ReplyBox) =
|
proc onChange(e: Event, n: VNode, state: ReplyBox) =
|
||||||
# TODO: There should be a karax-way to do this. I guess I can just call
|
# TODO: Please document this better in Karax.
|
||||||
# `value` on the node? We need to document this better :)
|
state.text = n.value
|
||||||
state.text = cast[dom.TextAreaElement](n.dom).value
|
|
||||||
|
|
||||||
proc renderContent*(state: ReplyBox, thread: Option[Thread],
|
proc renderContent*(state: ReplyBox, thread: Option[Thread],
|
||||||
post: Option[Post]): VNode =
|
post: Option[Post]): VNode =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue