Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
387aceb0
Commit
387aceb0
authored
Mar 29, 2018
by
Abinaya Sudhir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some experiments
parent
ade75834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
10 deletions
+19
-10
Navigation.purs
src/Navigation.purs
+19
-10
No files found.
src/Navigation.purs
View file @
387aceb0
...
...
@@ -200,12 +200,28 @@ layout0 :: forall eff props. Spec (E eff) AppState props Action
layout0 layout =
fold
[ layoutSidebar
, focus _treeState _treeAction NT.treeview
, divSearchBar
, innerLayout $ layout
, outerLayout
, layoutFooter
]
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
-> Spec (E eff) AppState props Action
innerLayout = over _render \render d p s c ->
...
...
@@ -214,12 +230,6 @@ layout0 layout =
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
...
...
@@ -235,7 +245,6 @@ layoutSidebar = simpleSpec performAction render
[ divLogo
, div [ className "collapse navbar-collapse"]
[ divDropdownLeft
-- , divSearchBar
, divDropdownRight
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment