Move some things around
This commit is contained in:
14
src/OAP/Oap/Oap.csproj
Normal file
14
src/OAP/Oap/Oap.csproj
Normal 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>
|
||||
@@ -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();
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace OverseasAutoProtection.OapApplication;
|
||||
namespace Oap.OapApplication;
|
||||
|
||||
public static class OapApplicationStatuses
|
||||
{
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -1,7 +1,7 @@
|
||||
using Microsoft.Extensions.Options;
|
||||
using OrchardCore.ResourceManagement;
|
||||
|
||||
namespace OapTheme;
|
||||
namespace Oap.Theme;
|
||||
|
||||
public class ResourceManagementOptionsConfiguration : IConfigureOptions<ResourceManagementOptions>
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@ using Microsoft.Extensions.Options;
|
||||
using OrchardCore.Modules;
|
||||
using OrchardCore.ResourceManagement;
|
||||
|
||||
namespace OapTheme;
|
||||
namespace Oap.Theme;
|
||||
|
||||
public class Startup : StartupBase
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace OverseasAutoProtection;
|
||||
namespace Oap.Content;
|
||||
public static class ContentTypes
|
||||
{
|
||||
public const string OapApplication = nameof(OapApplication);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -20,4 +20,8 @@
|
||||
<PackageReference Include="OrchardCore.Title" Version="1.8.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Oap\Oap.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user