Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
:root {
--umb-login-primary-color: #f6821f;
--uui-color-header-surface: #f6821f;
--umb-login-greeting-color: #D9A44C;
--uui-color-default-emphasis: #D9A44C;
--uui-show-focus-outline: #ff9e40;
--uui-color-default: #f6821f;
--uui-color-current: #FFCE40;
/* --uui-palette-violet-blue: #f6821f; */
/* --uui-button-contrast: #000; */
--umb-login-primary-color: #f6821f !important;
--uui-color-header-surface: #f6821f !important;
--umb-login-greeting-color: #D9A44C !important;
--uui-color-default-emphasis: #D9A44C !important;
--uui-show-focus-outline: #ff9e40 !important;
--uui-color-default: #f6821f !important;
--uui-color-current: #FFCE40 !important;
/* --uui-palette-violet-blue: #f6821f !important; */
/* --uui-button-contrast: #000 !important; */
--umb-login-curves-display: none;
--umb-header-logo-display: none;
--umb-login-header-font-size-large: 2rem;
Expand Down
12 changes: 12 additions & 0 deletions uTPro/Project/uTPro.Project.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
var setup = HostingSetup.BuildWebApplicationOptions(args);
var builder = WebApplication.CreateBuilder(setup);

#if DEBUG
// Enable DI container validation in Debug mode only.
// - ValidateScopes: throws if a Scoped service is resolved from the root provider (e.g. injecting scoped into singleton).
// - ValidateOnBuild: throws at Build() if any service has missing or unresolvable dependencies.
// Catches DI misconfigurations early during development instead of failing silently at runtime.
builder.Host.UseDefaultServiceProvider((context, options) =>
{
options.ValidateScopes = true;
options.ValidateOnBuild = true;
});
#endif

// Expose the resolved web/content root to PathFolder (a DI-less static helper) so code
// that locates files via PathFolder respects the configured RootPath instead of assuming
// the default wwwroot under the process current directory.
Expand Down
Loading
Loading