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
138
Issues
138
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
bfba4654
Commit
bfba4654
authored
Oct 21, 2024
by
Fabien Maniere
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beginning some changes on the node settings box
parent
ab5ad60d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
93 additions
and
62 deletions
+93
-62
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+4
-2
bootstrap-default.css
dist/styles/bootstrap-default.css
+4
-2
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+4
-2
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+4
-2
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+4
-2
Documentation.purs
...ext/Components/Forest/Tree/Node/Action/Documentation.purs
+21
-10
Upload.purs
...Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
+1
-0
Box.purs
src/Gargantext/Components/Forest/Tree/Node/Box.purs
+47
-40
_styles.sass
src/sass/_legacy/_styles.sass
+4
-2
No files found.
dist/styles/bootstrap-darkster.css
View file @
bfba4654
...
...
@@ -11072,6 +11072,8 @@ select.form-control {
padding
:
0.7rem
1.5rem
0.6rem
;
display
:
list-item
;
border
:
1px
solid
transparent
;
border-top-left-radius
:
0.25rem
;
border-top-right-radius
:
0.25rem
;
margin-bottom
:
-1px
;
}
.node-popup-tooltip
.popup-container__cta__button
:hover
,
.node-popup-tooltip
.popup-container__cta__button--active
{
...
...
@@ -11082,8 +11084,8 @@ select.form-control {
}
.node-popup-tooltip
.popup-container__cta__icon
{
position
:
absolute
;
top
:
6
px
;
right
:
6
px
;
top
:
8
px
;
right
:
10
px
;
font-size
:
11px
;
}
.node-popup-tooltip
.popup-container__cta--almost-useable
.popup-container__cta__icon
{
...
...
dist/styles/bootstrap-default.css
View file @
bfba4654
...
...
@@ -10878,6 +10878,8 @@ select.form-control {
padding
:
0.7rem
1.5rem
0.6rem
;
display
:
list-item
;
border
:
1px
solid
transparent
;
border-top-left-radius
:
0.25rem
;
border-top-right-radius
:
0.25rem
;
margin-bottom
:
-1px
;
}
.node-popup-tooltip
.popup-container__cta__button
:hover
,
.node-popup-tooltip
.popup-container__cta__button--active
{
...
...
@@ -10888,8 +10890,8 @@ select.form-control {
}
.node-popup-tooltip
.popup-container__cta__icon
{
position
:
absolute
;
top
:
6
px
;
right
:
6
px
;
top
:
8
px
;
right
:
10
px
;
font-size
:
11px
;
}
.node-popup-tooltip
.popup-container__cta--almost-useable
.popup-container__cta__icon
{
...
...
dist/styles/bootstrap-greyson.css
View file @
bfba4654
...
...
@@ -10723,6 +10723,8 @@ select.form-control {
padding
:
0.7rem
1.5rem
0.6rem
;
display
:
list-item
;
border
:
1px
solid
transparent
;
border-top-left-radius
:
0.25rem
;
border-top-right-radius
:
0.25rem
;
margin-bottom
:
-1px
;
}
.node-popup-tooltip
.popup-container__cta__button
:hover
,
.node-popup-tooltip
.popup-container__cta__button--active
{
...
...
@@ -10733,8 +10735,8 @@ select.form-control {
}
.node-popup-tooltip
.popup-container__cta__icon
{
position
:
absolute
;
top
:
6
px
;
right
:
6
px
;
top
:
8
px
;
right
:
10
px
;
font-size
:
11px
;
}
.node-popup-tooltip
.popup-container__cta--almost-useable
.popup-container__cta__icon
{
...
...
dist/styles/bootstrap-herbie.css
View file @
bfba4654
...
...
@@ -10948,6 +10948,8 @@ select.form-control {
padding
:
0.7rem
1.5rem
0.6rem
;
display
:
list-item
;
border
:
1px
solid
transparent
;
border-top-left-radius
:
0.25rem
;
border-top-right-radius
:
0.25rem
;
margin-bottom
:
-1px
;
}
.node-popup-tooltip
.popup-container__cta__button
:hover
,
.node-popup-tooltip
.popup-container__cta__button--active
{
...
...
@@ -10958,8 +10960,8 @@ select.form-control {
}
.node-popup-tooltip
.popup-container__cta__icon
{
position
:
absolute
;
top
:
6
px
;
right
:
6
px
;
top
:
8
px
;
right
:
10
px
;
font-size
:
11px
;
}
.node-popup-tooltip
.popup-container__cta--almost-useable
.popup-container__cta__icon
{
...
...
dist/styles/bootstrap-monotony.css
View file @
bfba4654
...
...
@@ -11021,6 +11021,8 @@ select.form-control {
padding
:
0.7rem
1.5rem
0.6rem
;
display
:
list-item
;
border
:
1px
solid
transparent
;
border-top-left-radius
:
0.25rem
;
border-top-right-radius
:
0.25rem
;
margin-bottom
:
-1px
;
}
.node-popup-tooltip
.popup-container__cta__button
:hover
,
.node-popup-tooltip
.popup-container__cta__button--active
{
...
...
@@ -11031,8 +11033,8 @@ select.form-control {
}
.node-popup-tooltip
.popup-container__cta__icon
{
position
:
absolute
;
top
:
6
px
;
right
:
6
px
;
top
:
8
px
;
right
:
10
px
;
font-size
:
11px
;
}
.node-popup-tooltip
.popup-container__cta--almost-useable
.popup-container__cta__icon
{
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Documentation.purs
View file @
bfba4654
...
...
@@ -25,16 +25,27 @@ actionDocCpt = here.component "actionDoc" cpt
cpt { nodeType } _ = do
pure $
Tools.panelNoFooter { mError: Nothing }
( [ H.div { style: { margin: "10px" } }
[ H.h3 {} [ H.text "Documentation about " ]
, H.h3 { className: GT.fldr nodeType true }
[ H.span { className: "font-family-theme mx-1" }
[ H.text $ show nodeType ]
]
]
]
<> (map (\info -> H.p {} [ H.text info ]) $ docOf nodeType)
)
([ H.div { }
[ H.h5 { className: "text-primary" } [H.text "Documentation about the current node" ]
, H.div { className: "" }
[ H.dl { className: "row" }
[
-- node type name
H.dt { className: "text-bold col-3" } [ H.text "Node type name" ]
, H.dd { className: "col-9" }
[ H.span {className: GT.fldr nodeType true} []
, H.span {className: "mx-1"} [ H.text $ show nodeType ]
]
-- node description
, H.dt { className: "text-bold col-3" } [ H.text "Description" ]
, H.dd { className: "col-9" }
[ R.fragment (map (\info -> H.p {} [ H.text info ]) $ docOf nodeType) ]
]
]
]
-- <> (map (\info -> H.p {} [ H.text info ]) $ docOf nodeType)
])
-- | TODO add documentation of all NodeType
docOf :: NodeType -> Array String
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Upload.purs
View file @
bfba4654
...
...
@@ -309,6 +309,7 @@ fileTypeFromFileName name = do
case ext of
-- There should be more file extensions here, but I don't understand the other
-- constructors of `FileType`
"csv" -> pure TSV
"tsv" -> pure TSV
"json" -> pure JSON
_ -> Nothing
...
...
src/Gargantext/Components/Forest/Tree/Node/Box.purs
View file @
bfba4654
...
...
@@ -74,46 +74,53 @@ nodePopupViewCpt = here.component "nodePopupView" cpt
panelHeading renameIsOpen open p@{ dispatch, id, name, nodeType } =
H.div
{ className: "popup-container__header card-header" }
[ B.wad
[ "d-flex", "align-items-center" ]
[ B.wad
[ "w-2/12" ]
[ H.span
{ className: GT.fldr nodeType true }
[] -- TODO fix names
-- ,
-- B.span' { className: "small" } $ prettyNodeType nodeType
]
, B.wad
[ "w-8/12 text-center" ]
[ if open then
textInputBox
{ boxAction: renameAction
, boxName: "Rename"
, dispatch
, id
, text: name
, isOpen: renameIsOpen
}
[]
else
B.wad'
[ "text-primary" ]
p.name
]
, B.wad
[ "w-2/12", "text-right" ]
[ editIcon renameIsOpen open
, B.wad_ [ "d-inline-block", "w-3" ]
, B.iconButton
{ callback: const $ p.closeCallback unit
, title: "Close"
, name: "times"
, elevation: Level2
}
]
]
{ className: "popup-container__header card-header" }
[
B.wad
[ "d-flex", "align-items-center" ]
[
B.wad
[ "w-2/12" ]
[
H.span
{ className: GT.fldr nodeType true} [] -- TODO fix names
-- ,
-- B.span' { className: "small" } $ prettyNodeType nodeType
]
,
B.wad
[ "w-8/12 text-center text-bold" ]
[
if open then
textInputBox
{ boxAction: renameAction
, boxName: "Rename"
, dispatch
, id
, text: name
, isOpen: renameIsOpen
} []
else
B.wad'
[ "text-primary" ]
p.name
]
,
B.wad
[ "w-2/12", "text-right" ]
[
editIcon renameIsOpen open
,
B.wad_ [ "d-inline-block", "w-3" ]
,
B.iconButton
{ callback: const $ p.closeCallback unit
, title: "Close"
, name: "times"
, elevation: Level2
}
]
]
editIcon _ true = mempty
...
...
src/sass/_legacy/_styles.sass
View file @
bfba4654
...
...
@@ -380,6 +380,8 @@ select.form-control
padding
:
0
.7rem
1
.5rem
0
.6rem
display
:
list-item
border
:
1px
solid
transparent
border-top-left-radius
:
0
.25rem
border-top-right-radius
:
0
.25rem
margin-bottom
:
-1px
&
:hover
,
&
--active
...
...
@@ -392,8 +394,8 @@ select.form-control
&
__icon
$offset-y
:
6
px
$offset-x
:
6
px
$offset-y
:
8
px
$offset-x
:
10
px
position
:
absolute
top
:
$offset-y
...
...
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