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
154
Issues
154
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
88d21afa
Verified
Commit
88d21afa
authored
Oct 24, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tsv] tsvv4 first draft
parent
f0d581ec
Pipeline
#7993
passed with stages
in 24 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Download.purs
...rgantext/Components/Forest/Tree/Node/Action/Download.purs
+6
-2
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Download.purs
View file @
88d21afa
...
...
@@ -172,21 +172,24 @@ actionDownloadNodeListCpt = here.component "actionDownloadNodeList" cpt
info :: NodeListDownloadFormat -> String
info t = "Info about the Documents as " <> show t <> " format"
data NodeTextsDownloadFormat = NT_TSV | NT_JSON | NT_JSON_ZIP
data NodeTextsDownloadFormat = NT_TSV
4 | NT_TSV
| NT_JSON | NT_JSON_ZIP
derive instance Eq NodeTextsDownloadFormat
derive instance Generic NodeTextsDownloadFormat _
instance Show NodeTextsDownloadFormat where
show NT_TSV4 = "TSV v4"
show NT_TSV = "TSV"
show NT_JSON = "JSON"
show NT_JSON_ZIP = "JSON (zipped)"
urlNodeTextsDownloadFormat :: NodeTextsDownloadFormat -> String
urlNodeTextsDownloadFormat NT_TSV4 = "tsvv4"
urlNodeTextsDownloadFormat NT_TSV = "tsv"
urlNodeTextsDownloadFormat NT_JSON = "json"
urlNodeTextsDownloadFormat NT_JSON_ZIP = "json.zip"
readNodeTextsDownloadFormat :: String -> NodeTextsDownloadFormat
readNodeTextsDownloadFormat "TSV v4" = NT_TSV4
readNodeTextsDownloadFormat "TSV" = NT_TSV
readNodeTextsDownloadFormat "JSON" = NT_JSON
readNodeTextsDownloadFormat "JSON (zippped)" = NT_JSON_ZIP
...
...
@@ -214,7 +217,8 @@ actionDownloadNodeTextsCpt = here.component "actionDownloadNodeTexts" cpt
, defaultValue: show downloadFormat'
, on: { change: onChange downloadFormat }
}
[ opt NT_TSV
[ opt NT_TSV4
, opt NT_TSV
, opt NT_JSON
, opt NT_JSON_ZIP
]
...
...
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