update angular

This commit is contained in:
2025-01-02 15:01:59 +01:00
parent 73d3ecfd42
commit 802c309679
199 changed files with 13745 additions and 11691 deletions

View File

@@ -10,8 +10,9 @@ import {ShowService} from '../shows/services/show.service';
export class GuestShowService {
public constructor(
private showService: ShowService,
private guestShowDataService: GuestShowDataService
) {}
private guestShowDataService: GuestShowDataService,
) {
}
public async share(show: Show, songs: Song[]): Promise<string> {
const data = {

View File

@@ -11,7 +11,7 @@ describe('GuestComponent', () => {
void TestBed.configureTestingModule({
declarations: [GuestComponent],
}).compileComponents();
})
}),
);
beforeEach(() => {

View File

@@ -9,19 +9,21 @@ import {ConfigService} from '../../services/config.service';
selector: 'app-guest',
templateUrl: './guest.component.html',
styleUrls: ['./guest.component.less'],
standalone: false,
})
export class GuestComponent {
public show$ = this.currentRoute.params.pipe(
map(param => param.id as string),
switchMap(id => this.service.read$(id))
switchMap(id => this.service.read$(id)),
);
public config$ = this.configService.get$();
public constructor(
private currentRoute: ActivatedRoute,
private service: GuestShowDataService,
private configService: ConfigService
) {}
private configService: ConfigService,
) {
}
public trackBy = (index: number, show: Song) => show.id;
}

View File

@@ -20,4 +20,5 @@ import {ShowTypeTranslaterModule} from '../../widget-modules/pipes/show-type-tra
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class GuestModule {}
export class GuestModule {
}