Skip to content

Commit

Permalink
Upgrade to ABP 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wakuflair committed May 10, 2021
1 parent b79eafa commit b6fc72d
Show file tree
Hide file tree
Showing 29 changed files with 1,159 additions and 1,050 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.ObjectExtending" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application.Contracts" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Application.Contracts" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application.Contracts" Version="4.2.1" />
<PackageReference Include="Volo.Abp.ObjectExtending" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application.Contracts" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Application.Contracts" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application.Contracts" Version="4.3.0" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/AdminLTEPro.Application/AdminLTEPro.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Account.Application" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.Application" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Application" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Account.Application" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.Application" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Application" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Application" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Application" Version="4.3.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/AdminLTEPro.DbMigrator/AdminLTEPro.DbMigrator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Autofac" Version="4.3.0" />
<ProjectReference Include="..\AdminLTEPro.Application.Contracts\AdminLTEPro.Application.Contracts.csproj" />
<ProjectReference Include="..\AdminLTEPro.EntityFrameworkCore.DbMigrations\AdminLTEPro.EntityFrameworkCore.DbMigrations.csproj" />
</ItemGroup>
Expand Down
18 changes: 9 additions & 9 deletions src/AdminLTEPro.Domain.Shared/AdminLTEPro.Domain.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain.Shared" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Shared" Version="4.3.0" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain.Shared" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="5.0.2" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="5.0.5" />
</ItemGroup>

</Project>
20 changes: 10 additions & 10 deletions src/AdminLTEPro.Domain/AdminLTEPro.Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Emailing" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="4.2.1" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.IdentityServer" Version="4.2.1" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Emailing" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.Domain" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="4.3.0" />
<PackageReference Include="Volo.Abp.IdentityServer.Domain" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.Domain.IdentityServer" Version="4.3.0" />
<PackageReference Include="Volo.Abp.BackgroundJobs.Domain" Version="4.3.0" />
<PackageReference Include="Volo.Abp.AuditLogging.Domain" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Domain" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Domain" Version="4.3.0" />
<PackageReference Include="Volo.Abp.SettingManagement.Domain" Version="4.3.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

<ItemGroup>
<ProjectReference Include="..\AdminLTEPro.Domain\AdminLTEPro.Domain.csproj" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.IdentityServer.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.BackgroundJobs.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" Version="4.2.1" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore.SqlServer" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.IdentityServer.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.BackgroundJobs.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.AuditLogging.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.EntityFrameworkCore" Version="4.3.0" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/AdminLTEPro.HttpApi.Client/AdminLTEPro.HttpApi.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Account.HttpApi.Client" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.HttpApi.Client" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.HttpApi.Client" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.HttpApi.Client" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Account.HttpApi.Client" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.HttpApi.Client" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi.Client" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.HttpApi.Client" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.HttpApi.Client" Version="4.3.0" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/AdminLTEPro.HttpApi/AdminLTEPro.HttpApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Volo.Abp.Account.HttpApi" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.HttpApi" Version="4.2.1" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.HttpApi" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.HttpApi" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Account.HttpApi" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.HttpApi" Version="4.3.0" />
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.HttpApi" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.HttpApi" Version="4.3.0" />
</ItemGroup>

</Project>
18 changes: 9 additions & 9 deletions src/AdminLTEPro.Web/AdminLTEPro.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
<ProjectReference Include="..\AdminLTEPro.Application\AdminLTEPro.Application.csproj" />
<ProjectReference Include="..\AdminLTEPro.HttpApi\AdminLTEPro.HttpApi.csproj" />
<ProjectReference Include="..\AdminLTEPro.EntityFrameworkCore.DbMigrations\AdminLTEPro.EntityFrameworkCore.DbMigrations.csproj" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Autofac" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Swashbuckle" Version="4.2.1" />
<PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="4.2.1" />
<PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Identity.Web" Version="4.2.1" />
<PackageReference Include="Volo.Abp.Account.Web.IdentityServer" Version="4.2.1" />
<PackageReference Include="Volo.Abp.TenantManagement.Web" Version="4.2.1" />
<PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="4.2.1" />
<PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Autofac" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Swashbuckle" Version="4.3.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="4.3.0" />
<PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Identity.Web" Version="4.3.0" />
<PackageReference Include="Volo.Abp.Account.Web.IdentityServer" Version="4.3.0" />
<PackageReference Include="Volo.Abp.TenantManagement.Web" Version="4.3.0" />
<PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="4.3.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/AdminLTEPro.Web/AdminLTEProWebModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex
}

app.UseCorrelationId();
app.UseVirtualFiles();
app.UseStaticFiles();
app.UseRouting();
app.UseAuthentication();
app.UseJwtTokenMiddleware();
Expand Down
2 changes: 1 addition & 1 deletion src/AdminLTEPro.Web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"name": "my-app",
"private": true,
"dependencies": {
"@abp/aspnetcore.mvc.ui.theme.basic": "~4.2.1"
"@abp/aspnetcore.mvc.ui.theme.basic": "~4.3.0"
}
}
7 changes: 7 additions & 0 deletions src/AdminLTEPro.Web/wwwroot/libs/abp/core/abp.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,13 @@ var abp = abp || {};
document.cookie = cookieValue;
}

/**
* Escape HTML to help prevent XSS attacks.
*/
abp.utils.htmlEscape = function (html) {
return typeof html === 'string' ? html.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') : html;
}

/* SECURITY ***************************************/
abp.security = abp.security || {};
abp.security.antiForgery = abp.security.antiForgery || {};
Expand Down
15 changes: 12 additions & 3 deletions src/AdminLTEPro.Web/wwwroot/libs/abp/jquery/abp.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,28 @@ var abp = abp || {};
options.success = undefined;
options.error = undefined;

return $.Deferred(function ($dfd) {
$.ajax(options)
var xhr = null;
var promise = $.Deferred(function ($dfd) {
xhr = $.ajax(options)
.done(function (data, textStatus, jqXHR) {
$dfd.resolve(data);
userOptions.success && userOptions.success(data);
}).fail(function (jqXHR) {
if(jqXHR.status === 0 || jqXHR.statusText === 'abort') {
//ajax request is abort, ignore error handle.
return;
}
if (jqXHR.getResponseHeader('_AbpErrorFormat') === 'true') {
abp.ajax.handleAbpErrorResponse(jqXHR, userOptions, $dfd);
} else {
abp.ajax.handleNonAbpErrorResponse(jqXHR, userOptions, $dfd);
}
});
});
}).promise();

promise['jqXHR'] = xhr;

return promise;
};

$.extend(abp.ajax, {
Expand Down
Loading

0 comments on commit b6fc72d

Please sign in to comment.