Fix oap theme layout issue

This commit is contained in:
2024-04-05 19:47:02 -05:00
parent 355ff3ba83
commit dd2ad7ade8
9 changed files with 5 additions and 12 deletions

View File

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

View File

@@ -1,10 +1,9 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using BenRameyTheme;
using OrchardCore.Modules;
using OrchardCore.ResourceManagement;
namespace Twain.Web;
namespace BenRamey.Theme;
public class Startup : StartupBase
{

View File

@@ -1,7 +1,6 @@
using OrchardCore.Modules.Manifest;
[assembly: Module(
Id = "OAP.Content",
Name = "Overseas Auto Protection",
Author = "Overseas Auto Protection",
Website = "https://oaprotection.org/",

View File

@@ -1,7 +1,6 @@
using OrchardCore.DisplayManagement.Manifest;
[assembly: Theme(
Id = "OAP.Theme",
Name = "OAP Theme",
Author = "Overseas Auto Protection",
Website = "https://oaprotection.org/",

View File

@@ -24,10 +24,6 @@
<PackageReference Include="OrchardCore.ResourceManagement" Version="1.8.2" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Oap\Oap.csproj" />
</ItemGroup>

View File

@@ -11,7 +11,7 @@ public class ResourceManagementOptionsConfiguration : IConfigureOptions<Resource
m_manifest
.DefineStyle("OapTheme-styles")
.SetUrl("~/OapTheme/site.css")
.SetUrl("~/Oap.Theme/site.css")
.SetVersion("1.0.0");
}

View File

@@ -14,7 +14,7 @@
<resources type="Meta" />
<link type="image/x-icon" rel="shortcut icon" href="~/OapTheme/assets/favicon.ico">
<link type="image/x-icon" rel="shortcut icon" href="~/Oap.Theme/assets/favicon.ico">
<style asp-name="oaptheme-styles"></style>

View File

@@ -4,6 +4,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
module.exports = {
mode: 'development',
entry: {
site: './Scripts/site.js',
},

View File

@@ -1,7 +1,6 @@
using OrchardCore.Modules.Manifest;
[assembly: Module(
Id = "OAP.APIv1",
Name = "Overseas Auto Protection API v1",
Author = "Overseas Auto Protection",
Website = "https://oaprotection.org/api/v1/",