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
901de239
Commit
901de239
authored
Dec 12, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Plain Diff
[FIX] merge graph-layout.
parents
48c44695
fb6cd457
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
44 deletions
+118
-44
Login.css
dist/css/Login.css
+5
-1
Graph.purs
src/Gargantext/Pages/Corpus/Graph.purs
+107
-38
Actions.purs
src/Gargantext/Pages/Layout/Actions.purs
+2
-2
Specs.purs
src/Gargantext/Pages/Layout/Specs.purs
+4
-3
No files found.
dist/css/Login.css
View file @
901de239
...
...
@@ -176,4 +176,8 @@ text-align: center;
.nooverflow
:hover
{
overflow
:
visible
;
height
:
auto
;
}
\ No newline at end of file
}
#graph-tree
.tree
{
margin-top
:
27px
;
}
src/Gargantext/Pages/Corpus/Graph.purs
View file @
901de239
This diff is collapsed.
Click to expand it.
src/Gargantext/Pages/Layout/Actions.purs
View file @
901de239
...
...
@@ -35,7 +35,7 @@ data Action
| ShowLogin
| Logout
| ShowAddcorpus
|
ShowTree
|
ToggleTree
performAction :: PerformAction AppState {} Action
...
...
@@ -44,7 +44,7 @@ performAction (SetRoute route) _ _ = void do
performAction (Search s) _ _ = void do
modifyState $ _ {search = s}
performAction (
Show
Tree) _ (state) = void do -- TODO
performAction (
Toggle
Tree) _ (state) = void do -- TODO
modifyState $ _ {showTree = not (state.showTree)}
performAction (ShowLogin) _ _ = void do
...
...
src/Gargantext/Pages/Layout/Specs.purs
View file @
901de239
...
...
@@ -59,7 +59,7 @@ pagesComponent s = case s.currentRoute of
selectSpec AddCorpus = layout0 $ focus _addCorpusState _addCorpusAction AC.layoutAddcorpus
selectSpec SearchView = layout0 $ focus _searchState _searchAction S.searchSpec
selectSpec (Document i) = layout0 $ focus _documentViewState _documentViewAction Annotation.docview
selectSpec (PGraphExplorer i)= layout1 $ focus _graphExplorerState _graphExplorerAction GE.specOld
selectSpec (PGraphExplorer i)= layout1
$ focus _graphExplorerState _graphExplorerAction GE.specOld
selectSpec Dashboard = layout0 $ noState Dsh.layoutDashboard
selectSpec (Annuaire i) = layout0 $ cmapProps (const {annuaireId: i}) $ noState A.layout
...
...
@@ -123,7 +123,8 @@ layout1 :: Spec AppState {} Action
layout1 layout =
fold
[ layoutSidebar divSearchBar
, outerLayout
, layout
-- , outerLayout
, layoutFooter
]
where
...
...
@@ -141,7 +142,7 @@ layout1 layout =
]
ls = over _render \render d p s c -> [
button [onClick $ \e -> d
Show
Tree, className "btn btn-primary",style {position:"relative", top: "99px",left:"-264px",zIndex : "1000"}] [text "ShowTree"]
button [onClick $ \e -> d
Toggle
Tree, className "btn btn-primary",style {position:"relative", top: "99px",left:"-264px",zIndex : "1000"}] [text "ShowTree"]
, div [if (s.showTree) then className "col-md-2" else className "col-md-2"] if (s.showTree) then (render d p s c) else []
]
...
...
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