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
16437499
Commit
16437499
authored
Jul 22, 2024
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add node_id query param to hframeUrl
parent
2fc0d89a
Pipeline
#6435
passed with stages
in 21 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
Layout.purs
src/Gargantext/Components/Frame/Layout.purs
+9
-7
Frame.purs
src/Gargantext/Components/Nodes/Frame.purs
+1
-0
No files found.
src/Gargantext/Components/Frame/Layout.purs
View file @
16437499
...
...
@@ -21,6 +21,7 @@ here = R2.here "Gargantext.Components.Frame.Layout"
type Props =
( frame :: NodePoly Hyperdata
, nodeType :: NodeType
, nodeId :: Int
)
layout :: R2.Leaf Props
...
...
@@ -29,6 +30,7 @@ layoutCpt :: R.Component Props
layoutCpt = here.component "main" cpt where
cpt { frame: NodePoly { hyperdata: Hyperdata { base, frame_id } }
, nodeType
, nodeId
} _ = case nodeType of
-- Visio Node
...
...
@@ -58,7 +60,7 @@ layoutCpt = here.component "main" cpt where
,
H.a
{ className : "fa fa-video-camera fa-5x"
, href : hframeUrl nodeType base frame_id
, href : hframeUrl nodeType base frame_id
nodeId
, target: "_blank"
}
[]
...
...
@@ -92,7 +94,7 @@ layoutCpt = here.component "main" cpt where
[
-- H.script { src: "https://visio.gargantext.org/external_api.js"} [],
H.iframe
{ src: hframeUrl nodeType base frame_id
{ src: hframeUrl nodeType base frame_id
nodeId
, width: "100%"
, height: "100%"
}
...
...
@@ -132,8 +134,8 @@ layoutCpt = here.component "main" cpt where
--------------------------------------------------------------
hframeUrl :: NodeType -> Base -> FrameId -> String
hframeUrl NodeFrameNotebook base frame_id = base <> "/" <> frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl Calc base frame_id
= base <> "/" <> frame_id
hframeUrl NodeFrameVisio base frame_id
= base <> "/" <> frame_id
hframeUrl _ base frame_id
= base <> "/" <> frame_id <> "?view"
-- "?both"
hframeUrl :: NodeType -> Base -> FrameId ->
Int ->
String
hframeUrl NodeFrameNotebook base frame_id
_
= base <> "/" <> frame_id -- Temp fix : frame_id is currently the whole url created
hframeUrl Calc base frame_id
_
= base <> "/" <> frame_id
hframeUrl NodeFrameVisio base frame_id
_
= base <> "/" <> frame_id
hframeUrl _ base frame_id
node_id = base <> "/" <> frame_id <> "?view&node_id=" <> show node_id
-- "?both"
src/Gargantext/Components/Nodes/Frame.purs
View file @
16437499
...
...
@@ -70,6 +70,7 @@ nodeCpt = R2.hereComponent here "node" hCpt where
layout
{ frame
, nodeType
, nodeId
}
}
...
...
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