Update modify angular.json to add allowedCommonJsDependencies; adjust responseCounts type in home.page.ts
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -68,3 +68,4 @@ testem.log
|
|||||||
# System files
|
# System files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
CLAUDE.md
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user