diff --git a/DeepDrftCms/CmsStartup.cs b/DeepDrftCms/CmsStartup.cs new file mode 100644 index 0000000..44861e1 --- /dev/null +++ b/DeepDrftCms/CmsStartup.cs @@ -0,0 +1,12 @@ +using Microsoft.Extensions.DependencyInjection; + +namespace DeepDrftCms; + +public static class CmsStartup +{ + public static IServiceCollection AddCmsServices(this IServiceCollection services) + { + // CMS-specific services registered here as implementation waves land. + return services; + } +} diff --git a/DeepDrftCms/DeepDrftCms.csproj b/DeepDrftCms/DeepDrftCms.csproj new file mode 100644 index 0000000..e9a4616 --- /dev/null +++ b/DeepDrftCms/DeepDrftCms.csproj @@ -0,0 +1,25 @@ + + + + net10.0 + enable + enable + + + + + + + + + + + + + + + + + + + diff --git a/DeepDrftCms/Pages/Cms/Index.razor b/DeepDrftCms/Pages/Cms/Index.razor new file mode 100644 index 0000000..e667f21 --- /dev/null +++ b/DeepDrftCms/Pages/Cms/Index.razor @@ -0,0 +1,9 @@ +@page "/cms" +@rendermode InteractiveServer + +DeepDrft CMS + + + DeepDrft CMS + Administration panel — under construction. + diff --git a/DeepDrftCms/_Imports.razor b/DeepDrftCms/_Imports.razor new file mode 100644 index 0000000..cf3d836 --- /dev/null +++ b/DeepDrftCms/_Imports.razor @@ -0,0 +1,11 @@ +@using Microsoft.AspNetCore.Authorization +@using Microsoft.AspNetCore.Components.Authorization +@using Microsoft.AspNetCore.Components.Forms +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using Microsoft.AspNetCore.Components.Web.Virtualization +@using static Microsoft.AspNetCore.Components.Web.RenderMode +@using Microsoft.JSInterop +@using DeepDrftCms +@using DeepDrftModels.Entities +@using MudBlazor diff --git a/DeepDrftHome.sln b/DeepDrftHome.sln index e737e9d..3f17d88 100644 --- a/DeepDrftHome.sln +++ b/DeepDrftHome.sln @@ -18,6 +18,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepDrftWeb.Services", "Dee EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepDrftContent.Services", "DeepDrftContent.Services\DeepDrftContent.Services.csproj", "{4D025326-7F27-4C42-BE0F-92C1E64E0696}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepDrftCms", "DeepDrftCms\DeepDrftCms.csproj", "{81F1D47F-F892-45FB-9E35-D7775805FFD3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -136,6 +138,18 @@ Global {4D025326-7F27-4C42-BE0F-92C1E64E0696}.Release|x64.Build.0 = Release|Any CPU {4D025326-7F27-4C42-BE0F-92C1E64E0696}.Release|x86.ActiveCfg = Release|Any CPU {4D025326-7F27-4C42-BE0F-92C1E64E0696}.Release|x86.Build.0 = Release|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Debug|x64.ActiveCfg = Debug|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Debug|x64.Build.0 = Debug|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Debug|x86.ActiveCfg = Debug|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Debug|x86.Build.0 = Debug|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Release|Any CPU.Build.0 = Release|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Release|x64.ActiveCfg = Release|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Release|x64.Build.0 = Release|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Release|x86.ActiveCfg = Release|Any CPU + {81F1D47F-F892-45FB-9E35-D7775805FFD3}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DeepDrftWeb/DeepDrftWeb.csproj b/DeepDrftWeb/DeepDrftWeb.csproj index f50f99b..bb1e128 100644 --- a/DeepDrftWeb/DeepDrftWeb.csproj +++ b/DeepDrftWeb/DeepDrftWeb.csproj @@ -20,6 +20,7 @@ + diff --git a/DeepDrftWeb/Program.cs b/DeepDrftWeb/Program.cs index 0379e0c..ff5eaca 100644 --- a/DeepDrftWeb/Program.cs +++ b/DeepDrftWeb/Program.cs @@ -1,3 +1,4 @@ +using DeepDrftCms; using DeepDrftWeb; using MudBlazor.Services; using DeepDrftWeb.Components; @@ -8,6 +9,8 @@ var builder = WebApplication.CreateBuilder(args); // Add MudBlazor services builder.Services.AddMudServices(); +builder.Services.AddCmsServices(); + // Add AudioInteropService for both server and client rendering // builder.Services.AddScoped(); @@ -106,7 +109,9 @@ app.MapControllers(); app.MapRazorComponents() .AddInteractiveServerRenderMode() .AddInteractiveWebAssemblyRenderMode() - .AddAdditionalAssemblies(typeof(DeepDrftWeb.Client._Imports).Assembly); + .AddAdditionalAssemblies( + typeof(DeepDrftWeb.Client._Imports).Assembly, + typeof(DeepDrftCms._Imports).Assembly); app.Run();