Browse Source

feat(templates): add setting management module

closes #1652
pull/1867/head
mehmet-erim 7 years ago
parent
commit
5c29d1f69f
  1. 5
      npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts
  2. 2
      npm/ng-packs/apps/dev-app/src/app/app.module.ts
  3. 7
      npm/ng-packs/apps/dev-app/src/app/lazy-libs/setting-management-wrapper.module.ts
  4. 3
      templates/app/angular/package.json
  5. 5
      templates/app/angular/src/app/app-routing.module.ts
  6. 2
      templates/app/angular/src/app/app.module.ts
  7. 7
      templates/app/angular/src/app/lazy-libs/setting-management-wrapper.module.ts
  8. 28
      templates/module/angular/README.md
  9. 9
      templates/module/angular/package.json

5
npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts

@ -25,6 +25,11 @@ const routes: Routes = [
loadChildren: () => loadChildren: () =>
import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule), import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule),
}, },
{
path: 'setting-management',
loadChildren: () =>
import('./lazy-libs/setting-management-wrapper.module').then(m => m.SettingManagementWrapperModule),
},
]; ];
@NgModule({ @NgModule({

2
npm/ng-packs/apps/dev-app/src/app/app.module.ts

@ -14,6 +14,7 @@ import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { AccountConfigModule } from '@abp/ng.account.config'; import { AccountConfigModule } from '@abp/ng.account.config';
import { IdentityConfigModule } from '@abp/ng.identity.config'; import { IdentityConfigModule } from '@abp/ng.identity.config';
import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config'; import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config';
import { SettingManagementConfigModule } from '@abp/ng.setting-management.config';
@NgModule({ @NgModule({
declarations: [AppComponent], declarations: [AppComponent],
@ -28,6 +29,7 @@ import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config';
AccountConfigModule.forRoot({ redirectUrl: '/' }), AccountConfigModule.forRoot({ redirectUrl: '/' }),
IdentityConfigModule, IdentityConfigModule,
TenantManagementConfigModule, TenantManagementConfigModule,
SettingManagementConfigModule,
BrowserModule, BrowserModule,
BrowserAnimationsModule, BrowserAnimationsModule,
AppRoutingModule, AppRoutingModule,

7
npm/ng-packs/apps/dev-app/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 {}

3
templates/app/angular/package.json

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

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

@ -25,6 +25,11 @@ const routes: Routes = [
loadChildren: () => loadChildren: () =>
import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule), import('./lazy-libs/tenant-management-wrapper.module').then(m => m.TenantManagementWrapperModule),
}, },
{
path: 'setting-management',
loadChildren: () =>
import('./lazy-libs/setting-management-wrapper.module').then(m => m.SettingManagementWrapperModule),
},
]; ];
@NgModule({ @NgModule({

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

@ -14,6 +14,7 @@ import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { AccountConfigModule } from '@abp/ng.account.config'; import { AccountConfigModule } from '@abp/ng.account.config';
import { IdentityConfigModule } from '@abp/ng.identity.config'; import { IdentityConfigModule } from '@abp/ng.identity.config';
import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config'; import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config';
import { SettingManagementConfigModule } from '@abp/ng.setting-management.config';
@NgModule({ @NgModule({
declarations: [AppComponent], declarations: [AppComponent],
@ -30,6 +31,7 @@ import { TenantManagementConfigModule } from '@abp/ng.tenant-management.config';
AccountConfigModule.forRoot({ redirectUrl: '/' }), AccountConfigModule.forRoot({ redirectUrl: '/' }),
IdentityConfigModule, IdentityConfigModule,
TenantManagementConfigModule, TenantManagementConfigModule,
SettingManagementConfigModule,
BrowserModule, BrowserModule,
BrowserAnimationsModule, BrowserAnimationsModule,
AppRoutingModule, AppRoutingModule,

7
templates/app/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 {}

28
templates/module/angular/README.md

@ -1,27 +1 @@
# MyProjectName # MyProjectName
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.3.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

9
templates/module/angular/package.json

@ -5,11 +5,10 @@
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"start:hmr": "ng serve --configuration hmr", "start:hmr": "ng serve --configuration hmr",
"build": "ng build", "build": "ng build my-project-name",
"build:prod": "ng build --configuration production", "test": "ng test my-project-name",
"test": "ng test", "lint": "ng lint my-project-name",
"lint": "ng lint", "e2e": "ng e2e my-project-name"
"e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {

Loading…
Cancel
Save