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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
d141dcb9
Commit
d141dcb9
authored
May 24, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev-ihaskell' into dev-merge
parents
a0974175
138dba79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
55 deletions
+54
-55
Frame.purs
src/Gargantext/Components/Nodes/Frame.purs
+1
-1
Types.purs
src/Gargantext/Types.purs
+53
-54
No files found.
src/Gargantext/Components/Nodes/Frame.purs
View file @
d141dcb9
...
@@ -83,7 +83,7 @@ type Base = String
...
@@ -83,7 +83,7 @@ type Base = String
type FrameId = String
type FrameId = String
hframeUrl :: NodeType -> Base -> FrameId -> String
hframeUrl :: NodeType -> Base -> FrameId -> String
hframeUrl NodeFrameNotebook _ frame_id = frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl NodeFrameNotebook _ frame_id =
base <> "/" <>
frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl NodeFrameCalc base frame_id = base <> "/" <> frame_id
hframeUrl NodeFrameCalc 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/Types.purs
View file @
d141dcb9
...
@@ -174,35 +174,35 @@ instance VarTypeName NodeType where
...
@@ -174,35 +174,35 @@ instance VarTypeName NodeType where
varTypeName _ = "NodeType!"
varTypeName _ = "NodeType!"
instance Show NodeType where
instance Show NodeType where
show NodeUser = "NodeUser"
show NodeUser
= "NodeUser"
show Folder = "NodeFolder"
show Folder
= "NodeFolder"
show FolderPrivate = "NodeFolderPrivate" -- Node Private Worktop
show FolderPrivate
= "NodeFolderPrivate" -- Node Private Worktop
show FolderShared = "NodeFolderShared" -- Node Share Worktop
show FolderShared
= "NodeFolderShared" -- Node Share Worktop
show FolderPublic = "NodeFolderPublic" -- Node Public Worktop
show FolderPublic
= "NodeFolderPublic" -- Node Public Worktop
show Annuaire = "NodeAnnuaire"
show Annuaire
= "NodeAnnuaire"
show NodeContact = "NodeContact"
show NodeContact
= "NodeContact"
show Corpus = "NodeCorpus"
show Corpus
= "NodeCorpus"
show Dashboard = "NodeDashboard"
show Dashboard
= "NodeDashboard"
show Url_Document = "NodeDocument"
show Url_Document
= "NodeDocument"
show Error = "NodeError"
show Error
= "NodeError"
show Graph = "NodeGraph"
show Graph
= "NodeGraph"
show Phylo = "NodePhylo"
show Phylo
= "NodePhylo"
show Individu = "NodeIndividu"
show Individu
= "NodeIndividu"
show Node = "Node"
show Node
= "Node"
show Nodes = "Nodes"
show Nodes
= "Nodes"
show Context = "Context"
show Context
= "Context"
show Tree = "NodeTree"
show Tree
= "NodeTree"
show Team = "NodeTeam"
show Team
= "NodeTeam"
show NodeList = "NodeList"
show NodeList
= "NodeList"
show NodeTexts = "NodeTexts"
show NodeTexts
= "NodeTexts"
show NodeFrameWrite = "NodeFrameWrite"
show NodeFrameWrite
= "NodeFrameWrite"
show NodeFrameCalc = "NodeFrameCalc"
show NodeFrameCalc
= "NodeFrameCalc"
show NodeFrameNotebook = "NodeFrameNotebook"
show NodeFrameNotebook = "NodeFrameNotebook"
show NodeFrameVisio = "NodeFrameVisio"
show NodeFrameVisio = "NodeFrameVisio"
show (NodePublic nt) = "NodePublic" <> show nt
show (NodePublic nt)
= "NodePublic" <> show nt
show NodeFile = "NodeFile"
show NodeFile
= "NodeFile"
instance Read NodeType where
instance Read NodeType where
...
@@ -229,7 +229,7 @@ instance Read NodeType where
...
@@ -229,7 +229,7 @@ instance 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 "NodeFrameNotebook"
= Just NodeFrameNotebook
read "NodeFrameNotebook" = Just NodeFrameNotebook
read "NodeFrameVisio" = Just NodeFrameVisio
read "NodeFrameVisio" = Just NodeFrameVisio
read "NodeFile" = Just NodeFile
read "NodeFile" = Just NodeFile
-- TODO NodePublic read ?
-- TODO NodePublic read ?
...
@@ -356,7 +356,6 @@ getIcon NodeFrameVisio true = "video-camera"
...
@@ -356,7 +356,6 @@ getIcon NodeFrameVisio true = "video-camera"
getIcon NodeFrameVisio false = "video-camera"
getIcon NodeFrameVisio false = "video-camera"
getIcon (NodePublic nt) b = getIcon nt b
getIcon (NodePublic nt) b = getIcon nt b
getIcon _ true = "folder-open"
getIcon _ true = "folder-open"
...
@@ -389,33 +388,33 @@ instance Eq NodeType where
...
@@ -389,33 +388,33 @@ instance Eq NodeType where
-}
-}
------------------------------------------------------------
------------------------------------------------------------
nodeTypePath :: NodeType -> String
nodeTypePath :: NodeType -> String
nodeTypePath Folder = "folder"
nodeTypePath Folder
= "folder"
nodeTypePath FolderPrivate = "folderPrivate"
nodeTypePath FolderPrivate
= "folderPrivate"
nodeTypePath FolderShared = "folderShared"
nodeTypePath FolderShared
= "folderShared"
nodeTypePath FolderPublic = "folderPublic"
nodeTypePath FolderPublic
= "folderPublic"
nodeTypePath Annuaire = "annuaire"
nodeTypePath Annuaire
= "annuaire"
nodeTypePath Corpus = "corpus"
nodeTypePath Corpus
= "corpus"
nodeTypePath Dashboard = "dashboard"
nodeTypePath Dashboard
= "dashboard"
nodeTypePath Url_Document = "document"
nodeTypePath Url_Document
= "document"
nodeTypePath Error = "ErrorNodeType"
nodeTypePath Error
= "ErrorNodeType"
nodeTypePath Graph = "graph"
nodeTypePath Graph
= "graph"
nodeTypePath Phylo = "phylo"
nodeTypePath Phylo
= "phylo"
nodeTypePath Individu = "individu"
nodeTypePath Individu
= "individu"
nodeTypePath Node = "node"
nodeTypePath Node
= "node"
nodeTypePath Nodes = "nodes"
nodeTypePath Nodes
= "nodes"
nodeTypePath Context = "context"
nodeTypePath Context
= "context"
nodeTypePath NodeUser = "user"
nodeTypePath NodeUser
= "user"
nodeTypePath NodeContact = "contact"
nodeTypePath NodeContact
= "contact"
nodeTypePath Tree = "tree"
nodeTypePath Tree
= "tree"
nodeTypePath NodeList = "lists"
nodeTypePath NodeList
= "lists"
nodeTypePath NodeTexts = "texts"
nodeTypePath NodeTexts
= "texts"
nodeTypePath Team = "team"
nodeTypePath Team
= "team"
nodeTypePath NodeFrameWrite = "write"
nodeTypePath NodeFrameWrite
= "write"
nodeTypePath NodeFrameCalc = "calc"
nodeTypePath NodeFrameCalc
= "calc"
nodeTypePath NodeFrameNotebook = "code"
nodeTypePath NodeFrameNotebook = "code"
nodeTypePath NodeFrameVisio = "visio"
nodeTypePath NodeFrameVisio = "visio"
nodeTypePath (NodePublic nt) = nodeTypePath nt
nodeTypePath (NodePublic nt)
= nodeTypePath nt
nodeTypePath NodeFile = "file"
nodeTypePath NodeFile
= "file"
------------------------------------------------------------
------------------------------------------------------------
type CorpusId = Int
type CorpusId = Int
...
...
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