1module Example (main) where
4import Container.Component (mkContainer)
5import Data.Maybe (fromJust)
7import Effect.Console (log)
8import Partial.Unsafe (unsafePartial)
9import React.Basic (JSX, element)
10import React.Basic.DOM as ReactDOM
11import Theme (fromTheme)
12import Theme.Default (darkTheme)
13import Web.DOM.NonElementParentNode (getElementById) as DOM
14import Web.HTML (window) as DOM
15import Web.HTML.HTMLDocument (toNonElementParentNode) as DOM
16import Web.HTML.Window (document) as DOM
20 container <- mkContainer
22 appEl = element container { theme: fromTheme darkTheme, kids: [] }
24 void (log (renderToString appEl))
28 document <- DOM.document window
30 node = DOM.toNonElementParentNode document
31 elem <- DOM.getElementById "app" node
33 element' = unsafePartial (fromJust elem)
34 ReactDOM.render appEl element'
36foreign import isServerSide ∷ Boolean
38foreign import renderToString ∷ JSX -> String
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list