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
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
Grégoire Locqueville
purescript-gargantext
Commits
9087b8f2
Commit
9087b8f2
authored
Aug 01, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Ergo/Design/Text.
parent
9d94fe12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
DocsTable.purs
src/Gargantext/Components/DocsTable.purs
+6
-7
FacetsTable.purs
src/Gargantext/Components/FacetsTable.purs
+3
-2
Types.purs
src/Gargantext/Components/Search/Types.purs
+1
-1
No files found.
src/Gargantext/Components/DocsTable.purs
View file @
9087b8f2
...
...
@@ -178,17 +178,16 @@ searchBar (query /\ setQuery) = R.createElement el {} []
queryText <- R.useState' query
pure $ H.div {className: "row"}
[ H.div {className: "col col-md-3 form-group"}
[ H.div {className: "col col-md-3"} []
, H.div {className: "col col-md-1"} [searchButton queryText]
, H.div {className: "col col-md-3 form-group"}
[ H.input { type: "text"
, className: "form-control"
, on: {change: onSearchChange queryText, keyUp: onSearchKeyup queryText}
, placeholder: query
, defaultValue: query}
]
, H.div {className: "col col-md-1"}
[ searchButton queryText
, if query /= "" then clearButton else H.div {} []
]
, H.div {className: "col col-md-1"} [if query /= "" then clearButton else H.div {} []]
]
onSearchChange :: forall e. R.State Query -> e -> Effect Unit
...
...
@@ -281,8 +280,8 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p []
, container: T.defaultContainer { title: "Documents" }
, colNames:
T.ColumnName <$>
[ "
Map
"
, "
Stop
"
[ "
Favorites
"
, "
Trash
"
, "Date"
, "Title"
, "Source"
...
...
src/Gargantext/Components/FacetsTable.purs
View file @
9087b8f2
...
...
@@ -175,8 +175,9 @@ instance decodeResponse :: DecodeJson Response where
created <- obj .? "created"
hyperdata <- obj .? "hyperdata"
favorite <- obj .? "favorite"
ngramCount <- obj .? "ngramCount"
pure $ Response { id, created, hyperdata, category: decodeCategory favorite, ngramCount }
--ngramCount <- obj .? "ngramCount"
let ngramCount = 1
pure $ Response { id, created, hyperdata, category: decodeCategory favorite, ngramCount}
-- | Filter
-- TODO: unused
...
...
src/Gargantext/Components/Search/Types.purs
View file @
9087b8f2
...
...
@@ -46,7 +46,7 @@ instance encodeJsonDatabase :: EncodeJson Database where
allDatabases :: Array Database
allDatabases = [All,
HAL, IsTex,
PubMed]
allDatabases = [All, PubMed]
data SearchOrder
= 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