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
9d55b96b
Commit
9d55b96b
authored
Jun 01, 2023
by
Fabien Manière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some spacings in the corpus search popin
parent
dd8891c2
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
51 additions
and
22 deletions
+51
-22
bootstrap-darkster.css
dist/styles/bootstrap-darkster.css
+3
-0
bootstrap-default.css
dist/styles/bootstrap-default.css
+3
-0
bootstrap-greyson.css
dist/styles/bootstrap-greyson.css
+3
-0
bootstrap-herbie.css
dist/styles/bootstrap-herbie.css
+3
-0
bootstrap-monotony.css
dist/styles/bootstrap-monotony.css
+3
-0
CodeSection.purs
src/Gargantext/Components/Corpus/CodeSection.purs
+2
-0
Add.purs
src/Gargantext/Components/Forest/Tree/Node/Action/Add.purs
+1
-0
Search.purs
...Gargantext/Components/Forest/Tree/Node/Action/Search.purs
+1
-1
SearchBar.purs
.../Components/Forest/Tree/Node/Action/Search/SearchBar.purs
+1
-1
SearchField.purs
...omponents/Forest/Tree/Node/Action/Search/SearchField.purs
+17
-15
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+2
-0
InputWithEnter.purs
src/Gargantext/Components/InputWithEnter.purs
+4
-2
ListSelection.purs
src/Gargantext/Components/ListSelection.purs
+1
-1
User.purs
src/Gargantext/Components/Nodes/Annuaire/User.purs
+2
-1
Renameable.purs
src/Gargantext/Components/Renameable.purs
+1
-0
_nav.scss
src/sass/base/_nav.scss
+4
-1
No files found.
dist/styles/bootstrap-darkster.css
View file @
9d55b96b
...
...
@@ -6670,6 +6670,9 @@ a:hover {
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
.nav.nav-tabs
.nav-tabs
.nav-link.active
,
.nav.nav-tabs
.nav-tabs
.nav-item.show
.nav-link
,
.nav.nav-tabs
li
a
{
color
:
#DEE2E6
;
}
...
...
dist/styles/bootstrap-default.css
View file @
9d55b96b
...
...
@@ -6480,6 +6480,9 @@ a:hover {
font-family
:
ForkAwesome
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
"Helvetica Neue"
,
Arial
,
"Noto Sans"
,
"Liberation Sans"
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
,
"Noto Color Emoji"
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
.nav.nav-tabs
.nav-tabs
.nav-link.active
,
.nav.nav-tabs
.nav-tabs
.nav-item.show
.nav-link
,
.nav.nav-tabs
li
a
{
color
:
#495057
;
}
...
...
dist/styles/bootstrap-greyson.css
View file @
9d55b96b
...
...
@@ -6236,6 +6236,9 @@ a:hover {
font-family
:
ForkAwesome
,
"Muli"
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
.nav.nav-tabs
.nav-tabs
.nav-link.active
,
.nav.nav-tabs
.nav-tabs
.nav-item.show
.nav-link
,
.nav.nav-tabs
li
a
{
color
:
#495057
;
}
...
...
dist/styles/bootstrap-herbie.css
View file @
9d55b96b
...
...
@@ -6484,6 +6484,9 @@ a:hover {
font-family
:
ForkAwesome
,
"Nunito"
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
.nav.nav-tabs
.nav-tabs
.nav-link.active
,
.nav.nav-tabs
.nav-tabs
.nav-item.show
.nav-link
,
.nav.nav-tabs
li
a
{
color
:
#495057
;
}
...
...
dist/styles/bootstrap-monotony.css
View file @
9d55b96b
...
...
@@ -6485,6 +6485,9 @@ a:hover {
font-family
:
ForkAwesome
,
"Montserrat"
;
}
.nav.nav-tabs
.nav-link
{
cursor
:
pointer
;
}
.nav.nav-tabs
.nav-tabs
.nav-link.active
,
.nav.nav-tabs
.nav-tabs
.nav-item.show
.nav-link
,
.nav.nav-tabs
li
a
{
color
:
#495057
;
}
...
...
src/Gargantext/Components/Corpus/CodeSection.purs
View file @
9d55b96b
...
...
@@ -197,6 +197,7 @@ fieldCodeEditorWrapperCpt = here.component "fieldCodeEditorWrapperCpt" cpt where
, defaultValue: name
, placeholder: "Enter file name"
, type: "text"
, required: false
}
]
,
...
...
@@ -301,6 +302,7 @@ renameableTextCpt = here.component "renameableTextCpt" cpt
, onValueChanged: \st -> T.write_ st state
, placeholder: ""
, type: "text"
, required: false
}
, H.div { className: "btn input-group-append"
, on: { click: submit state' } }
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Add.purs
View file @
9d55b96b
...
...
@@ -115,6 +115,7 @@ addNodeViewCpt = here.component "addNodeView" cpt where
, placeholder: nodeName' -- (prettyNodeType nt')
, type: "text"
, key: show nodeType'
, required: false
}
else H.div {} []
]
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Search.purs
View file @
9d55b96b
...
...
@@ -62,7 +62,7 @@ actionSearchWithLangsCpt = here.component "actionSearchWithLangs" cpt
cpt { boxes: { errors }, dispatch, id, langs, session } _ = do
search <- T.useBox $ defaultSearch { node_id = id }
pure $ R.fragment
[ H.p { className: "action-search m
-1
" }
[ H.p { className: "action-search m
x-2
" }
[ H.text $ "Search and create a private "
<> "corpus with the search query as corpus name." ]
, searchBar { errors
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Search/SearchBar.purs
View file @
9d55b96b
...
...
@@ -33,7 +33,7 @@ searchBarCpt = here.component "searchBar" cpt
where
cpt { errors, langs, onSearch, search, session } _ = do
--onSearchChange session s
pure $ H.
div { className: "search-bar m-1
" }
pure $ H.
form { className: "search-bar m-2
" }
[ searchField { databases: allDatabases
, errors
, langs
...
...
src/Gargantext/Components/Forest/Tree/Node/Action/Search/SearchField.purs
View file @
9d55b96b
module Gargantext.Components.Forest.Tree.Node.Action.Search.SearchField where
module Gargantext.Components.Forest.Tree.Node.Action.Search.SearchField
where
import Gargantext.Prelude
...
...
@@ -280,8 +281,8 @@ langNavCpt = here.component "langNav" cpt
search' <- T.useLive T.unequal search
pure $ R.fragment
[ H.div {className: "text-primary center"} [H.text "with lang"]
, H.div {className: "nav nav-tabs"} ((liItem search') <$> langs)
[ H.div {className: "text-primary center
p-1
"} [H.text "with lang"]
, H.div {className: "nav nav-tabs
p-1
"} ((liItem search') <$> langs)
]
where
liItem :: Search -> Lang -> R.Element
...
...
@@ -305,9 +306,9 @@ dataFieldNavCpt = here.component "dataFieldNav" cpt
search'@{ datafield } <- T.useLive T.unequal search
pure $ R.fragment
[ H.div { className: "text-primary center
"} [H.text "with DataField
"]
[ H.div { className: "text-primary center
p-1"} [H.text "Search options:
"]
, H.div { className: "nav nav-tabs" } ((liItem search') <$> dataFields)
, H.div { className: "center" } [ H.text
, H.div { className: "center
p-1
" } [ H.text
$ maybe "TODO: add Doc Instance" doc datafield
]
]
...
...
@@ -376,13 +377,13 @@ databaseInputCpt = here.component "databaseInput" cpt
}) search
pure $
H.div { className: "form-group" }
H.div { className: "form-group
p-1 mb-0
" }
[ H.div {className: "text-primary center"} [ H.text "in database" ]
, R2.select { className: "form-control"
, defaultValue: dbInputValue
, on: { change }
} (liItem <$> databases)
, H.div {className:"center"} [ H.text $ maybe "" doc db ]
, H.div {className:"center
p-1
"} [ H.text $ maybe "" doc db ]
]
...
...
@@ -402,7 +403,7 @@ pubmedInputCpt = here.component "pubmedInput" cpt where
Just (External (PubMed p@{ api_key })) ->
-- TODO Fetch current API key
pure $
H.div { className: "form-group" }
H.div { className: "form-group
p-1 m-0
" }
[ H.div { className: "text-primary center" } [ H.text "Pubmed API key" ]
, H.input { className: "form-control"
, defaultValue: fromMaybe "" api_key
...
...
@@ -434,7 +435,7 @@ orgInputCpt = here.component "orgInput" cpt
let value = R.unsafeEventValue e
T.modify_ (_ { datafield = Just $ External $ HAL $ read value }) search
pure $ H.div { className: "form-group" }
pure $ H.div { className: "form-group
p-1 m-0
" }
[ H.div {className: "text-primary center"} [H.text "filter with organization: "]
, R2.select { className: "form-control"
, on: { change }
...
...
@@ -496,9 +497,9 @@ datafieldInputCpt = here.component "datafieldInput" cpt where
then componentIMT { search, session } []
else H.div {} []
, if isHAL search'.datafield
then componentYears { search } []
else H.div {} []
--
, if isHAL search'.datafield
--
then componentYears { search } []
--
else H.div {} []
, if isCNRS search'.datafield
then componentCNRS { search } []
...
...
@@ -535,11 +536,12 @@ searchInputCpt = here.component "searchInput" cpt
[ inputWithEnter { onBlur: onBlur valueRef search
, onEnter: onEnter valueRef search
, onValueChanged: onValueChanged valueRef
, autoFocus:
fals
e
, autoFocus:
tru
e
, className: "form-control"
, defaultValue: R.readRef valueRef
, placeholder: "Your query here"
, type: "text" }
, type: "text"
, required: true }
]
-- pure $
...
...
@@ -580,7 +582,7 @@ submitButtonComponent = here.component "submitButton" cpt
pure $
H.button { className: "btn btn-primary"
, "type" : "
button
"
, "type" : "
submit
"
, on : { click: doSearch onSearch errors session selection' search' }
, style : { width: "100%" }
}
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
9d55b96b
...
...
@@ -83,6 +83,7 @@ textInputBoxCpt = here.component "textInputBox" cpt where
, onValueChanged: R.setRef renameNodeNameRef
, placeholder: (boxName <> " Node")
, type: "text"
, required: false
}
]
...
...
@@ -146,6 +147,7 @@ inviteInputBoxCpt = here.component "textInputBox" cpt where
, onValueChanged: R.setRef renameNodeNameRef
, placeholder: (boxName <> " Node")
, type: "text"
, required: false
}
]
...
...
src/Gargantext/Components/InputWithEnter.purs
View file @
9d55b96b
...
...
@@ -20,13 +20,14 @@ type Props =
, defaultValue :: String
, placeholder :: String
, type :: String
, required :: Boolean
)
inputWithEnterWithKey :: R2.Leaf ( key :: String | Props )
inputWithEnterWithKey = R2.leaf inputWithEnterWithKeyCpt
inputWithEnterWithKeyCpt :: R.Component ( key :: String | Props )
inputWithEnterWithKeyCpt = here.component "inputWithEnterWithKey" cpt where
cpt { onBlur, onEnter, onValueChanged, autoFocus, className, defaultValue, placeholder, type: t } _ = do
cpt { onBlur, onEnter, onValueChanged, autoFocus, className, defaultValue, placeholder, type: t
, required
} _ = do
pure $ inputWithEnter { onBlur
, onEnter
, onValueChanged
...
...
@@ -34,7 +35,8 @@ inputWithEnterWithKeyCpt = here.component "inputWithEnterWithKey" cpt where
, className
, defaultValue
, placeholder
, type: t }
, type: t
, required }
inputWithEnter :: R2.Leaf Props
inputWithEnter = R2.leaf inputWithEnterCpt
...
...
src/Gargantext/Components/ListSelection.purs
View file @
9d55b96b
...
...
@@ -32,7 +32,7 @@ selectionCpt :: R.Component Props
selectionCpt = here.component "selection" cpt where
cpt { selection, session } _ = do
selection' <- R2.useLive' selection
pure $ H.div { className: "list-selection" }
pure $ H.div { className: "list-selection
p-1
" }
[
B.formSelect'
{ callback: flip T.write_ selection
...
...
src/Gargantext/Components/Nodes/Annuaire/User.purs
View file @
9d55b96b
...
...
@@ -250,7 +250,8 @@ itemEditingCpt = here.component "itemNotEditing" cpt where
here.log2 "[itemEditingCpt] value Changed: " v
T.write_ v valueBox
, placeholder: defaultVal
, type: "text" }
, type: "text"
, required: false }
, H.div { className: "btn input-group-append", on: { click } }
[ H.div { className: "input-group-text fa fa-floppy-o" } [] ]
]
...
...
src/Gargantext/Components/Renameable.purs
View file @
9d55b96b
...
...
@@ -207,6 +207,7 @@ editingCpt = here.component "editing" cpt where
, onValueChanged: \s -> T.write_ s state
, placeholder: ""
, type: "text"
, required: false
}
,
-- @TODO make a "reset" CTA
...
...
src/sass/base/_nav.scss
View file @
9d55b96b
.nav.nav-tabs
{
.nav-link
{
cursor
:
pointer
;
}
.nav-tabs
.nav-link.active
,
.nav-tabs
.nav-item.show
.nav-link
,
li
a
{
color
:
$gray-700
...
...
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