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
3eee8b32
Commit
3eee8b32
authored
Oct 10, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RENAME] DocAnnotation.
parent
8e545c16
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
Layout.purs
src/Gargantext/Pages/Layout.purs
+3
-3
Actions.purs
src/Gargantext/Pages/Layout/Actions.purs
+4
-4
Specs.purs
src/Gargantext/Pages/Layout/Specs.purs
+1
-1
Router.purs
src/Gargantext/Router.purs
+3
-3
No files found.
src/Gargantext/Pages/Layout.purs
View file @
3eee8b32
...
...
@@ -61,9 +61,9 @@ dispatchAction dispatcher _ (Annuaire id) = do
dispatchAction dispatcher _ (Folder id) = do
dispatcher $ SetRoute $ Folder id
dispatchAction dispatcher _ (Doc
Annotation
i) = do
dispatcher $ SetRoute $ Doc
Annotation
i
-- dispatcher $ Doc
Annotation
ViewA TODO
dispatchAction dispatcher _ (Doc
ument
i) = do
dispatcher $ SetRoute $ Doc
ument
i
-- dispatcher $ Doc
ument
ViewA TODO
dispatchAction dispatcher _ PGraphExplorer = do
dispatcher $ SetRoute PGraphExplorer
...
...
src/Gargantext/Pages/Layout/Actions.purs
View file @
3eee8b32
...
...
@@ -37,7 +37,7 @@ data Action
| AddCorpusA AC.Action
| DocViewA DV.Action
| GraphExplorerA GE.Action
| Doc
Annotation
ViewA D.Action
| Doc
ument
ViewA D.Action
| AnnuaireAction Annuaire.Action
| UserPageA U.Action
| Go
...
...
@@ -102,7 +102,7 @@ performAction (CorpusAction _) _ _ = pure unit
performAction (DocViewA _) _ _ = pure unit
performAction (SearchA _) _ _ = pure unit
performAction (UserPageA _) _ _ = pure unit
performAction (Doc
Annotation
ViewA _) _ _ = pure unit
performAction (Doc
ument
ViewA _) _ _ = pure unit
performAction (TreeViewA _) _ _ = pure unit
performAction (GraphExplorerA _) _ _ = pure unit
performAction (AnnuaireAction _) _ _ = pure unit
...
...
@@ -152,9 +152,9 @@ _annuaireAction = prism AnnuaireAction \action ->
_ -> Left action
_docAnnotationViewAction :: Prism' Action D.Action
_docAnnotationViewAction = prism Doc
Annotation
ViewA \action ->
_docAnnotationViewAction = prism Doc
ument
ViewA \action ->
case action of
Doc
Annotation
ViewA caction -> Right caction
Doc
ument
ViewA caction -> Right caction
_-> Left action
_treeAction :: Prism' Action Tree.Action
...
...
src/Gargantext/Pages/Layout/Specs.purs
View file @
3eee8b32
...
...
@@ -60,7 +60,7 @@ pagesComponent s = case s.currentRoute of
selectSpec (Corpus i) = layout0 $ focus _corpusState _corpusAction Corpus.layout
selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
selectSpec (Doc
Annotation
i) = layout0 $ focus _docAnnotationViewState _docAnnotationViewAction Annotation.docview
selectSpec (Doc
ument
i) = layout0 $ focus _docAnnotationViewState _docAnnotationViewAction Annotation.docview
selectSpec PGraphExplorer = focus _graphExplorerState _graphExplorerAction GE.specOld
selectSpec Dashboard = layout0 $ noState Dsh.layoutDashboard
...
...
src/Gargantext/Router.purs
View file @
3eee8b32
...
...
@@ -20,7 +20,7 @@ data Routes
| Corpus Int
| AddCorpus
| DocView Int
| Doc
Annotation
Int
| Doc
ument
Int
| PGraphExplorer
| NGramsTable
| Dashboard
...
...
@@ -36,7 +36,7 @@ routing =
<|> Corpus <$> (route "corpus" *> int)
<|> DocView <$> (route "docView" *> int)
<|> NGramsTable <$ route "ngrams"
<|> Doc
Annotation
<$> (route "document" *> int)
<|> Doc
ument
<$> (route "document" *> int)
<|> Dashboard <$ route "dashboard"
<|> PGraphExplorer <$ route "graph"
<|> Annuaire <$> (route "annuaire" *> int)
...
...
@@ -54,7 +54,7 @@ instance showRoutes :: Show Routes where
show AddCorpus = "AddCorpus"
show SearchView = "Search"
show (UserPage i) = "User" <> show i
show (Doc
Annotation
i)= "Document"
show (Doc
ument
i)= "Document"
show (Corpus i) = "Corpus" <> show i
show (DocView i) = "DocView"
show NGramsTable = "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