From 99593b443fc99ec87e351bd16e7929796531e2ef Mon Sep 17 00:00:00 2001 From: Nguyen Thien Tu <15050790+thientu995@users.noreply.github.com> Date: Mon, 24 Aug 2026 10:56:44 +0700 Subject: [PATCH 1/4] add validate DI --- uTPro/Project/uTPro.Project.Web/Program.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/uTPro/Project/uTPro.Project.Web/Program.cs b/uTPro/Project/uTPro.Project.Web/Program.cs index f082e429..6e2d8457 100644 --- a/uTPro/Project/uTPro.Project.Web/Program.cs +++ b/uTPro/Project/uTPro.Project.Web/Program.cs @@ -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. From 833e7d38bedfb550ac2dea9704fe915ce61e5840 Mon Sep 17 00:00:00 2001 From: Nguyen Thien Tu <15050790+thientu995@users.noreply.github.com> Date: Fri, 28 Aug 2026 09:53:42 +0700 Subject: [PATCH 2/4] fix override color --- .../App_Plugins/utpro-cms-screen/style.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/uTPro/Feature/uTPro.Feature.Dashboard/App_Plugins/utpro-cms-screen/style.css b/uTPro/Feature/uTPro.Feature.Dashboard/App_Plugins/utpro-cms-screen/style.css index 40f89a82..8ba05a5d 100644 --- a/uTPro/Feature/uTPro.Feature.Dashboard/App_Plugins/utpro-cms-screen/style.css +++ b/uTPro/Feature/uTPro.Feature.Dashboard/App_Plugins/utpro-cms-screen/style.css @@ -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; From f28eafeb51d0d5dd2227d25f922eaa5ec6db0230 Mon Sep 17 00:00:00 2001 From: Nguyen Thien Tu <15050790+thientu995@users.noreply.github.com> Date: Fri, 28 Aug 2026 13:22:40 +0700 Subject: [PATCH 3/4] update nuget --- uTPro/Project/uTPro.Project.Web/uTPro.Project.Web.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uTPro/Project/uTPro.Project.Web/uTPro.Project.Web.csproj b/uTPro/Project/uTPro.Project.Web/uTPro.Project.Web.csproj index de1d74b6..4ca4f871 100644 --- a/uTPro/Project/uTPro.Project.Web/uTPro.Project.Web.csproj +++ b/uTPro/Project/uTPro.Project.Web/uTPro.Project.Web.csproj @@ -6,7 +6,7 @@ true false - 17.11.3 + 17.11.4 @@ -21,8 +21,8 @@ - - + + From cfbe8acc6bef6ac2aaaa46739322517792a9207c Mon Sep 17 00:00:00 2001 From: Nguyen Thien Tu <15050790+thientu995@users.noreply.github.com> Date: Fri, 28 Aug 2026 13:23:54 +0700 Subject: [PATCH 4/4] update defaule language --- .../uSync/v17/Content/home.config | 2590 +++++++++++++++++ .../v17/Content/trang-ch\341\273\247.config" | 2590 +---------------- .../v17/Domains/utpro.local_en-us.config | 8 + .../v17/Domains/utpro.local_vi-vn.config | 8 +- .../uSync/v17/Languages/en-us.config | 5 +- .../uSync/v17/Languages/vi-vn.config | 3 +- 6 files changed, 2604 insertions(+), 2600 deletions(-) create mode 100644 uTPro/Project/uTPro.Project.Web/uSync/v17/Content/home.config create mode 100644 uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_en-us.config diff --git a/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/home.config b/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/home.config new file mode 100644 index 00000000..7900f57b --- /dev/null +++ b/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/home.config @@ -0,0 +1,2590 @@ + + + + Sites + /uTPro/Sites/Home + false + uTPro__PageHome + 2025-07-11T14:09:13 + + Home + Trang chủ + + 0 + + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git "a/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/trang-ch\341\273\247.config" "b/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/trang-ch\341\273\247.config" index 7421f958..763662c3 100644 --- "a/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/trang-ch\341\273\247.config" +++ "b/uTPro/Project/uTPro.Project.Web/uSync/v17/Content/trang-ch\341\273\247.config" @@ -1,2590 +1,2 @@  - - - Sites - /uTPro/Sites/TrangChu - false - uTPro__PageHome - 2025-07-11T14:09:13 - - Home - Trang chủ - - 0 - - true - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_en-us.config b/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_en-us.config new file mode 100644 index 00000000..f2fa151b --- /dev/null +++ b/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_en-us.config @@ -0,0 +1,8 @@ + + + + false + en-US + /uTPro/Sites/Trang chủ + + \ No newline at end of file diff --git a/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_vi-vn.config b/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_vi-vn.config index 7c9dbba5..6aceb9f3 100644 --- a/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_vi-vn.config +++ b/uTPro/Project/uTPro.Project.Web/uSync/v17/Domains/utpro.local_vi-vn.config @@ -1,8 +1,2 @@  - - - false - vi-VN - /uTPro/Sites/Trang chủ - - \ No newline at end of file + \ No newline at end of file diff --git a/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/en-us.config b/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/en-us.config index 8ef35095..c189d7f6 100644 --- a/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/en-us.config +++ b/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/en-us.config @@ -2,7 +2,6 @@ English (United States) en-US - false - false - vi-VN + true + true \ No newline at end of file diff --git a/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/vi-vn.config b/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/vi-vn.config index c4e8c618..4f17b72f 100644 --- a/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/vi-vn.config +++ b/uTPro/Project/uTPro.Project.Web/uSync/v17/Languages/vi-vn.config @@ -3,5 +3,6 @@ Vietnamese (Vietnam) vi-VN true - true + false + en-US \ No newline at end of file