Browse Source

Merge pull request #23111 from abpframework/feat/logo-provider-for-templates

Angular - Enabling configurable logo provider for the templates
pull/23222/head
sumeyye 1 year ago
committed by GitHub
parent
commit
a63f274fb9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 17
      templates/app-nolayers/angular/src/app/app.config.ts
  2. 14
      templates/app/angular/src/app/app.config.ts

17
templates/app-nolayers/angular/src/app/app.config.ts

@ -1,6 +1,6 @@
import {ApplicationConfig, importProvidersFrom} from '@angular/core';
import {provideAnimations} from "@angular/platform-browser/animations";
import {provideRouter} from "@angular/router";
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideAnimations } from '@angular/platform-browser/animations';
import { provideRouter } from '@angular/router';
import { appRoutes } from './app.routes';
import { APP_ROUTE_PROVIDER } from './route.provider';
import { provideAbpCore, withOptions } from '@abp/ng.core';
@ -13,8 +13,9 @@ 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 {ThemeLeptonXModule} from "@abp/ng.theme.lepton-x";
import {SideMenuLayoutModule} from "@abp/ng.theme.lepton-x/layouts";
import { ThemeLeptonXModule } from '@abp/ng.theme.lepton-x';
import { SideMenuLayoutModule } from '@abp/ng.theme.lepton-x/layouts';
import { provideLogo, withEnvironmentOptions } from '@volo/ngx-lepton-x.core';
export const appConfig: ApplicationConfig = {
providers: [
@ -34,9 +35,7 @@ export const appConfig: ApplicationConfig = {
provideTenantManagementConfig(),
provideFeatureManagementConfig(),
provideAnimations(),
importProvidersFrom([
ThemeLeptonXModule.forRoot(),
SideMenuLayoutModule.forRoot(),
])
provideLogo(withEnvironmentOptions(environment)),
importProvidersFrom([ThemeLeptonXModule.forRoot(), SideMenuLayoutModule.forRoot()]),
],
};

14
templates/app/angular/src/app/app.config.ts

@ -1,6 +1,6 @@
import {ApplicationConfig, importProvidersFrom} from '@angular/core';
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideRouter } from '@angular/router';
import {provideAnimations} from "@angular/platform-browser/animations";
import { provideAnimations } from '@angular/platform-browser/animations';
import { appRoutes } from './app.routes';
import { APP_ROUTE_PROVIDER } from './route.provider';
@ -14,9 +14,10 @@ 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 {ThemeLeptonXModule} from "@abp/ng.theme.lepton-x";
import {SideMenuLayoutModule} from "@abp/ng.theme.lepton-x/layouts";
import {AccountLayoutModule} from "@abp/ng.theme.lepton-x/account";
import { ThemeLeptonXModule } from '@abp/ng.theme.lepton-x';
import { SideMenuLayoutModule } from '@abp/ng.theme.lepton-x/layouts';
import { AccountLayoutModule } from '@abp/ng.theme.lepton-x/account';
import { provideLogo, withEnvironmentOptions } from '@volo/ngx-lepton-x.core';
export const appConfig: ApplicationConfig = {
providers: [
@ -37,10 +38,11 @@ export const appConfig: ApplicationConfig = {
provideFeatureManagementConfig(),
provideAnimations(),
provideAbpCore(),
provideLogo(withEnvironmentOptions(environment)),
importProvidersFrom([
ThemeLeptonXModule.forRoot(),
SideMenuLayoutModule.forRoot(),
AccountLayoutModule.forRoot(),
])
]),
],
};

Loading…
Cancel
Save