mirror of https://github.com/abpframework/abp.git
22 changed files with 138 additions and 91 deletions
@ -1,14 +0,0 @@ |
|||
using System; |
|||
using System.Linq; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Building.Steps; |
|||
|
|||
public class ChangeApplicationIdGuidStep: ProjectBuildPipelineStep |
|||
{ |
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
var projectFile = context.Files.FirstOrDefault(f => f.Name.EndsWith("MyCompanyName.MyProjectName.csproj")); |
|||
|
|||
projectFile?.SetContent(projectFile.Content.Replace("27317750-B571-4690-B433-B358B2480E01", Guid.NewGuid().ToString())); |
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
namespace Volo.Abp.Cli.ProjectBuilding.Events; |
|||
|
|||
public class ProjectCreationProgressEvent |
|||
{ |
|||
public string Message { get; set; } |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
using System; |
|||
using System.Linq; |
|||
using System.Xml; |
|||
using Volo.Abp.Cli.ProjectBuilding.Building; |
|||
using Volo.Abp.Cli.Utils; |
|||
|
|||
namespace Volo.Abp.Cli.ProjectBuilding.Templates.Maui; |
|||
|
|||
public class MauiChangeApplicationIdGuidStep: ProjectBuildPipelineStep |
|||
{ |
|||
public override void Execute(ProjectBuildContext context) |
|||
{ |
|||
var projectFile = context.Files.FirstOrDefault(f => f.Name.EndsWith("MyCompanyName.MyProjectName.csproj") || f.Name.EndsWith("MyCompanyName.MyProjectName.Maui.csproj")); |
|||
|
|||
if (projectFile == null) |
|||
{ |
|||
return; |
|||
} |
|||
|
|||
using (var stream = StreamHelper.GenerateStreamFromString(projectFile.Content)) |
|||
{ |
|||
var doc = new XmlDocument { PreserveWhitespace = true }; |
|||
doc.Load(stream); |
|||
|
|||
var node = doc.SelectSingleNode("/Project/PropertyGroup/ApplicationIdGuid"); |
|||
if (node != null) |
|||
{ |
|||
node.InnerText = Guid.NewGuid().ToString(); |
|||
} |
|||
|
|||
projectFile.SetContent(doc.OuterXml); |
|||
} |
|||
} |
|||
} |
|||
@ -1,22 +0,0 @@ |
|||
@using Microsoft.Extensions.Primitives |
|||
@using Volo.Abp.OpenIddict.Localization |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@model AuthorizeViewModel |
|||
@inject IHtmlLocalizer<AbpOpenIddictResource> L |
|||
|
|||
<div class="jumbotron"> |
|||
<h1>@L["LogOut"]</h1> |
|||
<p class="lead text-left">@L["AreYouSureYouWantToSignOut"]</p> |
|||
|
|||
<form method="post" action="~/connect/logout"> |
|||
@Html.AntiForgeryToken() |
|||
@* Flow the request parameters so they can be received by the LogoutPost action: *@ |
|||
@foreach (var parameter in Context.Request.HasFormContentType ? (IEnumerable<KeyValuePair<string, StringValues>>) Context.Request.Form : Context.Request.Query) |
|||
{ |
|||
<input type="hidden" name="@parameter.Key" value="@parameter.Value"/> |
|||
} |
|||
|
|||
<input class="btn btn-primary" name="accept" type="submit" value="@L["Accept"]"/> |
|||
<input class="btn btn-danger ms-1" name="deny" type="submit" value="@L["Deny"]"/> |
|||
</form> |
|||
</div> |
|||
Loading…
Reference in new issue