| @@ -1,8 +1,9 @@ | |||
| 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 RegisterComponent from './pages/register/register.component'; | |||
| // import { UserRouteAccessService } from './core/auth/user-route-access.service'; // Si besoin | |||
| /* | |||
| // Routes d'erreur simples | |||
| @@ -34,6 +35,11 @@ const routes: Routes = [ | |||
| component: Login, | |||
| title: 'Connexion', | |||
| }, | |||
| { | |||
| path: 'register', | |||
| component: RegisterComponent, | |||
| title: 'register.title', | |||
| }, | |||
| { | |||
| path: '', | |||
| children: [ | |||
| @@ -17,6 +17,8 @@ | |||
| > | |||
| <fa-icon [icon]="faArrowLeft"></fa-icon> | |||
| </button> | |||
| <div>{{currentAgentName}}</div> | |||
| <div class="header-spacer"></div> | |||
| <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"> | |||
| @@ -5,9 +5,9 @@ import { CommonModule } from '@angular/common'; | |||
| import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | |||
| 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 {Alert, AlertService} from '../../core/util/alert.service'; | |||
| import {EventManager, EventWithContent} from '../../core/util/event-manager.service'; | |||
| @Component({ | |||
| selector: 'jhi-alert-error', | |||
| @@ -1,8 +1,8 @@ | |||
| import { Component, OnDestroy, OnInit, inject, signal } from '@angular/core'; | |||
| import { CommonModule } from '@angular/common'; | |||
| 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({ | |||
| selector: 'jhi-alert', | |||
| @@ -2,8 +2,8 @@ import { Directive, ElementRef, OnChanges, OnDestroy, OnInit, inject, input } fr | |||
| import { TranslateService } from '@ngx-translate/core'; | |||
| import { Subject } from 'rxjs'; | |||
| 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 | |||
| @@ -8,6 +8,7 @@ | |||
| <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/icon?family=Material+Icons" rel="stylesheet"> | |||
| <link href="styles.scss" rel="stylesheet"> | |||
| </head> | |||
| <body> | |||
| <app-root></app-root> | |||