mirror of https://github.com/abpframework/abp.git
3778 changed files with 1649 additions and 788957 deletions
@ -0,0 +1,9 @@ |
|||||
|
namespace Volo.Abp.AuditLogging |
||||
|
{ |
||||
|
public class EntityChangeWithUsername |
||||
|
{ |
||||
|
public EntityChange EntityChange { get; set; } |
||||
|
|
||||
|
public string UserName { get; set; } |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,52 @@ |
|||||
|
import { ConfigState } from '@abp/ng.core'; |
||||
|
import { Component } from '@angular/core'; |
||||
|
import { createComponentFactory, Spectator } from '@ngneat/spectator'; |
||||
|
import { NgxValidateCoreModule, validatePassword } from '@ngx-validate/core'; |
||||
|
import { NgxsModule, Store } from '@ngxs/store'; |
||||
|
import { HttpClient } from '@angular/common/http'; |
||||
|
import { getPasswordValidators } from '../utils'; |
||||
|
import { Validators } from '@angular/forms'; |
||||
|
|
||||
|
@Component({ template: '', selector: 'abp-dummy' }) |
||||
|
class DummyComponent {} |
||||
|
|
||||
|
describe('ValidationUtils', () => { |
||||
|
let spectator: Spectator<DummyComponent>; |
||||
|
const createComponent = createComponentFactory({ |
||||
|
component: DummyComponent, |
||||
|
imports: [NgxsModule.forRoot([ConfigState]), NgxValidateCoreModule.forRoot()], |
||||
|
mocks: [HttpClient], |
||||
|
}); |
||||
|
|
||||
|
beforeEach(() => (spectator = createComponent())); |
||||
|
|
||||
|
describe('#getPasswordValidators', () => { |
||||
|
it('should return password valdiators', () => { |
||||
|
const store = spectator.get(Store); |
||||
|
store.reset({ |
||||
|
ConfigState: { |
||||
|
setting: { |
||||
|
values: { |
||||
|
'Abp.Identity.Password.RequiredLength': '6', |
||||
|
'Abp.Identity.Password.RequiredUniqueChars': '1', |
||||
|
'Abp.Identity.Password.RequireNonAlphanumeric': 'True', |
||||
|
'Abp.Identity.Password.RequireLowercase': 'True', |
||||
|
'Abp.Identity.Password.RequireUppercase': 'True', |
||||
|
'Abp.Identity.Password.RequireDigit': 'True', |
||||
|
}, |
||||
|
}, |
||||
|
}, |
||||
|
}); |
||||
|
const validators = getPasswordValidators(store); |
||||
|
const expectedValidators = [ |
||||
|
validatePassword(['number', 'small', 'capital', 'special']), |
||||
|
Validators.minLength(6), |
||||
|
Validators.maxLength(128), |
||||
|
]; |
||||
|
|
||||
|
validators.forEach((validator, index) => { |
||||
|
expect(validator.toString()).toBe(expectedValidators[index].toString()); |
||||
|
}); |
||||
|
}); |
||||
|
}); |
||||
|
}); |
||||
@ -1,2 +1,3 @@ |
|||||
export * from './widget-utils'; |
export * from './widget-utils'; |
||||
export * from './date-parser-formatter'; |
export * from './date-parser-formatter'; |
||||
|
export * from './validation-utils'; |
||||
|
|||||
@ -0,0 +1,45 @@ |
|||||
|
import { Store } from '@ngxs/store'; |
||||
|
import { ABP, ConfigState } from '@abp/ng.core'; |
||||
|
import { PasswordRules, validatePassword } from '@ngx-validate/core'; |
||||
|
import { Validators, ValidatorFn } from '@angular/forms'; |
||||
|
|
||||
|
const { minLength, maxLength } = Validators; |
||||
|
|
||||
|
export function getPasswordValidators(store: Store): ValidatorFn[] { |
||||
|
const getRule = getRuleFn(store); |
||||
|
|
||||
|
const passwordRulesArr = [] as PasswordRules; |
||||
|
let requiredLength = 1; |
||||
|
|
||||
|
if (getRule('RequireDigit') === 'true') { |
||||
|
passwordRulesArr.push('number'); |
||||
|
} |
||||
|
|
||||
|
if (getRule('RequireLowercase') === 'true') { |
||||
|
passwordRulesArr.push('small'); |
||||
|
} |
||||
|
|
||||
|
if (getRule('RequireUppercase') === 'true') { |
||||
|
passwordRulesArr.push('capital'); |
||||
|
} |
||||
|
|
||||
|
if (getRule('RequireNonAlphanumeric') === 'true') { |
||||
|
passwordRulesArr.push('special'); |
||||
|
} |
||||
|
|
||||
|
if (Number.isInteger(+getRule('RequiredLength'))) { |
||||
|
requiredLength = +getRule('RequiredLength'); |
||||
|
} |
||||
|
|
||||
|
return [validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(128)]; |
||||
|
} |
||||
|
|
||||
|
function getRuleFn(store: Store) { |
||||
|
return (key: string) => { |
||||
|
const passwordRules: ABP.Dictionary<string> = store.selectSnapshot( |
||||
|
ConfigState.getSettings('Identity.Password'), |
||||
|
); |
||||
|
|
||||
|
return (passwordRules[`Abp.Identity.Password.${key}`] || '').toLowerCase(); |
||||
|
}; |
||||
|
} |
||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/anchor-js", |
"name": "@abp/anchor-js", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"anchor-js": "^4.2.2" |
"anchor-js": "^4.2.2" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,11 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/aspnetcore.mvc.ui.theme.basic", |
"name": "@abp/aspnetcore.mvc.ui.theme.basic", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/aspnetcore.mvc.ui.theme.shared": "^2.4.0" |
"@abp/aspnetcore.mvc.ui.theme.shared": "^2.4.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,24 +1,24 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/aspnetcore.mvc.ui.theme.shared", |
"name": "@abp/aspnetcore.mvc.ui.theme.shared", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/aspnetcore.mvc.ui": "^2.4.0", |
"@abp/aspnetcore.mvc.ui": "^2.4.1", |
||||
"@abp/bootstrap": "^2.4.0", |
"@abp/bootstrap": "^2.4.1", |
||||
"@abp/bootstrap-datepicker": "^2.4.0", |
"@abp/bootstrap-datepicker": "^2.4.1", |
||||
"@abp/datatables.net-bs4": "^2.4.0", |
"@abp/datatables.net-bs4": "^2.4.1", |
||||
"@abp/font-awesome": "^2.4.0", |
"@abp/font-awesome": "^2.4.1", |
||||
"@abp/jquery-form": "^2.4.0", |
"@abp/jquery-form": "^2.4.1", |
||||
"@abp/jquery-validation-unobtrusive": "^2.4.0", |
"@abp/jquery-validation-unobtrusive": "^2.4.1", |
||||
"@abp/lodash": "^2.4.0", |
"@abp/lodash": "^2.4.1", |
||||
"@abp/luxon": "^2.4.0", |
"@abp/luxon": "^2.4.1", |
||||
"@abp/malihu-custom-scrollbar-plugin": "^2.4.0", |
"@abp/malihu-custom-scrollbar-plugin": "^2.4.1", |
||||
"@abp/select2": "^2.4.0", |
"@abp/select2": "^2.4.1", |
||||
"@abp/sweetalert": "^2.4.0", |
"@abp/sweetalert": "^2.4.1", |
||||
"@abp/timeago": "^2.4.0", |
"@abp/timeago": "^2.4.1", |
||||
"@abp/toastr": "^2.4.0" |
"@abp/toastr": "^2.4.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,13 +1,13 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/blogging", |
"name": "@abp/blogging", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/aspnetcore.mvc.ui.theme.shared": "^2.4.0", |
"@abp/aspnetcore.mvc.ui.theme.shared": "^2.4.1", |
||||
"@abp/owl.carousel": "^2.4.0", |
"@abp/owl.carousel": "^2.4.1", |
||||
"@abp/tui-editor": "^2.4.0" |
"@abp/tui-editor": "^2.4.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/bootstrap", |
"name": "@abp/bootstrap", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"bootstrap": "^4.3.1" |
"bootstrap": "^4.3.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/clipboard", |
"name": "@abp/clipboard", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"clipboard": "^2.0.4" |
"clipboard": "^2.0.4" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/codemirror", |
"name": "@abp/codemirror", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"codemirror": "^5.49.2" |
"codemirror": "^5.49.2" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,8 +1,8 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/core", |
"name": "@abp/core", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/datatables.net-bs4", |
"name": "@abp/datatables.net-bs4", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/datatables.net": "^2.4.0", |
"@abp/datatables.net": "^2.4.1", |
||||
"datatables.net-bs4": "^1.10.20" |
"datatables.net-bs4": "^1.10.20" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/datatables.net", |
"name": "@abp/datatables.net", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"datatables.net": "^1.10.20" |
"datatables.net": "^1.10.20" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,15 +1,15 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/docs", |
"name": "@abp/docs", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/anchor-js": "^2.4.0", |
"@abp/anchor-js": "^2.4.1", |
||||
"@abp/clipboard": "^2.4.0", |
"@abp/clipboard": "^2.4.1", |
||||
"@abp/malihu-custom-scrollbar-plugin": "^2.4.0", |
"@abp/malihu-custom-scrollbar-plugin": "^2.4.1", |
||||
"@abp/popper.js": "^2.4.0", |
"@abp/popper.js": "^2.4.1", |
||||
"@abp/prismjs": "^2.4.0" |
"@abp/prismjs": "^2.4.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/font-awesome", |
"name": "@abp/font-awesome", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"@fortawesome/fontawesome-free": "^5.11.2" |
"@fortawesome/fontawesome-free": "^5.11.2" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,11 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/highlight.js", |
"name": "@abp/highlight.js", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0" |
"@abp/core": "^2.4.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/jquery-form", |
"name": "@abp/jquery-form", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/jquery": "^2.4.0", |
"@abp/jquery": "^2.4.1", |
||||
"jquery-form": "^4.2.2" |
"jquery-form": "^4.2.2" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/jquery-validation-unobtrusive", |
"name": "@abp/jquery-validation-unobtrusive", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/jquery-validation": "^2.4.0", |
"@abp/jquery-validation": "^2.4.1", |
||||
"jquery-validation-unobtrusive": "^3.2.11" |
"jquery-validation-unobtrusive": "^3.2.11" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/jquery-validation", |
"name": "@abp/jquery-validation", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/jquery": "^2.4.0", |
"@abp/jquery": "^2.4.1", |
||||
"jquery-validation": "^1.19.1" |
"jquery-validation": "^1.19.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/jquery", |
"name": "@abp/jquery", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"jquery": "^3.4.1" |
"jquery": "^3.4.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/lodash", |
"name": "@abp/lodash", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"lodash": "^4.17.15" |
"lodash": "^4.17.15" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/malihu-custom-scrollbar-plugin", |
"name": "@abp/malihu-custom-scrollbar-plugin", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"malihu-custom-scrollbar-plugin": "^3.1.5" |
"malihu-custom-scrollbar-plugin": "^3.1.5" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/markdown-it", |
"name": "@abp/markdown-it", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"markdown-it": "^10.0.0" |
"markdown-it": "^10.0.0" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/owl.carousel", |
"name": "@abp/owl.carousel", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"owl.carousel": "^2.3.4" |
"owl.carousel": "^2.3.4" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/popper.js", |
"name": "@abp/popper.js", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"popper.js": "^1.16.0" |
"popper.js": "^1.16.0" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/prismjs", |
"name": "@abp/prismjs", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"prismjs": "^1.17.1" |
"prismjs": "^1.17.1" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/select2", |
"name": "@abp/select2", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"select2": "^4.0.12" |
"select2": "^4.0.12" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/sweetalert", |
"name": "@abp/sweetalert", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/core": "^2.4.0", |
"@abp/core": "^2.4.1", |
||||
"sweetalert": "^2.1.2" |
"sweetalert": "^2.1.2" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/timeago", |
"name": "@abp/timeago", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/jquery": "^2.4.0", |
"@abp/jquery": "^2.4.1", |
||||
"timeago": "^1.6.7" |
"timeago": "^1.6.7" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,12 +1,12 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/toastr", |
"name": "@abp/toastr", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/jquery": "^2.4.0", |
"@abp/jquery": "^2.4.1", |
||||
"toastr": "^2.1.4" |
"toastr": "^2.1.4" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,15 +1,15 @@ |
|||||
{ |
{ |
||||
"version": "2.4.0", |
"version": "2.4.1", |
||||
"name": "@abp/tui-editor", |
"name": "@abp/tui-editor", |
||||
"publishConfig": { |
"publishConfig": { |
||||
"access": "public" |
"access": "public" |
||||
}, |
}, |
||||
"dependencies": { |
"dependencies": { |
||||
"@abp/codemirror": "^2.4.0", |
"@abp/codemirror": "^2.4.1", |
||||
"@abp/highlight.js": "^2.4.0", |
"@abp/highlight.js": "^2.4.1", |
||||
"@abp/jquery": "^2.4.0", |
"@abp/jquery": "^2.4.1", |
||||
"@abp/markdown-it": "^2.4.0", |
"@abp/markdown-it": "^2.4.1", |
||||
"tui-editor": "^1.4.8" |
"tui-editor": "^1.4.8" |
||||
}, |
}, |
||||
"gitHead": "aadffb76ee4ac7aef2842074e4f9c9f425b3ebe7" |
"gitHead": "0c72682d406026760da2f832a493145beae3a5c0" |
||||
} |
} |
||||
|
|||||
@ -1,25 +0,0 @@ |
|||||
|
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|
||||
# Visual Studio Version 16 |
|
||||
VisualStudioVersion = 16.0.29326.143 |
|
||||
MinimumVisualStudioVersion = 10.0.40219.1 |
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicAspNetCoreApplication", "BasicAspNetCoreApplication\BasicAspNetCoreApplication.csproj", "{069D79DF-2340-4101-9B6E-32FEEC6893A8}" |
|
||||
EndProject |
|
||||
Global |
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|
||||
Debug|Any CPU = Debug|Any CPU |
|
||||
Release|Any CPU = Release|Any CPU |
|
||||
EndGlobalSection |
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|
||||
{069D79DF-2340-4101-9B6E-32FEEC6893A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
||||
{069D79DF-2340-4101-9B6E-32FEEC6893A8}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|
||||
{069D79DF-2340-4101-9B6E-32FEEC6893A8}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
||||
{069D79DF-2340-4101-9B6E-32FEEC6893A8}.Release|Any CPU.Build.0 = Release|Any CPU |
|
||||
EndGlobalSection |
|
||||
GlobalSection(SolutionProperties) = preSolution |
|
||||
HideSolutionNode = FALSE |
|
||||
EndGlobalSection |
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution |
|
||||
SolutionGuid = {9AC9422D-35CC-4A8E-9F5B-D695565E9B45} |
|
||||
EndGlobalSection |
|
||||
EndGlobal |
|
||||
@ -1,33 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Builder; |
|
||||
using Microsoft.Extensions.Hosting; |
|
||||
using Volo.Abp; |
|
||||
using Volo.Abp.AspNetCore.Mvc; |
|
||||
using Volo.Abp.Autofac; |
|
||||
using Volo.Abp.Modularity; |
|
||||
|
|
||||
namespace BasicAspNetCoreApplication |
|
||||
{ |
|
||||
[DependsOn(typeof(AbpAspNetCoreMvcModule))] |
|
||||
[DependsOn(typeof(AbpAutofacModule))] //Add dependency to ABP Autofac module
|
|
||||
public class AppModule : AbpModule |
|
||||
{ |
|
||||
public override void OnApplicationInitialization(ApplicationInitializationContext context) |
|
||||
{ |
|
||||
var app = context.GetApplicationBuilder(); |
|
||||
var env = context.GetEnvironment(); |
|
||||
|
|
||||
if (env.IsDevelopment()) |
|
||||
{ |
|
||||
app.UseDeveloperExceptionPage(); |
|
||||
} |
|
||||
else |
|
||||
{ |
|
||||
app.UseExceptionHandler("/Error"); |
|
||||
} |
|
||||
|
|
||||
app.UseStaticFiles(); |
|
||||
app.UseRouting(); |
|
||||
app.UseMvcWithDefaultRouteAndArea(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue