Skip to content

Commit

Permalink
Merge pull request #27 from soenneker/master
Browse files Browse the repository at this point in the history
Adds .NET 8 support
  • Loading branch information
JustinWilkinson committed Dec 1, 2023
2 parents 3eb1e59 + 8c85692 commit 228b983
Show file tree
Hide file tree
Showing 33 changed files with 690 additions and 635 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
Expand All @@ -41,6 +41,11 @@ jobs:
with:
dotnet-version: 7.0.x

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Install dependencies
run: dotnet restore

Expand All @@ -55,12 +60,12 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET Core 7.0
- name: Setup .NET Core 8.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
220 changes: 107 additions & 113 deletions DataTables.Blazor.Demo.Server/packages.lock.json

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions DataTables.Blazor.Demo/DataTables.Blazor.Demo.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.5"
PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
<PackageReference Include="RazorTabs" Version="2.0.0" />
<PackageReference Include="System.Net.Http.Json" Version="7.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions DataTables.Blazor.Demo/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ private record Weather

private readonly DataTableOptions _buttonsDemoOptions = new DataTableOptions
{
DOM = "Bfrtip",
Dom = "Bfrtip",
Buttons = new List<object>
{
"colvis"
Expand All @@ -596,7 +596,7 @@ private record Weather

private readonly DataTableOptions _eventsDemoOptions = new DataTableOptions
{
DOM = "Bfrtip",
Dom = "Bfrtip",
RowId = "id",
Buttons = new List<object>
{
Expand Down
1 change: 1 addition & 0 deletions DataTables.Blazor.Demo/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@inherits LayoutComponentBase
@using DataTables.Blazor.Demo.Shared

<div class="sidebar">
<NavMenu />
Expand Down
4 changes: 3 additions & 1 deletion DataTables.Blazor.Demo/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div class="top-row pl-4 navbar navbar-dark">
@using Microsoft.AspNetCore.Components.Web

<div class="top-row pl-4 navbar navbar-dark">
<a class="navbar-brand" href="">DataTables.Blazor.Demo</a>
<button class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
Expand Down
Loading

0 comments on commit 228b983

Please sign in to comment.