From 897a7ef1dd6e5b4b3626a2cbf37381edeb6efdc6 Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 14 Sep 2026 08:52:42 +0200 Subject: [PATCH] fix(deps): complete Angular migrations after rebasing on master --- apps/website/tsconfig.json | 3 ++- docker/Dockerfile | 2 +- .../m3u-vod-detail.component.ts | 2 ++ .../source-cleanup-dialog.component.ts | 19 +++++++++++++++---- .../source-health-indicator.component.ts | 2 ++ .../live-stream-layout.sidebar-levels.spec.ts | 19 +++++++++++++++++-- ...am-live-channel-navigation.service.spec.ts | 9 ++++++++- libs/shared/host-health/tsconfig.json | 3 ++- ...ce-live-categories-popover.service.spec.ts | 7 ++++++- 9 files changed, 55 insertions(+), 11 deletions(-) diff --git a/apps/website/tsconfig.json b/apps/website/tsconfig.json index f64517096..f3946efd2 100644 --- a/apps/website/tsconfig.json +++ b/apps/website/tsconfig.json @@ -5,6 +5,7 @@ "compilerOptions": { "paths": { "@/*": ["./src/*"] - } + }, + "ignoreDeprecations": "6.0" } } diff --git a/docker/Dockerfile b/docker/Dockerfile index 86da3f98d..c5502fa8d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,7 +8,7 @@ RUN apk add --no-cache python3 make g++ git WORKDIR /usr/src/app COPY .npmrc ./ -COPY package.json pnpm-lock.yaml ./ +COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ COPY patches ./patches # Node 25 unbundled Corepack, so `corepack enable` cannot be the way pnpm gets diff --git a/libs/playlist/m3u/feature-player/src/lib/m3u-vod-detail/m3u-vod-detail.component.ts b/libs/playlist/m3u/feature-player/src/lib/m3u-vod-detail/m3u-vod-detail.component.ts index 253b91bb6..3ed046a76 100644 --- a/libs/playlist/m3u/feature-player/src/lib/m3u-vod-detail/m3u-vod-detail.component.ts +++ b/libs/playlist/m3u/feature-player/src/lib/m3u-vod-detail/m3u-vod-detail.component.ts @@ -7,6 +7,7 @@ import { output, signal, untracked, + ChangeDetectionStrategy, } from '@angular/core'; import { MatIcon } from '@angular/material/icon'; import { TranslatePipe } from '@ngx-translate/core'; @@ -59,6 +60,7 @@ import { M3uVodMetadataService } from './m3u-vod-metadata.service'; TranslatePipe, ], templateUrl: './m3u-vod-detail.component.html', + changeDetection: ChangeDetectionStrategy.Eager, styleUrls: ['./m3u-vod-detail.component.scss'], }) export class M3uVodDetailComponent { diff --git a/libs/playlist/shared/ui/src/lib/source-health/source-cleanup-dialog.component.ts b/libs/playlist/shared/ui/src/lib/source-health/source-cleanup-dialog.component.ts index d61019e16..347cefaac 100644 --- a/libs/playlist/shared/ui/src/lib/source-health/source-cleanup-dialog.component.ts +++ b/libs/playlist/shared/ui/src/lib/source-health/source-cleanup-dialog.component.ts @@ -1,4 +1,11 @@ -import { Component, DestroyRef, computed, effect, inject } from '@angular/core'; +import { + Component, + DestroyRef, + computed, + effect, + inject, + ChangeDetectionStrategy, +} from '@angular/core'; import { DatePipe } from '@angular/common'; import { MAT_DIALOG_DATA, @@ -107,7 +114,9 @@ export interface SourceCleanupDialogData extends SourceCleanupContext { @if (entry.status === 'ready') { {{ 'SOURCE_HEALTH.REASON.' + - entry.health?.reason | translate + $safeNavigationMigration( + entry.health?.reason + ) | translate }} } @else { {{ @@ -117,8 +126,9 @@ export interface SourceCleanupDialogData extends SourceCleanupContext { } @if (entry.health?.checkedAt) { } @if (entry.warning) { @@ -170,6 +180,7 @@ export interface SourceCleanupDialogData extends SourceCleanupContext { } `, + changeDetection: ChangeDetectionStrategy.Eager, styles: [ ` :host { diff --git a/libs/playlist/shared/ui/src/lib/source-health/source-health-indicator.component.ts b/libs/playlist/shared/ui/src/lib/source-health/source-health-indicator.component.ts index eee37e0c5..3637c056a 100644 --- a/libs/playlist/shared/ui/src/lib/source-health/source-health-indicator.component.ts +++ b/libs/playlist/shared/ui/src/lib/source-health/source-health-indicator.component.ts @@ -6,6 +6,7 @@ import { inject, input, untracked, + ChangeDetectionStrategy, } from '@angular/core'; import { MatTooltip } from '@angular/material/tooltip'; import { TranslateService } from '@ngx-translate/core'; @@ -28,6 +29,7 @@ import { PlaylistMeta, sourceHealthType } from '@iptvnator/shared/interfaces'; role="img" > }`, + changeDetection: ChangeDetectionStrategy.Eager, styles: [ ` :host { diff --git a/libs/portal/xtream/feature/src/lib/live-stream-layout/live-stream-layout.sidebar-levels.spec.ts b/libs/portal/xtream/feature/src/lib/live-stream-layout/live-stream-layout.sidebar-levels.spec.ts index 009de836b..523dfbc9e 100644 --- a/libs/portal/xtream/feature/src/lib/live-stream-layout/live-stream-layout.sidebar-levels.spec.ts +++ b/libs/portal/xtream/feature/src/lib/live-stream-layout/live-stream-layout.sidebar-levels.spec.ts @@ -1,6 +1,13 @@ import { EpgArchiveDownloadService } from '@iptvnator/ui/epg'; import { EpgArchiveCopyService } from '@iptvnator/ui/epg'; -import { Component, Directive, input, output, signal } from '@angular/core'; +import { + Component, + Directive, + input, + output, + signal, + ChangeDetectionStrategy, +} from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { ActivatedRoute, Router, convertToParamMap } from '@angular/router'; @@ -40,6 +47,7 @@ import { LiveStreamLayoutComponent } from './live-stream-layout.component'; @Component({ selector: 'app-portal-channels-list', standalone: true, + changeDetection: ChangeDetectionStrategy.Eager, template: '', }) class StubPortalChannelsListComponent { @@ -56,13 +64,19 @@ class StubPortalChannelsListComponent { @Component({ selector: 'app-channel-list-hidden-state', standalone: true, + changeDetection: ChangeDetectionStrategy.Eager, template: '
', }) class StubChannelListHiddenStateComponent { readonly restore = output(); } -@Component({ selector: 'app-grid-list', standalone: true, template: '' }) +@Component({ + selector: 'app-grid-list', + standalone: true, + changeDetection: ChangeDetectionStrategy.Eager, + template: '', +}) class StubGridListComponent { readonly items = input([]); readonly isLoading = input(false); @@ -75,6 +89,7 @@ class StubGridListComponent { @Component({ selector: 'app-web-player-view, app-epg-timeline, app-epg-list-view', standalone: true, + changeDetection: ChangeDetectionStrategy.Eager, template: '', }) class StubPassiveComponent {} diff --git a/libs/portal/xtream/feature/src/lib/live-stream-layout/xtream-live-channel-navigation.service.spec.ts b/libs/portal/xtream/feature/src/lib/live-stream-layout/xtream-live-channel-navigation.service.spec.ts index c3df716e3..88bf0f9e0 100644 --- a/libs/portal/xtream/feature/src/lib/live-stream-layout/xtream-live-channel-navigation.service.spec.ts +++ b/libs/portal/xtream/feature/src/lib/live-stream-layout/xtream-live-channel-navigation.service.spec.ts @@ -1,4 +1,10 @@ -import { Component, computed, inject, signal } from '@angular/core'; +import { + Component, + computed, + inject, + signal, + ChangeDetectionStrategy, +} from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { ActivatedRoute, @@ -19,6 +25,7 @@ const other = { xtream_id: 3, category_id: '20', title: 'Other' }; @Component({ template: '', + changeDetection: ChangeDetectionStrategy.Eager, providers: [XtreamLiveChannelNavigationService], }) class NavigationHostComponent { diff --git a/libs/shared/host-health/tsconfig.json b/libs/shared/host-health/tsconfig.json index ab8e5af25..26fb021ed 100644 --- a/libs/shared/host-health/tsconfig.json +++ b/libs/shared/host-health/tsconfig.json @@ -8,7 +8,8 @@ "noImplicitOverride": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "noPropertyAccessFromIndexSignature": true + "noPropertyAccessFromIndexSignature": true, + "ignoreDeprecations": "6.0" }, "files": [], "include": [], diff --git a/libs/workspace/shell/feature/src/lib/workspace-live-categories-popover/workspace-live-categories-popover.service.spec.ts b/libs/workspace/shell/feature/src/lib/workspace-live-categories-popover/workspace-live-categories-popover.service.spec.ts index f5ed4947c..23f787678 100644 --- a/libs/workspace/shell/feature/src/lib/workspace-live-categories-popover/workspace-live-categories-popover.service.spec.ts +++ b/libs/workspace/shell/feature/src/lib/workspace-live-categories-popover/workspace-live-categories-popover.service.spec.ts @@ -5,6 +5,7 @@ import { input, output, signal, + ChangeDetectionStrategy, } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; @@ -29,6 +30,7 @@ import { WorkspaceLiveCategoriesPopoverService } from './workspace-live-categori `, + changeDetection: ChangeDetectionStrategy.Eager, standalone: true, }) class StubWorkspaceContextPanelComponent { @@ -82,7 +84,10 @@ describe('WorkspaceLiveCategoriesPopoverService', () => { provide: LIVE_CATEGORIES_POPOVER, useExisting: WorkspaceLiveCategoriesPopoverService, }, - { provide: WorkspaceShellContextDrawerService, useValue: drawer }, + { + provide: WorkspaceShellContextDrawerService, + useValue: drawer, + }, { provide: Router, useValue: { events: routerEvents.asObservable() },