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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Grégoire Locqueville
purescript-gargantext
Commits
18918092
Commit
18918092
authored
Sep 07, 2020
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] left/right handed handled correctly
parent
f54eb815
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
16 deletions
+28
-16
Graph.css
dist/styles/Graph.css
+12
-1
Graph.sass
dist/styles/Graph.sass
+8
-1
Tree.css
dist/styles/Tree.css
+0
-8
GraphExplorer.purs
src/Gargantext/Components/GraphExplorer.purs
+8
-6
No files found.
dist/styles/Graph.css
View file @
18918092
...
@@ -34,6 +34,12 @@
...
@@ -34,6 +34,12 @@
background-color
:
#fff
;
background-color
:
#fff
;
z-index
:
1
;
z-index
:
1
;
}
}
#graph-explorer
.lefthanded
.graph-tree
{
left
:
80%
;
}
#graph-explorer
.righthanded
.graph-tree
{
left
:
0%
;
}
#graph-explorer
#graph-view
{
#graph-explorer
#graph-view
{
height
:
95%
;
height
:
95%
;
}
}
...
@@ -43,7 +49,6 @@
...
@@ -43,7 +49,6 @@
top
:
170px
;
top
:
170px
;
border
:
1px
white
solid
;
border
:
1px
white
solid
;
background-color
:
white
;
background-color
:
white
;
left
:
70%
;
width
:
28%
;
width
:
28%
;
}
}
#graph-explorer
#sp-container
#myTab
{
#graph-explorer
#sp-container
#myTab
{
...
@@ -58,6 +63,12 @@
...
@@ -58,6 +63,12 @@
display
:
inline
;
display
:
inline
;
float
:
left
;
float
:
left
;
}
}
#graph-explorer
.lefthanded
#sp-container
{
left
:
0%
;
}
#graph-explorer
.righthanded
#sp-container
{
left
:
70%
;
}
#graph-explorer
#tree
{
#graph-explorer
#tree
{
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
z-index
:
1
;
...
...
dist/styles/Graph.sass
View file @
18918092
...
@@ -38,6 +38,10 @@
...
@@ -38,6 +38,10 @@
@include
sidePanelCommon
@include
sidePanelCommon
background-color
:
#fff
background-color
:
#fff
z-index
:
1
z-index
:
1
.lefthanded
.graph-tree
left
:
80%
.righthanded
.graph-tree
left
:
0%
#graph-view
#graph-view
height
:
95%
height
:
95%
...
@@ -46,7 +50,6 @@
...
@@ -46,7 +50,6 @@
@include
sidePanelCommon
@include
sidePanelCommon
border
:
1px
white
solid
border
:
1px
white
solid
background-color
:
white
background-color
:
white
left
:
70%
width
:
28%
width
:
28%
#myTab
#myTab
...
@@ -61,6 +64,10 @@
...
@@ -61,6 +64,10 @@
ul
ul
display
:
inline
display
:
inline
float
:
left
float
:
left
.lefthanded
#sp-container
left
:
0%
.righthanded
#sp-container
left
:
70%
#tree
#tree
position
:
absolute
position
:
absolute
...
...
dist/styles/Tree.css
View file @
18918092
...
@@ -14,16 +14,8 @@
...
@@ -14,16 +14,8 @@
cursor
:
wait
;
cursor
:
wait
;
}
}
.tree
.node
{
.tree
.node
{
padding-left
:
10px
;
margin-top
:
1px
;
margin-top
:
1px
;
}
}
.tree
.node
.name.clickable
{
color
:
#337ab7
;
cursor
:
pointer
;
}
.tree
.node
.name.clickable
:hover
{
text-decoration
:
underline
;
}
.tree
.lefthanded
ul
{
.tree
.lefthanded
ul
{
margin-right
:
19px
;
margin-right
:
19px
;
}
}
...
...
src/Gargantext/Components/GraphExplorer.purs
View file @
18918092
...
@@ -45,7 +45,6 @@ type LayoutProps =
...
@@ -45,7 +45,6 @@ type LayoutProps =
, session :: Session
, session :: Session
, sessions :: Sessions
, sessions :: Sessions
, showLogin :: R.State Boolean
, showLogin :: R.State Boolean
--, treeReload :: R.State Int
)
)
type Props = (
type Props = (
...
@@ -72,7 +71,7 @@ explorerLayoutView :: R.State Int -> Record LayoutProps -> R.Element
...
@@ -72,7 +71,7 @@ explorerLayoutView :: R.State Int -> Record LayoutProps -> R.Element
explorerLayoutView graphVersion p = R.createElement el p []
explorerLayoutView graphVersion p = R.createElement el p []
where
where
el = R.hooksComponent "G.C.GE.explorerLayoutView" cpt
el = R.hooksComponent "G.C.GE.explorerLayoutView" cpt
cpt props@{
graphId, session
} _ = do
cpt props@{
graphId, session
} _ = do
useLoader graphId (getNodes session graphVersion) handler
useLoader graphId (getNodes session graphVersion) handler
where
where
handler loaded =
handler loaded =
...
@@ -99,7 +98,6 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
...
@@ -99,7 +98,6 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
, session
, session
, sessions
, sessions
, showLogin
, showLogin
--, treeReload
} _ = do
} _ = do
let startForceAtlas = maybe true (\(GET.MetaData { startForceAtlas }) -> startForceAtlas) mMetaData
let startForceAtlas = maybe true (\(GET.MetaData { startForceAtlas }) -> startForceAtlas) mMetaData
...
@@ -146,13 +144,13 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
...
@@ -146,13 +144,13 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
, col [ spaces [ Toggle.sidebarToggleButton controls.showSidePanel ]]
, col [ spaces [ Toggle.sidebarToggleButton controls.showSidePanel ]]
], R2.row
], R2.row
[ outer
[ outer
[ inner
[ inner
handed
[ rowControls [ Controls.controls controls ]
[ rowControls [ Controls.controls controls ]
, R2.row $ mainLayout handed $
, R2.row $ mainLayout handed $
tree { frontends
tree { frontends
, handed
, handed
, mCurrentRoute
, mCurrentRoute
, reload:
props.
treeReload
, reload: treeReload
, sessions
, sessions
, show: fst controls.showTree
, show: fst controls.showTree
, showLogin: snd showLogin }
, showLogin: snd showLogin }
...
@@ -187,7 +185,11 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
...
@@ -187,7 +185,11 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
mainLayout Types.LeftHanded (tree' /\ gc /\ gv /\ sdb) = [sdb, gc, gv, tree']
mainLayout Types.LeftHanded (tree' /\ gc /\ gv /\ sdb) = [sdb, gc, gv, tree']
outer = RH.div { className: "col-md-12" }
outer = RH.div { className: "col-md-12" }
inner = RH.div { className: "container-fluid", style: { paddingTop: "90px" } }
inner h = RH.div { className: "container-fluid " <> hClass, style: { paddingTop: "90px" } }
where
hClass = case h of
Types.LeftHanded -> "lefthanded"
Types.RightHanded -> "righthanded"
rowToggle = RH.div { id: "toggle-container" }
rowToggle = RH.div { id: "toggle-container" }
rowControls = RH.div { id: "controls-container" }
rowControls = RH.div { id: "controls-container" }
col = RH.div { className: "col-md-4" }
col = RH.div { className: "col-md-4" }
...
...
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