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
cc9e031b
Commit
cc9e031b
authored
Jan 11, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BDD upgrade] fix docuement route as Context
parent
e7c1cf0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Document.purs
src/Gargantext/Components/Nodes/Corpus/Document.purs
+1
-1
Types.purs
src/Gargantext/Types.purs
+6
-0
No files found.
src/Gargantext/Components/Nodes/Corpus/Document.purs
View file @
cc9e031b
...
...
@@ -155,7 +155,7 @@ documentLayoutWithKeyCpt = here.component "documentLayoutWithKey" cpt
------------------------------------------------------------------------
loadDocument :: Session -> Int -> AffRESTError NodeDocument
loadDocument session nodeId = get session $ NodeAPI
Node
(Just nodeId) ""
loadDocument session nodeId = get session $ NodeAPI
Context
(Just nodeId) ""
loadData :: DocPath -> AffRESTError LoadedData
loadData { listIds, nodeId, session, tabType } = do
...
...
src/Gargantext/Types.purs
View file @
cc9e031b
...
...
@@ -143,6 +143,7 @@ data NodeType = Annuaire
| Graph
| Individu
| Node
| Context
| NodeContact
| NodeList
| NodeUser
...
...
@@ -191,6 +192,7 @@ instance Show NodeType where
show Individu = "NodeIndividu"
show Node = "Node"
show Nodes = "Nodes"
show Context = "Context"
show Tree = "NodeTree"
show Team = "NodeTeam"
show NodeList = "NodeList"
...
...
@@ -217,6 +219,7 @@ instance Read NodeType where
read "Individu" = Just Individu
read "Node" = Just Node
read "Nodes" = Just Nodes
read "Context" = Just Context
read "NodeCorpus" = Just Corpus
read "NodeContact" = Just NodeContact
read "Tree" = Just Tree
...
...
@@ -252,6 +255,7 @@ translateFR = case _ of
Graph -> "Graphe"
Individu -> "Individu"
Node -> "Nœud"
Context -> "ConTexte"
NodeContact -> "Contact"
NodeList -> "Liste"
NodeUser -> "Utilisateur"
...
...
@@ -282,6 +286,7 @@ translateEN = case _ of
Graph -> "Graph"
Individu -> "Person"
Node -> "Node"
Context -> "Context"
NodeContact -> "Contact"
NodeList -> "List"
NodeUser -> "User"
...
...
@@ -397,6 +402,7 @@ nodeTypePath Phylo = "phylo"
nodeTypePath Individu = "individu"
nodeTypePath Node = "node"
nodeTypePath Nodes = "nodes"
nodeTypePath Context = "context"
nodeTypePath NodeUser = "user"
nodeTypePath NodeContact = "contact"
nodeTypePath Tree = "tree"
...
...
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