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
e441fc2d
Commit
e441fc2d
authored
Jun 20, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RENAME] AnnotationDocumentView -> DocAnnotaiton
parent
51577839
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
DocAnnotation.purs
src/DocAnnotation.purs
+1
-1
Navigation.purs
src/Navigation.purs
+13
-13
PageRouter.purs
src/PageRouter.purs
+13
-13
No files found.
src/
AnnotationDocumentView
.purs
→
src/
DocAnnotation
.purs
View file @
e441fc2d
module
AnnotationDocumentView
where
module
DocAnnotation
where
import Prelude hiding (div)
import Prelude hiding (div)
import React (ReactElement)
import React (ReactElement)
...
...
src/Navigation.purs
View file @
e441fc2d
...
@@ -4,7 +4,7 @@ import DOM
...
@@ -4,7 +4,7 @@ import DOM
import Gargantext.Data.Lang
import Gargantext.Data.Lang
import AddCorpusview as AC
import AddCorpusview as AC
import
AnnotationDocumentView
as D
import
DocAnnotation
as D
import Control.Monad.Cont.Trans (lift)
import Control.Monad.Cont.Trans (lift)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Class (liftEff)
import Control.Monad.Eff.Class (liftEff)
...
@@ -47,7 +47,7 @@ type AppState =
...
@@ -47,7 +47,7 @@ type AppState =
, docViewState :: DV.State
, docViewState :: DV.State
, searchState :: S.State
, searchState :: S.State
, userPage :: UP.State
, userPage :: UP.State
,
annotationdocument
View :: D.State
,
docAnnotation
View :: D.State
, ntreeView :: NT.State
, ntreeView :: NT.State
, tabview :: TV.State
, tabview :: TV.State
, search :: String
, search :: String
...
@@ -67,7 +67,7 @@ initAppState =
...
@@ -67,7 +67,7 @@ initAppState =
, docViewState : DV.tdata
, docViewState : DV.tdata
, searchState : S.initialState
, searchState : S.initialState
, userPage : UP.initialState
, userPage : UP.initialState
,
annotationdocument
View : D.initialState
,
docAnnotation
View : D.initialState
, ntreeView : NT.exampleTree
, ntreeView : NT.exampleTree
, tabview : TV.initialState
, tabview : TV.initialState
, search : ""
, search : ""
...
@@ -87,7 +87,7 @@ data Action
...
@@ -87,7 +87,7 @@ data Action
| DocViewA DV.Action
| DocViewA DV.Action
| SearchA S.Action
| SearchA S.Action
| UserPageA UP.Action
| UserPageA UP.Action
|
AnnotationDocument
ViewA D.Action
|
DocAnnotation
ViewA D.Action
| TreeViewA NT.Action
| TreeViewA NT.Action
| TabViewA TV.Action
| TabViewA TV.Action
| GraphExplorerA GE.Action
| GraphExplorerA GE.Action
...
@@ -195,14 +195,14 @@ _userPageAction = prism UserPageA \action ->
...
@@ -195,14 +195,14 @@ _userPageAction = prism UserPageA \action ->
_-> Left action
_-> Left action
_
annotationdocumentv
iewState :: Lens' AppState D.State
_
docAnnotationV
iewState :: Lens' AppState D.State
_
annotationdocumentviewState = lens (\s -> s.annotationdocumentView) (\s ss -> s{annotationdocument
View = ss})
_
docAnnotationViewState = lens (\s -> s.docAnnotationView) (\s ss -> s{docAnnotation
View = ss})
_
annotationdocumentv
iewAction :: Prism' Action D.Action
_
docAnnotationV
iewAction :: Prism' Action D.Action
_
annotationdocumentviewAction = prism AnnotationDocument
ViewA \action ->
_
docAnnotationViewAction = prism DocAnnotation
ViewA \action ->
case action of
case action of
AnnotationDocument
ViewA caction -> Right caction
DocAnnotation
ViewA caction -> Right caction
_-> Left action
_-> Left action
...
@@ -280,7 +280,7 @@ pagesComponent s =
...
@@ -280,7 +280,7 @@ pagesComponent s =
-- selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
-- selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview
selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview
selectSpec UserPage = layout0 $ focus _userPageState _userPageAction UP.layoutUser
selectSpec UserPage = layout0 $ focus _userPageState _userPageAction UP.layoutUser
selectSpec (
AnnotationDocumentView i) = layout0 $ focus _annotationdocumentviewState _annotationdocumentv
iewAction D.docview
selectSpec (
DocAnnotation i) = layout0 $ focus _docAnnotationViewState _docAnnotationV
iewAction D.docview
selectSpec Tabview = layout0 $ focus _tabviewState _tabviewAction TV.tab1
selectSpec Tabview = layout0 $ focus _tabviewState _tabviewAction TV.tab1
-- To be removed
-- To be removed
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
...
@@ -594,9 +594,9 @@ dispatchAction dispatcher _ UserPage = do
...
@@ -594,9 +594,9 @@ dispatchAction dispatcher _ UserPage = do
_ <- dispatcher $ UserPageA $ UP.NoOp
_ <- dispatcher $ UserPageA $ UP.NoOp
pure unit
pure unit
dispatchAction dispatcher _ (
AnnotationDocumentView
i) = do
dispatchAction dispatcher _ (
DocAnnotation
i) = do
_ <- dispatcher $ SetRoute $
AnnotationDocumentView
i
_ <- dispatcher $ SetRoute $
DocAnnotation
i
_ <- dispatcher $
AnnotationDocument
ViewA $ D.NoOp
_ <- dispatcher $
DocAnnotation
ViewA $ D.NoOp
pure unit
pure unit
...
...
src/PageRouter.purs
View file @
e441fc2d
...
@@ -22,7 +22,7 @@ data Routes
...
@@ -22,7 +22,7 @@ data Routes
| DocView
| DocView
| SearchView
| SearchView
| UserPage
| UserPage
|
AnnotationDocumentView
Int
|
DocAnnotation
Int
| Tabview
| Tabview
| CorpusAnalysis
| CorpusAnalysis
| PGraphExplorer
| PGraphExplorer
...
@@ -35,7 +35,7 @@ instance showRoutes :: Show Routes where
...
@@ -35,7 +35,7 @@ instance showRoutes :: Show Routes where
show DocView = "DocView"
show DocView = "DocView"
show SearchView = "SearchView"
show SearchView = "SearchView"
show UserPage = "UserPage"
show UserPage = "UserPage"
show (
AnnotationDocumentView i)
= "DocumentView"
show (
DocAnnotation i)
= "DocumentView"
show Tabview = "Tabview"
show Tabview = "Tabview"
show CorpusAnalysis = "corpus"
show CorpusAnalysis = "corpus"
show PGraphExplorer = "graphExplorer"
show PGraphExplorer = "graphExplorer"
...
@@ -48,7 +48,7 @@ routing :: Match Routes
...
@@ -48,7 +48,7 @@ routing :: Match Routes
routing =
routing =
Login <$ route "login"
Login <$ route "login"
<|> Tabview <$ route "tabview"
<|> Tabview <$ route "tabview"
<|>
AnnotationDocumentView
<$> (route "documentView" *> int)
<|>
DocAnnotation
<$> (route "documentView" *> int)
<|> UserPage <$ route "userPage"
<|> UserPage <$ route "userPage"
<|> SearchView <$ route "search"
<|> SearchView <$ route "search"
<|> DocView <$ route "docView"
<|> DocView <$ route "docView"
...
...
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