Browse Source

Merge pull request #7 from abpframework/dev

merge
pull/2019/head
Marcelo M. M 7 years ago
committed by GitHub
parent
commit
98143e7264
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs
  2. 30
      npm/ng-packs/angular.json
  3. 4
      npm/ng-packs/package.json
  4. 77
      npm/ng-packs/packages/core/src/lib/tests/ng-model.component.spec.ts
  5. 7
      npm/ng-packs/packages/feature-management/jest.config.js
  6. 8
      npm/ng-packs/packages/feature-management/tsconfig.spec.json
  7. 7
      npm/ng-packs/packages/identity/jest.config.js
  8. 8
      npm/ng-packs/packages/identity/tsconfig.spec.json
  9. 7
      npm/ng-packs/packages/permission-management/jest.config.js
  10. 32
      npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts
  11. 2
      npm/ng-packs/packages/permission-management/src/lib/services/permission-management-state.service.ts
  12. 2
      npm/ng-packs/packages/permission-management/src/lib/states/permission-management.state.ts
  13. 8
      npm/ng-packs/packages/permission-management/tsconfig.spec.json
  14. 1
      npm/ng-packs/packages/setting-management-config/src/lib/services/setting-management-config.service.ts
  15. 4
      npm/ng-packs/packages/setting-management/src/lib/setting-management-routing.module.ts
  16. 7
      npm/ng-packs/packages/tenant-management/jest.config.js
  17. 2
      npm/ng-packs/packages/tenant-management/src/lib/services/tenant-management-state.service.ts
  18. 8
      npm/ng-packs/packages/tenant-management/tsconfig.spec.json
  19. 7
      npm/ng-packs/packages/theme-basic/jest.config.js
  20. 4
      npm/ng-packs/packages/theme-basic/src/lib/components/application-layout/application-layout.component.html
  21. 8
      npm/ng-packs/packages/theme-basic/tsconfig.spec.json
  22. 2
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs
  23. 2
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain/BookStoreDomainModule.cs
  24. 6
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.HttpApi.Host/BookStoreHttpApiHostModule.cs
  25. 2
      samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.MongoDB/MongoDb/BookStoreMongoDbModule.cs
  26. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs
  27. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.Domain/BookStoreDomainModule.cs
  28. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/BookStoreMigrationsDbContextFactory.cs
  29. 2
      samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs
  30. 4
      samples/BookStore-Modular/application/src/Acme.BookStore.Web/BookStoreWebModule.cs
  31. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/BookManagementHttpApiHostModule.cs
  32. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/EntityFrameworkCore/MyProjectHttpApiHostMigrationsDbContextFactory.cs
  33. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/BookManagementIdentityServerModule.cs
  34. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/EntityFrameworkCore/IdentityServerHostMigrationsDbContextFactory.cs
  35. 10
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Host/BookManagementWebHostModule.cs
  36. 2
      samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Unified/EntityFrameworkCore/UnifiedDbContextFactory.cs
  37. 2
      samples/BookStore/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs
  38. 2
      samples/BookStore/src/Acme.BookStore.Domain/BookStoreDomainModule.cs
  39. 2
      samples/BookStore/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs
  40. 4
      samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs
  41. 2
      samples/DashboardDemo/src/DashboardDemo.Domain.Shared/DashboardDemoDomainSharedModule.cs
  42. 2
      samples/DashboardDemo/src/DashboardDemo.Domain/DashboardDemoDomainModule.cs
  43. 2
      samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/DashboardDemoMigrationsDbContextFactory.cs
  44. 2
      samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore/EntityFrameworkCore/DashboardDemoEntityFrameworkCoreModule.cs
  45. 4
      samples/DashboardDemo/src/DashboardDemo.Web/DashboardDemoWebModule.cs

7
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -233,6 +233,13 @@ namespace Volo.Docs.Pages.Documents.Project
} }
} }
} }
else
{
LatestVersionInfo = new VersionInfoViewModel(
$"{DocsAppConsts.Latest}",
DocsAppConsts.Latest,
true);
}
VersionSelectItems = versions.Select(v => new SelectListItem VersionSelectItems = versions.Select(v => new SelectListItem
{ {

30
npm/ng-packs/angular.json

@ -75,11 +75,9 @@
} }
}, },
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-builders/jest:run",
"options": { "options": {
"main": "packages/theme-basic/src/test.ts", "coverage": true
"tsConfig": "packages/theme-basic/tsconfig.spec.json",
"karmaConfig": "packages/theme-basic/karma.conf.js"
} }
}, },
"lint": { "lint": {
@ -135,11 +133,9 @@
} }
}, },
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-builders/jest:run",
"options": { "options": {
"main": "packages/permission-management/src/test.ts", "coverage": true
"tsConfig": "packages/permission-management/tsconfig.spec.json",
"karmaConfig": "packages/permission-management/karma.conf.js"
} }
}, },
"lint": { "lint": {
@ -168,11 +164,9 @@
} }
}, },
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-builders/jest:run",
"options": { "options": {
"main": "packages/identity/src/test.ts", "coverage": true
"tsConfig": "packages/identity/tsconfig.spec.json",
"karmaConfig": "packages/identity/karma.conf.js"
} }
}, },
"lint": { "lint": {
@ -198,11 +192,9 @@
} }
}, },
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-builders/jest:run",
"options": { "options": {
"main": "packages/feature-management/src/test.ts", "coverage": true
"tsConfig": "packages/feature-management/tsconfig.spec.json",
"karmaConfig": "packages/feature-management/karma.conf.js"
} }
}, },
"lint": { "lint": {
@ -231,11 +223,9 @@
} }
}, },
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-builders/jest:run",
"options": { "options": {
"main": "packages/tenant-management/src/test.ts", "coverage": true
"tsConfig": "packages/tenant-management/tsconfig.spec.json",
"karmaConfig": "packages/tenant-management/karma.conf.js"
} }
}, },
"lint": { "lint": {

4
npm/ng-packs/package.json

@ -50,12 +50,12 @@
"codelyzer": "^5.1.2", "codelyzer": "^5.1.2",
"cz-conventional-changelog": "3.0.2", "cz-conventional-changelog": "3.0.2",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"husky": "^3.0.7", "husky": "^3.0.9",
"jest": "^24.9.0", "jest": "^24.9.0",
"jest-preset-angular": "^7.1.1", "jest-preset-angular": "^7.1.1",
"just-clone": "3.1.0", "just-clone": "3.1.0",
"just-compare": "^1.3.0", "just-compare": "^1.3.0",
"lint-staged": "^9.4.0", "lint-staged": "^9.4.2",
"ng-packagr": "^5.5.0", "ng-packagr": "^5.5.0",
"ngx-perfect-scrollbar": "^8.0.0", "ngx-perfect-scrollbar": "^8.0.0",
"ngxs-reset-plugin": "^1.2.0", "ngxs-reset-plugin": "^1.2.0",

77
npm/ng-packs/packages/core/src/lib/tests/ng-model.component.spec.ts

@ -0,0 +1,77 @@
import { Component, forwardRef, Input, OnInit } from '@angular/core';
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
import { createHostFactory, SpectatorHost } from '@ngneat/spectator';
import { AbstractNgModelComponent } from '../abstracts';
@Component({
selector: 'abp-test',
template: '',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => TestComponent),
multi: true,
},
],
})
export class TestComponent extends AbstractNgModelComponent implements OnInit {
@Input() override: boolean;
ngOnInit() {
setTimeout(() => {
if (this.override) {
this.value = 'test';
}
}, 0);
}
}
describe('AbstractNgModelComponent', () => {
const createHost = createHostFactory({
component: TestComponent,
declarations: [AbstractNgModelComponent],
imports: [FormsModule],
});
it('should pass the value with ngModel', done => {
const spectator = createHost('<abp-test [(ngModel)]="val"></abp-test>', {
hostProps: {
val: '1',
},
});
setTimeout(() => {
expect(spectator.component.value).toBe('1');
done();
}, 0);
});
it('should set the value with ngModel', done => {
const spectator = createHost('<abp-test [(ngModel)]="val" [override]="override"></abp-test>', {
hostProps: {
val: '2',
override: true,
},
});
setTimeout(() => {
expect(spectator.hostComponent['val']).toBe('test');
done();
}, 0);
});
it('should not change value when disable is true', done => {
const spectator = createHost('<abp-test [(ngModel)]="val" [disabled]="true"></abp-test>', {
hostProps: {
val: '2',
},
});
spectator.component['val'] = '3';
setTimeout(() => {
expect(spectator.hostComponent['val']).toBe('2');
done();
}, 0);
});
});

7
npm/ng-packs/packages/feature-management/jest.config.js

@ -0,0 +1,7 @@
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'feature-management',
'ts-jest': { allowSyntheticDefaultImports: true },
};

8
npm/ng-packs/packages/feature-management/tsconfig.spec.json

@ -1,9 +1,11 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/spec", "emitDecoratorMetadata": true,
"types": ["node", "jest"] "esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
}, },
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"] "include": ["**/*.spec.ts", "**/*.d.ts"]
} }

7
npm/ng-packs/packages/identity/jest.config.js

@ -0,0 +1,7 @@
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'identity',
'ts-jest': { allowSyntheticDefaultImports: true },
};

8
npm/ng-packs/packages/identity/tsconfig.spec.json

@ -1,9 +1,11 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/spec", "emitDecoratorMetadata": true,
"types": ["node", "jest"] "esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
}, },
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"] "include": ["**/*.spec.ts", "**/*.d.ts"]
} }

7
npm/ng-packs/packages/permission-management/jest.config.js

@ -0,0 +1,7 @@
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'permission-management',
'ts-jest': { allowSyntheticDefaultImports: true },
};

32
npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts

@ -7,7 +7,7 @@ import {
Output, Output,
Renderer2, Renderer2,
SimpleChanges, SimpleChanges,
TrackByFunction TrackByFunction,
} from '@angular/core'; } from '@angular/core';
import { Select, Store } from '@ngxs/store'; import { Select, Store } from '@ngxs/store';
import { from, Observable } from 'rxjs'; import { from, Observable } from 'rxjs';
@ -22,7 +22,7 @@ type PermissionWithMargin = PermissionManagement.Permission & {
@Component({ @Component({
selector: 'abp-permission-management', selector: 'abp-permission-management',
templateUrl: './permission-management.component.html' templateUrl: './permission-management.component.html',
}) })
export class PermissionManagementComponent implements OnInit, OnChanges { export class PermissionManagementComponent implements OnInit, OnChanges {
@Input() @Input()
@ -54,7 +54,7 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
@Select(PermissionManagementState.getPermissionGroups) @Select(PermissionManagementState.getPermissionGroups)
groups$: Observable<PermissionManagement.Group[]>; groups$: Observable<PermissionManagement.Group[]>;
@Select(PermissionManagementState.getEntitiyDisplayName) @Select(PermissionManagementState.getEntityDisplayName)
entityName$: Observable<string>; entityName$: Observable<string>;
selectedGroup: PermissionManagement.Group; selectedGroup: PermissionManagement.Group;
@ -72,7 +72,7 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
get selectedGroupPermissions$(): Observable<PermissionWithMargin[]> { get selectedGroupPermissions$(): Observable<PermissionWithMargin[]> {
return this.groups$.pipe( return this.groups$.pipe(
map(groups => map(groups =>
this.selectedGroup ? groups.find(group => group.name === this.selectedGroup.name).permissions : [] this.selectedGroup ? groups.find(group => group.name === this.selectedGroup.name).permissions : [],
), ),
map<PermissionManagement.Permission[], PermissionWithMargin[]>(permissions => map<PermissionManagement.Permission[], PermissionWithMargin[]>(permissions =>
permissions.map( permissions.map(
@ -80,10 +80,10 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
(({ (({
...permission, ...permission,
margin: findMargin(permissions, permission), margin: findMargin(permissions, permission),
isGranted: this.permissions.find(per => per.name === permission.name).isGranted isGranted: this.permissions.find(per => per.name === permission.name).isGranted,
} as any) as PermissionWithMargin) } as any) as PermissionWithMargin),
) ),
) ),
); );
} }
@ -165,7 +165,7 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
this.permissions = [ this.permissions = [
...this.permissions.slice(0, index), ...this.permissions.slice(0, index),
{ ...this.permissions[index], isGranted: !this.selectThisTab }, { ...this.permissions[index], isGranted: !this.selectThisTab },
...this.permissions.slice(index + 1) ...this.permissions.slice(index + 1),
]; ];
}); });
}); });
@ -176,7 +176,7 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
onClickSelectAll() { onClickSelectAll() {
this.permissions = this.permissions.map(permission => ({ this.permissions = this.permissions.map(permission => ({
...permission, ...permission,
isGranted: !this.selectAllTab isGranted: !this.selectAllTab,
})); }));
this.selectThisTab = !this.selectAllTab; this.selectThisTab = !this.selectAllTab;
@ -190,12 +190,12 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
submit() { submit() {
this.modalBusy = true; this.modalBusy = true;
const unchangedPermissions = getPermissions( const unchangedPermissions = getPermissions(
this.store.selectSnapshot(PermissionManagementState.getPermissionGroups) this.store.selectSnapshot(PermissionManagementState.getPermissionGroups),
); );
const changedPermissions: PermissionManagement.MinimumPermission[] = this.permissions const changedPermissions: PermissionManagement.MinimumPermission[] = this.permissions
.filter(per => .filter(per =>
unchangedPermissions.find(unchanged => unchanged.name === per.name).isGranted === per.isGranted ? false : true unchangedPermissions.find(unchanged => unchanged.name === per.name).isGranted === per.isGranted ? false : true,
) )
.map(({ name, isGranted }) => ({ name, isGranted })); .map(({ name, isGranted }) => ({ name, isGranted }));
@ -205,8 +205,8 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
new UpdatePermissions({ new UpdatePermissions({
providerKey: this.providerKey, providerKey: this.providerKey,
providerName: this.providerName, providerName: this.providerName,
permissions: changedPermissions permissions: changedPermissions,
}) }),
) )
.subscribe(() => { .subscribe(() => {
this.modalBusy = false; this.modalBusy = false;
@ -227,8 +227,8 @@ export class PermissionManagementComponent implements OnInit, OnChanges {
.dispatch( .dispatch(
new GetPermissions({ new GetPermissions({
providerKey: this.providerKey, providerKey: this.providerKey,
providerName: this.providerName providerName: this.providerName,
}) }),
) )
.pipe(pluck('PermissionManagementState', 'permissionRes')) .pipe(pluck('PermissionManagementState', 'permissionRes'))
.subscribe((permissionRes: PermissionManagement.Response) => { .subscribe((permissionRes: PermissionManagement.Response) => {

2
npm/ng-packs/packages/permission-management/src/lib/services/permission-management-state.service.ts

@ -12,6 +12,6 @@ export class PermissionManagementStateService {
return this.store.selectSnapshot(PermissionManagementState.getPermissionGroups); return this.store.selectSnapshot(PermissionManagementState.getPermissionGroups);
} }
getEntityDisplayName() { getEntityDisplayName() {
return this.store.selectSnapshot(PermissionManagementState.getPermissionGroups); return this.store.selectSnapshot(PermissionManagementState.getEntityDisplayName);
} }
} }

2
npm/ng-packs/packages/permission-management/src/lib/states/permission-management.state.ts

@ -15,7 +15,7 @@ export class PermissionManagementState {
} }
@Selector() @Selector()
static getEntitiyDisplayName({ permissionRes }: PermissionManagement.State): string { static getEntityDisplayName({ permissionRes }: PermissionManagement.State): string {
return permissionRes.entityDisplayName; return permissionRes.entityDisplayName;
} }

8
npm/ng-packs/packages/permission-management/tsconfig.spec.json

@ -1,9 +1,11 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/spec", "emitDecoratorMetadata": true,
"types": ["node", "jest"] "esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
}, },
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"] "include": ["**/*.spec.ts", "**/*.d.ts"]
} }

1
npm/ng-packs/packages/setting-management-config/src/lib/services/setting-management-config.service.ts

@ -12,6 +12,7 @@ export class SettingManagementConfigService {
name: 'AbpSettingManagement::Settings', name: 'AbpSettingManagement::Settings',
path: 'setting-management', path: 'setting-management',
parentName: 'AbpUiNavigation::Menu:Administration', parentName: 'AbpUiNavigation::Menu:Administration',
requiredPolicy: 'AbpAccount.SettingManagement',
layout: eLayoutType.application, layout: eLayoutType.application,
order: 6, order: 6,
iconClass: 'fa fa-cog', iconClass: 'fa fa-cog',

4
npm/ng-packs/packages/setting-management/src/lib/setting-management-routing.module.ts

@ -7,7 +7,9 @@ const routes: Routes = [
{ {
path: '', path: '',
component: DynamicLayoutComponent, component: DynamicLayoutComponent,
children: [{ path: '', component: SettingManagementComponent }], children: [
{ path: '', component: SettingManagementComponent, data: { requiredPolicy: 'AbpAccount.SettingManagement' } },
],
}, },
]; ];

7
npm/ng-packs/packages/tenant-management/jest.config.js

@ -0,0 +1,7 @@
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'tenant-management',
'ts-jest': { allowSyntheticDefaultImports: true },
};

2
npm/ng-packs/packages/tenant-management/src/lib/services/tenant-management-state.service.ts

@ -8,7 +8,7 @@ import { TenantManagementState } from '../states/tenant-management.state';
export class TenantManagementStateService { export class TenantManagementStateService {
constructor(private store: Store) {} constructor(private store: Store) {}
getTenants() { get() {
return this.store.selectSnapshot(TenantManagementState.get); return this.store.selectSnapshot(TenantManagementState.get);
} }

8
npm/ng-packs/packages/tenant-management/tsconfig.spec.json

@ -1,9 +1,11 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/spec", "emitDecoratorMetadata": true,
"types": ["node", "jest"] "esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
}, },
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"] "include": ["**/*.spec.ts", "**/*.d.ts"]
} }

7
npm/ng-packs/packages/theme-basic/jest.config.js

@ -0,0 +1,7 @@
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'theme-basic',
'ts-jest': { allowSyntheticDefaultImports: true },
};

4
npm/ng-packs/packages/theme-basic/src/lib/components/application-layout/application-layout.component.html

@ -15,10 +15,10 @@
> >
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>
</button> </button>
<div class="navbar-collapse" id="main-navbar-collapse"> <div class="navbar-collapse" [class.overflow-hidden]="smallScreen" id="main-navbar-collapse">
<ng-container *ngTemplateOutlet="!smallScreen ? navigations : null"></ng-container> <ng-container *ngTemplateOutlet="!smallScreen ? navigations : null"></ng-container>
<div *ngIf="smallScreen" class="overflow-hidden" [@collapseWithMargin]="isCollapsed ? 'collapsed' : 'expanded'"> <div *ngIf="smallScreen" [@collapseWithMargin]="isCollapsed ? 'collapsed' : 'expanded'">
<ng-container *ngTemplateOutlet="navigations"></ng-container> <ng-container *ngTemplateOutlet="navigations"></ng-container>
</div> </div>

8
npm/ng-packs/packages/theme-basic/tsconfig.spec.json

@ -1,9 +1,11 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/spec", "emitDecoratorMetadata": true,
"types": ["node", "jest"] "esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
}, },
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"] "include": ["**/*.spec.ts", "**/*.d.ts"]
} }

2
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.Domain/BookStoreDomainModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
[DependsOn( [DependsOn(
typeof(BookStoreDomainSharedModule), typeof(BookStoreDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

6
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.HttpApi.Host/BookStoreHttpApiHostModule.cs

@ -54,7 +54,7 @@ namespace Acme.BookStore
ConfigureSwaggerServices(context); ConfigureSwaggerServices(context);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -86,7 +86,7 @@ namespace Acme.BookStore
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>
@ -123,7 +123,7 @@ namespace Acme.BookStore
}); });
} }
private void ConfigureCors(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureCors(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddCors(options => context.Services.AddCors(options =>
{ {

2
samples/BookStore-Angular-MongoDb/aspnet-core/src/Acme.BookStore.MongoDB/MongoDb/BookStoreMongoDbModule.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.MongoDB
typeof(AbpSettingManagementMongoDbModule), typeof(AbpSettingManagementMongoDbModule),
typeof(AbpIdentityMongoDbModule), typeof(AbpIdentityMongoDbModule),
typeof(AbpIdentityServerMongoDbModule), typeof(AbpIdentityServerMongoDbModule),
typeof(BackgroundJobsMongoDbModule), typeof(AbpBackgroundJobsMongoDbModule),
typeof(AbpAuditLoggingMongoDbModule), typeof(AbpAuditLoggingMongoDbModule),
typeof(AbpTenantManagementMongoDbModule), typeof(AbpTenantManagementMongoDbModule),
typeof(AbpFeatureManagementMongoDbModule) typeof(AbpFeatureManagementMongoDbModule)

2
samples/BookStore-Modular/application/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/BookStore-Modular/application/src/Acme.BookStore.Domain/BookStoreDomainModule.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore
[DependsOn( [DependsOn(
typeof(BookStoreDomainSharedModule), typeof(BookStoreDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

2
samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/BookStoreMigrationsDbContextFactory.cs

@ -19,7 +19,7 @@ namespace Acme.BookStore.EntityFrameworkCore
return new BookStoreMigrationsDbContext(builder.Options); return new BookStoreMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/BookStore-Modular/application/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs

@ -21,7 +21,7 @@ namespace Acme.BookStore.EntityFrameworkCore
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(BackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule), typeof(AbpFeatureManagementEntityFrameworkCoreModule),

4
samples/BookStore-Modular/application/src/Acme.BookStore.Web/BookStoreWebModule.cs

@ -82,7 +82,7 @@ namespace Acme.BookStore.Web
ConfigureSwaggerServices(context.Services); ConfigureSwaggerServices(context.Services);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -90,7 +90,7 @@ namespace Acme.BookStore.Web
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/BookManagementHttpApiHostModule.cs

@ -89,7 +89,7 @@ namespace Acme.BookStore.BookManagement
options.ApiName = "BookManagement"; options.ApiName = "BookManagement";
}); });
Configure<AbpCacheOptions>(options => Configure<AbpDistributedCacheOptions>(options =>
{ {
options.KeyPrefix = "BookManagement:"; options.KeyPrefix = "BookManagement:";
}); });

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.HttpApi.Host/EntityFrameworkCore/MyProjectHttpApiHostMigrationsDbContextFactory.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.BookManagement.EntityFrameworkCore
return new MyProjectHttpApiHostMigrationsDbContext(builder.Options); return new MyProjectHttpApiHostMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/BookManagementIdentityServerModule.cs

@ -108,7 +108,7 @@ namespace Acme.BookStore.BookManagement
options.ApiName = configuration["AuthServer:ApiName"]; options.ApiName = configuration["AuthServer:ApiName"];
}); });
Configure<AbpCacheOptions>(options => Configure<AbpDistributedCacheOptions>(options =>
{ {
options.KeyPrefix = "BookManagement:"; options.KeyPrefix = "BookManagement:";
}); });

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.IdentityServer/EntityFrameworkCore/IdentityServerHostMigrationsDbContextFactory.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.BookManagement.EntityFrameworkCore
return new IdentityServerHostMigrationsDbContext(builder.Options); return new IdentityServerHostMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

10
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Host/BookManagementWebHostModule.cs

@ -85,15 +85,15 @@ namespace Acme.BookStore.BookManagement
ConfigureRedis(context, configuration, hostingEnvironment); ConfigureRedis(context, configuration, hostingEnvironment);
} }
private void ConfigureCache(IConfigurationRoot configuration) private void ConfigureCache(IConfiguration configuration)
{ {
Configure<AbpCacheOptions>(options => Configure<AbpDistributedCacheOptions>(options =>
{ {
options.KeyPrefix = "BookManagement:"; options.KeyPrefix = "BookManagement:";
}); });
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -109,7 +109,7 @@ namespace Acme.BookStore.BookManagement
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication(options => context.Services.AddAuthentication(options =>
{ {
@ -177,7 +177,7 @@ namespace Acme.BookStore.BookManagement
private void ConfigureRedis( private void ConfigureRedis(
ServiceConfigurationContext context, ServiceConfigurationContext context,
IConfigurationRoot configuration, IConfiguration configuration,
IWebHostEnvironment hostingEnvironment) IWebHostEnvironment hostingEnvironment)
{ {
context.Services.AddStackExchangeRedisCache(options => context.Services.AddStackExchangeRedisCache(options =>

2
samples/BookStore-Modular/modules/book-management/host/Acme.BookStore.BookManagement.Web.Unified/EntityFrameworkCore/UnifiedDbContextFactory.cs

@ -17,7 +17,7 @@ namespace Acme.BookStore.BookManagement.EntityFrameworkCore
return new UnifiedDbContext(builder.Options); return new UnifiedDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/BookStore/src/Acme.BookStore.Domain.Shared/BookStoreDomainSharedModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/BookStore/src/Acme.BookStore.Domain/BookStoreDomainModule.cs

@ -16,7 +16,7 @@ namespace Acme.BookStore
[DependsOn( [DependsOn(
typeof(BookStoreDomainSharedModule), typeof(BookStoreDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

2
samples/BookStore/src/Acme.BookStore.EntityFrameworkCore/EntityFrameworkCore/BookStoreEntityFrameworkCoreModule.cs

@ -20,7 +20,7 @@ namespace Acme.BookStore.EntityFrameworkCore
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(BackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule) typeof(AbpFeatureManagementEntityFrameworkCoreModule)

4
samples/BookStore/src/Acme.BookStore.Web/BookStoreWebModule.cs

@ -73,7 +73,7 @@ namespace Acme.BookStore.Web
ConfigureSwaggerServices(context.Services); ConfigureSwaggerServices(context.Services);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -81,7 +81,7 @@ namespace Acme.BookStore.Web
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>

2
samples/DashboardDemo/src/DashboardDemo.Domain.Shared/DashboardDemoDomainSharedModule.cs

@ -16,7 +16,7 @@ namespace DashboardDemo
{ {
[DependsOn( [DependsOn(
typeof(AbpAuditLoggingDomainSharedModule), typeof(AbpAuditLoggingDomainSharedModule),
typeof(BackgroundJobsDomainSharedModule), typeof(AbpBackgroundJobsDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule), typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpIdentityDomainSharedModule), typeof(AbpIdentityDomainSharedModule),
typeof(AbpIdentityServerDomainSharedModule), typeof(AbpIdentityServerDomainSharedModule),

2
samples/DashboardDemo/src/DashboardDemo.Domain/DashboardDemoDomainModule.cs

@ -16,7 +16,7 @@ namespace DashboardDemo
[DependsOn( [DependsOn(
typeof(DashboardDemoDomainSharedModule), typeof(DashboardDemoDomainSharedModule),
typeof(AbpAuditLoggingDomainModule), typeof(AbpAuditLoggingDomainModule),
typeof(BackgroundJobsDomainModule), typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule), typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule), typeof(AbpIdentityDomainModule),
typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpPermissionManagementDomainIdentityModule),

2
samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore.DbMigrations/EntityFrameworkCore/DashboardDemoMigrationsDbContextFactory.cs

@ -19,7 +19,7 @@ namespace DashboardDemo.EntityFrameworkCore
return new DashboardDemoMigrationsDbContext(builder.Options); return new DashboardDemoMigrationsDbContext(builder.Options);
} }
private static IConfigurationRoot BuildConfiguration() private static IConfiguration BuildConfiguration()
{ {
var builder = new ConfigurationBuilder() var builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())

2
samples/DashboardDemo/src/DashboardDemo.EntityFrameworkCore/EntityFrameworkCore/DashboardDemoEntityFrameworkCoreModule.cs

@ -20,7 +20,7 @@ namespace DashboardDemo.EntityFrameworkCore
typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule),
typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpSettingManagementEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpEntityFrameworkCoreSqlServerModule),
typeof(BackgroundJobsEntityFrameworkCoreModule), typeof(AbpBackgroundJobsEntityFrameworkCoreModule),
typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule) typeof(AbpFeatureManagementEntityFrameworkCoreModule)

4
samples/DashboardDemo/src/DashboardDemo.Web/DashboardDemoWebModule.cs

@ -79,7 +79,7 @@ namespace DashboardDemo.Web
ConfigureSwaggerServices(context.Services); ConfigureSwaggerServices(context.Services);
} }
private void ConfigureUrls(IConfigurationRoot configuration) private void ConfigureUrls(IConfiguration configuration)
{ {
Configure<AppUrlOptions>(options => Configure<AppUrlOptions>(options =>
{ {
@ -87,7 +87,7 @@ namespace DashboardDemo.Web
}); });
} }
private void ConfigureAuthentication(ServiceConfigurationContext context, IConfigurationRoot configuration) private void ConfigureAuthentication(ServiceConfigurationContext context, IConfiguration configuration)
{ {
context.Services.AddAuthentication() context.Services.AddAuthentication()
.AddIdentityServerAuthentication(options => .AddIdentityServerAuthentication(options =>

Loading…
Cancel
Save