diff --git a/src/1-Libraries/Web.Blazor.Server/Components/Error.razor b/src/1-Libraries/Web.Blazor.Server/Components/Error.razor index 9ba1bc4..a386ab2 100644 --- a/src/1-Libraries/Web.Blazor.Server/Components/Error.razor +++ b/src/1-Libraries/Web.Blazor.Server/Components/Error.razor @@ -1,29 +1,22 @@  - -
- -
-
@Title
-
-

- @Message -

- -
- @if (ShowIndexLink) - { - - } +
+
@Title
+
+

+ @Message +

+
- + @if (ShowIndexLink) + { + + }
@code { - [Parameter] - public string WrapperClass { get; set; } = "d-flex flex-column min-height-90 justify-content-center align-items-center"; [Parameter] public string Type { get; set; } = "warning"; diff --git a/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.Designer.cs b/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.Designer.cs index 784ac4b..904b2e9 100644 --- a/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.Designer.cs +++ b/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.Designer.cs @@ -150,6 +150,42 @@ public static string Connection_State_Retry_Btn { } } + /// + /// Looks up a localized string similar to We are authorizing, please wait.. + /// + public static string Error_Authorization_Message { + get { + return ResourceManager.GetString("Error_Authorization_Message", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Authorizing .... + /// + public static string Error_Authorization_Title { + get { + return ResourceManager.GetString("Error_Authorization_Title", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sorry! It seems the page that you are looking for, does not exist.. + /// + public static string Error_NotFound_Message { + get { + return ResourceManager.GetString("Error_NotFound_Message", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Page not found!. + /// + public static string Error_NotFound_Title { + get { + return ResourceManager.GetString("Error_NotFound_Title", resourceCulture); + } + } + /// /// Looks up a localized string similar to We are sorry! We were unable to process your request at this time. Our technical team was informed about this issue and it will be investigated soon. Thank you for your patience.. /// diff --git a/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.fa.resx b/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.fa.resx index 22a3d1c..109a2f9 100644 --- a/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.fa.resx +++ b/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.fa.resx @@ -156,4 +156,16 @@ رفرش کردن صفحه + + صفحه ی مورد نظر پیدا نشد! + + + شما به تازگی به سیستم وارد شدی، کمی زمان نیاز داریم که این موضوع رو بررسی کنیم + + + در حال احراز هویت ... + + + متاسفیم! صفحه ای که دنبالش بودی پیدا نشد. + \ No newline at end of file diff --git a/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.resx b/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.resx index 940757c..28026db 100644 --- a/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.resx +++ b/src/1-Libraries/Web.Blazor.Server/Resources/BlazorResource.resx @@ -156,4 +156,16 @@ Reload + + Page not found! + + + We are authorizing, please wait. + + + Authorizing ... + + + Sorry! It seems the page that you are looking for, does not exist. + \ No newline at end of file diff --git a/src/1-Libraries/Web.Blazor.Server/Web.Blazor.Server.csproj b/src/1-Libraries/Web.Blazor.Server/Web.Blazor.Server.csproj index 3923af9..5a8c421 100644 --- a/src/1-Libraries/Web.Blazor.Server/Web.Blazor.Server.csproj +++ b/src/1-Libraries/Web.Blazor.Server/Web.Blazor.Server.csproj @@ -7,7 +7,7 @@ CodeBlock.DevKit.Web.Blazor.Server CodeBlock.DevKit.Web.Blazor.Server CodeBlock Development Kit - 1.1.3 + 1.1.5 Hamed Shirbandi true CodeBlock.DevKit.Web.Blazor.Server diff --git a/src/4-Examples/BlazorServerApp/App.razor b/src/4-Examples/BlazorServerApp/App.razor index ae3ba92..cb3b4e2 100644 --- a/src/4-Examples/BlazorServerApp/App.razor +++ b/src/4-Examples/BlazorServerApp/App.razor @@ -3,16 +3,20 @@ - + + + - + + + - - + + diff --git a/src/4-Examples/BlazorServerApp/Pages/Home/Index.razor b/src/4-Examples/BlazorServerApp/Pages/Home/Index.razor index 362b34a..4982ebb 100644 --- a/src/4-Examples/BlazorServerApp/Pages/Home/Index.razor +++ b/src/4-Examples/BlazorServerApp/Pages/Home/Index.razor @@ -1,5 +1,5 @@ @page "/" -

@Localizer[BlazorServerAppResource.Home_Page_Welcome]

+

@AppLocalizer[BlazorServerAppResource.Home_Page_Welcome]

diff --git a/src/4-Examples/BlazorServerApp/Pages/Home/Roles.razor b/src/4-Examples/BlazorServerApp/Pages/Home/Roles.razor index 2f2762d..64df301 100644 --- a/src/4-Examples/BlazorServerApp/Pages/Home/Roles.razor +++ b/src/4-Examples/BlazorServerApp/Pages/Home/Roles.razor @@ -1,9 +1,9 @@ @page "/roles" @using CodeBlock.DevKit.Authorization.UI.Pages.Roles -@Localizer[BlazorServerAppResource.Nav_Menu_Roles] +@AppLocalizer[BlazorServerAppResource.Nav_Menu_Roles] -

@Localizer[BlazorServerAppResource.Nav_Menu_Roles]

+

@AppLocalizer[BlazorServerAppResource.Nav_Menu_Roles]

diff --git a/src/4-Examples/BlazorServerApp/Pages/Home/Users.razor b/src/4-Examples/BlazorServerApp/Pages/Home/Users.razor index e0f0a03..190e4d3 100644 --- a/src/4-Examples/BlazorServerApp/Pages/Home/Users.razor +++ b/src/4-Examples/BlazorServerApp/Pages/Home/Users.razor @@ -1,9 +1,9 @@ @page "/users" @using CodeBlock.DevKit.Authorization.UI.Pages.Users -@Localizer[BlazorServerAppResource.Nav_Menu_Users] +@AppLocalizer[BlazorServerAppResource.Nav_Menu_Users] -

@Localizer[BlazorServerAppResource.Nav_Menu_Users]

+

@AppLocalizer[BlazorServerAppResource.Nav_Menu_Users]

diff --git a/src/4-Examples/BlazorServerApp/Pages/Shared/MainLayout.razor b/src/4-Examples/BlazorServerApp/Pages/Shared/MainLayout.razor index bdf0d53..0952cd7 100644 --- a/src/4-Examples/BlazorServerApp/Pages/Shared/MainLayout.razor +++ b/src/4-Examples/BlazorServerApp/Pages/Shared/MainLayout.razor @@ -20,8 +20,6 @@
- - diff --git a/src/4-Examples/BlazorServerApp/Pages/Shared/NavMenu.razor b/src/4-Examples/BlazorServerApp/Pages/Shared/NavMenu.razor index 6661b74..bcd2ba2 100644 --- a/src/4-Examples/BlazorServerApp/Pages/Shared/NavMenu.razor +++ b/src/4-Examples/BlazorServerApp/Pages/Shared/NavMenu.razor @@ -1,6 +1,6 @@