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
c3be8cf0
Verified
Commit
c3be8cf0
authored
Jun 26, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] add count of documents to sidebar
parent
5f83b235
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
FacetsTable.purs
src/Gargantext/Components/FacetsTable.purs
+2
-1
DocList.purs
src/Gargantext/Components/GraphExplorer/Sidebar/DocList.purs
+21
-17
No files found.
src/Gargantext/Components/FacetsTable.purs
View file @
c3be8cf0
...
@@ -263,7 +263,8 @@ initialPageGQL { corpusId, ngramsTerms, session } =
...
@@ -263,7 +263,8 @@ initialPageGQL { corpusId, ngramsTerms, session } =
loadPageGQL :: Record PageGQLParams -> AffRESTError Rows
loadPageGQL :: Record PageGQLParams -> AffRESTError Rows
loadPageGQL { corpusId
loadPageGQL { corpusId
, params: { limit, offset, orderBy }
-- NOTE: unused
-- , params: { limit, offset, orderBy }
, ngramsTerms
, ngramsTerms
, session } = do
, session } = do
...
...
src/Gargantext/Components/GraphExplorer/Sidebar/DocList.purs
View file @
c3be8cf0
...
@@ -239,7 +239,10 @@ docListCpt = here.component "main" cpt where
...
@@ -239,7 +239,10 @@ docListCpt = here.component "main" cpt where
,
,
R2.when (not $ eq results Seq.empty) $
R2.when (not $ eq results Seq.empty) $
H.ul
H.div {}
[
H.h6 {} [ H.text $ show (Seq.length results) <> " related documents"]
, H.ul
{ className: intercalate " "
{ className: intercalate " "
[ "graph-doc-list"
[ "graph-doc-list"
, "list-group"
, "list-group"
...
@@ -257,6 +260,7 @@ docListCpt = here.component "main" cpt where
...
@@ -257,6 +260,7 @@ docListCpt = here.component "main" cpt where
, frontends
, frontends
}
}
]
]
]
---------------------------------------------------------
---------------------------------------------------------
...
...
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