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
Hide 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 React (ReactElement)
...
...
src/Navigation.purs
View file @
e441fc2d
...
...
@@ -4,7 +4,7 @@ import DOM
import Gargantext.Data.Lang
import AddCorpusview as AC
import
AnnotationDocumentView
as D
import
DocAnnotation
as D
import Control.Monad.Cont.Trans (lift)
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Class (liftEff)
...
...
@@ -47,7 +47,7 @@ type AppState =
, docViewState :: DV.State
, searchState :: S.State
, userPage :: UP.State
,
annotationdocument
View :: D.State
,
docAnnotation
View :: D.State
, ntreeView :: NT.State
, tabview :: TV.State
, search :: String
...
...
@@ -67,7 +67,7 @@ initAppState =
, docViewState : DV.tdata
, searchState : S.initialState
, userPage : UP.initialState
,
annotationdocument
View : D.initialState
,
docAnnotation
View : D.initialState
, ntreeView : NT.exampleTree
, tabview : TV.initialState
, search : ""
...
...
@@ -87,7 +87,7 @@ data Action
| DocViewA DV.Action
| SearchA S.Action
| UserPageA UP.Action
|
AnnotationDocument
ViewA D.Action
|
DocAnnotation
ViewA D.Action
| TreeViewA NT.Action
| TabViewA TV.Action
| GraphExplorerA GE.Action
...
...
@@ -195,14 +195,14 @@ _userPageAction = prism UserPageA \action ->
_-> Left action
_
annotationdocumentv
iewState :: Lens' AppState D.State
_
annotationdocumentviewState = lens (\s -> s.annotationdocumentView) (\s ss -> s{annotationdocument
View = ss})
_
docAnnotationV
iewState :: Lens' AppState D.State
_
docAnnotationViewState = lens (\s -> s.docAnnotationView) (\s ss -> s{docAnnotation
View = ss})
_
annotationdocumentv
iewAction :: Prism' Action D.Action
_
annotationdocumentviewAction = prism AnnotationDocument
ViewA \action ->
_
docAnnotationV
iewAction :: Prism' Action D.Action
_
docAnnotationViewAction = prism DocAnnotation
ViewA \action ->
case action of
AnnotationDocument
ViewA caction -> Right caction
DocAnnotation
ViewA caction -> Right caction
_-> Left action
...
...
@@ -280,7 +280,7 @@ pagesComponent s =
-- selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec DocView = layout0 $ focus _docViewState _docViewAction DV.layoutDocview
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
-- To be removed
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
...
...
@@ -594,9 +594,9 @@ dispatchAction dispatcher _ UserPage = do
_ <- dispatcher $ UserPageA $ UP.NoOp
pure unit
dispatchAction dispatcher _ (
AnnotationDocumentView
i) = do
_ <- dispatcher $ SetRoute $
AnnotationDocumentView
i
_ <- dispatcher $
AnnotationDocument
ViewA $ D.NoOp
dispatchAction dispatcher _ (
DocAnnotation
i) = do
_ <- dispatcher $ SetRoute $
DocAnnotation
i
_ <- dispatcher $
DocAnnotation
ViewA $ D.NoOp
pure unit
...
...
src/PageRouter.purs
View file @
e441fc2d
...
...
@@ -22,7 +22,7 @@ data Routes
| DocView
| SearchView
| UserPage
|
AnnotationDocumentView
Int
|
DocAnnotation
Int
| Tabview
| CorpusAnalysis
| PGraphExplorer
...
...
@@ -35,7 +35,7 @@ instance showRoutes :: Show Routes where
show DocView = "DocView"
show SearchView = "SearchView"
show UserPage = "UserPage"
show (
AnnotationDocumentView i)
= "DocumentView"
show (
DocAnnotation i)
= "DocumentView"
show Tabview = "Tabview"
show CorpusAnalysis = "corpus"
show PGraphExplorer = "graphExplorer"
...
...
@@ -46,17 +46,17 @@ int = floor <$> num
routing :: Match Routes
routing =
Login
<$
route "login"
<|> Tabview
<$ route "tabview"
<|>
AnnotationDocumentView
<$> (route "documentView" *> int)
<|> UserPage
<$ route "userPage"
<|> SearchView
<$ route "search"
<|> DocView
<$ route "docView"
<|> AddCorpus
<$ route "addCorpus"
<|> CorpusAnalysis
<$ route "corpus"
<|> PGraphExplorer
<$ route "graphExplorer"
<|> NGramsTable
<$ route "ngrams"
<|> Home
<$
lit ""
Login
<$
route "login"
<|> Tabview <$ route "tabview"
<|>
DocAnnotation
<$> (route "documentView" *> int)
<|> UserPage <$ route "userPage"
<|> SearchView <$ route "search"
<|> DocView <$ route "docView"
<|> AddCorpus <$ route "addCorpus"
<|> CorpusAnalysis <$ route "corpus"
<|> PGraphExplorer <$ route "graphExplorer"
<|> NGramsTable <$ route "ngrams"
<|> Home
<$
lit ""
where
route str = lit "" *> lit str
...
...
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