-
+
مُؤدیٰران
-
-
+
+
سامانه ای برای مدیران
-
-
+
+
امتحانش رایگانه
@@ -398,3 +401,11 @@
+@code {
+ protected override async Task OnInitializedAsync()
+ {
+ description = _config.GetSection("MetaTags:Home:description").Value;
+ await base.OnInitializedAsync();
+ }
+ public string description { get; set; }
+}
\ No newline at end of file
diff --git a/moadiran/Pages/ListBlog.razor b/moadiran/Pages/ListBlog.razor
index ecbfc36..0f83e0b 100644
--- a/moadiran/Pages/ListBlog.razor
+++ b/moadiran/Pages/ListBlog.razor
@@ -1,6 +1,6 @@
-
+@inject IConfiguration _config
@inject HttpClient _hc
-@layout BlogLayout
+@layout Shared.BlogLayout
@page "/ListBlog"
@page "/ListBlog/{Tag}"
@page "/SearchBlog/{itemSearch}"
@@ -9,6 +9,12 @@
@using global::Shared.DTOs
@inject NavigationManager Navigation
دانشنامه
+
+
+
+
+
+
@@ -103,6 +109,8 @@
@code {
+ public string description { get; set; }
+ public string keywords { get; set; }
[Parameter]
public string? Tag { get; set; }
@@ -113,14 +121,22 @@
public PagingDto
? request { get; set; }
+ protected override async Task OnInitializedAsync()
+ {
+ description = _config.GetSection("MetaTags:ListBlog:description").Value;
+ keywords = _config.GetSection("MetaTags:ListBlog:keywords").Value;
+ await base.OnInitializedAsync();
+ }
protected override async Task OnParametersSetAsync()
{
if (PageIndex == null) PageIndex = 1;
string url = $"Base/LastBlog?PageIndex={PageIndex ?? 1}&PageSize=6";
if (!string.IsNullOrEmpty(itemSearch)) url += $" &ItemSearch={itemSearch}";
- else if (!string.IsNullOrEmpty(Tag)) url += $" &Tag={Tag}";
+ else if (!string.IsNullOrEmpty(Tag)) url += $" &Tag={Tag}";
request = await _hc.GetFromJsonAsync>(url);
+
+
await base.OnParametersSetAsync();
}
diff --git a/moadiran/Pages/Verification.razor b/moadiran/Pages/Verification.razor
index 3d5b5b2..a019e57 100644
--- a/moadiran/Pages/Verification.razor
+++ b/moadiran/Pages/Verification.razor
@@ -2,8 +2,15 @@
@page "/Verification/{ID:int}"
@inject HttpClient _hc
@inject NavigationManager nav
+@inject IConfiguration _config
+
مودیران / احراز هویت
+
+
+
+
+
@@ -84,6 +91,7 @@
@code {
+ public string description { get; set; }
List messages = new List();
public string hidden { get; set; }
public bool SpinnerVisible { get; set; } = false;
@@ -103,6 +111,11 @@
[SupplyParameterFromForm]
public VerificationCodeDto? VerificationCodeModel { get; set; } = new VerificationCodeDto();
+ protected override async Task OnInitializedAsync()
+ {
+ description = _config.GetSection("MetaTags:Verification:description").Value;
+ await base.OnInitializedAsync();
+ }
protected override async Task OnParametersSetAsync()
{
var request = await _hc.GetAsync($"Verification/GetVerification/{ID}");
diff --git a/moadiran/Pages/_Layout.cshtml b/moadiran/Pages/_Layout.cshtml
index ec3cfaf..7ccefef 100644
--- a/moadiran/Pages/_Layout.cshtml
+++ b/moadiran/Pages/_Layout.cshtml
@@ -6,19 +6,30 @@
-
-
+
مُؤدیٰران (مدیریت صورتحساب ها)
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -26,7 +37,7 @@
- @RenderBody()
+ @RenderBody()
diff --git a/moadiran/Shared/BlogLayout.razor b/moadiran/Shared/BlogLayout.razor
new file mode 100644
index 0000000..37c5e70
--- /dev/null
+++ b/moadiran/Shared/BlogLayout.razor
@@ -0,0 +1,14 @@
+@using moadiran.Layout
+@inherits LayoutComponentBase
+
+
+
+
+
+
+
diff --git a/moadiran/Layout/BlogLayout.razor.css b/moadiran/Shared/BlogLayout.razor.css
similarity index 100%
rename from moadiran/Layout/BlogLayout.razor.css
rename to moadiran/Shared/BlogLayout.razor.css
diff --git a/moadiran/Shared/MainLayout.razor b/moadiran/Shared/MainLayout.razor
index 886535f..9acc4e8 100644
--- a/moadiran/Shared/MainLayout.razor
+++ b/moadiran/Shared/MainLayout.razor
@@ -1,30 +1,8 @@
@using moadiran.Layout
@inherits LayoutComponentBase
@inject Fixedvalues fv;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@code {
- public string description { get; set; } = "سامانه ای برای مدیریت صورتحساب های فروش با الگوی سازمان امورمالیاتی کشور و ارسال صورت حساب به سامانه مودیان";
+
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if(firstRender)
diff --git a/moadiran/appsettings.json b/moadiran/appsettings.json
index 10f68b8..aefc728 100644
--- a/moadiran/appsettings.json
+++ b/moadiran/appsettings.json
@@ -5,5 +5,17 @@
"Microsoft.AspNetCore": "Warning"
}
},
+ "MetaTags": {
+ "Verification": {
+ "description": "سامانه ای برای مدیریت صورتحساب های فروش با الگوی سازمان امورمالیاتی کشور و ارسال صورت حساب به سامانه مودیان"
+ },
+ "Home": {
+ "description": "سامانه ای برای مدیریت صورتحساب های فروش با الگوی سازمان امورمالیاتی کشور و ارسال صورت حساب به سامانه مودیان"
+ },
+ "ListBlog": {
+ "description": "دانشنانه مؤدیران",
+ "keywords": "دانشنانه مؤدیران"
+ }
+ },
"AllowedHosts": "*"
}