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
e4b362e6
Commit
e4b362e6
authored
Jul 18, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PROPOSAL] renaming of prisms.
parent
b5265ac7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Actions.purs
src/Gargantext/Pages/Layout/Actions.purs
+4
-4
Specs.purs
src/Gargantext/Pages/Layout/Specs.purs
+4
-4
No files found.
src/Gargantext/Pages/Layout/Actions.purs
View file @
e4b362e6
...
...
@@ -112,8 +112,8 @@ performAction _ _ _ = void do
----------------------------------------------------------
_
landingAction
:: Prism' Action L.Action
_
landingAction
= prism LandingA \action ->
_
LandingA
:: Prism' Action L.Action
_
LandingA
= prism LandingA \action ->
case action of
LandingA caction -> Right caction
_-> Left action
...
...
@@ -184,8 +184,8 @@ _graphExplorerAction = prism GraphExplorerA \action ->
GraphExplorerA caction -> Right caction
_-> Left action
_
ngAction
:: Prism' Action NG.Action
_
ngAction
= prism NgramsA \action ->
_
NgramsA
:: Prism' Action NG.Action
_
NgramsA
= prism NgramsA \action ->
case action of
NgramsA caction -> Right caction
_-> Left action
...
...
src/Gargantext/Pages/Layout/Specs.purs
View file @
e4b362e6
...
...
@@ -34,9 +34,9 @@ import Gargantext.Pages.Layout.Actions ( _addCorpusAction
, _docAnnotationViewAction
, _docViewAction
, _graphExplorerAction
, _
landingAction
, _
LandingA
, _loginAction
,
_ngAction
,
_NgramsA
, _searchAction
, _tabviewAction
, _treeAction
...
...
@@ -77,7 +77,7 @@ pagesComponent s =
) AppState props Action
selectSpec CorpusAnalysis = layout0 $ focus _corpusState _corpusAction CA.spec'
selectSpec Login = focus _loginState _loginAction LN.renderSpec
selectSpec Home = layout0 $ focus _landingState _
landingAction
(L.layoutLanding EN)
selectSpec Home = layout0 $ focus _landingState _
LandingA
(L.layoutLanding EN)
selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview
selectSpec (UserPage i) = layout0 $ focus _userPageState _userPageAction U.layoutUser
...
...
@@ -85,7 +85,7 @@ pagesComponent s =
selectSpec Tabview = layout0 $ focus _tabviewState _tabviewAction TV.tab1
-- To be removed
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
selectSpec NGramsTable = layout0 $ focus _ngState _
ngAction
NG.ngramsTableSpec
selectSpec NGramsTable = layout0 $ focus _ngState _
NgramsA
NG.ngramsTableSpec
selectSpec PGraphExplorer = focus _graphExplorerState _graphExplorerAction GE.specOld
selectSpec Dashboard = layout0 $ focus _dashBoardSate _dashBoardAction Dsh.layoutDashboard
...
...
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