Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
7e917da1
Commit
7e917da1
authored
Jun 30, 2020
by
Lance Wilson
Browse files
Merge branch 'dev' into 'test'
Dev See merge request
!65
parents
4ada5d76
5b4275bc
Pipeline
#10788
passed with stages
in 3 minutes and 22 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/accountinfo/accountinfo.component.html
View file @
7e917da1
...
...
@@ -3,7 +3,7 @@
<!--<div *ngIf="identity$.value.systemalerts.value !== null">-->
<div
*ngFor=
"let h of (identity$.value.systemalerts | async)"
>
<div
*ngIf=
"h.stat === 'error'"
>
<div
class=
'health-
warn
'
style=
"padding: 20px"
>
<div
class=
'health-
error
'
style=
"padding: 20px"
>
{{ h.msg }}
</div>
</div>
...
...
@@ -15,7 +15,7 @@
<div
*ngFor=
"let h of identity$.value.accountalerts.value"
>
<div
*ngIf=
"h.type === undefined || h.type != 'quota'"
>
<mat-list-item
*ngIf=
"h.msg !== undefined"
>
<div
[ngClass]=
"
h.stat == 'error' || h.stat == 'warn' ? 'health-warn': 'health-ok'
"
>
<div
[ngClass]=
"
cssClass(h)
"
>
{{ h.msg }}
</div>
</mat-list-item>
...
...
@@ -34,7 +34,7 @@
</div>
</ng-container>
<tr
mat-header-row
*matHeaderRowDef=
"calculateCols(h.data.cols); sticky: true"
></tr>
<tr
mat-row
*matRowDef=
"let row; columns: calculateCols(h.data.cols)"
[ngClass]=
"
row
Class(row)"
></tr>
<tr
mat-row
*matRowDef=
"let row; columns: calculateCols(h.data.cols)"
[ngClass]=
"
css
Class(row)"
></tr>
</table>
</div>
</div>
...
...
src/app/accountinfo/accountinfo.component.ts
View file @
7e917da1
...
...
@@ -33,6 +33,14 @@ export class AccountinfoComponent implements OnInit {
this
.
identity$
.
subscribe
((
i
)
=>
this
.
updateSubs
(
i
));
}
cssClass
(
h
)
{
if
(
h
.
stat
==
'
error
'
)
return
'
health-error
'
;
if
(
h
.
stat
==
'
warn
'
)
return
'
health-warn
'
;
return
'
health-ok
'
;
}
updateSubs
(
i
:
Identity
)
{
var
s
:
Subscription
;
for
(
s
of
this
.
subscriptions
)
{
...
...
@@ -65,14 +73,6 @@ export class AccountinfoComponent implements OnInit {
return
'
0 MB
'
;
}
rowClass
(
row
)
{
if
(
row
.
stat
==
'
error
'
||
row
.
stat
==
'
warn
'
)
{
return
'
health-warn
'
;
}
else
{
return
'
health-ok
'
;
}
}
navLogin
(
o
)
{
if
(
o
==
null
)
{
return
...
...
src/assets/config/apiservers.dev.json
View file @
7e917da1
...
...
@@ -8,6 +8,11 @@
"name"
:
"Dev - Pawsey"
,
"tes"
:
"https://strudel2-api-dev-pawsey.cloud.cvl.org.au/tes"
,
"tws"
:
"https://strudel2-api-dev-pawsey.cloud.cvl.org.au"
},
{
"name"
:
"localhost"
,
"tes"
:
"http://localhost:8080"
,
"tws"
:
"http://localhost:8090"
}
]
...
...
src/assets/config/computesites.dev.json
View file @
7e917da1
...
...
@@ -9,7 +9,7 @@
"appCatalogCmd"
:
"/usr/local/strudel2_cluster/latest/bin/getapps"
,
"cancelcmd"
:
"/usr/local/strudel2_cluster/latest/bin/s2cancel {jobid}"
,
"statcmd"
:
"/usr/local/strudel2_cluster/latest/bin/s2stat"
,
"userhealth"
:
"/usr/local/
userhealth/0.0.2/
bin/uijson"
,
"userhealth"
:
"/usr/local/bin/uijson"
,
"cacheturis"
:
[],
"contact"
:
"<MASSIVE Support> help@massive.org.au"
},
...
...
src/assets/config/computesites.prod.json
View file @
7e917da1
...
...
@@ -9,6 +9,6 @@
"appCatalogCmd"
:
"/usr/local/strudel2_cluster/latest/bin/getapps"
,
"cancelcmd"
:
"/usr/local/strudel2_cluster/latest/bin/s2cancel {jobid}"
,
"statcmd"
:
"/usr/local/strudel2_cluster/latest/bin/s2stat"
,
"userhealth"
:
"/usr/local/
userhealth/0.0.2/
bin/uijson"
"userhealth"
:
"/usr/local/bin/uijson"
}
]
src/assets/config/computesites.test.json
View file @
7e917da1
...
...
@@ -9,6 +9,6 @@
"appCatalogUri"
:
"./assets/config/m3apps.test.json"
,
"cancelcmd"
:
"/usr/local/sv2/sv2scancel.sh {jobid}"
,
"statcmd"
:
"/usr/local/sv2/sv2stat.py"
,
"userhealth"
:
"/usr/local/
userhealth/0.0.2/
bin/uijson"
"userhealth"
:
"/usr/local/bin/uijson"
}
]
src/health-warn.scss
View file @
7e917da1
...
...
@@ -3,15 +3,24 @@
$warn
:
map-get
(
$theme
,
warn
);
$background
:
map-get
(
$theme
,
background
);
$foreground
:
map-get
(
$theme
,
foreground
);
$error
:
mat-color
(
mat-palette
(
$mat-red
));
.health-warn
{
color
:
mat-color
(
$warn
);
text-color
:
mat-color
(
$warn
);
}
.health-error
{
color
:
$error
;
text-color
:
$error
;
}
.health-warn
.mat-cell
{
color
:
mat-color
(
$warn
);
text-align
:
right
;
}
.health-error
.mat-cell
{
color
:
$error
;
text-align
:
right
;
}
.health-ok
.mat-cell
{
color
:
mat-color
(
$foreground
);
text-align
:
right
;
...
...
src/styles.scss
View file @
7e917da1
...
...
@@ -74,7 +74,8 @@ $custom-typography: mat-typography-config(
.strudel-light-theme
{
$strudel-app-primary
:
mat-palette
(
$md-monashpalette
);
$strudel-app-accent
:
mat-palette
(
$mat-pink
,
A200
,
A100
,
A400
);
$strudel-app-theme
:
mat-light-theme
(
$strudel-app-primary
,
$strudel-app-accent
);
$strudel-app-warn
:
mat-palette
(
$mat-orange
);
$strudel-app-theme
:
mat-light-theme
(
$strudel-app-primary
,
$strudel-app-accent
,
$strudel-app-warn
);
// @include mat-base-typography($custom-typography);
@include
angular-material-typography
(
$custom-typography
);
// @include mat-core($custom-typography);
...
...
@@ -166,7 +167,7 @@ $custom-typography: mat-typography-config(
//$dark-primary: mat-palette($mat-blue-grey);
$dark-primary
:
mat-palette
(
$md-monashpalette
,
800
);
$dark-accent
:
mat-palette
(
$mat-amber
,
A200
,
A100
,
A400
);
$dark-warn
:
mat-palette
(
$mat-
deep-
orange
);
$dark-warn
:
mat-palette
(
$mat-orange
);
$dark-theme
:
mat-dark-theme
(
$dark-primary
,
$dark-accent
,
$dark-warn
);
// @include mat-base-typography($custom-typography);
@include
angular-material-typography
(
$custom-typography
);
...
...
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