From 9407babe7947d1fa6ea497acd04ea2245fdbb018 Mon Sep 17 00:00:00 2001
From: Hamid Reza Mohammadi
Date: Sun, 25 May 2025 08:17:29 +0330
Subject: [PATCH] display stats of visits for categories and poems #481
---
.../Models/Kontor/DateRangeVisitsViewModel.cs | 16 +++++++
GanjooRazor/Pages/AudioClip.cshtml | 2 +-
GanjooRazor/Pages/Books.cshtml | 2 +-
GanjooRazor/Pages/Contribs.cshtml | 2 +-
GanjooRazor/Pages/FAQ.cshtml | 2 +-
GanjooRazor/Pages/Hashieha.cshtml | 2 +-
GanjooRazor/Pages/Index.cshtml | 2 +-
GanjooRazor/Pages/Index.cshtml.cs | 47 ++++++++++++++++++-
GanjooRazor/Pages/Map.cshtml | 2 +-
GanjooRazor/Pages/Photos.cshtml | 2 +-
GanjooRazor/Pages/Quotes.cshtml | 2 +-
GanjooRazor/Pages/ReportRecitation.cshtml | 2 +-
GanjooRazor/Pages/Search.cshtml | 2 +-
GanjooRazor/Pages/Shared/_AdminLayout.cshtml | 2 +-
.../Pages/Shared/_UserPanelLayout.cshtml | 2 +-
GanjooRazor/Pages/Simi.cshtml | 2 +-
GanjooRazor/Pages/Tagged.cshtml | 2 +-
GanjooRazor/Pages/_7DaysVisitsPartial.cshtml | 42 +++++++++++++++++
.../Pages/_7DaysVisitsPartial.cshtml.cs | 10 ++++
GanjooRazor/Pages/_GanjoorPagePartial.cshtml | 44 +++++++++++++++++
GanjooRazor/Pages/_TopVisitsPartial.cshtml | 6 +++
GanjooRazor/wwwroot/js/bk.js | 37 +++++++++++++--
22 files changed, 213 insertions(+), 19 deletions(-)
create mode 100644 GanjooRazor/Models/Kontor/DateRangeVisitsViewModel.cs
create mode 100644 GanjooRazor/Pages/_7DaysVisitsPartial.cshtml
create mode 100644 GanjooRazor/Pages/_7DaysVisitsPartial.cshtml.cs
diff --git a/GanjooRazor/Models/Kontor/DateRangeVisitsViewModel.cs b/GanjooRazor/Models/Kontor/DateRangeVisitsViewModel.cs
new file mode 100644
index 00000000..5b7e1bc8
--- /dev/null
+++ b/GanjooRazor/Models/Kontor/DateRangeVisitsViewModel.cs
@@ -0,0 +1,16 @@
+using System;
+
+namespace KontorService.Models.Reporting.ViewModels
+{
+ public class DateRangeVisitsViewModel
+ {
+ ///
+ /// Date
+ ///
+ public DateTime Date { get; set; }
+ ///
+ /// visits
+ ///
+ public int Visits { get; set; }
+ }
+}
diff --git a/GanjooRazor/Pages/AudioClip.cshtml b/GanjooRazor/Pages/AudioClip.cshtml
index 5b83db41..405bc74f 100644
--- a/GanjooRazor/Pages/AudioClip.cshtml
+++ b/GanjooRazor/Pages/AudioClip.cshtml
@@ -151,7 +151,7 @@
-
+
diff --git a/GanjooRazor/Pages/Books.cshtml b/GanjooRazor/Pages/Books.cshtml
index 32bc47b3..81000766 100644
--- a/GanjooRazor/Pages/Books.cshtml
+++ b/GanjooRazor/Pages/Books.cshtml
@@ -16,7 +16,7 @@
-
+
-
+
-
+
-
+
-
+
+
diff --git a/GanjooRazor/Pages/Photos.cshtml b/GanjooRazor/Pages/Photos.cshtml
index 8eb5dcd6..f5a4408f 100644
--- a/GanjooRazor/Pages/Photos.cshtml
+++ b/GanjooRazor/Pages/Photos.cshtml
@@ -16,7 +16,7 @@
-
+
-
+
+
diff --git a/GanjooRazor/Pages/Search.cshtml b/GanjooRazor/Pages/Search.cshtml
index f51d7e92..54c9edcb 100644
--- a/GanjooRazor/Pages/Search.cshtml
+++ b/GanjooRazor/Pages/Search.cshtml
@@ -22,7 +22,7 @@
-
+
-
+
-
+
-
+
-
+