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
99ca6f6e
Commit
99ca6f6e
authored
Jan 27, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPLOAD] File CSV HAL and Garg V3
parent
d028c9a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Action.purs
src/Gargantext/Components/Forest/Tree/Node/Action.purs
+2
-1
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action.purs
View file @
99ca6f6e
...
@@ -20,7 +20,7 @@ data Action = Submit String
...
@@ -20,7 +20,7 @@ data Action = Submit String
-----------------------------------------------------
-----------------------------------------------------
-- UploadFile Action
-- UploadFile Action
-- file upload types
-- file upload types
data FileType = CSV | PresseRIS
data FileType = CSV |
CSV_HAL |
PresseRIS
derive instance genericFileType :: Generic FileType _
derive instance genericFileType :: Generic FileType _
...
@@ -31,6 +31,7 @@ instance showFileType :: Show FileType where
...
@@ -31,6 +31,7 @@ instance showFileType :: Show FileType where
show = genericShow
show = genericShow
readFileType :: String -> Maybe FileType
readFileType :: String -> Maybe FileType
readFileType "CSV_HAL" = Just CSV_HAL
readFileType "CSV" = Just CSV
readFileType "CSV" = Just CSV
readFileType "PresseRIS" = Just PresseRIS
readFileType "PresseRIS" = Just PresseRIS
readFileType _ = Nothing
readFileType _ = 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