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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
8e79e206
Commit
8e79e206
authored
May 06, 2024
by
mzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add phylo export dot format
parent
c9caff4f
Pipeline
#6107
failed with stages
in 8 minutes and 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Download.purs
...rgantext/Components/Forest/Tree/Node/Action/Download.purs
+7
-7
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Download.purs
View file @
8e79e206
...
...
@@ -158,21 +158,21 @@ actionDownloadNodeTextsCpt = here.component "actionDownloadNodeTexts" cpt where
info t = "Info about the Documents as " <> show t <> " format"
data PhyloDownloadFormat = PH_JSON
--
| PH_DOT
data PhyloDownloadFormat = PH_JSON | PH_DOT
derive instance Eq PhyloDownloadFormat
derive instance Generic PhyloDownloadFormat _
instance Show PhyloDownloadFormat where
show PH_JSON = "JSON"
--
show PH_DOT = "DOT"
show PH_DOT = "DOT"
urlPhyloDownloadFormat :: PhyloDownloadFormat -> String
urlPhyloDownloadFormat PH_JSON = "json"
--
urlPhyloDownloadFormat PH_DOT = "dot"
urlPhyloDownloadFormat PH_DOT = "dot"
readPhyloDownloadFormat :: String -> PhyloDownloadFormat
readPhyloDownloadFormat "JSON" = PH_JSON
--
readPhyloDownloadFormat "DOT" = PH_DOT
readPhyloDownloadFormat _ = PH_
JSON -- PH_
DOT
readPhyloDownloadFormat "DOT" = PH_DOT
readPhyloDownloadFormat _ = PH_DOT
actionDownloadPhylo :: R2.Component ActionDownload
actionDownloadPhylo = R.createElement actionDownloadPhyloCpt
...
...
@@ -180,7 +180,7 @@ actionDownloadPhylo = R.createElement actionDownloadPhyloCpt
actionDownloadPhyloCpt :: R.Component ActionDownload
actionDownloadPhyloCpt = here.component "actionDownloadPhylo" cpt where
cpt { id, session } _ = do
downloadFormat <- T.useBox PH_
JSON -- PH_
DOT
downloadFormat <- T.useBox PH_DOT
downloadFormat' <- T.useLive T.unequal downloadFormat
pure $ Tools.panelWithSubmitButtonHref { action: DownloadNode
...
...
@@ -190,7 +190,7 @@ actionDownloadPhyloCpt = here.component "actionDownloadPhylo" cpt where
, defaultValue: show downloadFormat'
, on: { change: onChange downloadFormat } }
[ opt PH_JSON
--
, opt PH_DOT
, opt PH_DOT
]
, H.div {} [ H.text $ info downloadFormat' ]
]
...
...
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