diff --git a/package-lock.json b/package-lock.json index f140234..a1bf785 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "rxjs": "~7.8.1", "sse.js": "^2.4.1", "tslib": "^2.6.2", + "uuid": "^9.0.1", "zone.js": "~0.14.5" }, "devDependencies": { @@ -13050,6 +13051,15 @@ "websocket-driver": "^0.7.4" } }, + "node_modules/sockjs/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/socks": { "version": "2.8.3", "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz", @@ -14007,10 +14017,13 @@ } }, "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } diff --git a/package.json b/package.json index afaa066..dcd6964 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "rxjs": "~7.8.1", "sse.js": "^2.4.1", "tslib": "^2.6.2", + "uuid": "^9.0.1", "zone.js": "~0.14.5" }, "devDependencies": { diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 0157bb2..9f60cad 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,24 +1,22 @@ -import {NgModule} from '@angular/core'; -import {RouterModule, Routes} from '@angular/router'; -import {EditorComponent} from './components/editor/editor.component'; -import {LandingPageComponent} from './components/landing-page/landing-page.component'; -import {DocumentationComponent} from './components/documentation/documentation.component'; -import {FormComponent} from './components/form/form.component'; -import {TermsOfServiceComponent} from './components/terms-of-service/terms-of-service.component'; -import {OurStoryComponent} from './components/our-story/our-story.component'; -import {PrivacyPolicyComponent} from './components/privacy-policy/privacy-policy.component'; -import {WorksListComponent} from "./components/works-list/works-list.component"; +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import { WorkComponent } from './components/work/work.component'; +import { EditorComponent } from './components/editor/editor.component'; +import { LandingPageComponent } from './components/landing-page/landing-page.component'; +import { DocumentationComponent } from './components/documentation/documentation.component'; +import { FormComponent } from './components/form/form.component'; +import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component'; +import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component'; // Toutes les routes de l'application sont définies ici const routes: Routes = [ - {path: '', component: LandingPageComponent}, - {path: 'editor', component: EditorComponent}, - {path: 'documentation', component: DocumentationComponent}, - {path: 'contact', component: FormComponent}, - {path: 'our-story', component: OurStoryComponent}, - {path: 'terms-of-service', component: TermsOfServiceComponent}, - {path: 'privacy-policy', component: PrivacyPolicyComponent}, - {path: 'works', component: WorksListComponent}, + { path: '', component: LandingPageComponent }, + { path: 'work', component: WorkComponent }, + { path: 'editor', component: EditorComponent }, + { path: 'documentation', component: DocumentationComponent }, + { path: 'contact', component: FormComponent }, + { path: 'terms-of-service', component: TermsOfServiceComponent }, + { path: 'privacy-policy', component: PrivacyPolicyComponent }, ]; @NgModule({ diff --git a/src/app/components/editor/editor.component.html b/src/app/components/editor/editor.component.html index a4cc5fd..f7a6898 100644 --- a/src/app/components/editor/editor.component.html +++ b/src/app/components/editor/editor.component.html @@ -1,112 +1,133 @@