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