diff --git a/src/main/frontend/package-lock.json b/src/main/frontend/package-lock.json index dac2081..37c25c2 100644 --- a/src/main/frontend/package-lock.json +++ b/src/main/frontend/package-lock.json @@ -7597,21 +7597,6 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "ngx-cookie": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ngx-cookie/-/ngx-cookie-5.0.0.tgz", - "integrity": "sha512-wzHC3u9n8H6O2YNfoptNM78re/wnRs1guo8Qg1yThtH64eL/E34JPuzAa/g085beIGhsXMR1YDJGVLnMbluo2A==", - "requires": { - "tslib": "^2.0.0" - }, - "dependencies": { - "tslib": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", - "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" - } - } - }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", diff --git a/src/main/frontend/package.json b/src/main/frontend/package.json index 25e03c9..167b4a9 100644 --- a/src/main/frontend/package.json +++ b/src/main/frontend/package.json @@ -24,7 +24,6 @@ "@mdi/angular-material": "^5.7.55", "bootstrap": "^4.5.2", "copy-webpack-plugin": "^6.2.1", - "ngx-cookie": "^5.0.0", "rxjs": "~6.5.4", "tslib": "^1.10.0", "zone.js": "~0.10.2" diff --git a/src/main/frontend/src/app/app-routing.module.ts b/src/main/frontend/src/app/app-routing.module.ts index 5a09a55..3d0729e 100644 --- a/src/main/frontend/src/app/app-routing.module.ts +++ b/src/main/frontend/src/app/app-routing.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; -const routes: Routes = [{ path: 'color', loadChildren: () => import('./modules/colors/colors.module').then(m => m.ColorsModule) }, { path: 'account', loadChildren: () => import('./modules/accounts/accounts.module').then(m => m.AccountsModule) }]; +const routes: Routes = [{ path: 'color', loadChildren: () => import('./modules/colors/colors.module').then(m => m.ColorsModule) }, { path: 'account', loadChildren: () => import('./modules/accounts/accounts.module').then(m => m.AccountsModule) }, { path: 'employee', loadChildren: () => import('./modules/employees/employees.module').then(m => m.EmployeesModule) }, { path: 'group', loadChildren: () => import('./modules/groups/groups.module').then(m => m.GroupsModule) }]; @NgModule({ imports: [RouterModule.forRoot(routes)], diff --git a/src/main/frontend/src/app/app.module.ts b/src/main/frontend/src/app/app.module.ts index 1a679dc..fdace87 100644 --- a/src/main/frontend/src/app/app.module.ts +++ b/src/main/frontend/src/app/app.module.ts @@ -1,25 +1,20 @@ -import {BrowserModule, DomSanitizer} from '@angular/platform-browser'; -import { NgModule } from '@angular/core'; +import {DomSanitizer} from '@angular/platform-browser'; +import {NgModule} from '@angular/core'; -import { AppRoutingModule } from './app-routing.module'; -import { AppComponent } from './app.component'; -import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { SharedModule } from './modules/shared/shared.module'; -import {HttpClientModule} from "@angular/common/http"; -import {CookieModule} from "ngx-cookie"; +import {AppRoutingModule} from './app-routing.module'; +import {AppComponent} from './app.component'; import {MatIconRegistry} from "@angular/material/icon"; +import {SharedModule} from "./modules/shared/shared.module"; +import {BrowserAnimationsModule} from "@angular/platform-browser/animations"; @NgModule({ declarations: [ AppComponent ], imports: [ - BrowserModule, AppRoutingModule, - BrowserAnimationsModule, SharedModule, - HttpClientModule, - CookieModule.forRoot() + BrowserAnimationsModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/main/frontend/src/app/modules/accounts/accounts.module.ts b/src/main/frontend/src/app/modules/accounts/accounts.module.ts index 33f0a16..a935cd7 100644 --- a/src/main/frontend/src/app/modules/accounts/accounts.module.ts +++ b/src/main/frontend/src/app/modules/accounts/accounts.module.ts @@ -1,18 +1,18 @@ import {NgModule} from '@angular/core'; -import {CommonModule} from '@angular/common'; import {AccountsRoutingModule} from './accounts-routing.module'; import {LoginComponent} from './pages/login/login.component'; import {SharedModule} from "../shared/shared.module"; -import { LogoutComponent } from './pages/logout/logout.component'; +import {LogoutComponent} from './pages/logout/logout.component'; +import {CommonModule} from "@angular/common"; +import {BrowserModule} from "@angular/platform-browser"; @NgModule({ declarations: [LoginComponent, LogoutComponent], imports: [ - CommonModule, SharedModule, - AccountsRoutingModule + AccountsRoutingModule, ] }) export class AccountsModule { diff --git a/src/main/frontend/src/app/modules/accounts/pages/login/login.component.html b/src/main/frontend/src/app/modules/accounts/pages/login/login.component.html index 030ac9a..8917593 100644 --- a/src/main/frontend/src/app/modules/accounts/pages/login/login.component.html +++ b/src/main/frontend/src/app/modules/accounts/pages/login/login.component.html @@ -1,13 +1,13 @@
-Les identifiants entrés sont invalides.
-Une erreur est survenue
+Une erreur est survenue
+Numéro d'employé | +{{employee.id}} | +Nom | +{{employee.firstName}} {{employee.lastName}} | +Groupe | +
+ |
+ Dernière connexion | +
+ |
+ Permissions | +
+ |
+ + | + + | ++ | + + | +
+
+
+ |
+
---|
Numéro d'employé | +{{employee.id}} | +Prénom | +{{employee.firstName}} | +Nom | +{{employee.lastName}} | ++ | + + | +
---|
test | +
Il n'y a aucun employé dans ce groupe
+Une erreur est survenue
+Une erreur est survenue
+Nom | +{{group.name}} | +Nombre de permissions | +{{group.permissions.length}} | +Nombre d'employés | +{{group.employeeCount}} | ++ | + + | ++ | + + | +
+
+
+ |
+
---|