Просмотр исходного кода

ajout du nom de l'agent et correction des imports

master
trauchessec 2 недель назад
Родитель
Сommit
8a42698cc1
6 измененных файлов: 16 добавлений и 7 удалений
  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 Просмотреть файл

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

+ 2
- 0
src/app/pages/dashboard/dashboard.html Просмотреть файл

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

+ 2
- 2
src/app/shared/alert/alert-error.component.ts Просмотреть файл

@@ -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
- 1
src/app/shared/alert/alert.component.ts Просмотреть файл

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

+ 1
- 1
src/app/shared/language/translate.directive.ts Просмотреть файл

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

+ 1
- 0
src/index.html Просмотреть файл

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

Загрузка…
Отмена
Сохранить