Skip to content

Commit e3eb985

Browse files
authored
Merge pull request #129 from fretje/removeRefs
Some more cleanup
2 parents 00ffc90 + d03a068 commit e3eb985

File tree

6 files changed

+10
-115
lines changed

6 files changed

+10
-115
lines changed

angular/src/shared/AppConsts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
static readonly authorization = {
1515
encrptedAuthTokenName: 'enc_auth_token'
1616
};
17-
}
17+
}

aspnet-core/src/AbpCompanyName.AbpProjectName.Core/AbpCompanyName.AbpProjectName.Core.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Abp" Version="3.1.1" />
2221
<PackageReference Include="Abp.AutoMapper" Version="3.1.1" />
2322
<PackageReference Include="Abp.ZeroCore.EntityFrameworkCore" Version="3.1.1" />
2423
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.0.0" />

aspnet-core/src/AbpCompanyName.AbpProjectName.EntityFrameworkCore/Migrations/AbpProjectNameDbContextModelSnapshot.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
// <auto-generated />
2-
using Abp.Authorization;
3-
using Abp.BackgroundJobs;
4-
using Abp.Notifications;
5-
using AbpCompanyName.AbpProjectName.EntityFrameworkCore;
2+
using System;
63
using Microsoft.EntityFrameworkCore;
74
using Microsoft.EntityFrameworkCore.Infrastructure;
85
using Microsoft.EntityFrameworkCore.Metadata;
9-
using Microsoft.EntityFrameworkCore.Migrations;
10-
using Microsoft.EntityFrameworkCore.Storage;
11-
using Microsoft.EntityFrameworkCore.Storage.Internal;
12-
using Microsoft.EntityFrameworkCore.ValueGeneration;
13-
using System;
6+
using AbpCompanyName.AbpProjectName.EntityFrameworkCore;
147

158
namespace AbpCompanyName.AbpProjectName.Migrations
169
{

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Core/AbpCompanyName.AbpProjectName.Web.Core.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
<ItemGroup>
3030
<PackageReference Include="System.ValueTuple" Version="4.4.0" />
31-
<PackageReference Include="System.Net.Http" Version="4.3.2" />
3231
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.0.0" />
3332
<PackageReference Include="Microsoft.AspNetCore.Owin" Version="2.0.0" />
3433
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.0.0" />

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup/Startup.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
using AbpCompanyName.AbpProjectName.Identity;
1717

1818
#if FEATURE_SIGNALR
19-
using Owin;
20-
using Microsoft.Owin.Cors;
2119
using Microsoft.AspNet.SignalR;
22-
using AbpCompanyName.AbpProjectName.Owin;
20+
using Microsoft.Owin.Cors;
21+
using Owin;
2322
using Abp.Owin;
23+
using AbpCompanyName.AbpProjectName.Owin;
2424
#endif
2525

2626
namespace AbpCompanyName.AbpProjectName.Web.Host.Startup
2727
{
2828
public class Startup
2929
{
30-
private const string DefaultCorsPolicyName = "localhost";
30+
private const string _defaultCorsPolicyName = "localhost";
3131

3232
private readonly IConfigurationRoot _appConfiguration;
3333

@@ -41,7 +41,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
4141
// MVC
4242
services.AddMvc(options =>
4343
{
44-
options.Filters.Add(new CorsAuthorizationFilterFactory(DefaultCorsPolicyName));
44+
options.Filters.Add(new CorsAuthorizationFilterFactory(_defaultCorsPolicyName));
4545
});
4646

4747
IdentityRegistrar.Register(services);
@@ -50,7 +50,7 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
5050
// Configure CORS for angular2 UI
5151
services.AddCors(options =>
5252
{
53-
options.AddPolicy(DefaultCorsPolicyName, builder =>
53+
options.AddPolicy(_defaultCorsPolicyName, builder =>
5454
{
5555
// App:CorsOrigins in appsettings.json can contain more than one address separated by comma.
5656
builder
@@ -94,7 +94,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
9494
{
9595
app.UseAbp(); // Initializes ABP framework.
9696

97-
app.UseCors(DefaultCorsPolicyName); // Enable CORS!
97+
app.UseCors(_defaultCorsPolicyName); // Enable CORS!
9898

9999
app.UseStaticFiles();
100100

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/index.html

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)