feat(module-template): add identity, tenant management, setting-management modules

#1652
pull/1867/head
mehmet-erim 6 years ago
parent 633d1cd155
commit 5c1bcbb256

@ -230,6 +230,7 @@ export class ConfigState {
});
}
if (typeof localization !== 'string') localization = '';
return localization || defaultValue || key;
},
);

@ -15,6 +15,9 @@
"dependencies": {
"@abp/ng.account": "^0.9.0",
"@abp/ng.theme.basic": "^0.9.0",
"@abp/ng.identity": "^0.9.0",
"@abp/ng.tenant-management": "^0.9.0",
"@abp/ng.setting-management": "^0.9.0",
"@angular/animations": "~8.2.8",
"@angular/common": "~8.2.8",
"@angular/compiler": "~8.2.8",

@ -12,10 +12,24 @@ const routes: Routes = [
} as ABP.Route,
},
},
{
path: 'identity',
loadChildren: () => import('./lazy-libs/identity-wrapper.module').then(m => m.IdentityWrapperModule),
},
{
path: 'tenant-management',
loadChildren: () =>
import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule),
},
{
path: 'account',
loadChildren: () => import('./lazy-libs/account-wrapper.module').then(m => m.AccountWrapperModule),
},
{
path: 'setting-management',
loadChildren: () =>
import('./lazy-libs/setting-management-wrapper.module').then(m => m.SettingManagementWrapperModule),
},
{
path: 'my-project-name',
loadChildren: () => import('./lazy-libs/my-project-name-wrapper.module').then(m => m.MyProjectNameWrapperModule),

@ -12,6 +12,9 @@ import { AppComponent } from './app.component';
import { SharedModule } from './shared/shared.module';
import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { AccountConfigModule } from '@abp/ng.account.config';
import { IdentityConfigModule } from '@abp/ng.identity.config';
import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config';
import { SettingManagementConfigModule } from '@abp/ng.setting-management.config';
import { MyProjectNameConfigModule } from '../../projects/my-project-name-config/src/public-api';
@NgModule({
@ -27,6 +30,9 @@ import { MyProjectNameConfigModule } from '../../projects/my-project-name-config
OAuthModule.forRoot(),
NgxsModule.forRoot([]),
AccountConfigModule.forRoot({ redirectUrl: '/' }),
IdentityConfigModule,
TenantManagementConfigModule,
SettingManagementConfigModule,
MyProjectNameConfigModule,
BrowserModule,
BrowserAnimationsModule,

@ -0,0 +1,7 @@
import { NgModule } from '@angular/core';
import { IdentityModule } from '@abp/ng.identity';
@NgModule({
imports: [IdentityModule],
})
export class IdentityWrapperModule {}

@ -0,0 +1,7 @@
import { NgModule } from '@angular/core';
import { SettingManagementModule } from '@abp/ng.setting-management';
@NgModule({
imports: [SettingManagementModule],
})
export class SettingManagementWrapperModule {}

@ -0,0 +1,7 @@
import { NgModule } from '@angular/core';
import { TenantManagementModule } from '@abp/ng.tenant-management';
@NgModule({
imports: [TenantManagementModule],
})
export class TenantManagementWrapperModule {}
Loading…
Cancel
Save