diff --git a/Groceries.Data/Groceries.Data.csproj b/Groceries.Data/Groceries.Data.csproj index 2a2119d..a5cb5cf 100644 --- a/Groceries.Data/Groceries.Data.csproj +++ b/Groceries.Data/Groceries.Data.csproj @@ -9,10 +9,10 @@ </PropertyGroup> <ItemGroup> - <PackageReference Include="DbUp-PostgreSQL" Version="5.0.37" /> - <PackageReference Include="EFCore.NamingConventions" Version="8.0.2" /> + <PackageReference Include="DbUp-PostgreSQL" Version="5.0.40" /> + <PackageReference Include="EFCore.NamingConventions" Version="8.0.3" /> <PackageReference Include="Humanizer.Core" Version="2.14.1" /> - <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" /> + <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.4" /> </ItemGroup> <ItemGroup> diff --git a/Groceries/Components/Layout.razor b/Groceries/Components/Layout.razor index f250da7..c97c20f 100644 --- a/Groceries/Components/Layout.razor +++ b/Groceries/Components/Layout.razor @@ -6,6 +6,7 @@ <meta charset="utf-8" /> <meta name="color-scheme" content="light dark" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta name="view-transition" content="same-origin" /> <link rel="stylesheet" type="text/css" href="/css/main.css" asp-append-version="true" data-turbo-track="reload" /> diff --git a/Groceries/libman.json b/Groceries/libman.json index 68ea9dc..a226e90 100644 --- a/Groceries/libman.json +++ b/Groceries/libman.json @@ -3,7 +3,7 @@ "defaultProvider": "unpkg", "libraries": [ { - "library": "@hotwired/turbo@7.3.0", + "library": "@hotwired/turbo@8.0.4", "destination": "wwwroot/lib/hotwired/turbo/" }, { diff --git a/Groceries/wwwroot/js/main.js b/Groceries/wwwroot/js/main.js index 3126f46..820be20 100644 --- a/Groceries/wwwroot/js/main.js +++ b/Groceries/wwwroot/js/main.js @@ -19,19 +19,3 @@ document.addEventListener("turbo:render", () => { timeout = setTimeout(() => document.getElementById("sidebarToggle").checked = false, 500); } }); - -let transition; -document.addEventListener("turbo:before-render", async event => { - if (document.startViewTransition) { - event.preventDefault(); - - if (transition == undefined) { - transition = document.startViewTransition(() => event.detail.resume()); - await transition.finished; - transition = undefined; - } else { - await transition.finished; - event.detail.resume(); - } - } -});