Verified Commit ea89cf3d authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev-spago-next' into dev-add-edge-weight-control

parents 55e72aea 7559b2da
Pipeline #6051 failed with stages
in 16 minutes and 57 seconds
{
"name": "Gargantext",
"version": "0.0.7.1.2",
"version": "0.0.7.1.3",
"scripts": {
"build": "spago build",
"bundle": "spago bundle --module Main --outfile dist/bundle.js",
......
......@@ -595,7 +595,7 @@ nodeActionsCpt = here.component "nodeActions" cpt where
childProps = Record.delete nodeActionsP props
child GT.NodeList = listNodeActions childProps
child GT.Graph = graphNodeActions childProps
-- child GT.Graph = graphNodeActions childProps --Remove the refresh/sync icon removed on #644 (purescript-gargantext)
child _ = mempty
graphNodeActions :: R2.Leaf NodeActionsCommon
......
......@@ -486,12 +486,17 @@ stringedMaybeToNumber s =
-- |
-- | To ["user", "sentiment analysis"] :: Array String
stringedArrayToArray :: String -> Array String
stringedArrayToArray str
= str # String.length
>>> (\length -> String.splitAt (length - 1) str)
>>> (\{ before } -> String.splitAt 1 before)
>>> (\{ after } -> String.split (String.Pattern "|") after)
>>> map String.trim
stringedArrayToArray str =
if String.contains (String.Pattern "\\\"") str
then
str # String.length
>>> (\length -> String.splitAt (length - 1) str)
>>> (\{ before } -> String.splitAt 1 before)
>>> (\{ after } -> String.split (String.Pattern "|") after)
>>> map String.trim
else
str # String.split (String.Pattern "|")
>>> map String.trim
-- | From "\"97 | 257 | 542 | 574 | 577 | 597 | 785\"" :: String
-- |
......
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