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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
06b00c45
Commit
06b00c45
authored
Nov 20, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Forest]FIX] buttons && [Data.Array] splitEvery
parent
b64eb3ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+5
-7
Array.purs
src/Gargantext/Data/Array.purs
+21
-0
No files found.
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
06b00c45
...
...
@@ -175,7 +175,8 @@ type NodePopupProps =
iconAStyle = { color : "black"
, paddingTop : "6px"
, paddingBottom : "6px"}
, paddingBottom : "6px"
}
nodePopupView :: (Action -> Aff Unit)
-> Record NodePopupProps
...
...
@@ -258,11 +259,8 @@ nodePopupView d p mPop@(Just NodePopup /\ setPopupOpen) = R.createElement el p [
editIcon (true /\ _) = H.div {} []
panelBody nodePopupState d =
H.div {className: "panel-body"}
$
-- [H.div {className: "col-md-1"} []]
-- <>
[H.div {className: "flex-center"} (map (buttonClick nodePopupState d) buttons)]
H.div {className: "panel-body flex-center"}
$ map (buttonClick nodePopupState d) buttons
searchIsTexIframe id session search@(search' /\ _) =
if isIsTex search'.datafield then
...
...
@@ -294,7 +292,7 @@ nodePopupView _ p _ = R.createElement el p []
-- buttonAction :: NodeAction -> R.Element
buttonClick (node@{action} /\ setNodePopup) _ todo = H.div {className: "col-md-
2
"}
buttonClick (node@{action} /\ setNodePopup) _ todo = H.div {className: "col-md-
1
"}
[ H.a { style: iconAStyle
, className: glyphiconActive (glyphiconNodeAction todo)
(action == (Just todo) )
...
...
src/Gargantext/Data/Array.purs
0 → 100644
View file @
06b00c45
module Gargantext.Data.Array
where
import Data.Tuple (Tuple(..))
import Data.Array as DA
import Data.Maybe as DM
import Data.Sequence as DS
splitEvery :: forall a. Int -> Array a -> Array (Array a)
splitEvery _ [] = []
splitEvery n xs =
let (Tuple h t) = splitAt n xs
in DA.cons h (splitEvery n t)
splitAt :: forall a. Int -> Array a -> Tuple (Array a) (Array a)
splitAt n ls = Tuple (DS.toUnfoldable x) (DS.toUnfoldable xs)
where
Tuple x xs = DS.splitAt n (DS.fromFoldable ls)
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