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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
22ba8a84
Unverified
Commit
22ba8a84
authored
Nov 17, 2018
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type fixes
parent
9bc65e7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
Actions.purs
src/Gargantext/Pages/Corpus/Tabs/Actions.purs
+4
-3
NgramsTable.purs
src/Gargantext/Pages/Corpus/Tabs/Ngrams/NgramsTable.purs
+1
-1
States.purs
src/Gargantext/Pages/Corpus/Tabs/States.purs
+4
-4
No files found.
src/Gargantext/Pages/Corpus/Tabs/Actions.purs
View file @
22ba8a84
...
@@ -3,14 +3,15 @@ module Gargantext.Pages.Corpus.Tabs.Actions where
...
@@ -3,14 +3,15 @@ module Gargantext.Pages.Corpus.Tabs.Actions where
import Data.Lens (Prism', prism)
import Data.Lens (Prism', prism)
import Data.Either (Either(..))
import Data.Either (Either(..))
import Data.Void (Void)
import Gargantext.Pages.Corpus.Tabs.Documents as DV
import Gargantext.Pages.Corpus.Tabs.Documents as DV
import Gargantext.Pages.Corpus.Tabs.Ngrams as NG
import Gargantext.Pages.Corpus.Tabs.Ngrams
.NgramsTable
as NG
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
data Action
data Action
= DocViewA DV.Action -- = Void
= DocViewA DV.Action -- = Void
| NgramViewA
NG.Action -- = Void
| NgramViewA
Void -- NG.Action TODO needed ?
| TabViewA Tab.Action -- = ChangeTab which is only used locally
| TabViewA Tab.Action -- = ChangeTab which is only used locally
_docAction :: Prism' Action DV.Action
_docAction :: Prism' Action DV.Action
...
@@ -19,7 +20,7 @@ _docAction = prism DocViewA \ action ->
...
@@ -19,7 +20,7 @@ _docAction = prism DocViewA \ action ->
DocViewA laction -> Right laction
DocViewA laction -> Right laction
_-> Left action
_-> Left action
_NgramViewA :: Prism' Action NG.Action
_NgramViewA :: Prism' Action
Void --
NG.Action
_NgramViewA = prism NgramViewA \ action ->
_NgramViewA = prism NgramViewA \ action ->
case action of
case action of
NgramViewA laction -> Right laction
NgramViewA laction -> Right laction
...
...
src/Gargantext/Pages/Corpus/Tabs/Ngrams/NgramsTable.purs
View file @
22ba8a84
...
@@ -187,7 +187,7 @@ data Action
...
@@ -187,7 +187,7 @@ data Action
| SetTermTypeFilter (Maybe TermType)
| SetTermTypeFilter (Maybe TermType)
| SetSearchQuery String
| SetSearchQuery String
data Mode = Authors | Sources | Terms
data Mode = Authors | Sources | Terms
| Trash
type Dispatch = Action -> Effect Unit
type Dispatch = Action -> Effect Unit
...
...
src/Gargantext/Pages/Corpus/Tabs/States.purs
View file @
22ba8a84
...
@@ -2,27 +2,27 @@ module Gargantext.Pages.Corpus.Tabs.States where
...
@@ -2,27 +2,27 @@ module Gargantext.Pages.Corpus.Tabs.States where
import Data.Lens (Lens', lens)
import Data.Lens (Lens', lens)
import Gargantext.Pages.Corpus.Tabs.Documents as D
import Gargantext.Pages.Corpus.Tabs.Documents as D
import Gargantext.Pages.Corpus.Tabs.Ngrams as N
import Gargantext.Pages.Corpus.Tabs.Ngrams
.NgramsTable
as N
import Gargantext.Components.Tab as Tab
import Gargantext.Components.Tab as Tab
type State =
type State =
{ docsView :: D.State
{ docsView :: D.State
, ngramsView ::
N.State
, ngramsView ::
{} -- N.State TODO needed
, activeTab :: Int
, activeTab :: Int
}
}
initialState :: State
initialState :: State
initialState =
initialState =
{ docsView : {}
{ docsView : {}
, ngramsView : N.initialState
, ngramsView :
{} --
N.initialState
, activeTab : 0
, activeTab : 0
}
}
_doclens :: Lens' State D.State
_doclens :: Lens' State D.State
_doclens = lens (\s -> s.docsView) (\s ss -> s {docsView = ss})
_doclens = lens (\s -> s.docsView) (\s ss -> s {docsView = ss})
_ngramsView :: Lens' State N.State
_ngramsView :: Lens' State
{} --
N.State
_ngramsView = lens (\s -> s.ngramsView) (\s ss -> s {ngramsView = ss})
_ngramsView = lens (\s -> s.ngramsView) (\s ss -> s {ngramsView = ss})
_tablens :: Lens' State Tab.State
_tablens :: Lens' State Tab.State
...
...
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