@open-rlb/ng-app 3.0.19 → 3.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i1$3 from '@angular/common/http';
|
|
2
2
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, Injectable, Inject, Optional, EventEmitter, importProvidersFrom, makeStateKey, makeEnvironmentProviders, Pipe, Input, Component, PLATFORM_ID, NgModule, Directive, inject,
|
|
4
|
+
import { InjectionToken, Injectable, Inject, Optional, EventEmitter, importProvidersFrom, makeStateKey, makeEnvironmentProviders, Pipe, Input, Component, PLATFORM_ID, NgModule, Directive, inject, provideAppInitializer, isDevMode } from '@angular/core';
|
|
5
5
|
import * as i2 from '@angular/router';
|
|
6
6
|
import { NavigationEnd, RoutesRecognized, RouterModule, Router, provideRouter } from '@angular/router';
|
|
7
7
|
import * as i1$4 from '@angular/service-worker';
|
|
@@ -3004,10 +3004,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
3004
3004
|
}]
|
|
3005
3005
|
}] });
|
|
3006
3006
|
|
|
3007
|
-
function authInitializer(authService) {
|
|
3008
|
-
return () => authService.checkAuthMultiple();
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
3007
|
const verifyDeactivate = (component, currentRoute, currentState, nextState) => {
|
|
3012
3008
|
return component.verifyDeactivate();
|
|
3013
3009
|
};
|
|
@@ -3031,6 +3027,13 @@ function provideRlbConfig(env) {
|
|
|
3031
3027
|
enabled: !isDevMode(),
|
|
3032
3028
|
registrationStrategy: 'registerWhenStable:15000',
|
|
3033
3029
|
}),
|
|
3030
|
+
provideAppInitializer(() => {
|
|
3031
|
+
inject(AppsService);
|
|
3032
|
+
}),
|
|
3033
|
+
provideAppInitializer(() => {
|
|
3034
|
+
const authService = inject(AuthenticationService);
|
|
3035
|
+
return authService.checkAuthMultiple();
|
|
3036
|
+
}),
|
|
3034
3037
|
{ provide: RLB_CFG, useValue: env },
|
|
3035
3038
|
{ provide: RLB_CFG_ENV, useValue: env.environment },
|
|
3036
3039
|
{ provide: RLB_CFG_CMS, useValue: env.cms },
|
|
@@ -3053,12 +3056,18 @@ function provideRlbConfig(env) {
|
|
|
3053
3056
|
},
|
|
3054
3057
|
multi: true,
|
|
3055
3058
|
},
|
|
3056
|
-
{
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
},
|
|
3059
|
+
// {
|
|
3060
|
+
// provide: APP_INITIALIZER,
|
|
3061
|
+
// useFactory: authInitializer,
|
|
3062
|
+
// deps: [AuthenticationService],
|
|
3063
|
+
// multi: true
|
|
3064
|
+
// },
|
|
3065
|
+
// {
|
|
3066
|
+
// provide: APP_INITIALIZER,
|
|
3067
|
+
// useFactory: appsServiceInitializer,
|
|
3068
|
+
// deps: [AppsService],
|
|
3069
|
+
// multi: true
|
|
3070
|
+
// },
|
|
3062
3071
|
];
|
|
3063
3072
|
}
|
|
3064
3073
|
function provideApp(app) {
|