|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import {Component, ElementRef, HostListener, Input, OnInit, ViewChild} from '@angular/core';
|
|
|
|
|
import { TranslationService } from '../../services/translation.service';
|
|
|
|
|
import {TranslationService} from '../../services/translation.service';
|
|
|
|
|
import {ThemeService} from "../../services/theme.service";
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
@ -7,31 +7,19 @@ import {ThemeService} from "../../services/theme.service";
|
|
|
|
|
templateUrl: './header.component.html',
|
|
|
|
|
styleUrls: ['./header.component.scss']
|
|
|
|
|
})
|
|
|
|
|
export class HeaderComponent implements OnInit {
|
|
|
|
|
title!: string;
|
|
|
|
|
version!: string;
|
|
|
|
|
sandkasten_logo!: string;
|
|
|
|
|
gitea_logo!: string;
|
|
|
|
|
isMenuOpen!: boolean;
|
|
|
|
|
isCheck!: boolean;
|
|
|
|
|
export class HeaderComponent {
|
|
|
|
|
title: string = 'Sandkasten';
|
|
|
|
|
version: string = '1.0';
|
|
|
|
|
sandkasten_logo: string = 'assets/img/logo.png';
|
|
|
|
|
isMenuOpen: boolean = false;
|
|
|
|
|
isCheck: boolean = false;
|
|
|
|
|
@ViewChild('menuRef') menuRef!: ElementRef;
|
|
|
|
|
@Input() themeClass!: string;
|
|
|
|
|
@Input() themeService!: ThemeService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
|
|
|
|
this.title = 'Sandkasten';
|
|
|
|
|
this.version = '1.0';
|
|
|
|
|
this.sandkasten_logo = 'assets/img/logo.png';
|
|
|
|
|
this.gitea_logo = 'assets/img/gitea.png';
|
|
|
|
|
this.isMenuOpen = false;
|
|
|
|
|
this.isCheck = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Instanciation du service pour les actions de traduction
|
|
|
|
|
constructor(private translationService: TranslationService) {}
|
|
|
|
|
constructor(private translationService: TranslationService) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Méthode pour changer la langue
|
|
|
|
|
onLanguageChange(event: any) {
|
|
|
|
|