Commit 6fa1c9d7 authored by arturo's avatar arturo

>>> continue

parent dbb0fd41
...@@ -18,6 +18,4 @@ footer = R.createElement footerCpt ...@@ -18,6 +18,4 @@ footer = R.createElement footerCpt
footerCpt :: R.Component FooterProps footerCpt :: R.Component FooterProps
footerCpt = here.component "footer" cpt where footerCpt = here.component "footer" cpt where
cpt { } _ = do cpt { } _ = do
-- (?) as the footer is empty for now, just output nothing pure $ H.div { className: "container" } [ H.hr {}, H.footer {} [] ]
-- pure $ H.div { className: "container" } [ H.hr {}, H.footer {} [] ]
pure mempty
...@@ -13,7 +13,6 @@ import Data.Foldable (for_) ...@@ -13,7 +13,6 @@ import Data.Foldable (for_)
import Data.FoldableWithIndex (forWithIndex_) import Data.FoldableWithIndex (forWithIndex_)
import Data.Maybe (Maybe(..), maybe) import Data.Maybe (Maybe(..), maybe)
import Effect (Effect) import Effect (Effect)
import Effect.Class (liftEffect)
import Effect.Uncurried (EffectFn1, EffectFn7, runEffectFn1, runEffectFn7) import Effect.Uncurried (EffectFn1, EffectFn7, runEffectFn1, runEffectFn7)
import FFI.Simple (applyTo, getProperty, (..), (.=), (.?)) import FFI.Simple (applyTo, getProperty, (..), (.=), (.?))
import Gargantext.Components.PhyloExplorer.Types (AncestorLink, Branch, BranchLink, GlobalTerm(..), Group(..), Link, Period, PhyloDataSet(..)) import Gargantext.Components.PhyloExplorer.Types (AncestorLink, Branch, BranchLink, GlobalTerm(..), Group(..), Link, Period, PhyloDataSet(..))
...@@ -126,7 +125,11 @@ setGlobalDependencies w (PhyloDataSet o) ...@@ -126,7 +125,11 @@ setGlobalDependencies w (PhyloDataSet o)
, fdt : val' , fdt : val'
} }
pure $ terms ~~ "flat" $ [] -- Use FFI native `Array.flat` method (not mutating its caller in this
-- context)
void do
new <- pure $ (terms ~~ "flat") []
pure $ (w .= "terms") new
-- @XXX: prevent PureScript from not injecting D3 -- @XXX: prevent PureScript from not injecting D3
setGlobalD3Reference :: Window -> D3 -> Effect Unit setGlobalD3Reference :: Window -> D3 -> Effect Unit
...@@ -213,7 +216,7 @@ highlightSource window value = ...@@ -213,7 +216,7 @@ highlightSource window value =
addClass el [ "source-focus" ] addClass el [ "source-focus" ]
fill "#a6bddb" el fill "#a6bddb" el
bid <- liftEffect $ applyTo_ el "getAttribute" [ "bId" ] bid <- pure $ (el ~~ "getAttribute") [ "bId" ]
void $ void $
D3S.rootSelect ("#peak-" <> bid) D3S.rootSelect ("#peak-" <> bid)
......
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