Skip to content

Commit

Permalink
Merge pull request #136 from Lombiq/issue/OSOE-548
Browse files Browse the repository at this point in the history
OSOE-548: Upgrade to Orchard Core 1.6 in Orchard-Data-Tables
  • Loading branch information
Piedone authored Jun 18, 2023
2 parents 77e3064 + bdfb653 commit 6403cf2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Lombiq.DataTables.Samples/Lombiq.DataTables.Samples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="OrchardCore.ContentFields" Version="1.5.0" />
<PackageReference Include="OrchardCore.Module.Targets" Version="1.5.0" />
<PackageReference Include="OrchardCore.ContentFields" Version="1.6.0" />
<PackageReference Include="OrchardCore.Module.Targets" Version="1.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@using System.Globalization
@model IEnumerable<Lombiq.DataTables.Samples.Models.EmployeePart>
@* This is a static data table. It simply adds the script and stylesheet resources to the page, otherwise it behaves
like a zero configuration DataTable (https://datatables.net/examples/basic_init/zero_configuration.html). But you
Expand All @@ -8,13 +7,6 @@

@* Always make sure Views/_ViewImports.cshtml has "@addTagHelper *, Lombiq.DataTables" for the tag helper. *@

@{
// Forces the CultureInfo to use the canonical date format. This prevents user or system level customizations. We
// need this for the UI tests to work in a portable way. This is a temporary workaround, and the problem has been
// reported and a general solution requested here: https://github.com/OrchardCMS/OrchardCore/issues/11228
var cultureInfo = new CultureInfo(CultureInfo.CurrentCulture.Name, useUserOverride: false);
}

<datatable data-options='{ "order": [[ 3, "desc" ]] }'>
<thead>
<tr>
Expand All @@ -39,7 +31,7 @@
<td data-order="@(employee.StartDate.Value?.Ticks ?? 0)">
@if (employee.StartDate.Value is { } startDate)
{
@startDate.ToString("d", cultureInfo)
@startDate.ToString("d")
}
</td>
<td data-order="@(employee.Salary.Value ?? 0)">
Expand Down
14 changes: 7 additions & 7 deletions Lombiq.DataTables/Lombiq.DataTables.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@

<ItemGroup>
<PackageReference Include="ClosedXML" Version="0.101.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Nito.AsyncEx.Tasks" Version="5.1.2" />
<PackageReference Include="OrchardCore.Contents" Version="1.5.0" />
<PackageReference Include="OrchardCore.Module.Targets" Version="1.5.0" />
<PackageReference Include="OrchardCore.Search.Lucene" Version="1.5.0" />
<PackageReference Include="OrchardCore.Contents" Version="1.6.0" />
<PackageReference Include="OrchardCore.Module.Targets" Version="1.6.0" />
<PackageReference Include="OrchardCore.Search.Lucene" Version="1.6.0" />
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' != 'true'">
Expand All @@ -53,9 +53,9 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="5.2.0" />
<PackageReference Include="Lombiq.HelpfulLibraries.LinqToDb" Version="5.2.0" />
<PackageReference Include="Lombiq.NodeJs.Extensions" Version="1.2.3" />
<PackageReference Include="Lombiq.HelpfulLibraries.OrchardCore" Version="6.0.0" />
<PackageReference Include="Lombiq.HelpfulLibraries.LinqToDb" Version="6.0.0" />
<PackageReference Include="Lombiq.NodeJs.Extensions" Version="1.2.4" />
</ItemGroup>

<Import Condition="'$(NuGetBuild)' != 'true'" Project="..\..\..\Utilities\Lombiq.NodeJs.Extensions\Lombiq.NodeJs.Extensions\Lombiq.NodeJs.Extensions.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup Condition="'$(NuGetBuild)' == 'true'">
<PackageReference Include="Lombiq.Tests.UI" Version="6.1.0" />
<PackageReference Include="Lombiq.Tests.UI" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="OrchardCore.Liquid" Version="1.5.0" />
<PackageReference Include="OrchardCore.Liquid" Version="1.6.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 6403cf2

Please sign in to comment.