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
340b2444
Commit
340b2444
authored
Jan 15, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bootstrap v4] merge popup styling
parent
e6cf756a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
92 additions
and
48 deletions
+92
-48
sass.css
dist/styles/sass.css
+14
-4
sass.css.map
dist/styles/sass.css.map
+1
-1
Delete.purs
...Gargantext/Components/Forest/Tree/Node/Action/Delete.purs
+2
-8
Merge.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Merge.purs
+22
-14
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+13
-10
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+31
-10
_login.sass
src/sass/_login.sass
+1
-1
_tree.sass
src/sass/_tree.sass
+8
-0
No files found.
dist/styles/sass.css
View file @
340b2444
...
@@ -245,22 +245,22 @@ li#rename #rename-a {
...
@@ -245,22 +245,22 @@ li#rename #rename-a {
display
:
flex
;
display
:
flex
;
flex-direction
:
colum
;
flex-direction
:
colum
;
}
}
#node-popup-tooltip
.popup-container
.card
{
#node-popup-tooltip
.popup-container
>
.card
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.2
);
margin-bottom
:
0px
;
margin-bottom
:
0px
;
width
:
34rem
;
width
:
34rem
;
}
}
#node-popup-tooltip
.popup-container
.card
.fa-pencil
{
#node-popup-tooltip
.popup-container
>
.card
.fa-pencil
{
color
:
black
;
color
:
black
;
}
}
#node-popup-tooltip
.popup-container
.card
.card-body
{
#node-popup-tooltip
.popup-container
>
.card
.card-body
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
background-color
:
white
;
background-color
:
white
;
border
:
none
;
border
:
none
;
}
}
#node-popup-tooltip
.popup-container
.card
.card-body
.spacer
{
#node-popup-tooltip
.popup-container
>
.card
.card-body
.spacer
{
margin
:
10px
;
margin
:
10px
;
}
}
#node-popup-tooltip
.popup-container
.frame-search.card
{
#node-popup-tooltip
.popup-container
.frame-search.card
{
...
@@ -529,6 +529,16 @@ li .leaf:hover a.settings {
...
@@ -529,6 +529,16 @@ li .leaf:hover a.settings {
padding-left
:
15px
;
padding-left
:
15px
;
}
}
.panel-actions
.almost-useable
{
color
:
orange
;
}
.panel-actions
.development-in-progress
{
color
:
red
;
}
.panel-actions
.ok-to-use
{
color
:
black
;
}
.code-editor-heading
{
.code-editor-heading
{
display
:
flex
;
display
:
flex
;
}
}
...
...
dist/styles/sass.css.map
View file @
340b2444
{"version":3,"sourceRoot":"","sources":["../../src/sass/_menu.sass","../../src/sass/_context_menu.sass","../../src/sass/_graph.sass","../../src/sass/_login.sass","../../src/sass/_tree.sass","../../src/sass/_code_editor.sass","../../src/sass/_styles.sass","../../src/sass/_range_slider.sass"],"names":[],"mappings":"AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;EACI;EACA;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACE;;;AAEF;AACI;EACA;;;AAEJ;AACI;EACA;;;AAGJ;AACA;EACI;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACE;EACA;;;AAEF;EACE;;;AC7CF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;;;AClBF;EACE;;;AAEF;AAkCE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAxCA;EAVA;EACA;EAEA;EASE;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEF;EACE;EACA;;AAGA;EACE;EACA;;AACN;EACE;;AACF;EACE;;AAEF;EAlCA;EACA;EAEA;EAiCE;EACA;;AACF;EACE;;AACF;EACE;;AAWF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAER;EACE;;AAEA;EACE;;AAEJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AC1FJ;EACE;;;AAOF;EACE;;AACA;EACE;EACA;;;AAEJ;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;;AAEE;EACE;EACA;;AACA;EACE;;;AAIJ;EACE;EACA;EACA;EACA;;;AAKJ;EACE;EACA;EACA;;;AAGJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACN;EACE;EACA;EACA;EACA;;;AAGN;EACE;EACA;EACA;EACA;EACA;;AAGE;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;;AAGE;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;;AAEJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;;AAGF;EACE;;;AAEJ;EACI;EACA;;;AAGF;EACE;;;AAEJ;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;ACvKF;EACE;;;AAGA;EACE;EACA;;AAEA;EACE;EACA;;AAEF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAER;EACE;;AAEE;EACE;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EAEA;EACA;EACA;;AAEA;EACE;;AACF;EACE;;AAGN;EACE;;AACF;EACE;;AACA;EACE;EACA;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AAIR;EACE;;AACF;EACE;;AACA;EACE;EACA;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAEV;EACE;;AACF;EACE;;AAEE;EACE;;AACF;EACE;;AACN;EACE;;AAEE;EACE;EACA;;;AAGR;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;;AAEF;EACE;;;AAIF;EACE;;AAEA;EACE;;;ACrIR;EACE;;AAEA;EACE;;AACA;EACE;;AACJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EArDR;EACA;EACA;EACA;EACA;EACA;EACA;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA2DM;EACE;EACA;EACA;EACA;EACA;EA7DR;EACA;EACA;EACA;EACA;EACA;EACA;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAmEE;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;;AAEF;EACE;;;ACtGV;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AAGE;EACE;EACA;;AAEF;EACE;EACA;;;AAEV;EACE;;AACA;EACE;EACA;EACA;;;AAKE;EACE;EACA;;AACF;EACE;;AACA;EACE;;AACJ;EACE;;;AAER;EACE;;;AAEF;EACE;;;AAEF;EACE;;;ACjDF;EACE;AACA;EACA;;AAEA;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EAEA;EAEA;;AAEA;EACE;EAEA;EACA;EACA","file":"sass.css"}
{"version":3,"sourceRoot":"","sources":["../../src/sass/_menu.sass","../../src/sass/_context_menu.sass","../../src/sass/_graph.sass","../../src/sass/_login.sass","../../src/sass/_tree.sass","../../src/sass/_code_editor.sass","../../src/sass/_styles.sass","../../src/sass/_range_slider.sass"],"names":[],"mappings":"AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;EACI;EACA;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACE;;;AAEF;AACI;EACA;;;AAEJ;AACI;EACA;;;AAGJ;AACA;EACI;;;AAEJ;EACI;EACA;EACA;EACA;;;AAEJ;EACE;EACA;;;AAEF;EACE;;;AC7CF;EACE;EACA;EACA;EACA;EACA;;;AAEF;EACE;;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;;;AClBF;EACE;;;AAEF;AAkCE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAxCA;EAVA;EACA;EAEA;EASE;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEF;EACE;EACA;;AAGA;EACE;EACA;;AACN;EACE;;AACF;EACE;;AAEF;EAlCA;EACA;EAEA;EAiCE;EACA;;AACF;EACE;;AACF;EACE;;AAWF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAEA;EACE;EACA;EACA;;AACA;EACE;;AAER;EACE;;AAEA;EACE;;AAEJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AC1FJ;EACE;;;AAOF;EACE;;AACA;EACE;EACA;;;AAEJ;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAEF;EACE;;;AAGF;EACE;;AAEE;EACE;EACA;;AACA;EACE;;;AAIJ;EACE;EACA;EACA;EACA;;;AAKJ;EACE;EACA;EACA;;;AAGJ;EACE;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AACA;EACE;;AACF;EACE;EACA;EACA;EACA;;AACA;EACE;;AACN;EACE;EACA;EACA;EACA;;;AAGN;EACE;EACA;EACA;EACA;EACA;;AAGE;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;;AAGE;EACE;;;AAEN;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;;AAEJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;;;AAGF;EACE;;;AAEJ;EACI;EACA;;;AAGF;EACE;;;AAEJ;EACE;;;AAEF;EACE;EACA;;;AAEF;EACE;EACA;EACA;;;AAEF;EACE;EACA;;;AAEF;EACE;;;ACvKF;EACE;;;AAGA;EACE;EACA;;AAEA;EACE;EACA;;AAEF;EACE;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAER;EACE;;AAEE;EACE;;AACA;EACE;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;EACA;EACA;;AACF;EACE;;AACF;EACE;EACA;EACA;EAEA;EACA;EACA;;AAEA;EACE;;AACF;EACE;;AAGN;EACE;;AACF;EACE;;AACA;EACE;EACA;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AAIR;EACE;;AACF;EACE;;AACA;EACE;EACA;;AAEE;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAEV;EACE;;AACF;EACE;;AAEE;EACE;;AACF;EACE;;AACN;EACE;;AAEE;EACE;EACA;;;AAGR;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAEE;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;;AAEF;EACE;;;AAIF;EACE;;AAEA;EACE;;;AAGN;EACE;;AACF;EACE;;AACF;EACE;;;AC7IJ;EACE;;AAEA;EACE;;AACA;EACE;;AACJ;EACE;EACA;;;AAGF;EACE;EACA;EACA;;AACF;EACE;EACA;;AACA;EACE;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EArDR;EACA;EACA;EACA;EACA;EACA;EACA;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AA2DM;EACE;EACA;EACA;EACA;EACA;EA7DR;EACA;EACA;EACA;EACA;EACA;EACA;EAlBA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAmEE;EACE;EACA;EACA;EACA;EACA;EACA;;AACF;EACE;EACA;EACA;;AACA;EACE;EACA;;AACF;EACE;EACA;;AACF;EACE;EACA;;AAGE;EACE;;AAEF;EACE;;;ACtGV;EACE;;AACF;EACE;EACA;EACA;EACA;EACA;EACA;;AACA;EACE;;AAGE;EACE;EACA;;AAEF;EACE;EACA;;;AAEV;EACE;;AACA;EACE;EACA;EACA;;;AAKE;EACE;EACA;;AACF;EACE;;AACA;EACE;;AACJ;EACE;;;AAER;EACE;;;AAEF;EACE;;;AAEF;EACE;;;ACjDF;EACE;AACA;EACA;;AAEA;EACE;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EAEA;EAEA;;AAEA;EACE;EAEA;EACA;EACA","file":"sass.css"}
\ No newline at end of file
\ No newline at end of file
src/Gargantext/Components/Forest/Tree/Node/Action/Delete.purs
View file @
340b2444
...
@@ -42,15 +42,9 @@ actionDelete NodeUser _ = do
...
@@ -42,15 +42,9 @@ actionDelete NodeUser _ = do
(H.div {} [])
(H.div {} [])
actionDelete nt dispatch = do
actionDelete nt dispatch = do
pure $ panel [ H.div {style: {margin: "10px"}}
pure $ panel (map (\t -> H.p {} [H.text t])
(map (\t -> H.p {} [H.text t])
[ "Are your sure you want to delete it ?"
[ "Are your sure you want to delete it ?"
, "If yes, click again below."
, "If yes, click again below."
]
]
)
)
]
(submitButton (DeleteNode nt) dispatch)
(submitButton (DeleteNode nt) dispatch)
src/Gargantext/Components/Forest/Tree/Node/Action/Merge.purs
View file @
340b2444
...
@@ -8,7 +8,7 @@ import Reactix as R
...
@@ -8,7 +8,7 @@ import Reactix as R
import Reactix.DOM.HTML as H
import Reactix.DOM.HTML as H
import Gargantext.Components.Forest.Tree.Node.Action (Action(..))
import Gargantext.Components.Forest.Tree.Node.Action (Action(..))
import Gargantext.Components.Forest.Tree.Node.Tools (submitButton, panel, checkbox, checkboxes)
import Gargantext.Components.Forest.Tree.Node.Tools (submitButton, panel, checkbox, checkboxes
ListGroup
)
import Gargantext.Components.Forest.Tree.Node.Tools.SubTree (subTreeView, SubTreeParamsIn)
import Gargantext.Components.Forest.Tree.Node.Tools.SubTree (subTreeView, SubTreeParamsIn)
import Gargantext.Prelude
import Gargantext.Prelude
import Gargantext.Routes (SessionRoute(..))
import Gargantext.Routes (SessionRoute(..))
...
@@ -24,10 +24,10 @@ mergeNodeReq session fromId toId =
...
@@ -24,10 +24,10 @@ mergeNodeReq session fromId toId =
mergeNode :: Record SubTreeParamsIn -> R.Element
mergeNode :: Record SubTreeParamsIn -> R.Element
mergeNode p = R.createElement mergeNodeCpt p []
mergeNode p = R.createElement mergeNodeCpt p []
mergeNodeCpt :: R.Component SubTreeParamsIn
mergeNodeCpt = R.hooksComponentWithModule thisModule "mergeNode" cpt
where
where
mergeNodeCpt :: R.Component SubTreeParamsIn
mergeNodeCpt = R.hooksComponentWithModule thisModule "mergeNode" cpt
cpt p@{dispatch, subTreeParams, id, nodeType, session, handed} _ = do
cpt p@{dispatch, subTreeParams, id, nodeType, session, handed} _ = do
action@(valAction /\ setAction) :: R.State Action <- R.useState' (MergeNode {params:Nothing})
action@(valAction /\ setAction) :: R.State Action <- R.useState' (MergeNode {params:Nothing})
...
@@ -48,13 +48,21 @@ mergeNodeCpt = R.hooksComponentWithModule thisModule "mergeNode" cpt
...
@@ -48,13 +48,21 @@ mergeNodeCpt = R.hooksComponentWithModule thisModule "mergeNode" cpt
, subTreeParams
, subTreeParams
, handed
, handed
}
}
, H.div { className:"card card-primary"}
, H.ul { className:"merge mx-auto list-group"}
[ H.text "Merge which list?"
([ H.li { className: "list-group-item" }
, checkboxes [GT.MapTerm, GT.CandidateTerm, GT.StopTerm] options
[ H.h5 { className: "mb-1" } [ H.text "Merge which list?" ]
]
]
, H.div { className:"card card-primary"}
] <> (checkboxesListGroup [ GT.MapTerm, GT.CandidateTerm, GT.StopTerm ] options))
[ H.text "Title"
, H.ul { className:"merge mx-auto list-group"}
, H.div {className: "checkbox"}
[ H.li { className: "list-group-item" }
[checkbox merge, H.text "Merge data?"]
[ H.h5 { className: "mb-1" } [ H.text "Title" ]
]
]
] button
, H.li { className: "list-group-item" }
[ H.div { className: " form-check" }
[ checkbox merge
, H.label { className: "form-check-label" } [ H.text "Merge data?" ]
]
]
]
]
button
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
340b2444
...
@@ -70,7 +70,7 @@ nodePopupView p = R.createElement nodePopupCpt p []
...
@@ -70,7 +70,7 @@ nodePopupView p = R.createElement nodePopupCpt p []
[ H.div { className: "card" }
[ H.div { className: "card" }
[ panelHeading renameIsOpen p
[ panelHeading renameIsOpen p
, panelBody nodePopupState p
, panelBody nodePopupState p
,
H.div { className: "card-footer" } [ mPanelAction nodePopupState p ]
,
mPanelAction nodePopupState p
]
]
]
]
]
]
...
@@ -158,12 +158,15 @@ nodePopupView p = R.createElement nodePopupCpt p []
...
@@ -158,12 +158,15 @@ nodePopupView p = R.createElement nodePopupCpt p []
-> Record NodePopupProps
-> Record NodePopupProps
-> R.Element
-> R.Element
mPanelAction ({action: Nothing } /\ _) _ =
mPanelAction ({action: Nothing } /\ _) _ =
H.div {className:"center fa-hand-pointer-o"}
H.div { className: "card-footer" }
[ H.h5 {} [H.text " Select available actions of this node"]
[ H.div {className:"center fa-hand-pointer-o"}
, H.ul {} [ H.div {style:{color:"black"} , className: "fa-thumbs-o-up" } [H.text " Black: yes you can use it" ]
[ H.h5 {} [ H.text " Select available actions of this node" ]
, H.div {style:{color:"orange"}, className: "fa-exclamation-triangle"} [H.text " Orange: almost useable" ]
, H.ul { className: "panel-actions" }
, H.div {style:{color:"red"} , className: "fa-rocket" } [H.text " Red: development in progress" ]
[ H.div { className: "fa-thumbs-o-up ok-to-use" } [ H.text " Black: yes you can use it" ]
]
, H.div { className: "fa-exclamation-triangle almost-useable" } [ H.text " Orange: almost useable" ]
, H.div { className: "fa-rocket development-in-progress" } [ H.text " Red: development in progress" ]
]
]
]
]
mPanelAction ({action: Just action} /\ _) props =
mPanelAction ({action: Just action} /\ _) props =
panelAction { action
panelAction { action
...
@@ -251,10 +254,10 @@ type PanelActionProps =
...
@@ -251,10 +254,10 @@ type PanelActionProps =
panelAction :: Record PanelActionProps -> R.Element
panelAction :: Record PanelActionProps -> R.Element
panelAction p = R.createElement panelActionCpt p []
panelAction p = R.createElement panelActionCpt p []
panelActionCpt :: R.Component PanelActionProps
panelActionCpt = R.hooksComponentWithModule thisModule "panelAction" cpt
where
where
panelActionCpt :: R.Component PanelActionProps
panelActionCpt = R.hooksComponentWithModule thisModule "panelAction" cpt
cpt {action: Documentation nodeType} _ = actionDoc nodeType
cpt {action: Documentation nodeType} _ = actionDoc nodeType
cpt {action: Download, id, nodeType, session} _ = actionDownload nodeType id session
cpt {action: Download, id, nodeType, session} _ = actionDownload nodeType id session
cpt {action: Upload, dispatch, id, nodeType, session} _ = actionUpload nodeType id session dispatch
cpt {action: Upload, dispatch, id, nodeType, session} _ = actionUpload nodeType id session dispatch
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
340b2444
...
@@ -35,21 +35,22 @@ type Footer = R.Element
...
@@ -35,21 +35,22 @@ type Footer = R.Element
panel :: Body -> Footer -> R.Element
panel :: Body -> Footer -> R.Element
panel bodies submit =
panel bodies submit =
H.div {}
[ panelBody bodies, footer submit ]
R.fragment
[ panelBody bodies, footer submit ]
where
where
panelBody bs =
panelBody bs =
H.div {
className: "card-body"
}
H.div {
className: "card-body"
}
[ H.div { className: "row
spacer
" }
[ H.div { className: "row" }
[ H.div { className: "col-
md-
12" } bs
[ H.div { className: "col-12" } bs
-- TODO add type for text or form here
-- TODO add type for text or form here
-- [ H.form {className: "form-horizontal"} bs ]
-- [ H.form {className: "form-horizontal"} bs ]
]
]
]
]
footer sb =
footer sb =
H.div {className: "card-footer"}
H.div {className: "card-footer"}
[ H.div {} []
[ H.div { className: "row" }
, H.div { className: "center"} [ sb ]
[ H.div { className: "mx-auto"} [ sb ]
]
]
]
------------------------------------------------------------------------
------------------------------------------------------------------------
...
@@ -82,7 +83,7 @@ textInputBox p@{ boxName, boxAction, dispatch, isOpen: (true /\ setIsOpen) } = R
...
@@ -82,7 +83,7 @@ textInputBox p@{ boxName, boxAction, dispatch, isOpen: (true /\ setIsOpen) } = R
[ inputWithEnter {
[ inputWithEnter {
onEnter: submit renameNodeNameRef
onEnter: submit renameNodeNameRef
, onValueChanged: R.setRef renameNodeNameRef
, onValueChanged: R.setRef renameNodeNameRef
, autoFocus:
fals
e
, autoFocus:
tru
e
, autoSave: false
, autoSave: false
, className: "form-control"
, className: "form-control"
, defaultValue: text
, defaultValue: text
...
@@ -209,7 +210,6 @@ submitButton :: Action -> (Action -> Aff Unit) -> R.Element
...
@@ -209,7 +210,6 @@ submitButton :: Action -> (Action -> Aff Unit) -> R.Element
submitButton action dispatch =
submitButton action dispatch =
H.button { className : "btn btn-primary fa fa-" <> icon action
H.button { className : "btn btn-primary fa fa-" <> icon action
, type: "button"
, type: "button"
, style : { width: "50%" }
, id: S.toLower $ show action
, id: S.toLower $ show action
, title: show action
, title: show action
, on: {click: \_ -> launchAff $ dispatch action}
, on: {click: \_ -> launchAff $ dispatch action}
...
@@ -221,7 +221,6 @@ type Href = String
...
@@ -221,7 +221,6 @@ type Href = String
submitButtonHref :: Action -> Href -> R.Element
submitButtonHref :: Action -> Href -> R.Element
submitButtonHref action href =
submitButtonHref action href =
H.a { className : "btn btn-primary fa fa-" <> icon action
H.a { className : "btn btn-primary fa fa-" <> icon action
, style : { width: "50%" }
, href
, href
, target: "_blank"
, target: "_blank"
}
}
...
@@ -260,6 +259,28 @@ checkboxes xs (val /\ set) =
...
@@ -260,6 +259,28 @@ checkboxes xs (val /\ set) =
]
]
) xs
) xs
checkboxesListGroup :: forall a
. Ord a
=> Show a
=> Array a
-> R.State (Set a)
-> Array R.Element
checkboxesListGroup xs (val /\ set) =
map (\a -> H.li { className: "list-group-item" }
[ H.div { className: "form-check" }
[ H.input { type: "checkbox"
, className: "form-check-input"
, defaultChecked: Set.member a val
, on: { click: \_ -> set
$ const
$ toggleSet a val
}
}
, H.label { className: "form-check-label" } [ H.text $ show a ]
]
]
) xs
prettyNodeType :: GT.NodeType -> String
prettyNodeType :: GT.NodeType -> String
prettyNodeType nt = S.replace (S.Pattern "Node") (S.Replacement " ")
prettyNodeType nt = S.replace (S.Pattern "Node") (S.Replacement " ")
...
...
src/sass/_login.sass
View file @
340b2444
...
@@ -63,7 +63,7 @@ li#rename
...
@@ -63,7 +63,7 @@ li#rename
.popup-container
.popup-container
display
:
flex
display
:
flex
flex-direction
:
colum
flex-direction
:
colum
.card
&
>
.card
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.2
)
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.2
)
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0
.2
)
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0
.2
)
margin-bottom
:
0px
margin-bottom
:
0px
...
...
src/sass/_tree.sass
View file @
340b2444
...
@@ -153,3 +153,11 @@ li
...
@@ -153,3 +153,11 @@ li
.children
.children
.node
.node
padding-left
:
15px
padding-left
:
15px
.panel-actions
.almost-useable
color
:
orange
.development-in-progress
color
:
red
.ok-to-use
color
:
black
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