From 39550d71a8568eccf00f18dc31270f7b05d01622 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Sep 2025 16:58:09 +0000 Subject: [PATCH 01/12] Initial plan From 1b7b78658fdaa45439eb959603ac2d8af82d3289 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Sep 2025 17:01:59 +0000 Subject: [PATCH 02/12] Initial analysis complete - planning Blog management for Store area Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com> --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 41c9ad2ed..e9f309cde 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "9.0.100", + "version": "8.0.119", "rollForward": "latestFeature", "allowPrerelease": false } From 406169c89b31baf489f1290df4f95a0a9e9ad7fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 22 Sep 2025 17:06:55 +0000 Subject: [PATCH 03/12] Add Blog management functionality to Store area Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com> --- global.json | 2 +- .../Areas/Store/Views/Blog/Create.cshtml | 38 +++ .../Areas/Store/Views/Blog/Edit.cshtml | 44 ++++ .../Areas/Store/Views/Blog/List.cshtml | 109 ++++++++ .../Partials/CreateOrUpdate.TabInfo.cshtml | 146 +++++++++++ .../Partials/CreateOrUpdate.TabSeo.cshtml | 75 ++++++ .../Views/Blog/Partials/CreateOrUpdate.cshtml | 29 +++ .../Areas/Store/Views/Blog/Preview.cshtml | 45 ++++ .../Controllers/BlogController.cs | 237 ++++++++++++++++++ 9 files changed, 724 insertions(+), 1 deletion(-) create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Create.cshtml create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Edit.cshtml create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/List.cshtml create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Partials/CreateOrUpdate.TabInfo.cshtml create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Partials/CreateOrUpdate.TabSeo.cshtml create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Partials/CreateOrUpdate.cshtml create mode 100644 src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Preview.cshtml create mode 100644 src/Web/Grand.Web.Store/Controllers/BlogController.cs diff --git a/global.json b/global.json index e9f309cde..41c9ad2ed 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.119", + "version": "9.0.100", "rollForward": "latestFeature", "allowPrerelease": false } diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Create.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Create.cshtml new file mode 100644 index 000000000..be1476ee8 --- /dev/null +++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Create.cshtml @@ -0,0 +1,38 @@ +@model BlogPostModel +@{ + //page title + ViewBag.Title = Loc["Admin.Content.Blog.BlogPosts.AddNew"]; + Layout = Constants.LayoutStore; +} +
\ No newline at end of file diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Edit.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Edit.cshtml new file mode 100644 index 000000000..a3c4caa38 --- /dev/null +++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/Edit.cshtml @@ -0,0 +1,44 @@ +@model BlogPostModel +@{ + //page title + ViewBag.Title = Loc["Admin.Content.Blog.BlogPosts.EditDetails"]; + Layout = Constants.LayoutStore; +} + \ No newline at end of file diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/List.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/List.cshtml new file mode 100644 index 000000000..27a532ba9 --- /dev/null +++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Blog/List.cshtml @@ -0,0 +1,109 @@ +@inject AdminAreaSettings adminAreaSettings +@{ + //page title + ViewBag.Title = Loc["Admin.Content.Blog.BlogPosts"]; + Layout = Constants.LayoutStore; +} + +