Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
haskell-gargantext
Commits
ccb4b7f9
Commit
ccb4b7f9
authored
Jun 08, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RENAME] NodeFrames renamed
parent
b92a2778
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
22 deletions
+23
-22
gargantext.cabal
gargantext.cabal
+1
-1
DocumentsFromWriteNodes.hs
src/Gargantext/API/Node/DocumentsFromWriteNodes.hs
+2
-2
Node.hs
src/Gargantext/Database/Action/Node.hs
+12
-12
Config.hs
src/Gargantext/Database/Admin/Config.hs
+2
-2
Default.hs
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
+2
-2
Node.hs
src/Gargantext/Database/Admin/Types/Node.hs
+4
-3
No files found.
gargantext.cabal
View file @
ccb4b7f9
src/Gargantext/API/Node/DocumentsFromWriteNodes.hs
View file @
ccb4b7f9
...
@@ -90,7 +90,7 @@ documentsFromWriteNodes uId nId Params { selection, lang, paragraphs } jobHandle
...
@@ -90,7 +90,7 @@ documentsFromWriteNodes uId nId Params { selection, lang, paragraphs } jobHandle
markFailed
(
Just
msg
)
jobHandle
markFailed
(
Just
msg
)
jobHandle
panic
msg
panic
msg
frameWriteIds
<-
getChildrenByType
nId
No
deFrameWrite
frameWriteIds
<-
getChildrenByType
nId
No
tes
-- https://write.frame.gargantext.org/<frame_id>/download
-- https://write.frame.gargantext.org/<frame_id>/download
frameWrites
<-
mapM
(
\
id
->
getNodeWith
id
(
Proxy
::
Proxy
HyperdataFrame
))
frameWriteIds
frameWrites
<-
mapM
(
\
id
->
getNodeWith
id
(
Proxy
::
Proxy
HyperdataFrame
))
frameWriteIds
...
@@ -142,7 +142,7 @@ hyperdataDocumentFromFrameWrite lang paragraphSize (node, contents) =
...
@@ -142,7 +142,7 @@ hyperdataDocumentFromFrameWrite lang paragraphSize (node, contents) =
day' = maybe Defaults.day (\(Date { day }) -> fromIntegral day) date
day' = maybe Defaults.day (\(Date { day }) -> fromIntegral day) date
--}
--}
in
in
Right
(
List
.
map
(
\
(
t
,
ctxt
)
->
HyperdataDocument
{
_hd_bdd
=
Just
"FrameWrite"
Right
(
List
.
map
(
\
(
t
,
ctxt
)
->
HyperdataDocument
{
_hd_bdd
=
Just
$
cs
$
show
Notes
,
_hd_doi
=
Nothing
,
_hd_doi
=
Nothing
,
_hd_url
=
Nothing
,
_hd_url
=
Nothing
,
_hd_uniqId
=
Nothing
,
_hd_uniqId
=
Nothing
...
...
src/Gargantext/Database/Action/Node.hs
View file @
ccb4b7f9
...
@@ -51,11 +51,11 @@ mkNodeWithParent NodeUser Nothing uId name =
...
@@ -51,11 +51,11 @@ mkNodeWithParent NodeUser Nothing uId name =
mkNodeWithParent
_
Nothing
_
_
=
nodeError
HasParent
mkNodeWithParent
_
Nothing
_
_
=
nodeError
HasParent
------------------------------------------------------------------------
------------------------------------------------------------------------
mkNodeWithParent
No
deFrameWrite
i
u
n
=
mkNodeWithParent
No
tes
i
u
n
=
mkNodeWithParent_ConfigureHyperdata
No
deFrameWrite
i
u
n
mkNodeWithParent_ConfigureHyperdata
No
tes
i
u
n
mkNodeWithParent
NodeFrame
Calc
i
u
n
=
mkNodeWithParent
Calc
i
u
n
=
mkNodeWithParent_ConfigureHyperdata
NodeFrame
Calc
i
u
n
mkNodeWithParent_ConfigureHyperdata
Calc
i
u
n
mkNodeWithParent
NodeFrameVisio
i
u
n
=
mkNodeWithParent
NodeFrameVisio
i
u
n
=
mkNodeWithParent_ConfigureHyperdata
NodeFrameVisio
i
u
n
mkNodeWithParent_ConfigureHyperdata
NodeFrameVisio
i
u
n
...
@@ -76,11 +76,11 @@ mkNodeWithParent_ConfigureHyperdata :: (HasNodeError err, HasDBid NodeType)
...
@@ -76,11 +76,11 @@ mkNodeWithParent_ConfigureHyperdata :: (HasNodeError err, HasDBid NodeType)
->
UserId
->
UserId
->
Name
->
Name
->
Cmd
err
[
NodeId
]
->
Cmd
err
[
NodeId
]
mkNodeWithParent_ConfigureHyperdata
No
deFrameWrite
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata
No
tes
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata'
No
deFrameWrite
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata'
No
tes
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata
NodeFrame
Calc
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata
Calc
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata'
NodeFrame
Calc
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata'
Calc
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata
NodeFrameVisio
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata
NodeFrameVisio
(
Just
i
)
uId
name
=
mkNodeWithParent_ConfigureHyperdata'
NodeFrameVisio
(
Just
i
)
uId
name
mkNodeWithParent_ConfigureHyperdata'
NodeFrameVisio
(
Just
i
)
uId
name
...
@@ -102,8 +102,8 @@ mkNodeWithParent_ConfigureHyperdata' :: (HasNodeError err, HasDBid NodeType)
...
@@ -102,8 +102,8 @@ mkNodeWithParent_ConfigureHyperdata' :: (HasNodeError err, HasDBid NodeType)
->
Cmd
err
[
NodeId
]
->
Cmd
err
[
NodeId
]
mkNodeWithParent_ConfigureHyperdata'
nt
(
Just
i
)
uId
name
=
do
mkNodeWithParent_ConfigureHyperdata'
nt
(
Just
i
)
uId
name
=
do
maybeNodeId
<-
case
nt
of
maybeNodeId
<-
case
nt
of
No
deFrameWrite
->
insertNode
NodeFrameWrite
(
Just
name
)
Nothing
i
uId
No
tes
->
insertNode
Notes
(
Just
name
)
Nothing
i
uId
NodeFrameCalc
->
insertNode
NodeFrame
Calc
(
Just
name
)
Nothing
i
uId
Calc
->
insertNode
Calc
(
Just
name
)
Nothing
i
uId
NodeFrameVisio
->
insertNode
NodeFrameVisio
(
Just
name
)
Nothing
i
uId
NodeFrameVisio
->
insertNode
NodeFrameVisio
(
Just
name
)
Nothing
i
uId
_
->
nodeError
NeedsConfiguration
_
->
nodeError
NeedsConfiguration
...
@@ -112,8 +112,8 @@ mkNodeWithParent_ConfigureHyperdata' nt (Just i) uId name = do
...
@@ -112,8 +112,8 @@ mkNodeWithParent_ConfigureHyperdata' nt (Just i) uId name = do
[
n
]
->
do
[
n
]
->
do
cfg
<-
view
hasConfig
cfg
<-
view
hasConfig
u
<-
case
nt
of
u
<-
case
nt
of
No
deFrameWrite
->
pure
$
_gc_frame_write_url
cfg
No
tes
->
pure
$
_gc_frame_write_url
cfg
NodeFrame
Calc
->
pure
$
_gc_frame_calc_url
cfg
Calc
->
pure
$
_gc_frame_calc_url
cfg
NodeFrameVisio
->
pure
$
_gc_frame_visio_url
cfg
NodeFrameVisio
->
pure
$
_gc_frame_visio_url
cfg
_
->
nodeError
NeedsConfiguration
_
->
nodeError
NeedsConfiguration
let
let
...
...
src/Gargantext/Database/Admin/Config.hs
View file @
ccb4b7f9
...
@@ -76,8 +76,8 @@ nodeTypeId n =
...
@@ -76,8 +76,8 @@ nodeTypeId n =
NodeFile
->
101
NodeFile
->
101
No
deFrameWrite
->
991
No
tes
->
991
NodeFrame
Calc
->
992
Calc
->
992
NodeFrameNotebook
->
993
NodeFrameNotebook
->
993
NodeFrameVisio
->
994
NodeFrameVisio
->
994
...
...
src/Gargantext/Database/Admin/Types/Hyperdata/Default.hs
View file @
ccb4b7f9
...
@@ -115,8 +115,8 @@ defaultHyperdata NodeGraph = DefaultGraph defaultHyperdataGraph
...
@@ -115,8 +115,8 @@ defaultHyperdata NodeGraph = DefaultGraph defaultHyperdataGraph
defaultHyperdata
NodePhylo
=
DefaultPhylo
defaultHyperdataPhylo
defaultHyperdata
NodePhylo
=
DefaultPhylo
defaultHyperdataPhylo
defaultHyperdata
NodeDashboard
=
DefaultDashboard
defaultHyperdataDashboard
defaultHyperdata
NodeDashboard
=
DefaultDashboard
defaultHyperdataDashboard
defaultHyperdata
No
deFrameWrite
=
DefaultFrameWrite
defaultHyperdataFrame
defaultHyperdata
No
tes
=
DefaultFrameWrite
defaultHyperdataFrame
defaultHyperdata
NodeFrame
Calc
=
DefaultFrameCalc
defaultHyperdataFrame
defaultHyperdata
Calc
=
DefaultFrameCalc
defaultHyperdataFrame
defaultHyperdata
NodeFrameVisio
=
DefaultFrameVisio
defaultHyperdataFrame
defaultHyperdata
NodeFrameVisio
=
DefaultFrameVisio
defaultHyperdataFrame
defaultHyperdata
NodeFrameNotebook
=
DefaultFrameCalc
defaultHyperdataFrame
defaultHyperdata
NodeFrameNotebook
=
DefaultFrameCalc
defaultHyperdataFrame
...
...
src/Gargantext/Database/Admin/Types/Node.hs
View file @
ccb4b7f9
...
@@ -355,11 +355,12 @@ data NodeType = NodeUser
...
@@ -355,11 +355,12 @@ data NodeType = NodeUser
-}
-}
-- Optional Nodes
-- Optional Nodes
|
No
deFrameWrite
|
NodeFrame
Calc
|
NodeFrameVisio
|
NodeFrameNotebook
|
No
tes
|
Calc
|
NodeFrameVisio
|
NodeFrameNotebook
|
NodeFile
|
NodeFile
deriving
(
Show
,
Read
,
Eq
,
Generic
,
Bounded
,
Enum
)
deriving
(
Show
,
Read
,
Eq
,
Generic
,
Bounded
,
Enum
)
instance
GQLType
NodeType
instance
GQLType
NodeType
instance
FromJSON
NodeType
instance
FromJSON
NodeType
instance
ToJSON
NodeType
instance
ToJSON
NodeType
...
@@ -404,8 +405,8 @@ defaultName NodeDashboard = "Board"
...
@@ -404,8 +405,8 @@ defaultName NodeDashboard = "Board"
defaultName
NodeGraph
=
"Graph"
defaultName
NodeGraph
=
"Graph"
defaultName
NodePhylo
=
"Phylo"
defaultName
NodePhylo
=
"Phylo"
defaultName
No
deFrameWrite
=
"Note"
defaultName
No
tes
=
"Note"
defaultName
NodeFrame
Calc
=
"Calc"
defaultName
Calc
=
"Calc"
defaultName
NodeFrameVisio
=
"Visio"
defaultName
NodeFrameVisio
=
"Visio"
defaultName
NodeFrameNotebook
=
"Code"
defaultName
NodeFrameNotebook
=
"Code"
...
...
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