mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2025-01-02 01:17:35 +03:00
done basic error page
This commit is contained in:
parent
f047f0d2cd
commit
4522ac3fdc
@ -8,5 +8,15 @@
|
||||
"secure": false,
|
||||
"changeOrigin": true,
|
||||
"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;
|
||||
align-items: 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 {
|
||||
background-color: blueviolet;
|
||||
/*background-color: blueviolet;*/
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.message {
|
||||
background-color: aqua;
|
||||
font-size: 1rem;
|
||||
height: 30%;
|
||||
}
|
@ -1,8 +1,10 @@
|
||||
<div class="errorview">
|
||||
<div class="errorDialog">
|
||||
<div class="header">
|
||||
<h1>Error</h1>
|
||||
<h1 class="mat-display-1">Error</h1>
|
||||
</div>
|
||||
<div class="message">
|
||||
{{ this.error }}
|
||||
<h2 class="mat-h2">{{ this.error }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -18,7 +18,7 @@ export class ErrorComponent implements OnInit {
|
||||
getError(): void {
|
||||
const id = this.route.snapshot.paramMap.get('id');
|
||||
try {
|
||||
this.error = window.atob(id + '==');
|
||||
this.error = window.atob(id);
|
||||
} catch (e) {
|
||||
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);
|
||||
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);
|
||||
/* flex: 1 0 51%; */
|
||||
flex: 1 0 auto;
|
||||
justify-content: center;
|
||||
flex-flow: column wrap;
|
||||
align-items: center;
|
||||
|
Loading…
Reference in New Issue
Block a user