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
4a16a891
Unverified
Commit
4a16a891
authored
Feb 26, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor useless intermediate definitions
parent
6ef4fe73
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
21 deletions
+2
-21
NgramsTable.purs
...Pages/Annuaire/User/Contacts/Tabs/Ngrams/NgramsTable.purs
+1
-11
NgramsTable.purs
src/Gargantext/Pages/Corpus/Tabs/Ngrams/NgramsTable.purs
+1
-10
No files found.
src/Gargantext/Pages/Annuaire/User/Contacts/Tabs/Ngrams/NgramsTable.purs
View file @
4a16a891
...
@@ -34,20 +34,10 @@ modeTabType Communication = PTabCommunication
...
@@ -34,20 +34,10 @@ modeTabType Communication = PTabCommunication
type Props = NT.Props Contact Mode
type Props = NT.Props Contact Mode
-- TODO: Move to Components.NgramsTable
getTable :: { tabType :: TabType
, nodeId :: Int
, listIds :: Array Int
, offset :: Offset
, limit :: Limit }
-> Aff NT.VersionedNgramsTable
getTable {tabType, nodeId, listIds, offset, limit} =
get $ toUrl Back (GetNgrams tabType offset limit listIds Nothing) (Just nodeId)
-- TODO: Move to Components.NgramsTable
-- TODO: Move to Components.NgramsTable
loadPage :: NT.PageParams -> Aff NT.VersionedNgramsTable
loadPage :: NT.PageParams -> Aff NT.VersionedNgramsTable
loadPage {nodeId, listIds, tabType, params: {offset, limit}} =
loadPage {nodeId, listIds, tabType, params: {offset, limit}} =
get
Table {tabType, nodeId, listIds, offset, limit}
get
$ toUrl Back (GetNgrams tabType offset limit listIds Nothing) (Just nodeId)
-- TODO this ignores orderBy
-- TODO this ignores orderBy
-- TODO: Move to Components.NgramsTable?
-- TODO: Move to Components.NgramsTable?
...
...
src/Gargantext/Pages/Corpus/Tabs/Ngrams/NgramsTable.purs
View file @
4a16a891
...
@@ -35,19 +35,10 @@ modeTabType Sources = CTabSources
...
@@ -35,19 +35,10 @@ modeTabType Sources = CTabSources
modeTabType Institutes = CTabInstitutes
modeTabType Institutes = CTabInstitutes
modeTabType Terms = CTabTerms
modeTabType Terms = CTabTerms
getTable :: { tabType :: TabType
, nodeId :: Int
, listIds :: Array Int
, offset :: Offset
, limit :: Limit }
-> Aff NT.VersionedNgramsTable
getTable {tabType, nodeId, listIds, offset, limit} =
get $ toUrl Back (GetNgrams tabType offset limit listIds Nothing) (Just nodeId)
-- TODO: Move to Components.NgramsTable?
-- TODO: Move to Components.NgramsTable?
loadPage :: NT.PageParams -> Aff NT.VersionedNgramsTable
loadPage :: NT.PageParams -> Aff NT.VersionedNgramsTable
loadPage {nodeId, listIds, tabType, params: {offset, limit}} =
loadPage {nodeId, listIds, tabType, params: {offset, limit}} =
get
Table {tabType, nodeId, listIds, offset, limit}
get
$ toUrl Back (GetNgrams tabType offset limit listIds Nothing) (Just nodeId)
-- TODO this ignores orderBy
-- TODO this ignores orderBy
-- TODO: Move to Components.NgramsTable?
-- TODO: Move to Components.NgramsTable?
...
...
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