Refactor api code

This commit is contained in:
Zed
2019-09-06 03:37:12 +02:00
parent 014f01bf88
commit 43bf6735d4
13 changed files with 414 additions and 397 deletions

View File

@@ -1,5 +1,5 @@
import strutils
import karax/[karaxdsl, vdom, vstyles]
import karax/[karaxdsl, vdom]
import ../types, ../utils

View File

@@ -1,8 +1,7 @@
import strutils, strformat
import karax/[karaxdsl, vdom]
import ../types
import tweet, renderutils
import tweet
proc renderMoreReplies(thread: Thread): VNode =
let num = if thread.more != -1: $thread.more & " " else: ""