Browse Source

ajout du nom de l'agent et correction des imports

master
trauchessec 2 weeks ago
parent
commit
8a42698cc1
6 changed files with 16 additions and 7 deletions
  1. +9
    -3
      src/app/app.routes.ts
  2. +2
    -0
      src/app/pages/dashboard/dashboard.html
  3. +2
    -2
      src/app/shared/alert/alert-error.component.ts
  4. +1
    -1
      src/app/shared/alert/alert.component.ts
  5. +1
    -1
      src/app/shared/language/translate.directive.ts
  6. +1
    -0
      src/index.html

+ 9
- 3
src/app/app.routes.ts View File

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: [

+ 2
- 0
src/app/pages/dashboard/dashboard.html View File

> >
<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">

+ 2
- 2
src/app/shared/alert/alert-error.component.ts View File

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',

+ 1
- 1
src/app/shared/alert/alert.component.ts View File

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',

+ 1
- 1
src/app/shared/language/translate.directive.ts View File

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

+ 1
- 0
src/index.html View File

<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>

Loading…
Cancel
Save