Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-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
Christian Merten
haskell-gargantext
Commits
40967e89
Commit
40967e89
authored
Feb 14, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REBASE] Dev <-> dev-phylo
parent
dc29199c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
API.hs
src/Gargantext/Core/Viz/Phylo/API.hs
+1
-1
LegacyAPI.hs
src/Gargantext/Core/Viz/Phylo/Legacy/LegacyAPI.hs
+3
-1
Phylo.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Phylo.hs
+1
-1
No files found.
src/Gargantext/Core/Viz/Phylo/API.hs
View file @
40967e89
...
...
@@ -76,7 +76,7 @@ phylo2dot2json phylo = do
_
<-
Shell
.
callProcess
"/usr/bin/dot"
[
"-Txdot_json"
,
"-o"
,
file_to_json
,
file_dot
]
maybeValue
<-
decodeFileStrict
file_to_json
_
<-
Shell
.
callProcess
"/bin/rm"
[
"-rf"
,
file_from
,
file_to_json
,
file_dot
]
case
maybeValue
of
...
...
src/Gargantext/Core/Viz/Phylo/Legacy/LegacyAPI.hs
View file @
40967e89
...
...
@@ -37,6 +37,8 @@ import Gargantext.Database.Query.Table.Node (insertNodes, node)
import
Gargantext.Prelude
import
Gargantext.Core.Viz.LegacyPhylo
import
Gargantext.Core.Viz.Phylo.Legacy.LegacyMain
import
Gargantext.Core.Viz.Phylo.API
import
Gargantext.Core.Viz.Phylo
(
defaultConfig
)
-- import Gargantext.Core.Viz.Phylo.Example
import
Gargantext.Core.Types
(
TODO
(
..
))
import
Data.Either
...
...
@@ -126,7 +128,7 @@ postPhylo corpusId userId _lId = do
-- _vrs = Just ("1" :: Text)
-- _sft = Just (Software "Gargantext" "4")
-- _prm = initPhyloParam vrs sft (Just q)
phy
<-
flowPhylo
corpusId
-- params
phy
<-
flowPhylo
API
defaultConfig
corpusId
-- params
phyloId
<-
insertNodes
[
node
NodePhylo
"Phylo"
(
HyperdataPhylo
Nothing
(
Just
phy
))
(
Just
corpusId
)
userId
]
pure
$
NodeId
(
fromIntegral
phyloId
)
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/Phylo.hs
View file @
40967e89
...
...
@@ -23,7 +23,7 @@ module Gargantext.Database.Admin.Types.Hyperdata.Phylo
import
Gargantext.Prelude
import
Gargantext.Database.Admin.Types.Hyperdata.Prelude
import
Gargantext.Core.Viz.
Legacy
Phylo
(
Phylo
(
..
))
import
Gargantext.Core.Viz.Phylo
(
Phylo
(
..
))
------------------------------------------------------------------------
...
...
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