Commit d141dcb9 authored by Alexandre Delanoë's avatar Alexandre Delanoë

Merge remote-tracking branch 'origin/dev-ihaskell' into dev-merge

parents a0974175 138dba79
...@@ -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"
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment