mirror of https://github.com/abpframework/abp.git
6 changed files with 13 additions and 46 deletions
@ -1,42 +1,10 @@ |
|||
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; |
|||
import { provideServerRendering } from '@angular/platform-server'; |
|||
import { appConfig } from './app.config'; |
|||
import { provideAbpCore, withOptions } from '@abp/ng.core'; |
|||
import { environment } from '../environments/environment'; |
|||
import { registerLocale, safeRegisterLocale } from '@abp/ng.core/locale'; |
|||
import { provideAbpOAuth } from '@abp/ng.oauth'; |
|||
import { provideAbpThemeShared } from '@abp/ng.theme.shared'; |
|||
import { provideSettingManagementConfig } from '@abp/ng.setting-management/config'; |
|||
import { provideAccountConfig } from '@abp/ng.account/config'; |
|||
import { provideIdentityConfig } from '@abp/ng.identity/config'; |
|||
import { provideTenantManagementConfig } from '@abp/ng.tenant-management/config'; |
|||
import { provideFeatureManagementConfig } from '@abp/ng.feature-management'; |
|||
import { APP_ROUTE_PROVIDER } from './route.provider'; |
|||
import { provideThemeBasicConfig } from '@abp/ng.theme.basic'; |
|||
import { provideAnimations } from '@angular/platform-browser/animations'; |
|||
|
|||
const serverConfig: ApplicationConfig = { |
|||
providers: [ |
|||
provideAbpCore( |
|||
withOptions({ |
|||
environment, |
|||
registerLocaleFn: safeRegisterLocale(), |
|||
sendNullsAsQueryParam: false, |
|||
skipGetAppConfiguration: false, |
|||
}), |
|||
), |
|||
APP_ROUTE_PROVIDER, |
|||
provideAbpOAuth({ ssr: true }), |
|||
provideAbpThemeShared(), |
|||
provideSettingManagementConfig(), |
|||
provideAccountConfig(), |
|||
provideIdentityConfig(), |
|||
provideTenantManagementConfig(), |
|||
provideFeatureManagementConfig(), |
|||
provideServerRendering(), |
|||
provideThemeBasicConfig(), |
|||
provideAnimations(), |
|||
], |
|||
providers: [provideAbpOAuth({ ssr: true }), provideServerRendering()], |
|||
}; |
|||
|
|||
export const config = mergeApplicationConfig(appConfig, serverConfig); |
|||
|
|||
@ -1,3 +1,4 @@ |
|||
export * from './oauth.service'; |
|||
export * from './oauth-error-filter.service'; |
|||
export * from './remember-me.service' |
|||
export * from './remember-me.service'; |
|||
export * from './browser-token-storage.service'; |
|||
|
|||
Loading…
Reference in new issue