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
132
Issues
132
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
638ebb8f
Commit
638ebb8f
authored
Mar 13, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[COSMETICS] link to login missing.
parent
b81a66c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
Landing.purs
src/Landing.purs
+5
-0
Navigation.purs
src/Navigation.purs
+12
-8
No files found.
src/Landing.purs
View file @
638ebb8f
...
@@ -27,6 +27,7 @@ data Action
...
@@ -27,6 +27,7 @@ data Action
= NoOp
= NoOp
| Documentation
| Documentation
| Enter
| Enter
| Login
| SignUp
| SignUp
...
@@ -41,6 +42,10 @@ performAction Enter _ _ = void do
...
@@ -41,6 +42,10 @@ performAction Enter _ _ = void do
lift $ setHash "/search"
lift $ setHash "/search"
T.modifyState \state -> state
T.modifyState \state -> state
performAction Login _ _ = void do
lift $ setHash "/login"
T.modifyState \state -> state
performAction SignUp _ _ = void do
performAction SignUp _ _ = void do
T.modifyState \state -> state
T.modifyState \state -> state
...
...
src/Navigation.purs
View file @
638ebb8f
...
@@ -18,9 +18,10 @@ import PageRouter (Routes(..))
...
@@ -18,9 +18,10 @@ import PageRouter (Routes(..))
import Prelude hiding (div)
import Prelude hiding (div)
import React (ReactElement)
import React (ReactElement)
import React.DOM (a, div, i, img, li, span, text, ul, map')
import React.DOM (a, div, i, img, li, span, text, ul, map')
import React.DOM.Props (_data, _id, aria, className, href, role, src, style, tabIndex, target, title)
import React.DOM.Props (_data, _id, aria, className, href, role, src, style, tabIndex, target, title
, onClick
)
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import Thermite (PerformAction, Render, Spec, _render, defaultRender, focus, modifyState, simpleSpec, withState)
import DocView as DV
import DocView as DV
import Landing as Landing
import SearchForm as S
import SearchForm as S
import UserPage as UP
import UserPage as UP
...
@@ -219,7 +220,11 @@ sidebarnavSpec = simpleSpec performAction render
...
@@ -219,7 +220,11 @@ sidebarnavSpec = simpleSpec performAction render
render :: Render AppState props Action
render :: Render AppState props Action
render dispatch _ state _ =
render dispatch _ state _ =
[
[
div [ _id "dafixedtop", className "navbar navbar-inverse navbar-fixed-top", role "navigation"]
div [ _id "dafixedtop"
, className "navbar navbar-inverse navbar-fixed-top"
, role "navigation"
]
[ div [className "container"]
[ div [className "container"]
[ divLogo
[ divLogo
-- divDropdownLeft
-- divDropdownLeft
...
@@ -236,7 +241,9 @@ sidebarnavSpec = simpleSpec performAction render
...
@@ -236,7 +241,9 @@ sidebarnavSpec = simpleSpec performAction render
, href "#", role "button"
, href "#", role "button"
, title "Informations about Gargantext"
, title "Informations about Gargantext"
]
]
[ span [ aria {hidden : true}, className "glyphicon glyphicon-info-sign" ] []
[ span [ aria {hidden : true}
, className "glyphicon glyphicon-info-sign"
] []
, text " Info"
, text " Info"
]
]
, ul [className "dropdown-menu"]
, ul [className "dropdown-menu"]
...
@@ -292,7 +299,8 @@ divDropdownRight = ul [className "nav navbar-nav pull-right"]
...
@@ -292,7 +299,8 @@ divDropdownRight = ul [className "nav navbar-nav pull-right"]
a [
a [
className "dropdown-toggle navbar-text"
className "dropdown-toggle navbar-text"
, _data {toggle : "dropdown"}
, _data {toggle : "dropdown"}
, href "#", role "button"
-- , onClick \_ -> dispatch $ Login
, role "button"
, title "Username"
, title "Username"
]
]
...
@@ -370,7 +378,3 @@ dispatchAction dispatcher _ UserPage = do
...
@@ -370,7 +378,3 @@ dispatchAction dispatcher _ UserPage = do
_ <- 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