Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
0e18fb93
Commit
0e18fb93
authored
Feb 11, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] NodeList has hyperdata.
parent
4841cdf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
Node.purs
src/Gargantext/Components/Node.purs
+7
-0
Config.purs
src/Gargantext/Config.purs
+1
-1
Corpus.purs
src/Gargantext/Pages/Corpus.purs
+2
-2
No files found.
src/Gargantext/Components/Node.purs
View file @
0e18fb93
...
@@ -38,4 +38,11 @@ instance decodeNodePoly :: (DecodeJson a)
...
@@ -38,4 +38,11 @@ instance decodeNodePoly :: (DecodeJson a)
, hyperdata: hyperdata'
, hyperdata: hyperdata'
}
}
newtype HyperdataList = HyperdataList { preferences :: String}
instance decodeHyperdataList :: DecodeJson HyperdataList where
decodeJson json = do
obj <- decodeJson json
pref <- obj .? "preferences"
pure $ HyperdataList { preferences : pref}
src/Gargantext/Config.purs
View file @
0e18fb93
...
@@ -26,7 +26,7 @@ endConfig = endConfig' V10
...
@@ -26,7 +26,7 @@ endConfig = endConfig' V10
endConfig' :: ApiVersion -> EndConfig
endConfig' :: ApiVersion -> EndConfig
endConfig' v = { front : frontRelative
endConfig' v = { front : frontRelative
, back : back
Dev
v }
, back : back
Local
v }
------------------------------------------------------------------------
------------------------------------------------------------------------
frontRelative :: Config
frontRelative :: Config
...
...
src/Gargantext/Pages/Corpus.purs
View file @
0e18fb93
...
@@ -10,7 +10,7 @@ import React (ReactClass, ReactElement)
...
@@ -10,7 +10,7 @@ import React (ReactClass, ReactElement)
import Thermite (Spec, Render, simpleSpec, createClass, defaultPerformAction)
import Thermite (Spec, Render, simpleSpec, createClass, defaultPerformAction)
--------------------------------------------------------
--------------------------------------------------------
import Gargantext.Prelude
import Gargantext.Prelude
import Gargantext.Components.Node (NodePoly(..))
import Gargantext.Components.Node (NodePoly(..)
, HyperdataList(..)
)
import Gargantext.Components.Loader as Loader
import Gargantext.Components.Loader as Loader
import Gargantext.Components.Loader (createLoaderClass)
import Gargantext.Components.Loader (createLoaderClass)
import Gargantext.Components.Table as Table
import Gargantext.Components.Table as Table
...
@@ -60,7 +60,7 @@ getCorpus :: Int -> Aff CorpusData
...
@@ -60,7 +60,7 @@ getCorpus :: Int -> Aff CorpusData
getCorpus corpusId = do
getCorpus corpusId = do
corpusNode <- get $ toUrl Back Corpus $ Just corpusId
corpusNode <- get $ toUrl Back Corpus $ Just corpusId
defaultListIds <- get $ toUrl Back (Children NodeList 0 1 Nothing) $ Just corpusId
defaultListIds <- get $ toUrl Back (Children NodeList 0 1 Nothing) $ Just corpusId
case (head defaultListIds :: Maybe (NodePoly
Uni
t)) of
case (head defaultListIds :: Maybe (NodePoly
HyperdataLis
t)) of
Just (NodePoly { id: defaultListId }) ->
Just (NodePoly { id: defaultListId }) ->
pure {corpusNode, defaultListId}
pure {corpusNode, defaultListId}
Nothing ->
Nothing ->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment