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
9d94fe12
Commit
9d94fe12
authored
Jul 30, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-doc-table-columns' into dev
parents
43495ef8
bb30e4db
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
DocsTable.purs
src/Gargantext/Components/DocsTable.purs
+2
-3
FacetsTable.purs
src/Gargantext/Components/FacetsTable.purs
+3
-2
No files found.
src/Gargantext/Components/DocsTable.purs
View file @
9d94fe12
...
...
@@ -271,7 +271,7 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p []
corpusDocument (Just corpusId) = Router.CorpusDocument corpusId
corpusDocument _ = Router.Document
cpt {nodeId, corpusId, listId} _children = do
cpt {nodeId, corpusId, listId
, totalRecords
} _children = do
localCategories <- R.useState' (mempty :: LocalCategories)
pure $ R2.buff $ T.tableElt
...
...
@@ -287,8 +287,7 @@ renderPage (_ /\ setTableParams) p res = R.createElement el p []
, "Title"
, "Source"
]
-- , totalRecords
, totalRecords: 1000 -- TODO
, totalRecords
}
where
getCategory (localCategories /\ _) {_id, category} = maybe category identity (localCategories ^. at _id)
...
...
src/Gargantext/Components/FacetsTable.purs
View file @
9d94fe12
...
...
@@ -26,11 +26,12 @@ import React as React
import React (ReactClass, ReactElement, Children)
------------------------------------------------------------------------
import Gargantext.Prelude
import Gargantext.Config (End(..), NodeType(..), OrderBy(..), Path(..), TabType, toUrl)
import Gargantext.Config (End(..), NodeType(..), OrderBy(..), Path(..), TabType, toUrl
, toLink
)
import Gargantext.Config.REST (put, post, deleteWithBody)
import Gargantext.Components.Loader as Loader
import Gargantext.Components.Search.Types (Category(..), CategoryQuery(..), favCategory, trashCategory, decodeCategory, putCategories)
import Gargantext.Components.Table as T
import Gargantext.Router as Router
import Gargantext.Utils (toggleSet)
import Gargantext.Utils.DecodeMaybe ((.|))
import React.DOM (a, br', button, div, i, input, p, text, span)
...
...
@@ -387,7 +388,7 @@ renderPage loaderDispatch { totalRecords, dispatch, container
]
-- TODO show date: Year-Month-Day only
, div strikeIfDeleted [text date]
, a (strikeIfDeleted <> [ href
(toUrl Front (ListDocument (Just listId)) (Just id))
, a (strikeIfDeleted <> [ href
$ toLink $ Router.Document listId id
, target "blank"])
[ text title ]
, div strikeIfDeleted [text source]
...
...
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