@@ -6,7 +6,7 @@ import { AppComponent } from './app.component';
|
6 | 6 | import { ServiceWorkerModule } from '@angular/service-worker';
|
7 | 7 | import { environment } from '../environments/environment';
|
8 | 8 |
|
9 |
| -import { AngularFireModule } from '@angular/fire'; |
| 9 | +import { AngularFireModule } from '@angular/fire/compat'; |
10 | 10 |
|
11 | 11 | import {
|
12 | 12 | AngularFireAnalyticsModule,
|
@@ -16,17 +16,17 @@ import {
|
16 | 16 | ScreenTrackingService,
|
17 | 17 | UserTrackingService,
|
18 | 18 | COLLECTION_ENABLED
|
19 |
| -} from '@angular/fire/analytics'; |
| 19 | +} from '@angular/fire/compat/analytics'; |
20 | 20 |
|
21 | 21 | import { FirestoreComponent } from './firestore/firestore.component';
|
22 |
| -import { AngularFireDatabaseModule, USE_EMULATOR as USE_DATABASE_EMULATOR } from '@angular/fire/database'; |
23 |
| -import { AngularFirestoreModule, USE_EMULATOR as USE_FIRESTORE_EMULATOR, SETTINGS as FIRESTORE_SETTINGS } from '@angular/fire/firestore'; |
24 |
| -import { AngularFireStorageModule } from '@angular/fire/storage'; |
25 |
| -import { AngularFireAuthModule, USE_DEVICE_LANGUAGE, USE_EMULATOR as USE_AUTH_EMULATOR } from '@angular/fire/auth'; |
26 |
| -import { AngularFireMessagingModule, SERVICE_WORKER, VAPID_KEY } from '@angular/fire/messaging'; |
27 |
| -import { AngularFireFunctionsModule, USE_EMULATOR as USE_FUNCTIONS_EMULATOR, ORIGIN as FUNCTIONS_ORIGIN, NEW_ORIGIN_BEHAVIOR } from '@angular/fire/functions'; |
28 |
| -import { AngularFireRemoteConfigModule, SETTINGS as REMOTE_CONFIG_SETTINGS, DEFAULTS as REMOTE_CONFIG_DEFAULTS } from '@angular/fire/remote-config'; |
29 |
| -import { AngularFirePerformanceModule, PerformanceMonitoringService } from '@angular/fire/performance'; |
| 22 | +import { AngularFireDatabaseModule, USE_EMULATOR as USE_DATABASE_EMULATOR } from '@angular/fire/compat/database'; |
| 23 | +import { AngularFirestoreModule, USE_EMULATOR as USE_FIRESTORE_EMULATOR, SETTINGS as FIRESTORE_SETTINGS } from '@angular/fire/compat/firestore'; |
| 24 | +import { AngularFireStorageModule } from '@angular/fire/compat/storage'; |
| 25 | +import { AngularFireAuthModule, USE_DEVICE_LANGUAGE, USE_EMULATOR as USE_AUTH_EMULATOR } from '@angular/fire/compat/auth'; |
| 26 | +import { AngularFireMessagingModule, SERVICE_WORKER, VAPID_KEY } from '@angular/fire/compat/messaging'; |
| 27 | +import { AngularFireFunctionsModule, USE_EMULATOR as USE_FUNCTIONS_EMULATOR, ORIGIN as FUNCTIONS_ORIGIN } from '@angular/fire/compat/functions'; |
| 28 | +import { AngularFireRemoteConfigModule, SETTINGS as REMOTE_CONFIG_SETTINGS, DEFAULTS as REMOTE_CONFIG_DEFAULTS } from '@angular/fire/compat/remote-config'; |
| 29 | +import { AngularFirePerformanceModule, PerformanceMonitoringService } from '@angular/fire/compat/performance'; |
30 | 30 | import { AngularFireAuthGuardModule } from '@angular/fire/auth-guard';
|
31 | 31 | import { DatabaseComponent } from './database/database.component';
|
32 | 32 | import { StorageComponent } from './storage/storage.component';
|
@@ -82,7 +82,6 @@ import { UpboatsComponent } from './upboats/upboats.component';
|
82 | 82 | { provide: USE_DATABASE_EMULATOR, useValue: environment.useEmulators ? ['localhost', 9000] : undefined },
|
83 | 83 | { provide: USE_FIRESTORE_EMULATOR, useValue: environment.useEmulators ? ['localhost', 8080] : undefined },
|
84 | 84 | { provide: USE_FUNCTIONS_EMULATOR, useValue: environment.useEmulators ? ['localhost', 5001] : undefined },
|
85 |
| -{ provide: NEW_ORIGIN_BEHAVIOR, useValue: true }, |
86 | 85 | { provide: FUNCTIONS_ORIGIN, useFactory: () => isDevMode() || typeof location === 'undefined' ? undefined : location.origin },
|
87 | 86 | { provide: REMOTE_CONFIG_SETTINGS, useFactory: () => isDevMode() ? { minimumFetchIntervalMillis: 10_000 } : {} },
|
88 | 87 | { provide: REMOTE_CONFIG_DEFAULTS, useValue: { background_color: 'red' } },
|
|
0 commit comments