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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
6180e41c
Commit
6180e41c
authored
Mar 27, 2018
by
Abinaya Sudhir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search bar included in sidebar
parent
e79d4155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
19 deletions
+28
-19
Navigation.purs
src/Navigation.purs
+28
-19
No files found.
src/Navigation.purs
View file @
6180e41c
...
@@ -24,7 +24,6 @@ import SearchForm as S
...
@@ -24,7 +24,6 @@ import SearchForm as S
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import UserPage as UP
import UserPage as UP
import AnnotationDocumentView as D
import AnnotationDocumentView as D
import Gargantext.Data.Lang
import Gargantext.Data.Lang
type E e = (dom :: DOM, ajax :: AJAX, console :: CONSOLE | e)
type E e = (dom :: DOM, ajax :: AJAX, console :: CONSOLE | e)
...
@@ -188,7 +187,9 @@ layout0 layout =
...
@@ -188,7 +187,9 @@ layout0 layout =
[ layoutSidebar
[ layoutSidebar
-- TODO Add layoutTree
-- TODO Add layoutTree
--, exampleTree'
--, exampleTree'
, divSearchBar
, innerLayout $ layout
, innerLayout $ layout
, layoutFooter
, layoutFooter
]
]
where
where
...
@@ -221,7 +222,7 @@ layoutSidebar = simpleSpec performAction render
...
@@ -221,7 +222,7 @@ layoutSidebar = simpleSpec performAction render
[ divLogo
[ divLogo
, div [ className "collapse navbar-collapse"]
, div [ className "collapse navbar-collapse"]
[ divDropdownLeft
[ divDropdownLeft
, divSearchBar
--
, divSearchBar
, divDropdownRight
, divDropdownRight
]
]
]
]
...
@@ -317,7 +318,7 @@ menuElements ns = dropDown $ intercalate divider $ map (map liNav) ns
...
@@ -317,7 +318,7 @@ menuElements ns = dropDown $ intercalate divider $ map (map liNav) ns
where
where
dropDown :: Array ReactElement -> ReactElement
dropDown :: Array ReactElement -> ReactElement
dropDown = ul [className "dropdown-menu"]
dropDown = ul [className "dropdown-menu"]
divider :: Array ReactElement
divider :: Array ReactElement
divider = [li [className "divider"] []]
divider = [li [className "divider"] []]
...
@@ -354,23 +355,31 @@ liNav (LiNav { title : title'
...
@@ -354,23 +355,31 @@ liNav (LiNav { title : title'
-- TODO put the search form in the center of the navBar
-- TODO put the search form in the center of the navBar
divSearchBar :: ReactElement
divSearchBar :: forall props eff. Spec (dom :: DOM |eff) AppState props Action
divSearchBar = ul [ className "nav navbar-nav"
divSearchBar = simpleSpec performAction render
, style { "margin-left" : "146px"}
where
] [ div [className "navbar-form"]
render :: Render AppState props Action
[ input [ className "search-query"
render dispatch _ state _ = [div [ className "" ] [ searchbar']]
, placeholder "Query, URL or FILE (works with Firefox or Chromium browsers)"
where
, _type "text"
searchbar' = ul [ className "nav navbar-nav"
, style { height: "35px"
, style { "margin-left" : "79px"}
, width : "450px"
] [ div [className "navbar-form"]
-- , color: "white"
[ input [ className "search-query"
-- , background : "#A1C2D8"
, placeholder "Query, URL or FILE (works with Firefox or Chromium browsers)"
}
, _type "text"
] []
, style { height: "35px"
-- TODO add button in navbar (and "enter" execution)
, width : "450px"
-- , div [] [button [][]]
-- , color: "white"
-- , background : "#A1C2D8"
}
] []
-- TODO add button in navbar (and "enter" execution)
-- , div [] [button [][]]
]
]
]
]
--divDropdownRight :: Render AppState props Action
--divDropdownRight :: Render AppState props Action
divDropdownRight :: ReactElement
divDropdownRight :: ReactElement
...
...
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