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
70fe17b6
Commit
70fe17b6
authored
Jul 29, 2019
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DocsTable] chart is a reactix element now
parent
af59716b
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
+2
-2
Specs.purs
src/Gargantext/Pages/Lists/Tabs/Specs.purs
+3
-3
Specs.purs
src/Gargantext/Pages/Texts/Tabs/Specs.purs
+5
-5
No files found.
src/Gargantext/Components/DocsTable.purs
View file @
70fe17b6
...
@@ -72,7 +72,7 @@ trashCategory Favorite = Trash
...
@@ -72,7 +72,7 @@ trashCategory Favorite = Trash
type Props =
type Props =
{ nodeId :: Int
{ nodeId :: Int
, totalRecords :: Int
, totalRecords :: Int
, chart :: R
eact
Element
, chart :: R
.
Element
, tabType :: TabType
, tabType :: TabType
, listId :: Int
, listId :: Int
, corpusId :: Maybe Int
, corpusId :: Maybe Int
...
@@ -176,7 +176,7 @@ layoutDocview documentIdsDeleted@(_ /\ setDocumentIdsDeleted) localCategories (m
...
@@ -176,7 +176,7 @@ layoutDocview documentIdsDeleted@(_ /\ setDocumentIdsDeleted) localCategories (m
cpt {nodeId, tabType, listId, corpusId, totalRecords, chart} _children = do
cpt {nodeId, tabType, listId, corpusId, totalRecords, chart} _children = do
pure $ H.div {className: "container1"}
pure $ H.div {className: "container1"}
[ H.div {className: "row"}
[ H.div {className: "row"}
[
R2.buff
chart
[ chart
, H.div {}
, H.div {}
[ H.input { type: "text"
[ H.input { type: "text"
, onChange: onChangeQuery
, onChange: onChangeQuery
...
...
src/Gargantext/Pages/Lists/Tabs/Specs.purs
View file @
70fe17b6
...
@@ -22,8 +22,8 @@ import Gargantext.Components.DocsTable as DT
...
@@ -22,8 +22,8 @@ import Gargantext.Components.DocsTable as DT
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Reactix as R2
import Reactix.DOM.HTML as H
import React (ReactElement, ReactClass, createElement, Children)
import React (ReactElement, ReactClass, createElement, Children)
import React.DOM (div)
import Thermite (Spec, hideState, noState, cmapProps, createClass)
import Thermite (Spec, hideState, noState, cmapProps, createClass)
data Mode = Authors | Sources | Institutes | Terms
data Mode = Authors | Sources | Institutes | Terms
...
@@ -66,7 +66,7 @@ statefulTabs =
...
@@ -66,7 +66,7 @@ statefulTabs =
(cmapProps (\{corpusId, corpusData: {defaultListId}} ->
(cmapProps (\{corpusId, corpusData: {defaultListId}} ->
{ nodeId: corpusId
{ nodeId: corpusId
-- ^ TODO merge nodeId and corpusId in DT
-- ^ TODO merge nodeId and corpusId in DT
, chart :
div []
[]
, chart :
H.div {}
[]
, tabType: TabCorpus TabDocs
, tabType: TabCorpus TabDocs
, totalRecords: 4737
, totalRecords: 4737
, listId: defaultListId
, listId: defaultListId
...
@@ -75,7 +75,7 @@ statefulTabs =
...
@@ -75,7 +75,7 @@ statefulTabs =
)
)
trash = cmapProps (\{corpusId, corpusData: {defaultListId}} ->
trash = cmapProps (\{corpusId, corpusData: {defaultListId}} ->
{ nodeId: corpusId
{ nodeId: corpusId
, chart
: div []
[]
, chart
: H.div {}
[]
, tabType: TabCorpus TabTrash
, tabType: TabCorpus TabTrash
, totalRecords: 4736
, totalRecords: 4736
, listId: defaultListId
, listId: defaultListId
...
...
src/Gargantext/Pages/Texts/Tabs/Specs.purs
View file @
70fe17b6
...
@@ -22,8 +22,8 @@ import Gargantext.Components.DocsTable as DT
...
@@ -22,8 +22,8 @@ import Gargantext.Components.DocsTable as DT
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
import Gargantext.Utils.Reactix as R2
import Gargantext.Utils.Reactix as R2
import Reactix.DOM.HTML as H
import React (ReactElement, ReactClass, createElement, Children)
import React (ReactElement, ReactClass, createElement, Children)
import React.DOM (div)
import Thermite (Spec, hideState, noState, cmapProps, createClass)
import Thermite (Spec, hideState, noState, cmapProps, createClass)
data Mode = MoreLikeFav | MoreLikeTrash
data Mode = MoreLikeFav | MoreLikeTrash
...
@@ -64,7 +64,7 @@ statefulTabs =
...
@@ -64,7 +64,7 @@ statefulTabs =
(cmapProps (\{corpusId, corpusData: {defaultListId}} ->
(cmapProps (\{corpusId, corpusData: {defaultListId}} ->
{ nodeId: corpusId
{ nodeId: corpusId
-- ^ TODO merge nodeId and corpusId in DT
-- ^ TODO merge nodeId and corpusId in DT
, chart :
div []
[]
, chart :
H.div {}
[]
, tabType: TabCorpus TabDocs
, tabType: TabCorpus TabDocs
, totalRecords: 4737
, totalRecords: 4737
, listId: defaultListId
, listId: defaultListId
...
@@ -75,7 +75,7 @@ statefulTabs =
...
@@ -75,7 +75,7 @@ statefulTabs =
moreLikeFav = noState (cmapProps (\{corpusId, corpusData: {defaultListId}} ->
moreLikeFav = noState (cmapProps (\{corpusId, corpusData: {defaultListId}} ->
{ nodeId: corpusId
{ nodeId: corpusId
-- ^ TODO merge nodeId and corpusId in DT
-- ^ TODO merge nodeId and corpusId in DT
, chart :
div []
[]
, chart :
H.div {}
[]
, tabType: TabCorpus TabMoreLikeFav
, tabType: TabCorpus TabMoreLikeFav
, totalRecords: 4737
, totalRecords: 4737
, listId: defaultListId
, listId: defaultListId
...
@@ -85,7 +85,7 @@ statefulTabs =
...
@@ -85,7 +85,7 @@ statefulTabs =
moreLikeTrash = noState (cmapProps (\{corpusId, corpusData: {defaultListId}} ->
moreLikeTrash = noState (cmapProps (\{corpusId, corpusData: {defaultListId}} ->
{ nodeId: corpusId
{ nodeId: corpusId
-- ^ TODO merge nodeId and corpusId in DT
-- ^ TODO merge nodeId and corpusId in DT
, chart :
div []
[]
, chart :
H.div {}
[]
, tabType: TabCorpus TabMoreLikeTrash
, tabType: TabCorpus TabMoreLikeTrash
, totalRecords: 4737
, totalRecords: 4737
, listId: defaultListId
, listId: defaultListId
...
@@ -94,7 +94,7 @@ statefulTabs =
...
@@ -94,7 +94,7 @@ statefulTabs =
trash = cmapProps (\{corpusId, corpusData: {defaultListId}} ->
trash = cmapProps (\{corpusId, corpusData: {defaultListId}} ->
{ nodeId: corpusId
{ nodeId: corpusId
, chart
: div []
[]
, chart
: H.div {}
[]
, tabType: TabCorpus TabTrash
, tabType: TabCorpus TabTrash
, totalRecords: 4736
, totalRecords: 4736
, listId: defaultListId
, listId: defaultListId
...
...
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