Update modify angular.json to add allowedCommonJsDependencies; adjust responseCounts type in home.page.ts

This commit is contained in:
Dimas Wiese
2026-03-16 00:22:08 +01:00
parent ad6ea50eb7
commit 57fe63ef1f
3 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@@ -68,3 +68,4 @@ testem.log
# System files # System files
.DS_Store .DS_Store
Thumbs.db Thumbs.db
CLAUDE.md

View File

@@ -32,7 +32,8 @@
} }
], ],
"styles": ["src/global.scss", "src/theme/variables.scss"], "styles": ["src/global.scss", "src/theme/variables.scss"],
"scripts": [] "scripts": [],
"allowedCommonJsDependencies": ["sdp", "webrtc-adapter"]
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -136,7 +137,8 @@
"cli": { "cli": {
"schematicCollections": [ "schematicCollections": [
"@ionic/angular-toolkit" "@ionic/angular-toolkit"
] ],
"analytics": false
}, },
"schematics": { "schematics": {
"@ionic/angular-toolkit:component": { "@ionic/angular-toolkit:component": {

View File

@@ -22,7 +22,7 @@ import type { Survey } from '../shared/models/survey.models';
export class HomePage implements OnInit, OnDestroy { export class HomePage implements OnInit, OnDestroy {
surveys: Survey[] = []; surveys: Survey[] = [];
/** Map from surveyId → response count (refreshed on each emission) */ /** Map from surveyId → response count (refreshed on each emission) */
responseCounts: Record<string, number> = {}; responseCounts: Record<string, number | undefined> = {};
private surveySubscription?: Subscription; private surveySubscription?: Subscription;