Verified Commit 7559b2da authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

Merge branch 'dev' into dev-spago-next

parents de565b71 5bc54f10
{ {
"name": "Gargantext", "name": "Gargantext",
"version": "0.0.7.1.2", "version": "0.0.7.1.3",
"scripts": { "scripts": {
"build": "spago build", "build": "spago build",
"bundle": "spago bundle --module Main --outfile dist/bundle.js", "bundle": "spago bundle --module Main --outfile dist/bundle.js",
......
...@@ -595,7 +595,7 @@ nodeActionsCpt = here.component "nodeActions" cpt where ...@@ -595,7 +595,7 @@ nodeActionsCpt = here.component "nodeActions" cpt where
childProps = Record.delete nodeActionsP props childProps = Record.delete nodeActionsP props
child GT.NodeList = listNodeActions childProps 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 child _ = mempty
graphNodeActions :: R2.Leaf NodeActionsCommon graphNodeActions :: R2.Leaf NodeActionsCommon
......
...@@ -486,12 +486,17 @@ stringedMaybeToNumber s = ...@@ -486,12 +486,17 @@ stringedMaybeToNumber s =
-- | -- |
-- | To ["user", "sentiment analysis"] :: Array String -- | To ["user", "sentiment analysis"] :: Array String
stringedArrayToArray :: String -> Array String stringedArrayToArray :: String -> Array String
stringedArrayToArray str stringedArrayToArray str =
= str # String.length if String.contains (String.Pattern "\\\"") str
>>> (\length -> String.splitAt (length - 1) str) then
>>> (\{ before } -> String.splitAt 1 before) str # String.length
>>> (\{ after } -> String.split (String.Pattern "|") after) >>> (\length -> String.splitAt (length - 1) str)
>>> map String.trim >>> (\{ 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 -- | 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