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
73ac77d8
Commit
73ac77d8
authored
Jun 02, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOC] NodeFrameCalc -> Calc only
parent
a0952447
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
24 deletions
+24
-24
Upload.purs
...Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
+1
-1
Settings.purs
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
+12
-12
Layout.purs
src/Gargantext/Components/Frame/Layout.purs
+1
-1
Router.purs
src/Gargantext/Components/Router.purs
+1
-1
Routes.purs
src/Gargantext/Routes.purs
+1
-1
Types.purs
src/Gargantext/Types.purs
+8
-8
No files found.
src/Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
View file @
73ac77d8
...
@@ -66,7 +66,7 @@ actionUploadCpt = here.component "actionUpload" cpt where
...
@@ -66,7 +66,7 @@ actionUploadCpt = here.component "actionUpload" cpt where
cpt { nodeType: NodeList, dispatch, id, session } _ =
cpt { nodeType: NodeList, dispatch, id, session } _ =
pure $ uploadTermListView { dispatch, id, nodeType: GT.NodeList, session } []
pure $ uploadTermListView { dispatch, id, nodeType: GT.NodeList, session } []
cpt props@{ nodeType:
NodeFrame
Calc } _ = pure $ uploadFrameCalcView props []
cpt props@{ nodeType: Calc } _ = pure $ uploadFrameCalcView props []
cpt props@{ nodeType: Annuaire, dispatch, id, session } _ =
cpt props@{ nodeType: Annuaire, dispatch, id, session } _ =
pure $ uploadListView { dispatch, id, nodeType: GT.Annuaire, session }
pure $ uploadListView { dispatch, id, nodeType: GT.Annuaire, session }
...
...
src/Gargantext/Components/Forest/Tree/Node/Settings.purs
View file @
73ac77d8
...
@@ -115,7 +115,7 @@ settingsBox FolderPrivate =
...
@@ -115,7 +115,7 @@ settingsBox FolderPrivate =
, Folder
, Folder
, Annuaire
, Annuaire
, Notes
, Notes
,
NodeFrame
Calc
, Calc
-- , NodeFrameNotebook
-- , NodeFrameNotebook
]
]
]
]
...
@@ -129,7 +129,7 @@ settingsBox Team =
...
@@ -129,7 +129,7 @@ settingsBox Team =
, Corpus
, Corpus
, Folder
, Folder
, Annuaire
, Annuaire
,
NodeFrame
Calc
, Calc
-- , NodeFrameNotebook
-- , NodeFrameNotebook
, Team
, Team
, FolderShared
, FolderShared
...
@@ -165,7 +165,7 @@ settingsBox Folder =
...
@@ -165,7 +165,7 @@ settingsBox Folder =
, Folder
, Folder
, Annuaire
, Annuaire
, Notes
, Notes
,
NodeFrame
Calc
, Calc
-- , NodeFrameNotebook
-- , NodeFrameNotebook
]
]
, Move moveParameters
, Move moveParameters
...
@@ -186,7 +186,7 @@ settingsBox Corpus =
...
@@ -186,7 +186,7 @@ settingsBox Corpus =
, Graph
, Graph
, Dashboard
, Dashboard
, Notes
, Notes
,
NodeFrame
Calc
, Calc
, Phylo
, Phylo
-- , NodeFrameNotebook
-- , NodeFrameNotebook
]
]
...
@@ -319,7 +319,7 @@ settingsBox Notes =
...
@@ -319,7 +319,7 @@ settingsBox Notes =
, edit : true
, edit : true
, doc : Documentation Notes
, doc : Documentation Notes
, buttons : [ Add [ Notes
, buttons : [ Add [ Notes
,
NodeFrame
Calc
, Calc
, Folder
, Folder
, Corpus
, Corpus
]
]
...
@@ -329,12 +329,12 @@ settingsBox Notes =
...
@@ -329,12 +329,12 @@ settingsBox Notes =
}
}
settingsBox
NodeFrame
Calc =
settingsBox Calc =
SettingsBox { show : true
SettingsBox { show : true
, edit : true
, edit : true
, doc : Documentation
NodeFrame
Calc
, doc : Documentation Calc
, buttons : [ Upload
, buttons : [ Upload
, Add [
NodeFrame
Calc
, Add [ Calc
, Notes
, Notes
]
]
, Move moveFrameParameters
, Move moveFrameParameters
...
@@ -346,7 +346,7 @@ settingsBox NodeFrameNotebook =
...
@@ -346,7 +346,7 @@ settingsBox NodeFrameNotebook =
SettingsBox { show : true
SettingsBox { show : true
, edit : true
, edit : true
, doc : Documentation NodeFrameNotebook
, doc : Documentation NodeFrameNotebook
, buttons : [ Add [
NodeFrame
Calc
, buttons : [ Add [ Calc
, Notes
, Notes
-- , NodeFrameNotebook
-- , NodeFrameNotebook
]
]
...
@@ -362,7 +362,7 @@ settingsBox NodeFrameVisio =
...
@@ -362,7 +362,7 @@ settingsBox NodeFrameVisio =
, doc : Documentation NodeFrameVisio
, doc : Documentation NodeFrameVisio
, buttons : [ Add [ NodeFrameVisio
, buttons : [ Add [ NodeFrameVisio
, Notes
, Notes
,
NodeFrame
Calc
, Calc
]
]
, Delete
, Delete
]
]
...
@@ -415,7 +415,7 @@ moveFrameParameters = { subTreeParams : SubTreeParams
...
@@ -415,7 +415,7 @@ moveFrameParameters = { subTreeParams : SubTreeParams
, Folder
, Folder
, Corpus
, Corpus
, Notes
, Notes
,
NodeFrame
Calc
, Calc
]
]
, valitypes: [ FolderPrivate
, valitypes: [ FolderPrivate
, Team
, Team
...
@@ -423,7 +423,7 @@ moveFrameParameters = { subTreeParams : SubTreeParams
...
@@ -423,7 +423,7 @@ moveFrameParameters = { subTreeParams : SubTreeParams
, Folder
, Folder
, Corpus
, Corpus
, Notes
, Notes
,
NodeFrame
Calc
, Calc
]
]
}
}
}
}
...
...
src/Gargantext/Components/Frame/Layout.purs
View file @
73ac77d8
...
@@ -146,6 +146,6 @@ nodeFrameVisioCpt = here.component "nodeFrameVisio" cpt where
...
@@ -146,6 +146,6 @@ nodeFrameVisioCpt = here.component "nodeFrameVisio" cpt where
hframeUrl :: NodeType -> Base -> FrameId -> String
hframeUrl :: NodeType -> Base -> FrameId -> String
hframeUrl NodeFrameNotebook base frame_id = base <> "/" <> frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl NodeFrameNotebook base frame_id = base <> "/" <> frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl
NodeFrame
Calc base frame_id = base <> "/" <> frame_id
hframeUrl Calc base frame_id = base <> "/" <> frame_id
hframeUrl NodeFrameVisio base frame_id = base <> "/" <> frame_id
hframeUrl NodeFrameVisio base frame_id = base <> "/" <> frame_id
hframeUrl _ base frame_id = base <> "/" <> frame_id <> "?view" -- "?both"
hframeUrl _ base frame_id = base <> "/" <> frame_id <> "?view" -- "?both"
src/Gargantext/Components/Router.purs
View file @
73ac77d8
...
@@ -326,7 +326,7 @@ renderRouteCpt = R.memo' $ here.component "renderRoute" cpt where
...
@@ -326,7 +326,7 @@ renderRouteCpt = R.memo' $ here.component "renderRoute" cpt where
GR.PhyloExplorer s g -> phyloExplorer (sessionNodeProps s g) []
GR.PhyloExplorer s g -> phyloExplorer (sessionNodeProps s g) []
GR.RouteFile s n -> routeFile (sessionNodeProps s n) []
GR.RouteFile s n -> routeFile (sessionNodeProps s n) []
GR.RouteFrameWrite s n -> routeFrame (Record.merge { nodeType: Notes } $ sessionNodeProps s n) []
GR.RouteFrameWrite s n -> routeFrame (Record.merge { nodeType: Notes } $ sessionNodeProps s n) []
GR.RouteFrameCalc s n -> routeFrame (Record.merge { nodeType:
NodeFrame
Calc } $ sessionNodeProps s n) []
GR.RouteFrameCalc s n -> routeFrame (Record.merge { nodeType: Calc } $ sessionNodeProps s n) []
GR.RouteFrameCode s n -> routeFrame (Record.merge { nodeType: NodeFrameNotebook } $ sessionNodeProps s n) []
GR.RouteFrameCode s n -> routeFrame (Record.merge { nodeType: NodeFrameNotebook } $ sessionNodeProps s n) []
GR.RouteFrameVisio s n -> routeFrame (Record.merge { nodeType: NodeFrameVisio } $ sessionNodeProps s n) []
GR.RouteFrameVisio s n -> routeFrame (Record.merge { nodeType: NodeFrameVisio } $ sessionNodeProps s n) []
GR.Team s n -> team (sessionNodeProps s n) []
GR.Team s n -> team (sessionNodeProps s n) []
...
...
src/Gargantext/Routes.purs
View file @
73ac77d8
...
@@ -112,7 +112,7 @@ nodeTypeAppRoute GT.NodeUser s i = Just $ UserPage s i
...
@@ -112,7 +112,7 @@ nodeTypeAppRoute GT.NodeUser s i = Just $ UserPage s i
nodeTypeAppRoute GT.Team s i = Just $ Team s i
nodeTypeAppRoute GT.Team s i = Just $ Team s i
nodeTypeAppRoute GT.NodeTexts s i = Just $ NodeTexts s i
nodeTypeAppRoute GT.NodeTexts s i = Just $ NodeTexts s i
nodeTypeAppRoute GT.Notes s i = Just $ RouteFrameWrite s i
nodeTypeAppRoute GT.Notes s i = Just $ RouteFrameWrite s i
nodeTypeAppRoute GT.
NodeFrame
Calc s i = Just $ RouteFrameCalc s i
nodeTypeAppRoute GT.Calc s i = Just $ RouteFrameCalc s i
nodeTypeAppRoute GT.NodeFrameVisio s i = Just $ RouteFrameVisio s i
nodeTypeAppRoute GT.NodeFrameVisio s i = Just $ RouteFrameVisio s i
nodeTypeAppRoute _ _ _ = Nothing
nodeTypeAppRoute _ _ _ = Nothing
...
...
src/Gargantext/Types.purs
View file @
73ac77d8
...
@@ -155,7 +155,7 @@ data NodeType = Annuaire
...
@@ -155,7 +155,7 @@ data NodeType = Annuaire
| Url_Document
| Url_Document
-- TODO Optional Nodes
-- TODO Optional Nodes
| NodeFile
| NodeFile
|
NodeFrame
Calc
| Calc
| NodeFrameNotebook
| NodeFrameNotebook
| Notes
| Notes
| NodeFrameVisio
| NodeFrameVisio
...
@@ -198,7 +198,7 @@ instance Show NodeType where
...
@@ -198,7 +198,7 @@ instance Show NodeType where
show NodeList = "NodeList"
show NodeList = "NodeList"
show NodeTexts = "NodeTexts"
show NodeTexts = "NodeTexts"
show Notes = "Notes"
show Notes = "Notes"
show
NodeFrameCalc = "NodeFrame
Calc"
show
Calc = "
Calc"
show NodeFrameNotebook = "NodeFrameNotebook"
show NodeFrameNotebook = "NodeFrameNotebook"
show NodeFrameVisio = "NodeFrameVisio"
show NodeFrameVisio = "NodeFrameVisio"
show (NodePublic nt) = "NodePublic" <> show nt
show (NodePublic nt) = "NodePublic" <> show nt
...
@@ -228,7 +228,7 @@ instance Read NodeType where
...
@@ -228,7 +228,7 @@ instance Read NodeType where
read "NodeTexts" = Just NodeTexts
read "NodeTexts" = Just NodeTexts
read "Annuaire" = Just Annuaire
read "Annuaire" = Just Annuaire
read "Notes" = Just Notes
read "Notes" = Just Notes
read "
NodeFrameCalc" = Just NodeFrame
Calc
read "
Calc" = Just
Calc
read "NodeFrameNotebook" = Just NodeFrameNotebook
read "NodeFrameNotebook" = Just NodeFrameNotebook
read "NodeFrameVisio" = Just NodeFrameVisio
read "NodeFrameVisio" = Just NodeFrameVisio
read "NodeFile" = Just NodeFile
read "NodeFile" = Just NodeFile
...
@@ -267,7 +267,7 @@ translateFR = case _ of
...
@@ -267,7 +267,7 @@ translateFR = case _ of
Url_Document -> "Document URL"
Url_Document -> "Document URL"
--
--
NodeFile -> "Fichier"
NodeFile -> "Fichier"
NodeFrame
Calc -> "Feuilles de calcul"
Calc -> "Feuilles de calcul"
NodeFrameNotebook -> "Carnet de notes"
NodeFrameNotebook -> "Carnet de notes"
Notes -> "Éditeur de texte"
Notes -> "Éditeur de texte"
NodeFrameVisio -> "Visio"
NodeFrameVisio -> "Visio"
...
@@ -298,7 +298,7 @@ translateEN = case _ of
...
@@ -298,7 +298,7 @@ translateEN = case _ of
Url_Document -> "URL document"
Url_Document -> "URL document"
--
--
NodeFile -> "File"
NodeFile -> "File"
NodeFrame
Calc -> "Calc"
Calc -> "Calc"
NodeFrameNotebook -> "Notebook"
NodeFrameNotebook -> "Notebook"
Notes -> "Notes"
Notes -> "Notes"
NodeFrameVisio -> "Visio"
NodeFrameVisio -> "Visio"
...
@@ -346,8 +346,8 @@ getIcon NodeContact false = "address-card"
...
@@ -346,8 +346,8 @@ getIcon NodeContact false = "address-card"
getIcon Notes true = "file-text-o"
getIcon Notes true = "file-text-o"
getIcon Notes false = "file-text"
getIcon Notes false = "file-text"
getIcon
NodeFrame
Calc true = "calculator"
getIcon Calc true = "calculator"
getIcon
NodeFrame
Calc false = "calculator"
getIcon Calc false = "calculator"
getIcon NodeFrameNotebook true = "file-code-o"
getIcon NodeFrameNotebook true = "file-code-o"
getIcon NodeFrameNotebook false = "code"
getIcon NodeFrameNotebook false = "code"
...
@@ -410,7 +410,7 @@ nodeTypePath NodeList = "lists"
...
@@ -410,7 +410,7 @@ nodeTypePath NodeList = "lists"
nodeTypePath NodeTexts = "texts"
nodeTypePath NodeTexts = "texts"
nodeTypePath Team = "team"
nodeTypePath Team = "team"
nodeTypePath Notes = "write"
nodeTypePath Notes = "write"
nodeTypePath
NodeFrame
Calc = "calc"
nodeTypePath Calc = "calc"
nodeTypePath NodeFrameNotebook = "code"
nodeTypePath NodeFrameNotebook = "code"
nodeTypePath NodeFrameVisio = "visio"
nodeTypePath NodeFrameVisio = "visio"
nodeTypePath (NodePublic nt) = nodeTypePath nt
nodeTypePath (NodePublic nt) = nodeTypePath nt
...
...
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