Added statistics

- Added total file size statistic
- Added total uploads statistic
- Added total downloads statistic
- Added icons to btns
This commit is contained in:
2024-05-30 15:34:55 +02:00
parent 95c9b2082a
commit 299cc565d7
5 changed files with 234 additions and 4 deletions

View File

@ -5,6 +5,7 @@ import axios from "axios";
import {NgClass, NgIf} from "@angular/common";
import {AuthStore} from "../../store/authStore";
import {firstValueFrom} from "rxjs";
import {Router} from "@angular/router";
@Component({
selector: 'app-login',
@ -23,7 +24,7 @@ export class LoginComponent {
loginFailed: boolean = false;
loginSuccessful: boolean = false;
constructor(private developmentStore: DevelopmentStore, private authStore: AuthStore) {
constructor(private developmentStore: DevelopmentStore, private authStore: AuthStore, private router: Router) {
}
tryToLogin() {
@ -51,6 +52,11 @@ export class LoginComponent {
console.log("Login successful");
console.log("Token: " + await firstValueFrom(this.authStore.token$));
console.log("Username: " + await firstValueFrom(this.authStore.username$));
//timeout
setTimeout(() => {
this.router.navigate(['/secure/administration']);
}, 1000);
}
})
.catch(error => {