| import { Routes } from '@angular/router'; | |||||
| import {Routes} from '@angular/router'; | |||||
| import { Dashboard } from './pages/dashboard/dashboard'; | |||||
| import { Sidebar } from './components/sidebar/sidebar'; | |||||
| import {Dashboard} from './pages/dashboard/dashboard'; | |||||
| import {Sidebar} from './components/sidebar/sidebar'; | |||||
| import {Login} from './pages/login/login'; | import {Login} from './pages/login/login'; | ||||
| import RegisterComponent from './pages/register/register.component'; | |||||
| // import { UserRouteAccessService } from './core/auth/user-route-access.service'; // Si besoin | // import { UserRouteAccessService } from './core/auth/user-route-access.service'; // Si besoin | ||||
| /* | /* | ||||
| // Routes d'erreur simples | // Routes d'erreur simples | ||||
| component: Login, | component: Login, | ||||
| title: 'Connexion', | title: 'Connexion', | ||||
| }, | }, | ||||
| { | |||||
| path: 'register', | |||||
| component: RegisterComponent, | |||||
| title: 'register.title', | |||||
| }, | |||||
| { | { | ||||
| path: '', | path: '', | ||||
| children: [ | children: [ |
| > | > | ||||
| <fa-icon [icon]="faArrowLeft"></fa-icon> | <fa-icon [icon]="faArrowLeft"></fa-icon> | ||||
| </button> | </button> | ||||
| <div>{{currentAgentName}}</div> | |||||
| <div class="header-spacer"></div> | <div class="header-spacer"></div> | ||||
| <button class="share-button" [attr.aria-label]="'Partager'"> | <button class="share-button" [attr.aria-label]="'Partager'"> | ||||
| <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-upload" viewBox="0 0 16 16"> | <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-upload" viewBox="0 0 16 16"> |
| import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | ||||
| import { TranslateService } from '@ngx-translate/core'; | import { TranslateService } from '@ngx-translate/core'; | ||||
| import { Alert, AlertService } from 'app/core/util/alert.service'; | |||||
| import { EventManager, EventWithContent } from 'app/core/util/event-manager.service'; | |||||
| import { AlertError } from './alert-error.model'; | import { AlertError } from './alert-error.model'; | ||||
| import {Alert, AlertService} from '../../core/util/alert.service'; | |||||
| import {EventManager, EventWithContent} from '../../core/util/event-manager.service'; | |||||
| @Component({ | @Component({ | ||||
| selector: 'jhi-alert-error', | selector: 'jhi-alert-error', |
| import { Component, OnDestroy, OnInit, inject, signal } from '@angular/core'; | import { Component, OnDestroy, OnInit, inject, signal } from '@angular/core'; | ||||
| import { CommonModule } from '@angular/common'; | import { CommonModule } from '@angular/common'; | ||||
| import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | ||||
| import {Alert, AlertService} from '../../core/util/alert.service'; | |||||
| import { Alert, AlertService } from 'app/core/util/alert.service'; | |||||
| @Component({ | @Component({ | ||||
| selector: 'jhi-alert', | selector: 'jhi-alert', |
| import { TranslateService } from '@ngx-translate/core'; | import { TranslateService } from '@ngx-translate/core'; | ||||
| import { Subject } from 'rxjs'; | import { Subject } from 'rxjs'; | ||||
| import { takeUntil } from 'rxjs/operators'; | import { takeUntil } from 'rxjs/operators'; | ||||
| import {translationNotFoundMessage} from '../../config/translation.config'; | |||||
| import { translationNotFoundMessage } from 'app/config/translation.config'; | |||||
| /** | /** | ||||
| * A wrapper directive on top of the translation pipe as the inbuilt translation directive from ngx-translate is too verbose and buggy | * A wrapper directive on top of the translation pipe as the inbuilt translation directive from ngx-translate is too verbose and buggy |
| <link rel="icon" type="image/x-icon" href="favicon.ico"> | <link rel="icon" type="image/x-icon" href="favicon.ico"> | ||||
| <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet"> | <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet"> | ||||
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||||
| <link href="styles.scss" rel="stylesheet"> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <app-root></app-root> | <app-root></app-root> |