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
1
Merge Requests
1
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
Przemyslaw Kaminski
purescript-gargantext
Commits
40e5cc4b
Unverified
Commit
40e5cc4b
authored
May 20, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Search.Types: Add All
parent
94fa4018
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Types.purs
src/Gargantext/Components/Search/Types.purs
+4
-2
No files found.
src/Gargantext/Components/Search/Types.purs
View file @
40e5cc4b
...
@@ -19,21 +19,23 @@ import Gargantext.Pages.Layout.Specs.AddCorpus.States (Response, State)
...
@@ -19,21 +19,23 @@ import Gargantext.Pages.Layout.Specs.AddCorpus.States (Response, State)
import Gargantext.Utils (id)
import Gargantext.Utils (id)
import URI.Extra.QueryPairs as QP
import URI.Extra.QueryPairs as QP
data Database = PubMed | HAL
data Database = PubMed | HAL
| All
instance showDatabase :: Show Database where
instance showDatabase :: Show Database where
show PubMed = "PubMed"
show PubMed = "PubMed"
show HAL = "HAL"
show HAL = "HAL"
show All = "All"
readDatabase :: String -> Maybe Database
readDatabase :: String -> Maybe Database
readDatabase "PubMed" = Just PubMed
readDatabase "PubMed" = Just PubMed
readDatabase "HAL" = Just HAL
readDatabase "HAL" = Just HAL
readDatabase "All" = Just All
readDatabase _ = Nothing
readDatabase _ = Nothing
derive instance eqDatabase :: Eq Database
derive instance eqDatabase :: Eq Database
allDatabases :: Array Database
allDatabases :: Array Database
allDatabases = [PubMed, HAL]
allDatabases = [PubMed, HAL
, All
]
data SearchOrder
data SearchOrder
= DateAsc
= DateAsc
...
...
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