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
28929fe4
Commit
28929fe4
authored
Aug 26, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEAN] FIXME: subtree needs a shape
parent
cfae041b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
33 deletions
+27
-33
Tree.sass
dist/styles/Tree.sass
+0
-7
Merge.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Merge.purs
+11
-12
SubTree.purs
...Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs
+16
-14
No files found.
dist/styles/Tree.sass
View file @
28929fe4
...
@@ -10,14 +10,7 @@
...
@@ -10,14 +10,7 @@
&
.disabled
&
.disabled
cursor
:
wait
cursor
:
wait
.node
.node
padding-left
:
10px
margin-top
:
1px
margin-top
:
1px
.name
&
.clickable
color
:
#337ab7
cursor
:
pointer
&
:hover
text-decoration
:
underline
.lefthanded
.lefthanded
ul
ul
margin-right
:
19px
margin-right
:
19px
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Merge.purs
View file @
28929fe4
...
@@ -37,8 +37,7 @@ mergeNodeCpt = R.hooksComponent "G.C.F.T.N.A.M.mergeNode" cpt
...
@@ -37,8 +37,7 @@ mergeNodeCpt = R.hooksComponent "G.C.F.T.N.A.M.mergeNode" cpt
Nothing -> H.div {} []
Nothing -> H.div {} []
_ -> H.div {} []
_ -> H.div {} []
pure $ panel [
pure $ panel [ subTreeView { action
subTreeView { action
, dispatch
, dispatch
, id
, id
, nodeType
, nodeType
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools/SubTree.purs
View file @
28929fe4
...
@@ -83,13 +83,14 @@ subTreeViewLoaded props = R.createElement subTreeViewLoadedCpt props []
...
@@ -83,13 +83,14 @@ subTreeViewLoaded props = R.createElement subTreeViewLoadedCpt props []
subTreeViewLoadedCpt :: R.Component CorpusTreeProps
subTreeViewLoadedCpt :: R.Component CorpusTreeProps
subTreeViewLoadedCpt = R.hooksComponent "G.C.F.T.N.A.U.subTreeViewLoadedCpt" cpt
subTreeViewLoadedCpt = R.hooksComponent "G.C.F.T.N.A.U.subTreeViewLoadedCpt" cpt
where
where
cpt p@{dispatch, id, nodeType, session, tree} _ = do
cpt p@{dispatch, id, nodeType, session, tree, handed} _ = do
pure $ H.div {className:"panel panel-primary"}
pure $ H.div {className:"tree"}
[H.div { className: "tree" }
[H.div { className: if handed == GT.RightHanded
[ H.div { className: "" }
then "righthanded"
else "lefthanded"
}
[ subTreeTreeView p ]
[ subTreeTreeView p ]
]
]
]
subTreeTreeView :: Record CorpusTreeProps -> R.Element
subTreeTreeView :: Record CorpusTreeProps -> R.Element
subTreeTreeView props = R.createElement subTreeTreeViewCpt props []
subTreeTreeView props = R.createElement subTreeTreeViewCpt props []
...
@@ -113,13 +114,14 @@ subTreeTreeViewCpt = R.hooksComponent "G.C.F.T.N.A.U.subTreeTreeViewCpt" cpt
...
@@ -113,13 +114,14 @@ subTreeTreeViewCpt = R.hooksComponent "G.C.F.T.N.A.U.subTreeTreeViewCpt" cpt
GT.LeftHanded -> A.reverse
GT.LeftHanded -> A.reverse
GT.RightHanded -> identity
GT.RightHanded -> identity
pure $ H.div { className: if handed == GT.RightHanded
pure $ H.div {} $ (ordering [ H.div { className: "node " <> GT.fldr nodeType true} []
then "righthanded"
else "lefthanded"
} $ (ordering [ H.div { className: "node " <> GT.fldr nodeType true} []
, H.span { style : if validNodeType
, H.span { style : if validNodeType
then { color : "blue", "text-decoration": "underline"}
then { color : "blue"
else { color : "" , "text-decoration": "none"}
, "text-decoration": "underline"
}
else { color : ""
, "text-decoration": "none"
}
, on: { click: onClick }
, on: { click: onClick }
}
}
[ nodeText { isSelected: isSelected targetId valAction
[ nodeText { isSelected: isSelected targetId valAction
...
...
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