Commit 84e37639 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[HOME] simplify the test of gargantext with a hidden back door that will...

[HOME] simplify the test of gargantext with a hidden back door that will spread among the users (a trick to share).
parent 64cd8e54
...@@ -26,7 +26,7 @@ initialState = State ...@@ -26,7 +26,7 @@ initialState = State
data Action data Action
= NoOp = NoOp
| Documentation | Documentation
| Submit | Enter
| SignUp | SignUp
...@@ -37,8 +37,8 @@ performAction NoOp _ _ = void do ...@@ -37,8 +37,8 @@ performAction NoOp _ _ = void do
performAction Documentation _ _ = void do performAction Documentation _ _ = void do
T.modifyState \state -> state T.modifyState \state -> state
performAction Submit _ _ = void do performAction Enter _ _ = void do
lift $ setHash "/login" lift $ setHash "/search"
T.modifyState \state -> state T.modifyState \state -> state
performAction SignUp _ _ = void do performAction SignUp _ _ = void do
...@@ -143,19 +143,24 @@ loginSpec = simpleSpec performAction render ...@@ -143,19 +143,24 @@ loginSpec = simpleSpec performAction render
h1 [] h1 []
[ text "Gargantext" ] [ text "Gargantext" ]
, p [] , p []
[ text "A web platform to explore text-mining" ] [ text "Collaborative knowledge mapping experience" ]
-- TODO : put the login in top right page [#54]
, p [] , p []
[ a [ className "btn btn-primary btn-lg spacing-class ",onClick \_ -> dispatch $ Submit , title "Click and test by yourself" ] [
[ span [ className "glyphicon glyphicon-hand-right" ] -- a [ className "btn btn-primary btn-lg spacing-class ", onClick \_ -> dispatch $ Submit , title "Click and test by yourself" ]
[] -- [ span [ className "glyphicon glyphicon-hand-right" ]
, text " Login" -- []
] -- , text " Login"
, a [ className "btn btn-warning btn-lg spacing-class", href "https://iscpif.fr/services/applyforourservices/", target "blank", title "Fill the form to sign up" ] -- ]
[ span [ aria {hidden : true}, className "glyphicon glyphicon-hand-right" ] ---- TODO: login / sign up will not be mandatory any more (mandatory to save/share your research only)
[] ---- TODO: ask for login or account creation after 5 mn when user is not logged and has made one search at least
, text "Sign Up" -- , a [ className "btn btn-warning btn-lg spacing-class", href "https://iscpif.fr/services/applyforourservices/", target "blank", title "Fill the form to sign up" ]
] -- [ span [ aria {hidden : true}, className "glyphicon glyphicon-hand-right" ]
, a [ className "btn btn-success btn-lg spacing-class", href "https://iscpif.fr/gargantext/your-first-map/", target "blank", title "Fill the form to sign up" ] -- []
-- , text "Sign Up"
-- ]
a [ className "btn btn-success btn-lg spacing-class", href "https://iscpif.fr/gargantext/your-first-map/", target "blank", title "Fill the form to sign up" ]
[ span [ aria {hidden : true}, className "glyphicon glyphicon-hand-right" ] [ span [ aria {hidden : true}, className "glyphicon glyphicon-hand-right" ]
[] []
, text "Documentation" , text "Documentation"
...@@ -183,7 +188,11 @@ loginSpec = simpleSpec performAction render ...@@ -183,7 +188,11 @@ loginSpec = simpleSpec performAction render
, div [className "container"] , div [className "container"]
[ div [className "row"] [ div [className "row"]
[ div [className "col-md-offset-5 col-md-6 content"] [ div [className "col-md-offset-5 col-md-6 content"]
[ img [ src "images/Gargantextuel-212x300.jpg", title "Gargantextuel drawn by Cecile Meadel", _id "funnyimg"] [] [ img [ src "images/Gargantextuel-212x300.jpg"
, title "Gargantextuel drawn by Cecile Meadel"
, _id "funnyimg"
, onClick \_ -> dispatch $ Enter , title "Click and test by yourself"
] []
] ]
] ]
] ]
...@@ -241,7 +250,7 @@ loginSpec = simpleSpec performAction render ...@@ -241,7 +250,7 @@ loginSpec = simpleSpec performAction render
[ text "Gargantext " [ text "Gargantext "
, span [className "glyphicon glyphicon-registration-mark" ] , span [className "glyphicon glyphicon-registration-mark" ]
[] []
, text ", version 3.1" , text ", version 4.0"
, a [ href "http://www.cnrs.fr", target "blank", title "Institution that enables this project." ] , a [ href "http://www.cnrs.fr", target "blank", title "Institution that enables this project." ]
[ text ", Copyrights " [ text ", Copyrights "
, span [ className "glyphicon glyphicon-copyright-mark" ] , span [ className "glyphicon glyphicon-copyright-mark" ]
......
...@@ -201,8 +201,6 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -201,8 +201,6 @@ sidebarnavSpec = simpleSpec performAction render
[ span [ aria {hidden : true}, className "glyphicon glyphicon-info-sign" ] [ span [ aria {hidden : true}, className "glyphicon glyphicon-info-sign" ]
[] []
, text "Info" , text "Info"
, i [ className "caret" ]
[]
] ]
, ul [className "dropdown-menu"] , ul [className "dropdown-menu"]
...@@ -231,8 +229,6 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -231,8 +229,6 @@ sidebarnavSpec = simpleSpec performAction render
[] []
, span [ aria {hidden : true}, className "glyphicon glyphicon-user", style {color:"white"} ] , span [ aria {hidden : true}, className "glyphicon glyphicon-user", style {color:"white"} ]
[] []
, i [ className "caret" ]
[]
] ]
, ul [className "dropdown-menu"] , ul [className "dropdown-menu"]
[ [
...@@ -240,7 +236,7 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -240,7 +236,7 @@ sidebarnavSpec = simpleSpec performAction render
[ a [tabIndex (-1), target "blank", title "Send us a message (bug, thanks, congrats...)", href "https://www.iscpif.fr/gargantext/feedback-and-bug-reports/"] [ a [tabIndex (-1), target "blank", title "Send us a message (bug, thanks, congrats...)", href "https://www.iscpif.fr/gargantext/feedback-and-bug-reports/"]
[ [
span [ className "glyphicon glyphicon-bullhorn" ,aria {hidden : true}] [] span [ className "glyphicon glyphicon-bullhorn" ,aria {hidden : true}] []
, text "Report Feedback" , text " Report Feedback"
] ]
] ]
, li [ className"divider"] , li [ className"divider"]
...@@ -248,7 +244,7 @@ sidebarnavSpec = simpleSpec performAction render ...@@ -248,7 +244,7 @@ sidebarnavSpec = simpleSpec performAction render
, li [] , li []
[ a [tabIndex (-1), href "/auth/login" ] [ a [tabIndex (-1), href "/auth/login" ]
[ span [className "glyphicon glyphicon-log-in",aria {hidden : true}] [] [ span [className "glyphicon glyphicon-log-in",aria {hidden : true}] []
, text "login" , text " Login"
] ]
] ]
] ]
......
...@@ -47,8 +47,8 @@ performAction GO _ _ = void do ...@@ -47,8 +47,8 @@ performAction GO _ _ = void do
unsafeEventValue :: forall event. event -> String unsafeEventValue :: forall event. event -> String
unsafeEventValue e = (unsafeCoerce e).target.value unsafeEventValue e = (unsafeCoerce e).target.value
-- TODO: case loggedIn of True -> Just Tree ; False -> Nothing
-- TODO: put the search form in the center of the page
searchSpec :: forall props eff . Spec (console::CONSOLE, ajax::AJAX, dom::DOM | eff) State props Action searchSpec :: forall props eff . Spec (console::CONSOLE, ajax::AJAX, dom::DOM | eff) State props Action
searchSpec = simpleSpec performAction render searchSpec = simpleSpec performAction render
where where
...@@ -81,7 +81,7 @@ searchSpec = simpleSpec performAction render ...@@ -81,7 +81,7 @@ searchSpec = simpleSpec performAction render
, div [className "col-md-2"] , div [className "col-md-2"]
[ br' [] [ br' []
, br' [] , br' []
-- TODO put Gargantext logo as search button
, button [onClick \_ -> dispatch GO] [text "GO"] , button [onClick \_ -> dispatch GO] [text "GO"]
] ]
] ]
......
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