Browse Source

Created Volo.Abp.Identity.Blazor package. Moved usermanagement to this package.

pull/5399/head
Halil İbrahim Kalkan 6 years ago
parent
commit
bd7915cbad
  1. 4
      modules/identity/.gitignore
  2. 15
      modules/identity/Volo.Abp.Identity.sln
  3. 12
      modules/identity/src/Volo.Abp.Identity.Blazor/AbpIdentityBlazorModule.cs
  4. 3
      modules/identity/src/Volo.Abp.Identity.Blazor/FodyWeavers.xml
  5. 30
      modules/identity/src/Volo.Abp.Identity.Blazor/FodyWeavers.xsd
  6. 2
      modules/identity/src/Volo.Abp.Identity.Blazor/Pages/UserManagement.razor
  7. 3
      modules/identity/src/Volo.Abp.Identity.Blazor/Pages/UserManagement.razor.cs
  8. 20
      modules/identity/src/Volo.Abp.Identity.Blazor/Volo.Abp.Identity.Blazor.csproj
  9. 1
      modules/identity/src/Volo.Abp.Identity.Blazor/_Imports.razor
  10. 1
      nupkg/common.ps1
  11. 4
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/App.razor
  12. 4
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj
  13. 4
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBlazorModule.cs
  14. 1
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/_Imports.razor

4
modules/identity/.gitignore

@ -0,0 +1,4 @@
src/Volo.Abp.Identity.HttpApi/Properties/launchSettings.json
src/Volo.Abp.Identity.Web/Properties/launchSettings.json
test/Volo.Abp.Identity.AspNetCore.Tests/Properties/launchSettings.json
src/Volo.Abp.Identity.AspNetCore/Properties/launchSettings.json

15
modules/identity/Volo.Abp.Identity.sln

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27428.1
# Visual Studio Version 16
VisualStudioVersion = 16.0.30413.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AADC5A0A-F100-4511-87DE-B74E55F5B69B}"
EndProject
@ -37,9 +37,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Volo.Abp.Identity.Domain.Te
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Volo.Abp.Identity.AspNetCore", "src\Volo.Abp.Identity.AspNetCore\Volo.Abp.Identity.AspNetCore.csproj", "{D5EFC912-75A0-4856-9B8D-DFDD4CD66BAB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volo.Abp.PermissionManagement.Domain.Identity", "src\Volo.Abp.PermissionManagement.Domain.Identity\Volo.Abp.PermissionManagement.Domain.Identity.csproj", "{736F91E7-8A70-441B-89DE-0E29A348E718}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Volo.Abp.PermissionManagement.Domain.Identity", "src\Volo.Abp.PermissionManagement.Domain.Identity\Volo.Abp.PermissionManagement.Domain.Identity.csproj", "{736F91E7-8A70-441B-89DE-0E29A348E718}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volo.Abp.Identity.AspNetCore.Tests", "test\Volo.Abp.Identity.AspNetCore.Tests\Volo.Abp.Identity.AspNetCore.Tests.csproj", "{89C094EB-D80A-4976-9C10-7CE3EBEEE877}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Volo.Abp.Identity.AspNetCore.Tests", "test\Volo.Abp.Identity.AspNetCore.Tests\Volo.Abp.Identity.AspNetCore.Tests.csproj", "{89C094EB-D80A-4976-9C10-7CE3EBEEE877}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Volo.Abp.Identity.Blazor", "src\Volo.Abp.Identity.Blazor\Volo.Abp.Identity.Blazor.csproj", "{3F7BB653-3F3A-4889-B73C-E463F239099A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -115,6 +117,10 @@ Global
{89C094EB-D80A-4976-9C10-7CE3EBEEE877}.Debug|Any CPU.Build.0 = Debug|Any CPU
{89C094EB-D80A-4976-9C10-7CE3EBEEE877}.Release|Any CPU.ActiveCfg = Release|Any CPU
{89C094EB-D80A-4976-9C10-7CE3EBEEE877}.Release|Any CPU.Build.0 = Release|Any CPU
{3F7BB653-3F3A-4889-B73C-E463F239099A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F7BB653-3F3A-4889-B73C-E463F239099A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F7BB653-3F3A-4889-B73C-E463F239099A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3F7BB653-3F3A-4889-B73C-E463F239099A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -137,6 +143,7 @@ Global
{D5EFC912-75A0-4856-9B8D-DFDD4CD66BAB} = {AADC5A0A-F100-4511-87DE-B74E55F5B69B}
{736F91E7-8A70-441B-89DE-0E29A348E718} = {AADC5A0A-F100-4511-87DE-B74E55F5B69B}
{89C094EB-D80A-4976-9C10-7CE3EBEEE877} = {9FACAF96-A681-4B36-A938-A37DCA0B7EC1}
{3F7BB653-3F3A-4889-B73C-E463F239099A} = {AADC5A0A-F100-4511-87DE-B74E55F5B69B}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {05740D37-83CF-4041-9C2A-D89F1B3DB5A4}

12
modules/identity/src/Volo.Abp.Identity.Blazor/AbpIdentityBlazorModule.cs

@ -0,0 +1,12 @@
using Volo.Abp.Modularity;
namespace Volo.Abp.Identity.Blazor
{
[DependsOn(
typeof(AbpIdentityHttpApiClientModule)
)]
public class AbpIdentityBlazorModule : AbpModule
{
}
}

3
modules/identity/src/Volo.Abp.Identity.Blazor/FodyWeavers.xml

@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait ContinueOnCapturedContext="false" />
</Weavers>

30
modules/identity/src/Volo.Abp.Identity.Blazor/FodyWeavers.xsd

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" />
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/UserManagement.razor → modules/identity/src/Volo.Abp.Identity.Blazor/Pages/UserManagement.razor

@ -4,7 +4,7 @@
@using Microsoft.AspNetCore.Authorization
@inject IIdentityUserAppService UserAppService
<h1>UserManagement</h1>
<h1>UserManagement (in the Identity Module)</h1>
<button class="btn btn-primary" @onclick="GetUsersAsync">Get user list</button>

3
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/Pages/UserManagement.razor.cs → modules/identity/src/Volo.Abp.Identity.Blazor/Pages/UserManagement.razor.cs

@ -1,9 +1,8 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Volo.Abp.Identity;
namespace MyCompanyName.MyProjectName.Blazor.Pages
namespace Volo.Abp.Identity.Blazor.Pages
{
public partial class UserManagement : ComponentBase
{

20
modules/identity/src/Volo.Abp.Identity.Blazor/Volo.Abp.Identity.Blazor.csproj

@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="..\..\..\..\configureawait.props" />
<Import Project="..\..\..\..\common.props" />
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="3.1.7" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.7" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Volo.Abp.Identity.HttpApi.Client\Volo.Abp.Identity.HttpApi.Client.csproj" />
</ItemGroup>
</Project>

1
modules/identity/src/Volo.Abp.Identity.Blazor/_Imports.razor

@ -0,0 +1 @@
@using Microsoft.AspNetCore.Components.Web

1
nupkg/common.ps1

@ -208,6 +208,7 @@ $projects = (
"modules/identity/src/Volo.Abp.Identity.HttpApi",
"modules/identity/src/Volo.Abp.Identity.MongoDB",
"modules/identity/src/Volo.Abp.Identity.Web",
"modules/identity/src/Volo.Abp.Identity.Blazor",
"modules/identity/src/Volo.Abp.PermissionManagement.Domain.Identity",
# modules/identityserver

4
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/App.razor

@ -1,7 +1,9 @@
@using Volo.Abp.AspNetCore.Mvc.Client
@inject ICachedApplicationConfigurationClient ConfigurationClient
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly">
<Router
AppAssembly="@typeof(Program).Assembly"
AdditionalAssemblies="new []{ typeof(UserManagement).Assembly }">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
<NotAuthorized>

4
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj

@ -16,6 +16,10 @@
<ProjectReference Include="..\..\..\..\..\framework\src\Volo.Abp.Http.Client.IdentityModel.WebAssembly\Volo.Abp.Http.Client.IdentityModel.WebAssembly.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\..\modules\identity\src\Volo.Abp.Identity.Blazor\Volo.Abp.Identity.Blazor.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\MyCompanyName.MyProjectName.HttpApi.Client\MyCompanyName.MyProjectName.HttpApi.Client.csproj" />
</ItemGroup>

4
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBlazorModule.cs

@ -6,6 +6,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Components.WebAssembly;
using Volo.Abp.Autofac;
using Volo.Abp.Http.Client.IdentityModel.WebAssembly;
using Volo.Abp.Identity.Blazor;
using Volo.Abp.Modularity;
namespace MyCompanyName.MyProjectName.Blazor
@ -14,7 +15,8 @@ namespace MyCompanyName.MyProjectName.Blazor
typeof(AbpAutofacModule),
typeof(MyProjectNameHttpApiClientModule),
typeof(AbpHttpClientIdentityModelWebAssemblyModule),
typeof(AbpAspNetCoreComponentsWebAssemblyModule)
typeof(AbpAspNetCoreComponentsWebAssemblyModule),
typeof(AbpIdentityBlazorModule)
)]
public class MyProjectNameBlazorModule : AbpModule
{

1
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/_Imports.razor

@ -7,3 +7,4 @@
@using Microsoft.JSInterop
@using MyCompanyName.MyProjectName.Blazor
@using MyCompanyName.MyProjectName.Blazor.Shared
@using Volo.Abp.Identity.Blazor.Pages
Loading…
Cancel
Save