From 52ba9ff3a814db6854d6feccb88f1507de447a1b Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 11 Jul 2025 13:04:50 +0100 Subject: [PATCH] MEF & Settings --- src/Yavsc/Extensions/HostingExtensions.cs | 3 --- src/Yavsc/Views/Manage/Credit.cshtml | 2 +- src/Yavsc/Views/Shared/_LoginPartial.cshtml | 3 +-- src/Yavsc/wwwroot/css/site.css | 9 +++++---- src/Yavsc/wwwroot/css/site.scss | 5 +++-- test/yavscTests/appsettings.json | 2 +- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/Yavsc/Extensions/HostingExtensions.cs b/src/Yavsc/Extensions/HostingExtensions.cs index ae15c313..1175edba 100644 --- a/src/Yavsc/Extensions/HostingExtensions.cs +++ b/src/Yavsc/Extensions/HostingExtensions.cs @@ -222,7 +222,6 @@ public static class HostingExtensions } private static IIdentityServerBuilder AddIdentityServer(WebApplicationBuilder builder) { - //builder.Services.AddTransient(); var identityServerBuilder = builder.Services.AddIdentityServer(options => { options.Events.RaiseErrorEvents = true; @@ -232,12 +231,10 @@ public static class HostingExtensions // see https://IdentityServer8.readthedocs.io/en/latest/topics/resources.html options.EmitStaticAudienceClaim = true; - }) .AddInMemoryIdentityResources(Config.IdentityResources) .AddInMemoryClients(Config.Clients) .AddInMemoryApiScopes(Config.ApiScopes) - // .AddProfileService() .AddAspNetIdentity() ; if (builder.Environment.IsDevelopment()) diff --git a/src/Yavsc/Views/Manage/Credit.cshtml b/src/Yavsc/Views/Manage/Credit.cshtml index b018c91e..e4ca2c86 100644 --- a/src/Yavsc/Views/Manage/Credit.cshtml +++ b/src/Yavsc/Views/Manage/Credit.cshtml @@ -19,7 +19,7 @@ diff --git a/src/Yavsc/Views/Shared/_LoginPartial.cshtml b/src/Yavsc/Views/Shared/_LoginPartial.cshtml index b038b3c7..7207b394 100644 --- a/src/Yavsc/Views/Shared/_LoginPartial.cshtml +++ b/src/Yavsc/Views/Shared/_LoginPartial.cshtml @@ -54,5 +54,4 @@ else Login } -using IdentityServer8.Extensions; -#line default + diff --git a/src/Yavsc/wwwroot/css/site.css b/src/Yavsc/wwwroot/css/site.css index 633f830b..1c1276b8 100644 --- a/src/Yavsc/wwwroot/css/site.css +++ b/src/Yavsc/wwwroot/css/site.css @@ -30,9 +30,10 @@ input[type='checkbox'] { min-height: 1em; } .container { - background-color: #00000040; + background-color: #00000093; color: #fff; - border-radius: 2em; } + padding: .5em; + margin: .5em; } .post { background-color: #000000dd; @@ -41,10 +42,10 @@ input[type='checkbox'] { border-radius: 2em; border: solid #441515a4 2pt; } -div.actiongroup { +.actiongroup { float: right; margin: .5em; } -div.float-left { +.float-left { float: left; margin: .5em; } diff --git a/src/Yavsc/wwwroot/css/site.scss b/src/Yavsc/wwwroot/css/site.scss index 01dc5e7b..39b6ef9d 100644 --- a/src/Yavsc/wwwroot/css/site.scss +++ b/src/Yavsc/wwwroot/css/site.scss @@ -45,9 +45,10 @@ input[type='checkbox'] { } .container { - background-color: #00000040; + background-color: #00000093; color: #fff; - border-radius: 2em; + padding: .5em; + margin: .5em; } .post { diff --git a/test/yavscTests/appsettings.json b/test/yavscTests/appsettings.json index eae0aa03..02914457 100644 --- a/test/yavscTests/appsettings.json +++ b/test/yavscTests/appsettings.json @@ -1,6 +1,6 @@ { "Site": { - "Authority": "dev.pschneider.fr", + "Authority": "localhost", "Title": "Yavsc dev", "Slogan": "Yavsc : WIP.", "Banner": "/images/yavsc.png",