Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
61328e96
Commit
61328e96
authored
Feb 19, 2021
by
Lauri Himanen
Browse files
Added method filters.
parent
c3658aaf
Pipeline
#93863
skipped with stage
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
61328e96
This diff is collapsed.
Click to expand it.
client/conf.js
View file @
61328e96
window
.
nomadEnv
=
{
//apiRoot: "https://nomad-lab.eu/dev/nomad/enc-search/api/encyclopedia/",
apiRoot
:
"
https://nomad-lab.eu/dev/rae/enc-search/api/encyclopedia/
"
,
//
apiRoot: "https://nomad-lab.eu/dev/rae/enc-search/api/encyclopedia/",
//apiRoot: "https://nomad-lab.eu/prod/rae/beta/api/encyclopedia/",
//apiRoot: "https://nomad-lab.eu/prod/rae/api/encyclopedia/",
//
apiRoot: "http://localhost:8000/fairdi/nomad/latest/api/encyclopedia/",
apiRoot
:
"
http://localhost:8000/fairdi/nomad/latest/api/encyclopedia/
"
,
keycloakBase
:
'
https://nomad-lab.eu/fairdi/keycloak/auth/
'
,
keycloakRealm
:
'
fairdi_nomad_test
'
,
keycloakClientId
:
'
nomad_gui_dev
'
...
...
client/css/styles.css
View file @
61328e96
...
...
@@ -577,14 +577,14 @@ div.title span.unfolded::before{
}
/* Structure type autocomplete */
.structure_type-autocomplete-multiselect-dropdown
{
/* Autocomplete multiselect */
.AutocompleteMultiselectTextfield-dropdown
{
width
:
210px
;
background-color
:
white
;
box-shadow
:
0
1px
2px
#E56400
;
}
/* To remove
.autocomplete-em {
...
...
client/src/search-mod/FilterPanel.view.js
View file @
61328e96
...
...
@@ -99,6 +99,19 @@ class FilterPanel {
this
.
fields
.
push
(
boolValueFields
)
propertiesGroupBox
.
append
(
boolValueFields
.
element
);
// Method
let
methodGroupBox
=
this
.
createPropsGroupBox
(
'
Method
'
)
this
.
element
.
append
(
methodGroupBox
);
const
basisSetField
=
new
AutocompleteField
(
'
Basis set
'
,
'
basis_set
'
);
this
.
fields
.
push
(
basisSetField
)
methodGroupBox
.
append
(
basisSetField
.
element
);
const
functionalTypeField
=
new
AutocompleteField
(
'
Functional type
'
,
'
functional_type
'
);
this
.
fields
.
push
(
functionalTypeField
)
methodGroupBox
.
append
(
functionalTypeField
.
element
);
const
codeField
=
new
AutocompleteField
(
'
Code
'
,
'
code_name
'
);
this
.
fields
.
push
(
codeField
)
methodGroupBox
.
append
(
codeField
.
element
);
InfoSys
.
addToInfoSystem
(
this
.
element
);
// The value change event in fields is handled at container level (event delegation pattern)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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