Mise en ligne de la version 0.2.0
All checks were successful
Build & Push Images / build (brain) (push) Successful in 46s
Build & Push Images / build (core) (push) Successful in 1m21s
Build & Push Images / build (web) (push) Successful in 1m25s

This commit is contained in:
2026-04-21 14:25:17 +02:00
parent ebee8e106b
commit ba8a503b3e
300 changed files with 35329 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
import { Component } from '@angular/core';
import { AsyncPipe, NgIf, NgFor } from '@angular/common';
import { Router } from '@angular/router';
import { LucideAngularModule, Search, Download, Settings, ArrowLeft } from 'lucide-angular';
import { LayoutService } from '../services/layout.service';
import { GlobalSearchService } from '../services/global-search.service';
@Component({
selector: 'app-sidebar',
standalone: true,
imports: [AsyncPipe, NgIf, NgFor, LucideAngularModule],
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent {
currentRoute = '';
readonly Search = Search;
readonly Download = Download;
readonly Settings = Settings;
readonly ArrowLeft = ArrowLeft;
readonly layoutConfig$ = this.layoutService.secondarySidebar$;
constructor(
private router: Router,
private layoutService: LayoutService,
private globalSearch: GlobalSearchService
) {
this.router.events.subscribe(() => {
this.currentRoute = this.router.url;
});
}
navigateTo(route: string): void {
this.router.navigate([route]);
}
isActive(itemRoute: string): boolean {
return this.currentRoute === itemRoute;
}
openSearch(): void {
this.globalSearch.open();
}
}