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
cf509deb
Commit
cf509deb
authored
Nov 05, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
[FIX] merge
parents
3c4ff4f6
b85b280f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
App.purs
src/Gargantext/Components/App.purs
+3
-3
Settings.purs
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
+4
-4
Frame.purs
src/Gargantext/Components/Nodes/Frame.purs
+1
-1
Types.purs
src/Gargantext/Types.purs
+6
-6
No files found.
src/Gargantext/Components/App.purs
View file @
cf509deb
...
...
@@ -122,8 +122,8 @@ appCpt = R.hooksComponentWithModule thisModule "app" cpt where
}
RouteFile sid nodeId -> withSession sid $ \session -> forested $ fileLayout { nodeId, session }
RouteFrameCalc sid nodeId -> withSession sid $ \session -> forested $ frameLayout { nodeId, session, nodeType: GT.NodeFrameCalc }
RouteFrame
Code sid nodeId -> withSession sid $ \session -> forested $ frameLayout { nodeId, session, nodeType: GT.NodeFrameCode
}
RouteFrame
Write sid nodeId -> withSession sid $ \session -> forested $ frameLayout { nodeId, session, nodeType: GT.NodeFrameWrite
}
RouteFrame
Write sid nodeId -> withSession sid $ \session -> forested $ frameLayout { nodeId, session, nodeType: GT.NodeFrameWrite
}
RouteFrame
Code sid nodeId -> withSession sid $ \session -> forested $ frameLayout { nodeId, session, nodeType: GT.NodeFrameNotebook
}
Team sid nodeId -> withSession sid $ \session -> forested $ corpusLayout { nodeId, session }
Texts sid nodeId -> withSession sid $ \session -> forested $ textsLayout { frontends, nodeId, session, sessionUpdate }
UserPage sid nodeId -> withSession sid $ \session -> forested $ userLayout { asyncTasks, frontends, nodeId, session }
...
...
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
View file @
cf509deb
...
...
@@ -126,7 +126,7 @@ settingsBox Team =
, Annuaire
, NodeFrameWrite
, NodeFrameCalc
, NodeFrame
Code
, NodeFrame
Notebook
]
, Share
, Delete
...
...
@@ -317,13 +317,13 @@ settingsBox NodeFrameCalc =
]
}
settingsBox NodeFrame
Code
=
settingsBox NodeFrame
Notebook
=
SettingsBox { show : true
, edit : true
, doc : Documentation NodeFrame
Code
, doc : Documentation NodeFrame
Notebook
, buttons : [ Add [ NodeFrameCalc
, NodeFrameWrite
, NodeFrame
Code
, NodeFrame
Notebook
]
, Move moveFrameParameters
, Delete
...
...
src/Gargantext/Components/Nodes/Frame.purs
View file @
cf509deb
...
...
@@ -95,7 +95,7 @@ type Base = String
type FrameId = String
hframeUrl :: NodeType -> Base -> FrameId -> String
hframeUrl NodeFrame
Code
_ frame_id = frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl NodeFrame
Notebook
_ frame_id = frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl _ base frame_id = base <> "/" <> frame_id <> "?both"
frameLayoutView :: Record ViewProps -> R.Element
...
...
src/Gargantext/Types.purs
View file @
cf509deb
...
...
@@ -156,7 +156,7 @@ data NodeType = NodeUser
-- TODO Optional Nodes
| NodeFrameWrite
| NodeFrameCalc
| NodeFrame
Code
| NodeFrame
Notebook
| NodePublic NodeType
| NodeFile
...
...
@@ -188,7 +188,7 @@ instance showNodeType :: Show NodeType where
show Texts = "NodeDocs"
show NodeFrameWrite = "NodeFrameWrite"
show NodeFrameCalc = "NodeFrameCalc"
show NodeFrame
Code = "NodeFrameCode
"
show NodeFrame
Notebook = "NodeFrameNotebook
"
show (NodePublic nt) = "NodePublic" <> show nt
show NodeFile = "NodeFile"
...
...
@@ -216,7 +216,7 @@ instance readNodeType :: Read NodeType where
read "Annuaire" = Just Annuaire
read "NodeFrameWrite" = Just NodeFrameWrite
read "NodeFrameCalc" = Just NodeFrameCalc
read "NodeFrame
Code" = Just NodeFrameCode
read "NodeFrame
Notebook" = Just NodeFrameNotebook
read "NodeFile" = Just NodeFile
-- TODO NodePublic read ?
read _ = Nothing
...
...
@@ -264,8 +264,8 @@ fldr NodeFrameWrite false = "fa fa-file-text"
fldr NodeFrameCalc true = "fa fa-calculator"
fldr NodeFrameCalc false = "fa fa-calculator"
fldr NodeFrame
Code true = "fa fa-terminal
"
fldr NodeFrame
Code false = "fa fa-terminal
"
fldr NodeFrame
Notebook true = "fa fa-file-code-o
"
fldr NodeFrame
Notebook false = "fa fa-code
"
fldr (NodePublic nt) b = fldr nt b
...
...
@@ -323,7 +323,7 @@ nodeTypePath Texts = "texts"
nodeTypePath Team = "team"
nodeTypePath NodeFrameWrite = "write"
nodeTypePath NodeFrameCalc = "calc"
nodeTypePath NodeFrame
Code
= "code"
nodeTypePath NodeFrame
Notebook
= "code"
nodeTypePath (NodePublic nt) = nodeTypePath nt
nodeTypePath NodeFile = "file"
...
...
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