From 2fcbffbd2d0bcb73c99f3360b0001ce5b81ea024 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Mon, 30 May 2022 21:14:41 +0200 Subject: [PATCH] Cleanup --- src/js/dist/sandbox.nim | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/js/dist/sandbox.nim b/src/js/dist/sandbox.nim index ead7aa0..4f5cfbe 100644 --- a/src/js/dist/sandbox.nim +++ b/src/js/dist/sandbox.nim @@ -1,18 +1,24 @@ -import jsconsole, jsffi, strutils, sequtils, sugar -import sugar +from std/dom import window, Location, document, decodeURI +import std/[ + jsconsole, + jsffi, + options, + sequtils, + strformat, + strutils, + sugar, +] +import fp/[ + maybe, + option, +] import ../bindings/react/react_globals, ../bindings/react/react_dom, ../bindings/react/react_types, ../bindings/react/react_styles, - ../bindings/react/react_hooks -import sequtils -import options -import strformat -import fp/[ - maybe, - option, -] + ../bindings/react/react_hooks, + ../lib/fetch import ../../org/org_block_heading import ../../org/org_builder import ../../org/org_types @@ -31,7 +37,6 @@ proc renderItems( ) proc toMarkUp(x: OrgInlineBlock): ReactNode = - console.log(x) case x.kind: of orgRawText: `<>`(x.content) of orgText: `<>`(x.content)