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
137
Issues
137
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
23bc6190
Commit
23bc6190
authored
1 month ago
by
Karen Konou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph] Show graph parameters in legend
parent
c405a828
Pipeline
#7549
passed with stages
in 22 minutes and 11 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
126 additions
and
1 deletion
+126
-1
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+14
-0
bootstrap-default.css
dist/styles/bootstrap-default.css
+14
-0
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+14
-0
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+14
-0
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+14
-0
Sidebar.purs
src/Gargantext/Components/GraphExplorer/Sidebar.purs
+2
-1
Legend.purs
src/Gargantext/Components/GraphExplorer/Sidebar/Legend.purs
+36
-0
_graph.scss
src/sass/_legacy/_graph.scss
+18
-0
No files found.
dist/styles/bootstrap-darkster.css
View file @
23bc6190
...
...
@@ -9750,6 +9750,20 @@ input[type=range]:-moz-focusring {
margin-right
:
8px
;
border
:
1px
solid
#ADB5BD
;
}
.graph-legend__separator
{
fill
:
#B5B5B5
;
}
.graph-legend__params
{
margin
:
16px
;
}
.graph-legend__params__heading
{
font-weight
:
bold
;
list-style
:
none
;
}
.graph-legend__params__item
{
list-style
:
initial
;
margin-left
:
16px
;
}
.graph-legend
.renameable-container__text
{
margin-right
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-default.css
View file @
23bc6190
...
...
@@ -9558,6 +9558,20 @@ input[type=range]:-moz-focusring {
margin-right
:
8px
;
border
:
1px
solid
#ADB5BD
;
}
.graph-legend__separator
{
fill
:
#B5B5B5
;
}
.graph-legend__params
{
margin
:
16px
;
}
.graph-legend__params__heading
{
font-weight
:
bold
;
list-style
:
none
;
}
.graph-legend__params__item
{
list-style
:
initial
;
margin-left
:
16px
;
}
.graph-legend
.renameable-container__text
{
margin-right
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-greyson.css
View file @
23bc6190
...
...
@@ -9401,6 +9401,20 @@ input[type=range]:-moz-focusring {
margin-right
:
8px
;
border
:
1px
solid
#ADB5BD
;
}
.graph-legend__separator
{
fill
:
#B5B5B5
;
}
.graph-legend__params
{
margin
:
16px
;
}
.graph-legend__params__heading
{
font-weight
:
bold
;
list-style
:
none
;
}
.graph-legend__params__item
{
list-style
:
initial
;
margin-left
:
16px
;
}
.graph-legend
.renameable-container__text
{
margin-right
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-herbie.css
View file @
23bc6190
...
...
@@ -9626,6 +9626,20 @@ input[type=range]:-moz-focusring {
margin-right
:
8px
;
border
:
1px
solid
#ADB5BD
;
}
.graph-legend__separator
{
fill
:
#B5B5B5
;
}
.graph-legend__params
{
margin
:
16px
;
}
.graph-legend__params__heading
{
font-weight
:
bold
;
list-style
:
none
;
}
.graph-legend__params__item
{
list-style
:
initial
;
margin-left
:
16px
;
}
.graph-legend
.renameable-container__text
{
margin-right
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
dist/styles/bootstrap-monotony.css
View file @
23bc6190
...
...
@@ -9699,6 +9699,20 @@ input[type=range]:-moz-focusring {
margin-right
:
8px
;
border
:
1px
solid
#ADB5BD
;
}
.graph-legend__separator
{
fill
:
#B5B5B5
;
}
.graph-legend__params
{
margin
:
16px
;
}
.graph-legend__params__heading
{
font-weight
:
bold
;
list-style
:
none
;
}
.graph-legend__params__item
{
list-style
:
initial
;
margin-left
:
16px
;
}
.graph-legend
.renameable-container__text
{
margin-right
:
8px
;
...
...
This diff is collapsed.
Click to expand it.
src/Gargantext/Components/GraphExplorer/Sidebar.purs
View file @
23bc6190
...
...
@@ -122,7 +122,7 @@ sideTabLegend = R2.leaf sideTabLegendCpt
sideTabLegendCpt :: R.Component Props
sideTabLegendCpt = here.component "sideTabLegend" cpt
where
cpt { metaData:
GET.MetaData { legend }
, session, graphId } _ = do
cpt { metaData:
m@(GET.MetaData { legend })
, session, graphId } _ = do
-- | States
-- |
store <- GraphStore.use
...
...
@@ -160,6 +160,7 @@ sideTabLegendCpt = here.component "sideTabLegend" cpt
, selectedNodeIds: store.selectedNodeIds
, session
, graphId
, metaData: m
}
]
...
...
This diff is collapsed.
Click to expand it.
src/Gargantext/Components/GraphExplorer/Sidebar/Legend.purs
View file @
23bc6190
...
...
@@ -37,6 +37,7 @@ type Props =
, selectedNodeIds :: T.Box ST.NodeIds
, session :: Session
, graphId :: GET.GraphId
, metaData :: GET.MetaData
)
legend :: R2.Leaf Props
...
...
@@ -52,6 +53,7 @@ legendCpt = here.component "legend" cpt
, selectedNodeIds
, session
, graphId
, metaData: GET.MetaData m
}
_ = do
-- | Hooks
...
...
@@ -84,6 +86,40 @@ legendCpt = here.component "legend" cpt
]
]
]
, H.hr
{ className: "graph-legend__separator" }
-- Graph params
, H.ul
{ className: "graph-legend__params" }
[ H.li
{ className: "graph-legend__params__heading" }
[ H.text "Graph parameters:"
]
, H.li
{ className: "graph-legend__params__item" }
[ H.text $ "Version: " <> show m.list.version
]
, H.li
{ className: "graph-legend__params__item" }
[ H.text $ "Metric: " <> show m.metric
]
, H.li
{ className: "graph-legend__params__item" }
[ H.text $ "Start Force Atlas: " <> show m.startForceAtlas
]
, H.li
{ className: "graph-legend__params__item" }
[ H.text $ "Edges Strength: " <> maybe "null" show m.edgesStrength
]
-- , H.li
-- { className: "graph-legend__params__item" }
-- [ H.text $ "PartitionMethod: " <> maybe "null" show m.partitionMethod
-- ]
, H.li
{ className: "graph-legend__params__item" }
[ H.text $ "Bridgeness Method: " <> maybe "null" show m.bridgenessMethod
]
]
]
where
rename :: String -> Int -> String -> Effect Unit
...
...
This diff is collapsed.
Click to expand it.
src/sass/_legacy/_graph.scss
View file @
23bc6190
...
...
@@ -229,6 +229,24 @@
margin-right
:
space-x
(
1
);
border
:
1px
solid
$gray-500
;
}
&
__separator
{
fill
:
#B5B5B5
;
}
&
__params
{
margin
:
space-x
(
2
);
&
__heading
{
font-weight
:
bold
;
list-style
:
none
;
}
&
__item
{
list-style
:
initial
;
margin-left
:
space-x
(
2
)
}
}
}
.graph-legend
.renameable-container__text
{
...
...
This diff is collapsed.
Click to expand it.
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