diff --git a/Oqtane.Client/Installer/Controls/SqlServerConfig.razor b/Oqtane.Client/Installer/Controls/SqlServerConfig.razor index 905f8006..28192be0 100644 --- a/Oqtane.Client/Installer/Controls/SqlServerConfig.razor +++ b/Oqtane.Client/Installer/Controls/SqlServerConfig.razor @@ -1,6 +1,7 @@ @namespace Oqtane.Installer.Controls @implements Oqtane.Interfaces.IDatabaseConfigControl @inject IStringLocalizer Localizer +@inject IStringLocalizer SharedLocalizer
@@ -38,6 +39,15 @@
} +
+ +
+ +
+
@code { private string _server = String.Empty; @@ -45,6 +55,7 @@ private string _security = "integrated"; private string _uid = String.Empty; private string _pwd = String.Empty; + private string _encryption = "false"; public string GetConnectionString() { @@ -61,15 +72,9 @@ } else { - if (!String.IsNullOrEmpty(_uid) && !String.IsNullOrEmpty(_pwd)) - { - connectionString += $"User ID={_uid};Password={_pwd};"; - } - else - { - connectionString = String.Empty; - } + connectionString += $"User ID={_uid};Password={_pwd};"; } + connectionString += $"Encrypt={_encryption};"; return connectionString; } diff --git a/Oqtane.Client/Modules/Admin/Pages/Index.razor b/Oqtane.Client/Modules/Admin/Pages/Index.razor index 0b772dae..9238574a 100644 --- a/Oqtane.Client/Modules/Admin/Pages/Index.razor +++ b/Oqtane.Client/Modules/Admin/Pages/Index.razor @@ -11,13 +11,14 @@
-   -   - @SharedLocalizer["Name"] +   +   + @SharedLocalizer["Name"]
+ @(new string('-', context.Level * 2))@(context.Name)
@@ -42,4 +43,8 @@ AddModuleMessage(Localizer["Error.Page.Delete"], MessageType.Error); } } + protected string Browse(Page page) + { + return string.IsNullOrEmpty(page.Url) ? NavigateUrl(page.Path) : page.Url; + } } diff --git a/Oqtane.Client/Modules/Controls/AuditInfo.razor b/Oqtane.Client/Modules/Controls/AuditInfo.razor index 1584fd6e..d36e7f9a 100644 --- a/Oqtane.Client/Modules/Controls/AuditInfo.razor +++ b/Oqtane.Client/Modules/Controls/AuditInfo.razor @@ -35,6 +35,9 @@ [Parameter] public string Style { get; set; } + [Parameter] + public string DateTimeFormat { get; set; } = "MMM dd yyyy HH:mm:ss"; + protected override void OnParametersSet() { _text = string.Empty; @@ -49,7 +52,7 @@ if (CreatedOn != null) { - _text += $" {Localizer["On"]} {CreatedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}"; + _text += $" {Localizer["On"]} {CreatedOn.Value.ToString(DateTimeFormat)}"; } _text += "

"; @@ -66,7 +69,7 @@ if (ModifiedOn != null) { - _text += $" {Localizer["on"]} {ModifiedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}"; + _text += $" {Localizer["on"]} {ModifiedOn.Value.ToString(DateTimeFormat)}"; } _text += "

"; @@ -83,7 +86,7 @@ if (DeletedOn != null) { - _text += $" {Localizer["On"]} {DeletedOn.Value.ToString("MMM dd yyyy HH:mm:ss")}"; + _text += $" {Localizer["On"]} {DeletedOn.Value.ToString(DateTimeFormat)}"; } _text += "

"; diff --git a/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx b/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx index b37a6487..0f4ca4ac 100644 --- a/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx +++ b/Oqtane.Client/Resources/Installer/Controls/SqlServerConfig.resx @@ -153,4 +153,10 @@ Integrated + + Encryption: + + + Specify if you are using an encrypted database connection. It is highly recommended to use encryption in a production environment. + \ No newline at end of file diff --git a/Oqtane.Client/Resources/Modules/Admin/Pages/Index.resx b/Oqtane.Client/Resources/Modules/Admin/Pages/Index.resx index 9d1d643a..a05c2e9b 100644 --- a/Oqtane.Client/Resources/Modules/Admin/Pages/Index.resx +++ b/Oqtane.Client/Resources/Modules/Admin/Pages/Index.resx @@ -129,4 +129,7 @@ Delete Page + + Browse + \ No newline at end of file diff --git a/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx b/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx index dee13803..3404baa2 100644 --- a/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx +++ b/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx @@ -297,4 +297,7 @@ Runtime: + + Browse + \ No newline at end of file diff --git a/Oqtane.Client/Themes/BlazorTheme/Containers/Container.razor b/Oqtane.Client/Themes/BlazorTheme/Containers/Container.razor index e62bc207..9ca3599e 100644 --- a/Oqtane.Client/Themes/BlazorTheme/Containers/Container.razor +++ b/Oqtane.Client/Themes/BlazorTheme/Containers/Container.razor @@ -1,7 +1,7 @@ -@namespace Oqtane.Themes.BlazorTheme +@namespace Oqtane.Themes.BlazorTheme @inherits ContainerBase
-
+

diff --git a/Oqtane.Client/Themes/BlazorTheme/Themes/Default.razor b/Oqtane.Client/Themes/BlazorTheme/Themes/Default.razor index d770cc1b..bc60e72f 100644 --- a/Oqtane.Client/Themes/BlazorTheme/Themes/Default.razor +++ b/Oqtane.Client/Themes/BlazorTheme/Themes/Default.razor @@ -1,23 +1,26 @@ @namespace Oqtane.Themes.BlazorTheme @inherits ThemeBase + - - -
-
-
+
+ -
-
- + +
+
+
+
+
+
+ +
diff --git a/Oqtane.Server/Oqtane.Server.csproj b/Oqtane.Server/Oqtane.Server.csproj index e2da14d8..2b01178a 100644 --- a/Oqtane.Server/Oqtane.Server.csproj +++ b/Oqtane.Server/Oqtane.Server.csproj @@ -33,7 +33,7 @@ - + diff --git a/Oqtane.Server/wwwroot/Themes/Oqtane.Themes.BlazorTheme/Theme.css b/Oqtane.Server/wwwroot/Themes/Oqtane.Themes.BlazorTheme/Theme.css index a73e6b33..668d7fd3 100644 --- a/Oqtane.Server/wwwroot/Themes/Oqtane.Themes.BlazorTheme/Theme.css +++ b/Oqtane.Server/wwwroot/Themes/Oqtane.Themes.BlazorTheme/Theme.css @@ -124,6 +124,7 @@ @media (min-width: 768px) { app { flex-direction: row; + display: block; } .app-logo { diff --git a/Oqtane.Test/Oqtane.Test.csproj b/Oqtane.Test/Oqtane.Test.csproj index 9aa12ba7..b944a691 100644 --- a/Oqtane.Test/Oqtane.Test.csproj +++ b/Oqtane.Test/Oqtane.Test.csproj @@ -20,10 +20,10 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive