diff --git a/src/EasyFrameWork/EasyFrameWork.csproj b/src/EasyFrameWork/EasyFrameWork.csproj index d34ad337..a9b1ac97 100644 --- a/src/EasyFrameWork/EasyFrameWork.csproj +++ b/src/EasyFrameWork/EasyFrameWork.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/ZKEACMS.Swagger/ZKEACMS.Swagger.csproj b/src/ZKEACMS.Swagger/ZKEACMS.Swagger.csproj index d3a15481..4d55a210 100644 --- a/src/ZKEACMS.Swagger/ZKEACMS.Swagger.csproj +++ b/src/ZKEACMS.Swagger/ZKEACMS.Swagger.csproj @@ -16,7 +16,7 @@ - + false runtime diff --git a/src/ZKEACMS.WebHost/Views/Account/Forgotten.cshtml b/src/ZKEACMS.WebHost/Views/Account/Forgotten.cshtml index dcbd41e1..6587f1c3 100644 --- a/src/ZKEACMS.WebHost/Views/Account/Forgotten.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/Forgotten.cshtml @@ -1,7 +1,8 @@ @model ZKEACMS.Account.ForgottenViewModel @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Customer").AtHead(); Script.Reqiured("validate").AtFoot(); } diff --git a/src/ZKEACMS.WebHost/Views/Account/Login.cshtml b/src/ZKEACMS.WebHost/Views/Account/Login.cshtml index 36c6f845..a6847cd1 100644 --- a/src/ZKEACMS.WebHost/Views/Account/Login.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/Login.cshtml @@ -1,7 +1,8 @@ @model ZKEACMS.Common.ViewModels.AdminSignViewModel @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Login").AtHead(); Script.Reqiured("validate").AtFoot(); } diff --git a/src/ZKEACMS.WebHost/Views/Account/Reset.cshtml b/src/ZKEACMS.WebHost/Views/Account/Reset.cshtml index f2356bb0..27e5e279 100644 --- a/src/ZKEACMS.WebHost/Views/Account/Reset.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/Reset.cshtml @@ -1,7 +1,8 @@ @model ZKEACMS.Account.ResetViewModel @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Customer").AtHead(); Script.Reqiured("validate").AtFoot(); } diff --git a/src/ZKEACMS.WebHost/Views/Account/Sended.cshtml b/src/ZKEACMS.WebHost/Views/Account/Sended.cshtml index 231490fa..a31fc27b 100644 --- a/src/ZKEACMS.WebHost/Views/Account/Sended.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/Sended.cshtml @@ -1,6 +1,7 @@ @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Customer").AtHead(); Script.Reqiured("validate").AtFoot(); string link = "~/"; diff --git a/src/ZKEACMS.WebHost/Views/Account/SignIn.cshtml b/src/ZKEACMS.WebHost/Views/Account/SignIn.cshtml index 859dc2fc..6a73139e 100644 --- a/src/ZKEACMS.WebHost/Views/Account/SignIn.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/SignIn.cshtml @@ -1,7 +1,8 @@ @model ZKEACMS.Common.ViewModels.CustomerSignInViewModel @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Customer").AtHead(); Script.Reqiured("validate").AtFoot(); var returnUrl = ViewBag.ReturnUrl ?? ViewContext.HttpContext.Request.Query["ReturnUrl"]; diff --git a/src/ZKEACMS.WebHost/Views/Account/SignUp.cshtml b/src/ZKEACMS.WebHost/Views/Account/SignUp.cshtml index dee34f30..6ffc610c 100644 --- a/src/ZKEACMS.WebHost/Views/Account/SignUp.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/SignUp.cshtml @@ -1,7 +1,8 @@ @model Easy.Modules.User.Models.UserEntity @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Customer").AtHead(); Script.Reqiured("validate").AtFoot(); var returnUrl = ViewBag.ReturnUrl ?? ViewContext.HttpContext.Request.Query["ReturnUrl"]; diff --git a/src/ZKEACMS.WebHost/Views/Account/SignUpSuccess.cshtml b/src/ZKEACMS.WebHost/Views/Account/SignUpSuccess.cshtml index 5d390500..088c2060 100644 --- a/src/ZKEACMS.WebHost/Views/Account/SignUpSuccess.cshtml +++ b/src/ZKEACMS.WebHost/Views/Account/SignUpSuccess.cshtml @@ -1,6 +1,7 @@ @{ this.WorkContext().CurrentPage.Title = ZKEACMS.Version.CurrentVersion + " " + ZKEACMS.Version.Rank; - Layout = Layouts.NormalDefault; + Layout = Layouts.EmptyLayout; + Style.Reqiured("bootStrap").AtHead(); Style.Reqiured("Customer").AtHead(); Script.Reqiured("validate").AtFoot(); } diff --git a/src/ZKEACMS.WebHost/Views/Error/Forbidden.cshtml b/src/ZKEACMS.WebHost/Views/Error/Forbidden.cshtml index be86f505..75d80660 100644 --- a/src/ZKEACMS.WebHost/Views/Error/Forbidden.cshtml +++ b/src/ZKEACMS.WebHost/Views/Error/Forbidden.cshtml @@ -1,6 +1,6 @@ @{ this.WorkContext().CurrentPage.Title = System.Net.HttpStatusCode.Forbidden.ToString(); - Layout = Layouts.Generic; + Layout = Layouts.EmptyLayout; }
diff --git a/src/ZKEACMS.WebHost/Views/Error/Index.cshtml b/src/ZKEACMS.WebHost/Views/Error/Index.cshtml index 107b9207..7643d787 100644 --- a/src/ZKEACMS.WebHost/Views/Error/Index.cshtml +++ b/src/ZKEACMS.WebHost/Views/Error/Index.cshtml @@ -1,6 +1,6 @@ @{ this.WorkContext().CurrentPage.Title = ViewContext.HttpContext.Response.StatusCode.ToString(); - Layout = Layouts.Generic; + Layout = Layouts.EmptyLayout; }
diff --git a/src/ZKEACMS.WebHost/Views/Error/NotFound.cshtml b/src/ZKEACMS.WebHost/Views/Error/NotFound.cshtml index 1a5dc171..9397a45a 100644 --- a/src/ZKEACMS.WebHost/Views/Error/NotFound.cshtml +++ b/src/ZKEACMS.WebHost/Views/Error/NotFound.cshtml @@ -1,6 +1,6 @@ @{ this.WorkContext().CurrentPage.Title = System.Net.HttpStatusCode.NotFound.ToString(); - Layout = Layouts.Generic; + Layout = Layouts.EmptyLayout; }
diff --git a/src/ZKEACMS.WebHost/Views/Shared/NotFound.cshtml b/src/ZKEACMS.WebHost/Views/Shared/NotFound.cshtml index 1a5dc171..9397a45a 100644 --- a/src/ZKEACMS.WebHost/Views/Shared/NotFound.cshtml +++ b/src/ZKEACMS.WebHost/Views/Shared/NotFound.cshtml @@ -1,6 +1,6 @@ @{ this.WorkContext().CurrentPage.Title = System.Net.HttpStatusCode.NotFound.ToString(); - Layout = Layouts.Generic; + Layout = Layouts.EmptyLayout; }
diff --git a/src/ZKEACMS.WebHost/Views/Shared/_EmptyLayout.cshtml b/src/ZKEACMS.WebHost/Views/Shared/_EmptyLayout.cshtml index eccac4ad..3a5ffb50 100644 --- a/src/ZKEACMS.WebHost/Views/Shared/_EmptyLayout.cshtml +++ b/src/ZKEACMS.WebHost/Views/Shared/_EmptyLayout.cshtml @@ -6,9 +6,9 @@ @await Html.PartialAsync("Partial.PageHeader") -
+
@RenderBody() -
+ @await Html.PartialAsync("Partial.PageFooter") diff --git a/src/ZKEACMS.WebHost/Views/Shared/_LayoutGeneric.cshtml b/src/ZKEACMS.WebHost/Views/Shared/_LayoutGeneric.cshtml deleted file mode 100644 index 91254cf7..00000000 --- a/src/ZKEACMS.WebHost/Views/Shared/_LayoutGeneric.cshtml +++ /dev/null @@ -1,15 +0,0 @@ -@using Microsoft.AspNetCore.Hosting -@using Microsoft.Extensions.Hosting -@using Microsoft.Extensions.Options -@using Easy.Options -@inject IOptions cultureOption - - - - @await Html.PartialAsync("Partial.PageHeader") - - - @RenderBody() - @await Html.PartialAsync("Partial.PageFooter") - - \ No newline at end of file diff --git a/src/ZKEACMS.WebHost/Views/Shared/_LayoutNormal.cshtml b/src/ZKEACMS.WebHost/Views/Shared/_LayoutNormal.cshtml deleted file mode 100644 index 0b05f019..00000000 --- a/src/ZKEACMS.WebHost/Views/Shared/_LayoutNormal.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@using Microsoft.AspNetCore.Hosting -@using Microsoft.Extensions.Hosting -@using Microsoft.Extensions.Options -@using Easy.Options -@inject IOptions cultureOption - - - - @await Html.PartialAsync("Partial.PageHeader") - - -
- @RenderBody() -
- @await Html.PartialAsync("Partial.PageFooter") - - \ No newline at end of file diff --git a/src/ZKEACMS/Constant.cs b/src/ZKEACMS/Constant.cs index c1fc68fb..d2c61076 100644 --- a/src/ZKEACMS/Constant.cs +++ b/src/ZKEACMS/Constant.cs @@ -33,14 +33,6 @@ public class Layouts /// public const string Default = "_Layout"; /// - /// Layout with current theme and body with container. - /// - public const string NormalDefault = "_LayoutNormal"; - /// - /// Layout with current theme - /// - public const string Generic = "_LayoutGeneric"; - /// /// Layout for admin pop up modal /// public const string PopUp = "_PopUpLayout"; diff --git a/src/ZKEACMS/Controllers/AccountController.cs b/src/ZKEACMS/Controllers/AccountController.cs index a7e417f8..db5d7405 100644 --- a/src/ZKEACMS/Controllers/AccountController.cs +++ b/src/ZKEACMS/Controllers/AccountController.cs @@ -23,7 +23,6 @@ namespace ZKEACMS.Controllers { - [Themed] public class AccountController : Controller { private readonly IUserService _userService; diff --git a/src/ZKEACMS/ZKEACMS.csproj b/src/ZKEACMS/ZKEACMS.csproj index 107e82e2..bcadc9f6 100644 --- a/src/ZKEACMS/ZKEACMS.csproj +++ b/src/ZKEACMS/ZKEACMS.csproj @@ -28,7 +28,7 @@ - +