diff --git a/package-lock.json b/package-lock.json index 58cd8c89..8da824b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "primeng": "^19.0.8", "rxjs": "~7.8.0", "tslib": "^2.3.0", + "uuid": "^11.1.0", "zone.js": "~0.15.0" }, "devDependencies": { @@ -2798,6 +2799,20 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/@compodoc/compodoc/node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/@compodoc/live-server": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/@compodoc/live-server/-/live-server-1.2.3.tgz", @@ -19377,16 +19392,16 @@ } }, "node_modules/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", - "dev": true, + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", + "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], + "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { diff --git a/package.json b/package.json index 8b15b8c6..a89a798d 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "primeng": "^19.0.8", "rxjs": "~7.8.0", "tslib": "^2.3.0", + "uuid": "^11.1.0", "zone.js": "~0.15.0" }, "devDependencies": { diff --git a/src/app/app.config.ts b/src/app/app.config.ts index f8e7d787..9a51c428 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -8,6 +8,7 @@ import { provideHttpClient } from '@angular/common/http'; import { providePrimeNG } from 'primeng/config'; import { activitiesReducer } from './features/activity/store/activities.reducers'; import { myPreset } from './mytheme'; +import { associationsReducer } from './features/association/store/association.reducers'; export const appConfig: ApplicationConfig = { providers: [ @@ -15,7 +16,7 @@ export const appConfig: ApplicationConfig = { provideRouter(routes), provideHttpClient(), provideAnimationsAsync(), - provideStore({ activities: activitiesReducer }), + provideStore({ activities: activitiesReducer, associations: associationsReducer }), provideStoreDevtools({ maxAge: 25 }), providePrimeNG({ theme: { diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 081b8c0f..e90e2389 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,6 +1,7 @@ import { Routes } from '@angular/router'; import { ActivitiesHomeComponent } from './features/activity/pages/activities-home/activities-home.component'; -import { DemoComponent } from './features/activity/pages/demo/demo.component'; +import { ActivityDetailsComponent } from './features/activity/pages/activity-details/activity-details.component'; + export const routes: Routes = [ { @@ -8,7 +9,7 @@ export const routes: Routes = [ component: ActivitiesHomeComponent, }, { - path: 'demo', - component: DemoComponent, + path: 'activity/:id', + component: ActivityDetailsComponent, }, ]; diff --git a/src/app/features/activity/components/activity-card/activity-card.component.html b/src/app/features/activity/components/activity-card/activity-card.component.html index 84ad3d54..237a7c1d 100644 --- a/src/app/features/activity/components/activity-card/activity-card.component.html +++ b/src/app/features/activity/components/activity-card/activity-card.component.html @@ -1,4 +1,4 @@ -