Browse Source

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

#1652
pull/1867/head
mehmet-erim 6 years ago
parent
commit
5c1bcbb256
  1. 1
      npm/ng-packs/packages/core/src/lib/states/config.state.ts
  2. 3
      templates/module/angular/package.json
  3. 14
      templates/module/angular/src/app/app-routing.module.ts
  4. 6
      templates/module/angular/src/app/app.module.ts
  5. 7
      templates/module/angular/src/app/lazy-libs/identity-wrapper.module.ts
  6. 7
      templates/module/angular/src/app/lazy-libs/setting-management-wrapper.module.ts
  7. 7
      templates/module/angular/src/app/lazy-libs/tenant-management-wrapper.module.ts

1
npm/ng-packs/packages/core/src/lib/states/config.state.ts

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

3
templates/module/angular/package.json

@ -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",

14
templates/module/angular/src/app/app-routing.module.ts

@ -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),

6
templates/module/angular/src/app/app.module.ts

@ -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,

7
templates/module/angular/src/app/lazy-libs/identity-wrapper.module.ts

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

7
templates/module/angular/src/app/lazy-libs/setting-management-wrapper.module.ts

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

7
templates/module/angular/src/app/lazy-libs/tenant-management-wrapper.module.ts

@ -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