Commit 57762d28 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski Committed by Alexandre Delanoë

[search] fix searx url

Also, some fixes to react component errors.
parent 3e5c165d
...@@ -72,7 +72,7 @@ divIframeCpt = R2.hooksComponent thisModule "divIframe" cpt ...@@ -72,7 +72,7 @@ divIframeCpt = R2.hooksComponent thisModule "divIframe" cpt
frameUrl :: FrameSource -> String frameUrl :: FrameSource -> String
frameUrl Istex = "https://istex.frame.gargantext.org" frameUrl Istex = "https://istex.frame.gargantext.org"
frameUrl Searx = "http://searx.frame.gargantext.org" -- 192.168.1.4:8080" frameUrl Searx = "https://searx.frame.gargantext.org" -- 192.168.1.4:8080"
iframeWith :: Record IFrameProps -> R.Element iframeWith :: Record IFrameProps -> R.Element
......
...@@ -342,12 +342,11 @@ searchInputComponent = R2.hooksComponent thisModule "searchInput" cpt ...@@ -342,12 +342,11 @@ searchInputComponent = R2.hooksComponent thisModule "searchInput" cpt
cpt {search: (search /\ setSearch)} _ = do cpt {search: (search /\ setSearch)} _ = do
pure $ pure $
H.div { className : "" } H.div { className : "" }
[ H.input { defaultValue: search.term [ H.input { className: "form-control"
, value: search.term , defaultValue: search.term
, className: "form-control"
, type: "text"
, on: { change : onChange setSearch } , on: { change : onChange setSearch }
, placeholder: "Your Query here" , placeholder: "Your Query here"
, type: "text"
} }
] ]
onChange setSearch e = do onChange setSearch e = do
......
...@@ -142,7 +142,7 @@ nodePopupCpt = R2.hooksComponent thisModule "nodePopupView" cpt ...@@ -142,7 +142,7 @@ nodePopupCpt = R2.hooksComponent thisModule "nodePopupView" cpt
-> R.Element -> R.Element
panelBody nodePopupState {dispatch: d, nodeType} = panelBody nodePopupState {dispatch: d, nodeType} =
H.div {className: "panel-body flex-space-between"} H.div {className: "panel-body flex-space-between"}
$ [ H.p { class: "spacer" } [] $ [ H.p { className: "spacer" } []
, H.div { className: "flex-center" } , H.div { className: "flex-center" }
[ buttonClick { action: doc [ buttonClick { action: doc
, state: nodePopupState , state: nodePopupState
......
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