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
8236fa06
Commit
8236fa06
authored
Mar 16, 2018
by
Abinaya Sudhir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search bar centered
parent
6f470f3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
Navigation.purs
src/Navigation.purs
+16
-20
No files found.
src/Navigation.purs
View file @
8236fa06
...
@@ -8,6 +8,7 @@ import Data.Either (Either(..))
...
@@ -8,6 +8,7 @@ import Data.Either (Either(..))
import Data.Foldable (fold)
import Data.Foldable (fold)
import Data.Lens (Lens', Prism', lens, over, prism)
import Data.Lens (Lens', Prism', lens, over, prism)
import Data.Maybe (Maybe(Nothing, Just))
import Data.Maybe (Maybe(Nothing, Just))
import DocView as DV
import Landing as L
import Landing as L
import Login as LN
import Login as LN
import Network.HTTP.Affjax (AJAX)
import Network.HTTP.Affjax (AJAX)
...
@@ -15,11 +16,11 @@ import PageRouter (Routes(..))
...
@@ -15,11 +16,11 @@ import PageRouter (Routes(..))
import Prelude (class Applicative, class Bind, Unit, bind, id, map, negate, pure, unit, void, ($), (<>))
import Prelude (class Applicative, class Bind, Unit, bind, id, map, negate, pure, unit, void, ($), (<>))
import React (ReactElement)
import React (ReactElement)
import React.DOM (a, div, img, li, span, text, ul, input, button, footer, p, hr, form)
import React.DOM (a, div, img, li, span, text, ul, input, button, footer, p, hr, form)
import React.DOM.Props (_data, _id, aria, className, href, name, placeholder, _type, role, src, style, tabIndex, target, title)
import React.DOM.Props (_data, _id, _type, aria, className, href, name, placeholder, role, src, style, tabIndex, target, title)
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import DocView as DV
import SearchForm as S
import SearchForm as S
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import UserPage as UP
import UserPage as UP
import React.DOM.Props as RP
type E e = (dom :: DOM, ajax :: AJAX, console :: CONSOLE | e)
type E e = (dom :: DOM, ajax :: AJAX, console :: CONSOLE | e)
...
@@ -198,7 +199,6 @@ layoutSidebar = simpleSpec performAction render
...
@@ -198,7 +199,6 @@ layoutSidebar = simpleSpec performAction render
[ divLogo
[ divLogo
, div [ className "collapse navbar-collapse"]
, div [ className "collapse navbar-collapse"]
[ divDropdownLeft
[ divDropdownLeft
, ul [className "nav navbar-nav"][text " XXXXXXXXXXXXXXXXXXX "]
, divSearchBar
, divSearchBar
, divDropdownRight
, divDropdownRight
]
]
...
@@ -296,7 +296,7 @@ liNav (LiNav { title:tit
...
@@ -296,7 +296,7 @@ liNav (LiNav { title:tit
-- 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 :: ReactElement
divSearchBar = ul [ className "nav navbar-nav"]
divSearchBar = ul [ className "nav navbar-nav"
, style { "margin-left" : "146px"}
]
[ div [className "navbar-form"]
[ div [className "navbar-form"]
[ input [ className "search-query"
[ input [ className "search-query"
, placeholder "Query, URL or FILE (works with Firefox or Chromium browsers)"
, placeholder "Query, URL or FILE (works with Firefox or Chromium browsers)"
...
@@ -407,7 +407,3 @@ dispatchAction dispatcher _ UserPage = do
...
@@ -407,7 +407,3 @@ dispatchAction dispatcher _ UserPage = do
_ <- dispatcher $ SetRoute $ UserPage
_ <- dispatcher $ SetRoute $ UserPage
_ <- dispatcher $ UserPageA $ UP.NoOp
_ <- dispatcher $ UserPageA $ UP.NoOp
pure unit
pure unit
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