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
64de94eb
Commit
64de94eb
authored
Dec 13, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CSS] fix side panel (needs more work).
parent
a097bd1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Types.purs
src/Gargantext/Components/GraphExplorer/Types.purs
+1
-1
Graph.purs
src/Gargantext/Pages/Corpus/Graph.purs
+11
-11
No files found.
src/Gargantext/Components/GraphExplorer/Types.purs
View file @
64de94eb
...
...
@@ -53,7 +53,7 @@ instance decodeJsonGraphData :: DecodeJson GraphData where
-- TODO: sides
metadata <- obj .? "metadata"
corpusIds <- metadata .? "corpusId"
let side x = GraphSideCorpus { corpusId: x, corpusLabel: "Patents" }
let side x = GraphSideCorpus { corpusId: x, corpusLabel: "P
ubs / P
atents" }
let sides = side <$> corpusIds
pure $ GraphData { nodes, edges, sides }
...
...
src/Gargantext/Pages/Corpus/Graph.purs
View file @
64de94eb
...
...
@@ -323,7 +323,7 @@ specOld = fold [treespec treeSpec, graphspec $ simpleSpec performAction render']
where
treespec = over _render \frender d p (State s) c ->
[ div [ className "col-md-
2
", _id "graph-tree", style {marginTop:"104px"}] $
[ div [ className "col-md-
1
", _id "graph-tree", style {marginTop:"104px"}] $
[
button [className "btn btn-primary" , onClick \_ -> d ToggleTree]
[text $ if s.showTree then "Hide Tree" else "Show Tree"]
...
...
@@ -335,7 +335,7 @@ specOld = fold [treespec treeSpec, graphspec $ simpleSpec performAction render']
graphspec = over _render \frender d p s c -> [
div [ className "col-md-
10
"] (frender d p s c)
div [ className "col-md-
9
"] (frender d p s c)
]
treeSpec :: Spec State {} Action
treeSpec = withState \(State st) ->
...
...
@@ -471,16 +471,16 @@ specOld = fold [treespec treeSpec, graphspec $ simpleSpec performAction render']
]
--, button [onClick \_ -> d ShowSidePanel, className "btn btn-primary", style {right:"39px",position : "relative",zIndex:"1000", top: "-59px"}] [text "Show SidePanel"]
, if (st.showSidePanel) then
div [_id "sp-container", className "col-md-2", style {border : "1px
black solid", backgroundColor : "beig
e"}]
div [_id "sp-container", className "col-md-2", style {border : "1px
white solid", backgroundColor : "whit
e"}]
[ div [className "row"]
[ div [_id "sidepanel" , style {borderBottom : "1px solid
black
"}]
[ div [_id "sidepanel" , style {borderBottom : "1px solid
white
"}]
[ case st.selectedNode of
Nothing -> span [] [ text "
dumm
y text"]
Just selectedNode -> p [] [ text $ "
selected Node
: " <> getter _.label selectedNode
Nothing -> span [] [ text "
Empt
y text"]
Just selectedNode -> p [] [ text $ "
Nodes
: " <> getter _.label selectedNode
, text $ (joinWith ", " ( getTitle st.nodeResults))
, text $ (joinWith ", " (getAuthors st.nodeResults))
, br'
, p [] [button [className "btn btn-primary", style {marginBottom : "18px"}] [text "Remove"]]
--
, br'
--
, p [] [button [className "btn btn-primary", style {marginBottom : "18px"}] [text "Remove"]]
]
]
-- , div [className "col-md-12"]
...
...
@@ -517,7 +517,7 @@ specOld = fold [treespec treeSpec, graphspec $ simpleSpec performAction render']
-- ]
-- ]
-- ]
, div [className "col-md-12", _id "horizontal-checkbox"]
{-
, div [className "col-md-12", _id "horizontal-checkbox"]
[ ul [ style {display: "inline",float : "left" }]
[ li []
[ span [] [text "Pubs"]
...
...
@@ -558,7 +558,8 @@ specOld = fold [treespec treeSpec, graphspec $ simpleSpec performAction render']
]
]
]
] --}
, div []
[ p [] []
, div [className "col-md-12"]
...
...
@@ -612,7 +613,6 @@ getUrl = back.baseUrl <> back.prePath
back = Config.endConfig.back
getAuthData :: Effect (Maybe AuthData)
getAuthData = do
w <- window
...
...
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