mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2025-01-19 14:03:34 +03:00
done basic error page
This commit is contained in:
parent
f047f0d2cd
commit
4522ac3fdc
@ -8,5 +8,15 @@
|
|||||||
"secure": false,
|
"secure": false,
|
||||||
"changeOrigin": true,
|
"changeOrigin": true,
|
||||||
"logLevel": "info"
|
"logLevel": "info"
|
||||||
|
},
|
||||||
|
"/i18n": {
|
||||||
|
"target": {
|
||||||
|
"host": "172.27.0.1",
|
||||||
|
"protocol": "http:",
|
||||||
|
"port": 8000
|
||||||
|
},
|
||||||
|
"secure": false,
|
||||||
|
"changeOrigin": true,
|
||||||
|
"logLevel": "info"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,13 +3,26 @@
|
|||||||
flex-flow: column wrap;
|
flex-flow: column wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.errorDialog {
|
||||||
|
min-width: 30%;
|
||||||
|
min-height: 30%;
|
||||||
|
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background-color: blueviolet;
|
/*background-color: blueviolet;*/
|
||||||
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message {
|
.message {
|
||||||
background-color: aqua;
|
font-size: 1rem;
|
||||||
|
height: 30%;
|
||||||
}
|
}
|
@ -1,8 +1,10 @@
|
|||||||
<div class="errorview">
|
<div class="errorview">
|
||||||
|
<div class="errorDialog">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>Error</h1>
|
<h1 class="mat-display-1">Error</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="message">
|
<div class="message">
|
||||||
{{ this.error }}
|
<h2 class="mat-h2">{{ this.error }}</h2>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,7 +18,7 @@ export class ErrorComponent implements OnInit {
|
|||||||
getError(): void {
|
getError(): void {
|
||||||
const id = this.route.snapshot.paramMap.get('id');
|
const id = this.route.snapshot.paramMap.get('id');
|
||||||
try {
|
try {
|
||||||
this.error = window.atob(id + '==');
|
this.error = window.atob(id);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.error = django.gettext('Invalid error string');
|
this.error = django.gettext('Invalid error string');
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
-moz-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
|
-moz-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
|
||||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
|
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
|
||||||
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
|
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
|
||||||
/* flex: 1 0 51%; */
|
flex: 1 0 auto;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-flow: column wrap;
|
flex-flow: column wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user