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
c5fd64b1
Commit
c5fd64b1
authored
May 10, 2019
by
Markus Scheidgen
Browse files
Updated bundle*.js after latest changes.
parent
a7333c90
Pipeline
#48086
passed with stage
in 5 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/bundle-es5.js
View file @
c5fd64b1
...
...
@@ -647,12 +647,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
function
getGroupTypeCode
(
group
)
{
if
(
group
.
group_type
===
'
equation of state
'
)
return
'
eos
'
;
else
if
(
group
.
group_type
===
'
convergence
'
)
return
'
par
'
;
if
(
group
.
group_type
===
'
equation of state
'
)
return
'
eos
'
;
else
if
(
group
.
group_type
===
'
parameter variation
'
)
return
'
par
'
;
}
function
getGroupType
(
leafId
)
{
var
code
=
leafId
.
substring
(
0
,
3
);
if
(
code
===
'
eos
'
)
return
'
equation of state
'
;
else
if
(
code
===
'
par
'
)
return
'
convergence
'
;
else
return
null
;
if
(
code
===
'
eos
'
)
return
'
equation of state
'
;
else
if
(
code
===
'
par
'
)
return
'
parameter variation
'
;
else
return
null
;
}
function
isGroup
(
leafId
)
{
...
...
@@ -6055,7 +6055,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
this
.
element
.
className
=
className
;
this
.
filtersOn
=
[];
this
.
folded
=
true
;
this
.
element
.
innerHTML
+=
'
\n
<div>
\n
<div style="display: flex; justify-content: flex-end;">
\n
<div class="filter-groups-c-folded" >
\n
<span style="vertical-align: top;">Filtering </span>
\n
</div>
\n
<div class="filter-c-btn" >
\n
<img src="
'
+
util
.
IMAGE_DIR
+
'
folded.png" />
\n
<!--<button class="on">filter</button> -->
\n
</div>
\n
</div>
\n
<div class="filter-groups-c-unfolded" style="display: none">
\n
<table style="width: 100%">
\n
<thead>
\n
<tr>
\n
<th style="width: 1
3
%;"> </th>
\n
<th style="width: 1
7
%;">
\n
<span>Type</span>
\n
</th>
\n
<th style="width: 1
9
%;">
\n
<span info-sys-data="functional-type">Density functional</span>
\n
</th>
\n
<th style="width: 1
3
%;">
\n
<span info-sys-data="code-name">Code</span>
\n
</th>
\n
<th style="width: 1
7
%;">
\n
<span info-sys-data="pseudopotential-type">Potential</span>
\n
</th>
\n
<th style="width: 1
2
%;">
\n
<span info-sys-data="basis-set-type">Basis set</span>
\n
</th>
\n
<th style="width: 9%;"> </th>
\n
</tr>
\n
</thead>
\n
<tbody>
\n
<tr id="filter-items-row"></tr>
\n
</tbody>
\n
</table>
\n
</div>
\n
</div>
\n
'
;
this
.
element
.
innerHTML
+=
'
\n
<div>
\n
<div style="display: flex; justify-content: flex-end;">
\n
<div class="filter-groups-c-folded" >
\n
<span style="vertical-align: top;">Filtering </span>
\n
</div>
\n
<div class="filter-c-btn" >
\n
<img src="
'
+
util
.
IMAGE_DIR
+
'
folded.png" />
\n
<!--<button class="on">filter</button> -->
\n
</div>
\n
</div>
\n
<div class="filter-groups-c-unfolded" style="display: none">
\n
<table style="width: 100%
;
">
\n
<thead>
\n
<tr>
\n
<th style="width: 1
2
%;"> </th>
\n
<th style="width: 1
6
%;">
\n
<span>Type</span>
\n
</th>
\n
<th style="width: 1
8
%;">
\n
<span info-sys-data="functional-type">Density functional</span>
\n
</th>
\n
<th style="width: 1
2
%;">
\n
<span info-sys-data="code-name">Code</span>
\n
</th>
\n
<th style="width: 1
6
%;">
\n
<span info-sys-data="pseudopotential-type">Potential</span>
\n
</th>
\n
<th style="width: 1
1
%;">
\n
<span info-sys-data="basis-set-type">Basis set</span>
\n
</th>
\n
<!--
<th style="width: 9%;"> </th>
-->
\n
</tr>
\n
</thead>
\n
<tbody>
\n
<tr id="filter-items-row"></tr>
\n
</tbody>
\n
</table>
\n
</div>
\n
</div>
\n
'
;
//this.foldedPanel = this.element.querySelector('.filter-groups-c-folded');
this
.
unfoldedPanel
=
this
.
element
.
querySelector
(
'
.filter-groups-c-unfolded
'
);
this
.
filterItemsRow
=
this
.
element
.
querySelector
(
'
#filter-items-row
'
);
...
...
@@ -6103,7 +6103,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
this
.
addGroupItems
(
lCodeMap
);
this
.
addGroupItems
(
lPotentialMap
);
this
.
addGroupItems
(
lBasicSetMap
);
this
.
filterItemsRow
.
innerHTML
+=
'
<td></td>
'
;
// link column
//
this.filterItemsRow.innerHTML += '<td></td>'; // link column
}
},
{
key
:
'
addGroupItems
'
,
...
...
@@ -6301,7 +6301,6 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if
(
DataStore
.
getGroups
().
has
(
c
.
id
))
{
//leafId))
calcType
=
DataStore
.
getGroupType
(
c
.
id
);
//leafId);
if
(
calcType
===
'
convergence
'
)
calcType
=
'
parameter variation
'
;
//console.log('Group',DataStore.getGroupType(leafId));
}
...
...
client/bundle.js
View file @
c5fd64b1
...
...
@@ -676,13 +676,13 @@ function getGroups(){
function
getGroupTypeCode
(
group
){
if
(
group
.
group_type
===
'
equation of state
'
)
return
'
eos
'
;
else
if
(
group
.
group_type
===
'
convergence
'
)
return
'
par
'
;
else
if
(
group
.
group_type
===
'
parameter variation
'
)
return
'
par
'
;
}
function
getGroupType
(
leafId
){
let
code
=
leafId
.
substring
(
0
,
3
);
if
(
code
===
'
eos
'
)
return
'
equation of state
'
;
else
if
(
code
===
'
par
'
)
return
'
convergence
'
;
else
if
(
code
===
'
par
'
)
return
'
parameter variation
'
;
else
return
null
;
}
...
...
@@ -7214,7 +7214,6 @@ class MethodologyDetails extends DetailsViewBase {
let
calcType
=
c
.
run_type
;
if
(
DataStore
.
getGroups
().
has
(
c
.
id
)){
//leafId))
calcType
=
DataStore
.
getGroupType
(
c
.
id
);
//leafId);
if
(
calcType
===
'
convergence
'
)
calcType
=
'
parameter variation
'
;
//console.log('Group',DataStore.getGroupType(leafId));
}
...
...
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