Commit 387aceb0 authored by Abinaya Sudhir's avatar Abinaya Sudhir

some experiments

parent ade75834
...@@ -200,12 +200,28 @@ layout0 :: forall eff props. Spec (E eff) AppState props Action ...@@ -200,12 +200,28 @@ layout0 :: forall eff props. Spec (E eff) AppState props Action
layout0 layout = layout0 layout =
fold fold
[ layoutSidebar [ layoutSidebar
, focus _treeState _treeAction NT.treeview , outerLayout
, divSearchBar
, innerLayout $ layout
, layoutFooter , layoutFooter
] ]
where where
outerLayout :: Spec (E eff) AppState props Action
outerLayout =
cont $ fold
[ ls a
, rs b
]
ls = over _render \render d p s c ->
[div [className "col-md-4"] (render d p s c)]
rs = over _render \render d p s c ->
[ div [className "col-md-8"] (render d p s c) ]
cont = over _render \render d p s c ->
[ div [ className "row" ] (render d p s c) ]
a = fold [ focus _treeState _treeAction NT.treeview
, divSearchBar
]
b = innerLayout $ layout
innerLayout :: Spec (E eff) AppState props Action innerLayout :: Spec (E eff) AppState props Action
-> Spec (E eff) AppState props Action -> Spec (E eff) AppState props Action
innerLayout = over _render \render d p s c -> innerLayout = over _render \render d p s c ->
...@@ -214,12 +230,6 @@ layout0 layout = ...@@ -214,12 +230,6 @@ layout0 layout =
div [className "container-fluid"] (render d p s c) div [className "container-fluid"] (render d p s c)
] ]
] ]
-- TODO Add Tree to the template
-- exampleTree' :: forall props eff. Spec (dom :: DOM |eff) AppState props Action
-- exampleTree' = simpleSpec performAction render
-- where
-- render :: Render AppState props Action
-- render dispatch _ state _ = [ toHtml dispatch exampleTree]
layoutSidebar :: forall props eff. Spec (dom :: DOM |eff) AppState props Action layoutSidebar :: forall props eff. Spec (dom :: DOM |eff) AppState props Action
...@@ -235,7 +245,6 @@ layoutSidebar = simpleSpec performAction render ...@@ -235,7 +245,6 @@ layoutSidebar = simpleSpec performAction render
[ divLogo [ divLogo
, div [ className "collapse navbar-collapse"] , div [ className "collapse navbar-collapse"]
[ divDropdownLeft [ divDropdownLeft
-- , divSearchBar
, divDropdownRight , divDropdownRight
] ]
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment