Move some things around

This commit is contained in:
2024-04-05 08:58:32 -05:00
parent ff41d5203e
commit 653267744e
14 changed files with 44 additions and 25 deletions

14
src/OAP/Oap/Oap.csproj Normal file
View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OrchardCore.ContentFields" Version="1.8.2" />
<PackageReference Include="OrchardCore.ContentManagement" Version="1.8.2" />
</ItemGroup>
</Project>

View File

@@ -1,7 +1,7 @@
using OrchardCore.ContentFields.Fields;
using OrchardCore.ContentManagement;
namespace OverseasAutoProtection.OapApplication;
namespace Oap.OapApplication;
public class OapApplicationPart : ContentPart
{
public TextField ApplicationId { get; set; } = new();

View File

@@ -1,4 +1,4 @@
namespace OverseasAutoProtection.OapApplication;
namespace Oap.OapApplication;
public static class OapApplicationStatuses
{

View File

@@ -18,7 +18,7 @@
<ItemGroup>
<ProjectReference Include="..\..\OapApi.v1.Client\OapApi.v1.Client.csproj" />
<ProjectReference Include="..\OapApi.v1.Client\OapApi.v1.Client.csproj" />
<ProjectReference Include="..\OverseasAutoProtection\OverseasAutoProtection.csproj" />
<ProjectReference Include="..\OverseasAutoProtection\Oap.Content.csproj" />
</ItemGroup>
</Project>

View File

@@ -7,12 +7,6 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Remove="Views\HtmlBodyPart.cshtml" />
<EmbeddedResource Remove="Views\Layout.cshtml" />
<EmbeddedResource Remove="Views\_ViewImports.cshtml" />
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
@@ -35,7 +29,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OverseasAutoProtection\OverseasAutoProtection.csproj" />
<ProjectReference Include="..\Oap\Oap.csproj" />
</ItemGroup>
</Project>

View File

@@ -1,7 +1,7 @@
using Microsoft.Extensions.Options;
using OrchardCore.ResourceManagement;
namespace OapTheme;
namespace Oap.Theme;
public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions>
{

View File

@@ -3,7 +3,7 @@ using Microsoft.Extensions.Options;
using OrchardCore.Modules;
using OrchardCore.ResourceManagement;
namespace OapTheme;
namespace Oap.Theme;
public class Startup : StartupBase
{

View File

@@ -1,4 +1,4 @@
namespace OverseasAutoProtection;
namespace Oap.Content;
public static class ContentTypes
{
public const string OapApplication = nameof(OapApplication);

View File

@@ -1,4 +1,5 @@
using OrchardCore.Autoroute.Models;
using Oap.OapApplication;
using OrchardCore.Autoroute.Models;
using OrchardCore.ContentFields.Fields;
using OrchardCore.ContentFields.Settings;
using OrchardCore.ContentManagement.Metadata;
@@ -10,9 +11,8 @@ using OrchardCore.Html.Settings;
using OrchardCore.Lists.Models;
using OrchardCore.Mvc.Utilities;
using OrchardCore.Title.Models;
using OverseasAutoProtection.OapApplication;
namespace OverseasAutoProtection;
namespace Oap.Content;
public class Migrations : DataMigration
{
@@ -44,7 +44,7 @@ public class Migrations : DataMigration
.AlterTypeDefinitionAsync(ContentTypes.OapApplicationForm, type => type
.Creatable()
.Listable()
.Securable()
.Securable()
.Draftable()
.Versionable()
.WithPart(nameof(AutoroutePart), part => part

View File

@@ -20,4 +20,8 @@
<PackageReference Include="OrchardCore.Title" Version="1.8.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Oap\Oap.csproj" />
</ItemGroup>
</Project>

View File

@@ -1,10 +1,10 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using Oap.OapApplication;
using OrchardCore.Data.Migration;
using OverseasAutoProtection.OapApplication;
namespace OverseasAutoProtection;
namespace Oap.Content;
public class Startup : OrchardCore.Modules.StartupBase
{