diff --git a/.github/workflows/smartbotweb.yml b/.github/workflows/smartbotweb.yml index 74e063e..73a4686 100644 --- a/.github/workflows/smartbotweb.yml +++ b/.github/workflows/smartbotweb.yml @@ -4,9 +4,11 @@ on: push: branches: - main + - develop pull_request: branches: - main + - develop workflow_dispatch: permissions: @@ -16,6 +18,7 @@ env: PUBLISH_PATH: published CONFIGURATION: Release DOTNET_CORE_VERSION: 10.0.300 + DOTNET_TEST_RUNTIME_VERSION: 8.0.34 PROJECT_PATH: src/server/SmartBotBlazorApp/SmartBotBlazorApp.csproj SOLUTION_PATH: src/server/SmartBotBlazorApp.sln jobs: @@ -27,6 +30,25 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.DOTNET_CORE_VERSION }} + - name: Ensure .NET 8 test runtimes + shell: bash + run: | + set -euo pipefail + dotnet --list-runtimes + dotnet_dir="$(dirname "$(readlink -f "$(command -v dotnet)")")" + installer="$RUNNER_TEMP/dotnet-install.sh" + for runtime in dotnet aspnetcore; do + framework=Microsoft.NETCore.App + if [ "$runtime" = aspnetcore ]; then framework=Microsoft.AspNetCore.App; fi + if ! dotnet --list-runtimes | grep -F "$framework $DOTNET_TEST_RUNTIME_VERSION ["; then + if [ ! -f "$installer" ]; then + curl --fail --silent --show-error --location https://dot.net/v1/dotnet-install.sh --output "$installer" + fi + bash "$installer" --runtime "$runtime" --version "$DOTNET_TEST_RUNTIME_VERSION" \ + --install-dir "$dotnet_dir" --skip-non-versioned-files --no-path + fi + dotnet --list-runtimes | grep -F "$framework $DOTNET_TEST_RUNTIME_VERSION [" + done - name: Restore run: dotnet restore "${{ env.SOLUTION_PATH }}" --locked-mode - name: Verify formatting @@ -34,8 +56,30 @@ jobs: - name: Audit NuGet packages shell: bash run: | - dotnet list "${{ env.SOLUTION_PATH }}" package --vulnerable --include-transitive --format json > vulnerable-packages.json - test "$(jq '[.projects[]?.frameworks[]? | ((.topLevelPackages // []) + (.transitivePackages // []))[]] | length' vulnerable-packages.json)" -eq 0 + set -euo pipefail + dotnet list "${{ env.SOLUTION_PATH }}" package --vulnerable --include-transitive --no-restore --format json --output-version 1 > vulnerable-packages.json + # NuGet reports source failures in problems, even when package lists are empty. + # A clean project may omit frameworks; require every solution project instead. + jq -e ' + def optional_array(key): if has(key) then .[key] else [] end; + .version == 1 and + (.sources | type == "array" and length > 0 and all(.[]; type == "string" and length > 0)) and + (optional_array("problems") | type == "array" and length == 0) and + (.projects | type == "array" and length == 3) and + ([.projects[].path | split("/") | last] | sort == [ + "SmartBotBlazorApp.Client.csproj", + "SmartBotBlazorApp.Tests.csproj", + "SmartBotBlazorApp.csproj" + ]) and + all(.projects[]; + (optional_array("frameworks") | type == "array") and + all((.frameworks // [])[]; + (.framework | type == "string" and length > 0) and + (optional_array("topLevelPackages") | type == "array" and length == 0) and + (optional_array("transitivePackages") | type == "array" and length == 0) + ) + ) + ' vulnerable-packages.json - name: Build run: dotnet build "${{ env.SOLUTION_PATH }}" --configuration ${{ env.CONFIGURATION }} --no-restore - name: Test @@ -58,4 +102,4 @@ jobs: vulnerable-packages.json if-no-files-found: warn - name: Build container image - run: docker build --file src/server/SmartBotBlazorApp/Dockerfile --tag smartbotapi:ci . + run: docker build --pull --file src/server/SmartBotBlazorApp/Dockerfile --tag smartbotapi:ci . diff --git a/AGENTS.md b/AGENTS.md index 50ebf07..aaab444 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,7 +17,9 @@ Service**. Robot firmware is an Arduino sketch that connects to the SignalR hub. - `other/media/` — README screenshots, photos, and demo video. ## Build / run / test -- Build/run with the **.NET 8 SDK** (`dotnet build` / `dotnet run`). +- Build/run with the SDK selected by **`global.json`** (10.0.300, `latestPatch`) + (`dotnet build` / `dotnet run`). The projects target **`net8.0`** and use EF Core 9; + install the .NET 8 and ASP.NET Core 8 runtimes for local execution/tests. - Tests: `dotnet test` (see `docs/getting-started.md`). ## Conventions & good practices diff --git a/README.md b/README.md index f2e9a58..037a642 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,10 @@ **🗓️ Project period:** 2024–2025 -> 🎥 **Live demo:** for the project presentation the system was **deployed to Azure App Service** and fully working — an authenticated dashboard with **live depth-map streaming** from the robot *(it is no longer hosted)*. See it running with the physical robot in the [demo video](https://www.facebook.com/reel/1991337048036257). +> 🎥 **Live demo:** for the project presentation the system was **deployed to Azure App Service** and fully working — an authenticated dashboard with **live depth-map streaming** from the robot *(it is no longer hosted)*. See it running with the physical robot in the demo videos: +> +> [▶ Watch the demo on YouTube](https://youtu.be/cAaiVYFb87Y)
+> [▶ Watch the demo on Facebook](https://www.facebook.com/reel/1991337048036257) **SmartBotAPI** is a full-stack robotics platform that connects an ESP32-C3–based mobile robot to a real-time web dashboard. The robot streams live telemetry — an 8×8 time-of-flight depth map, 6-axis IMU data, and temperature — over a secure WebSocket/SignalR channel, while operators drive it remotely with an on-screen joystick or keyboard. Measurements are persisted to SQL Server and visualized as live heatmaps, interpolated depth matrices, and historical charts. @@ -91,8 +94,12 @@ The robot uses a custom carrier PCB for the controller, motor-driver module, sen A short local driving-test montage and a recorded live presentation of the complete system (Department of Computer Science, Akademia Tarnowska): -- **[▶ Watch the driving-test montage](other/media/smartbot-driving-demo-music.mp4)** *(78 s, with music)* +- **[▶ Watch the full presentation on YouTube](https://youtu.be/cAaiVYFb87Y)** - **[▶ Watch the full presentation on Facebook](https://www.facebook.com/reel/1991337048036257)** +- **[▶ Download the web-control and live depth demo](other/media/SmartBot%20LiveDemo_WebControlls_Lidar.mp4)** + +- **[▶ Watch the driving-test montage on YouTube](https://youtu.be/L9FZEDhjk6o)** +- **[▶ Download the driving-test montage](other/media/smartbot-driving-demo-music.mp4)** *(78 s, with music)* Music: **“New Direction” — Kevin MacLeod**, [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for source and modification details. @@ -118,17 +125,19 @@ mixing equations, dead zones, timing, key mapping, and safety behavior. | Layer | Technology | |---|---| -| Web framework | ASP.NET Core 8.0, Blazor (Interactive Server + WebAssembly hybrid) | +| Web framework | ASP.NET Core 8.0, Blazor (Interactive Server + WebAssembly hybrid); explicit ASP.NET Core packages 8.0.34 | | UI components | MudBlazor 7, Bootstrap 5 | | Real-time transport | SignalR (JSON protocol) over WebSocket/TLS | -| Data | Entity Framework Core 9, SQL Server (LocalDB in development) | -| Image processing | SixLabors.ImageSharp (heatmap rendering, bilinear interpolation) | +| Data | Entity Framework Core 9, Microsoft.Data.SqlClient 6.1.8, SQL Server (LocalDB in development) | +| Image processing | SkiaSharp 4.156.1 (heatmap rendering), SkiaSharp.NativeAssets.Linux.NoDependencies 4.156.1 (Linux native library); custom bilinear matrix interpolation | | Identity | ASP.NET Core Identity | | Firmware | Arduino framework on ESP32-C3 (Arduino IDE 2.x) | | Firmware libraries | ArduinoJson, SparkFun VL53L5CX, Adafruit MPU6050, WebSockets (Markus Sattler) | | Hardware | ESP32-C3 DevKitM-1, VL53L5CX ToF sensor, MPU6050 IMU, TB6612FNG motor driver, NeoPixel status LED | | DevOps | Docker, GitHub Actions, Azure App Service (presentation deployment) | +**Platform support:** [.NET 8](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) and [EF Core 9](https://learn.microsoft.com/en-us/ef/core/what-is-new/) reached end of support on November 10, 2026. This repair retains `net8.0` and EF Core 9; updating packages does not restore platform support. Migration to .NET 10 LTS, including EF Core and database regression testing, is a separate follow-up. + ## Repository Structure ``` @@ -157,7 +166,9 @@ SmartBotAPI/ ### Web Server -**Prerequisites:** [.NET SDK 10.0](https://dotnet.microsoft.com/download/dotnet/10.0) (the application targets .NET 8), SQL Server LocalDB on Windows (installed with Visual Studio) or any reachable SQL Server instance. +**Prerequisites:** [.NET SDK 10.0.300](https://dotnet.microsoft.com/download/dotnet/10.0) as selected by `global.json` (`latestPatch`), .NET 8 and ASP.NET Core 8 runtimes (8.0.34) for execution/tests, and SQL Server LocalDB on Windows (installed with Visual Studio) or any reachable SQL Server instance. The application targets `net8.0`; SDK 10 alone does not provide its runtime. + +Heatmap rendering uses SkiaSharp and requires no license key. Its Linux native library is supplied by `SkiaSharp.NativeAssets.Linux.NoDependencies`, including for CI and Docker. ```powershell cd src/server/SmartBotBlazorApp @@ -228,7 +239,7 @@ The [firmware and hardware reference](docs/firmware.md) links to the manufacture ## Deployment -Pushing to `main` or opening a pull request against it triggers the GitHub Actions workflow (`.github/workflows/smartbotweb.yml`), which performs a locked restore, verifies formatting, audits NuGet packages, builds and tests with coverage, builds the container image, and publishes a deployable web-app artifact. It does not deploy to an external environment automatically. +Pushing to `main` or `develop`, or opening a pull request against either branch, triggers the GitHub Actions workflow (`.github/workflows/smartbotweb.yml`). It uses SDK 10.0.300 and checks/installs the .NET 8 and ASP.NET Core 8 runtimes at 8.0.34 on Linux, then performs a locked restore, verifies formatting, audits all NuGet dependencies including transitive packages, builds and tests with coverage, publishes a deployable web-app artifact, and builds the container image. It does not deploy to an external environment automatically. For the project presentation, the application was deployed to the **smartbotweb** Azure App Service and the firmware targeted `smartbotweb.azurewebsites.net:443`. That service is no longer hosted; the current firmware configuration uses an explicit placeholder that must be replaced with the address of the current server before use. @@ -242,5 +253,5 @@ This project is licensed under the [GNU General Public License v3.0](LICENSE) ## 👥 Authors -- **Kamil Rataj** — author & maintainer — [GitHub](https://github.com/Kamilr616) · [LinkedIn](https://www.linkedin.com/in/kamil-r-153ab7121/) -- **Mateusz Ciszek** ([@Matix351](https://github.com/Matix351)) — contributor +- **Kamil Rataj** — Author & maintainer — [GitHub](https://github.com/Kamilr616) · [LinkedIn](https://www.linkedin.com/in/kamil-r-153ab7121/) +- **Mateusz Ciszek** — Co-author — [GitHub](https://github.com/Matix351) · [LinkedIn](https://www.linkedin.com/in/mateusz-ciszek-15080b355/) diff --git a/README.pl.md b/README.pl.md index d3124b7..21689a3 100644 --- a/README.pl.md +++ b/README.pl.md @@ -10,7 +10,10 @@ **🗓️ Okres realizacji:** 2024–2025 -> 🎥 **Demo na żywo:** na potrzeby prezentacji system był **wdrożony na Azure App Service** i w pełni działający — panel z uwierzytelnianiem oraz **podglądem mapy głębi na żywo** z robota *(obecnie nie jest hostowany)*. Zobacz działanie z fizycznym robotem na [filmie demonstracyjnym](https://www.facebook.com/reel/1991337048036257). +> 🎥 **Demo na żywo:** na potrzeby prezentacji system był **wdrożony na Azure App Service** i w pełni działający — panel z uwierzytelnianiem oraz **podglądem mapy głębi na żywo** z robota *(obecnie nie jest hostowany)*. Zobacz działanie z fizycznym robotem na filmach demonstracyjnych: +> +> [▶ Obejrzyj demo na YouTube](https://youtu.be/cAaiVYFb87Y)
+> [▶ Obejrzyj demo na Facebooku](https://www.facebook.com/reel/1991337048036257) **SmartBotAPI** to pełnostackowa platforma robotyczna, która łączy mobilnego robota opartego na **ESP32-C3** z panelem webowym działającym w czasie rzeczywistym. Robot przesyła na żywo telemetrię — mapę głębi 8×8 z czujnika ToF, dane 6-osiowego IMU oraz temperaturę — bezpiecznym kanałem WebSocket/SignalR, a operator steruje nim zdalnie ekranowym joystickiem lub klawiaturą. Pomiary są zapisywane w SQL Server i wizualizowane jako mapy ciepła, interpolowane macierze głębi oraz wykresy historyczne. @@ -91,8 +94,12 @@ Robot korzysta z dedykowanej płytki bazowej PCB dla kontrolera, modułu sterown Krótki montaż z lokalnych testów jazdy oraz nagranie prezentacji kompletnego systemu (Katedra Informatyki, Akademia Tarnowska): -- **[▶ Obejrzyj montaż z testów jazdy](other/media/smartbot-driving-demo-music.mp4)** *(78 s, z muzyką)* +- **[▶ Obejrzyj pełną prezentację na YouTube](https://youtu.be/cAaiVYFb87Y)** - **[▶ Obejrzyj pełną prezentację na Facebooku](https://www.facebook.com/reel/1991337048036257)** +- **[▶ Pobierz demo sterowania przez przeglądarkę i podglądu głębi na żywo](other/media/SmartBot%20LiveDemo_WebControlls_Lidar.mp4)** + +- **[▶ Obejrzyj montaż z testów jazdy na YouTube](https://youtu.be/L9FZEDhjk6o)** +- **[▶ Pobierz montaż z testów jazdy](other/media/smartbot-driving-demo-music.mp4)** *(78 s, z muzyką)* Muzyka: **„New Direction” — Kevin MacLeod**, [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Szczegóły źródła i modyfikacji: [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). @@ -119,17 +126,19 @@ klawiszy i zabezpieczenia opisano w | Warstwa | Technologia | |---|---| -| Framework web | ASP.NET Core 8.0, Blazor (Interactive Server + WebAssembly) | +| Framework web | ASP.NET Core 8.0, Blazor (Interactive Server + WebAssembly); jawne pakiety ASP.NET Core 8.0.34 | | Komponenty UI | MudBlazor 7, Bootstrap 5 | | Transport real-time | SignalR (protokół JSON) po WebSocket/TLS | -| Dane | Entity Framework Core 9, SQL Server (LocalDB w dev) | -| Przetwarzanie obrazu | SixLabors.ImageSharp (mapa ciepła, interpolacja dwuliniowa) | +| Dane | Entity Framework Core 9, Microsoft.Data.SqlClient 6.1.8, SQL Server (LocalDB w dev) | +| Przetwarzanie obrazu | SkiaSharp 4.156.1 (mapa ciepła), SkiaSharp.NativeAssets.Linux.NoDependencies 4.156.1 (natywna biblioteka dla Linuksa); własna interpolacja dwuliniowa macierzy | | Tożsamość | ASP.NET Core Identity | | Firmware | Arduino na ESP32-C3 (Arduino IDE 2.x) | | Biblioteki firmware | ArduinoJson, SparkFun VL53L5CX, Adafruit MPU6050, WebSockets (Markus Sattler) | | Sprzęt | ESP32-C3 DevKitM-1, czujnik ToF VL53L5CX, IMU MPU6050, sterownik silników TB6612FNG, dioda statusu NeoPixel | | DevOps | Docker, GitHub Actions, Azure App Service (wdrożenie prezentacyjne) | +**Wsparcie platformy:** [.NET 8](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) i [EF Core 9](https://learn.microsoft.com/en-us/ef/core/what-is-new/) zakończyły okres wsparcia 10 listopada 2026 r. Ta naprawa zachowuje `net8.0` i EF Core 9; aktualizacja pakietów nie przywraca wsparcia platformy. Migracja do .NET 10 LTS, obejmująca EF Core i testy regresji bazy danych, pozostaje osobnym kolejnym zadaniem. + ## Struktura repozytorium ``` @@ -158,7 +167,9 @@ SmartBotAPI/ ### Serwer webowy -**Wymagania:** [.NET SDK 10.0](https://dotnet.microsoft.com/download/dotnet/10.0) (aplikacja jest kierowana na .NET 8), SQL Server LocalDB w systemie Windows (instalowany z Visual Studio) lub dowolna dostępna instancja SQL Server. +**Wymagania:** [.NET SDK 10.0.300](https://dotnet.microsoft.com/download/dotnet/10.0) wybierany przez `global.json` (`latestPatch`), środowiska uruchomieniowe .NET 8 i ASP.NET Core 8 (8.0.34) do uruchamiania aplikacji/testów oraz SQL Server LocalDB w systemie Windows (instalowany z Visual Studio) lub dowolna dostępna instancja SQL Server. Aplikacja ma target `net8.0`; sam SDK 10 nie dostarcza wymaganego środowiska uruchomieniowego. + +Renderowanie mapy ciepła korzysta ze SkiaSharp i nie wymaga klucza licencyjnego. Pakiet `SkiaSharp.NativeAssets.Linux.NoDependencies` dostarcza natywną bibliotekę dla Linuksa, także do CI i Dockera. ```powershell cd src/server/SmartBotBlazorApp @@ -229,7 +240,7 @@ Po połączeniu robot pojawia się na stronie **Live View Image** zalogowanego p ## Wdrożenie -Push do `main` lub otwarcie pull requesta do tej gałęzi uruchamia workflow GitHub Actions (`.github/workflows/smartbotweb.yml`), który wykonuje odtwarzalny restore, sprawdza formatowanie i podatności pakietów, buduje i testuje rozwiązanie z pomiarem pokrycia, buduje obraz kontenera oraz publikuje artefakt aplikacji webowej. Workflow nie wdraża automatycznie do środowiska zewnętrznego. +Push do `main` lub `develop` albo otwarcie pull requesta do jednej z tych gałęzi uruchamia workflow GitHub Actions (`.github/workflows/smartbotweb.yml`). Workflow używa SDK 10.0.300 i sprawdza/instaluje środowiska uruchomieniowe .NET 8 oraz ASP.NET Core 8 w wersji 8.0.34 na Linuksie, następnie wykonuje restore w trybie locked, sprawdza formatowanie i podatności wszystkich zależności NuGet, w tym pośrednich, buduje i testuje rozwiązanie z pomiarem pokrycia, publikuje artefakt aplikacji webowej oraz buduje obraz kontenera. Workflow nie wdraża automatycznie do środowiska zewnętrznego. Na potrzeby prezentacji projektu aplikacja była wdrożona na Azure App Service **smartbotweb**, a firmware łączył się z `smartbotweb.azurewebsites.net:443`. Usługa nie jest już hostowana; aktualna konfiguracja firmware zawiera jawny placeholder, który przed użyciem trzeba zastąpić adresem bieżącego serwera. @@ -243,5 +254,5 @@ Projekt jest udostępniany na licencji [GNU General Public License v3.0](LICENSE ## 👥 Autorzy -- **Kamil Rataj** — autor i opiekun — [GitHub](https://github.com/Kamilr616) · [LinkedIn](https://www.linkedin.com/in/kamil-r-153ab7121/) -- **Mateusz Ciszek** ([@Matix351](https://github.com/Matix351)) — współtwórca +- **Kamil Rataj** — Autor i opiekun — [GitHub](https://github.com/Kamilr616) · [LinkedIn](https://www.linkedin.com/in/kamil-r-153ab7121/) +- **Mateusz Ciszek** — Współautor — [GitHub](https://github.com/Matix351) · [LinkedIn](https://www.linkedin.com/in/mateusz-ciszek-15080b355/) diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index b60fcdf..c9a6715 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -47,25 +47,35 @@ the transitive dependencies carrying nonstandard Microsoft terms are: | Package or package group | Version | License | |---|---:|---| -| Microsoft.AspNetCore.Components.WebAssembly, .Authentication, .Server; Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore; Microsoft.AspNetCore.Identity.EntityFrameworkCore; Microsoft.AspNetCore.SignalR.Client | 8.0.29 | [MIT](https://licenses.nuget.org/MIT) | +| Microsoft.AspNetCore.Components.WebAssembly, .Authentication, .Server; Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore; Microsoft.AspNetCore.Identity.EntityFrameworkCore; Microsoft.AspNetCore.SignalR.Client | 8.0.34 | [MIT](https://licenses.nuget.org/MIT) | | Microsoft.EntityFrameworkCore.SqlServer, Microsoft.EntityFrameworkCore.Tools | 9.0.18 | [MIT](https://licenses.nuget.org/MIT) | -| Microsoft.Data.SqlClient | 6.1.6 | [MIT](https://licenses.nuget.org/MIT) | +| Microsoft.Data.SqlClient | 6.1.8 | [MIT](https://licenses.nuget.org/MIT) | | MudBlazor | 7.16.0 | [MIT](https://licenses.nuget.org/MIT) | | Newtonsoft.Json | 13.0.4 | [MIT](https://licenses.nuget.org/MIT) | -| SixLabors.ImageSharp | 3.1.12 | Apache-2.0 grant for qualifying open-source use under the [Six Labors Split License 1.0](https://sixlabors.com/posts/license-changes/) | -| Microsoft.Data.SqlClient.SNI.runtime (transitive runtime component) | 6.0.2 | [Microsoft Software License Terms](https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime/6.0.2) | +| SkiaSharp, SkiaSharp.NativeAssets.Linux.NoDependencies; SkiaSharp.NativeAssets.Win32 and .macOS (transitive runtime components) | 4.156.1 | [MIT](https://licenses.nuget.org/MIT), plus the native third-party notices described below | +| Microsoft.Data.SqlClient.SNI.runtime (transitive runtime component) | 6.0.3 | [Microsoft Software License Terms](https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime/6.0.3) | | Microsoft.Identity.Client.NativeInterop (transitive runtime component) | 0.20.6 | [Microsoft Software License Terms](https://www.nuget.org/packages/Microsoft.Identity.Client.NativeInterop/0.20.6) | | coverlet.collector, Microsoft.NET.Test.Sdk | 10.0.1, 18.8.1 | [MIT](https://licenses.nuget.org/MIT) | | xunit.v3, xunit.runner.visualstudio | 3.2.2, 3.1.5 | [Apache-2.0](https://licenses.nuget.org/Apache-2.0) | -The restore verified on July 15, 2026 resolves 140 unique package/version pairs -across the server, client, and test projects. Their NuGet metadata consists of -127 MIT license expressions, 10 Apache-2.0 expressions, no legacy upstream -license URLs, and 3 embedded license files. The embedded licenses are the SNI -runtime, Microsoft Identity native interop, and ImageSharp listed above. -Together, these entries account for the complete restored graph at that date. -Exact transitive versions can change after a future restore, so each -package's `.nuspec` metadata and included license file remain authoritative. +The three checked-in `packages.lock.json` files, regenerated and inspected on +November 16, 2026, resolve 143 unique NuGet package/version pairs across the +server, client, and test projects. Their package `.nuspec` license declarations +comprise 131 MIT expressions, 10 Apache-2.0 expressions, and 2 embedded license +files. The embedded licenses are the SNI runtime, Microsoft Identity native +interop listed above; their included files were also inspected. +These counts exclude project references and cover the complete locked package +graph, including build and test dependencies. The lock files record exact +transitive versions; each package's `.nuspec` metadata and included license +file remain authoritative when the graph is updated. + +The SkiaSharp native packages also contain license and copyright notices for +Skia and incorporated third-party material. Their upstream `LICENSE.txt` and +complete `THIRD-PARTY-NOTICES.txt` are copied unchanged into application build +and publish outputs under `licenses/skia/`. These texts accompany binary +distributions and must be retained. The Linux, Windows, and macOS native +packages at the version above contain identical third-party notice texts; +their MIT NuGet metadata does not replace those additional terms. ## Firmware libraries installed separately diff --git a/docs/architecture.md b/docs/architecture.md index 5e0b39c..45f50a4 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -18,7 +18,7 @@ sequenceDiagram participant D as Dashboard (browser) R->>H: ReceiveRobotData(user, measurements[7], rawMatrix[64], avgDistance) - H->>S: round, save to DB (throttled ≤ 1/s) + H->>S: round, save to DB (throttled per robot ≤ 1/s) H->>S: render heatmap PNG + interpolate 8×8 → 32×32 H-->>D: ReceiveBase64Frame(user, measurements, heatmapBase64, avgDistance) H-->>D: ReceiveMatrix(user, measurements, interpolated[1024], avgDistance) @@ -114,10 +114,10 @@ The `measurements` array always has 7 elements, in this order: Both transformations live in `ImageProcessor.cs` and run per incoming frame: -1. **Heatmap generation** — the 8×8 depth frame is normalized to the 10–3500 mm range and mapped onto a red → yellow → green → blue → purple gradient, rendered with ImageSharp and returned as a base64-encoded PNG (displayed at 512×512 in the browser). +1. **Heatmap generation** — the 8×8 depth frame is normalized to the 10–3500 mm range and mapped onto a red → yellow → green → blue → purple gradient. SkiaSharp maps sample `x * 8 + y` to pixel `(x, y)`, scales the image to 64×64 with Catmull–Rom cubic smoothing, and returns a base64-encoded PNG (displayed at 512×512 in the browser). The output contract covers image dimensions, orientation, and colors; encoded PNG bytes are not guaranteed to stay identical across renderer versions. 2. **Bilinear interpolation** — the same frame is upsampled to 32×32 (`ushort[1024]`) for the interactive matrix view, where each cell is colored client-side. -`MeasurementService.cs` rounds measurements to 2 decimal places for display and uses one static timestamp to throttle database writes to approximately one insert per second for the whole server process. The throttle is shared by all robots and service instances; it is not maintained per stream. The timestamp check is not protected by a concurrency lock, so it is a load-reduction mechanism rather than a strict rate-limit guarantee. +`MeasurementService.cs` rounds measurements to 2 decimal places for display. Database writes use the singleton `RobotMeasurementThrottle`, which synchronizes timestamp checks and updates with a lock and permits one save attempt per second for each tracked robot ID. Elapsed time is compared in UTC; stored measurements retain local timestamps for the existing chart filters. Tracking is bounded to 256 robot IDs, evicting the oldest entry when a new ID exceeds that capacity. This throttle is local to one server process, so separate server instances do not share its state. ## Persistence diff --git a/docs/getting-started.md b/docs/getting-started.md index aa4da82..e6a3d33 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -6,16 +6,23 @@ This guide walks through setting up the full SmartBotAPI stack: the web server, **Server:** -- [.NET SDK 10.0](https://dotnet.microsoft.com/download/dotnet/10.0) (the projects target .NET 8) +- [.NET SDK 10.0.300](https://dotnet.microsoft.com/download/dotnet/10.0), selected by `global.json` with `latestPatch` (the projects target `net8.0`) +- .NET 8 and ASP.NET Core 8 runtimes (8.0.34) for running the application and tests; SDK 10 alone does not install these. Verify with `dotnet --list-runtimes`. - SQL Server — LocalDB (installed with Visual Studio) is enough for development; any SQL Server instance works in production - Optional: Docker Desktop, Visual Studio 2022 +The application retains .NET 8 and EF Core 9, which reached end of support on November 10, 2026. See the [platform support note](../README.md#tech-stack); migration to .NET 10 LTS is a separate follow-up. + **Firmware:** - ESP32-C3 DevKitM-1 board and the robot hardware (see [firmware.md](firmware.md)) - Arduino IDE 2.x with the ESP32 board package - Libraries: `ArduinoJson` (≥ 7.2), `SparkFun VL53L5CX Arduino Library` (≥ 1.0.3), `WebSockets` by Markus Sattler (≥ 2.6), `Adafruit MPU6050` (≥ 2.0.3), `Adafruit Unified Sensor` +## Image rendering on Linux + +Heatmaps use SkiaSharp 4.156.1 without a license key. The server references `SkiaSharp.NativeAssets.Linux.NoDependencies` 4.156.1 to supply the Linux native library for local runs, CI, and Docker. Restore the solution normally to obtain both packages. + ## 1. Run the Web Server ```powershell diff --git a/docs/server.md b/docs/server.md index 97e4902..daffbc7 100644 --- a/docs/server.md +++ b/docs/server.md @@ -7,6 +7,12 @@ The web application lives in `src/server/` and consists of two projects: | `SmartBotBlazorApp` | ASP.NET Core 8.0 (Blazor Web App host) | SignalR hub, EF Core persistence, Identity, image processing, server-rendered pages | | `SmartBotBlazorApp.Client` | Blazor WebAssembly 8.0 | Browser-side diagnostic/auth pages; `/chat` connects to SignalR from WASM | +Builds use SDK 10.0.300 with `latestPatch` from `global.json`, while the projects retain `net8.0` and EF Core 9. Explicit ASP.NET Core packages use 8.0.34, SkiaSharp uses 4.156.1, and Microsoft.Data.SqlClient uses 6.1.8. Existing implicit SDK pack pins remain in place for reproducible restores. + +SkiaSharp requires no license key. `SkiaSharp.NativeAssets.Linux.NoDependencies` 4.156.1 supplies its native library for Linux, including CI and Docker builds. The full NuGet audit remains enabled. + +[.NET 8](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) and [EF Core 9](https://learn.microsoft.com/en-us/ef/core/what-is-new/) reached end of support on November 10, 2026. These package updates do not restore platform support; migration to .NET 10 LTS, including EF Core and database regression testing, remains a separate follow-up. + ## Pages | Route | Component | Render mode | Description | @@ -50,7 +56,7 @@ The single real-time endpoint shared by robots and dashboards. See [architecture ### `ImageProcessor.cs` -- `GenerateHeatmapBase64Image(ushort[64])` — renders the 8×8 depth frame to a PNG heatmap (ImageSharp) using a red→yellow→green→blue→purple gradient normalized over 10–3500 mm, returned base64-encoded. +- `GenerateHeatmapBase64Image(ushort[64])` — renders the 8×8 depth frame with SkiaSharp using a red→yellow→green→blue→purple gradient normalized over 10–3500 mm, scales it with Catmull–Rom cubic smoothing to a 64×64 PNG, and returns it base64-encoded. - `InterpolateData(ushort[64], 32)` — bilinear upsampling of the frame to 32×32 for the matrix view. ### `Data/MeasurementService.cs` @@ -120,4 +126,4 @@ Notes for hardening before production use: ## Deployment - **Docker:** `src/server/SmartBotBlazorApp/Dockerfile` (multi-stage .NET 10 SDK build → publish → non-root `mcr.microsoft.com/dotnet/aspnet:8.0` runtime, serving HTTP on 8080). The project also defines .NET SDK container metadata (`kamilr616/smartbotblazorapp:latest`). -- **CI:** `.github/workflows/smartbotweb.yml` performs locked restore, formatting and vulnerability checks, build, tests with coverage, publish, and a container build for pushes and pull requests targeting `main`. External deployment is intentionally manual; the Azure App Service used for the project presentation is no longer hosted. +- **CI:** `.github/workflows/smartbotweb.yml` runs for pushes to `main` and `develop`, pull requests targeting either branch, and manual dispatch. On Linux it checks/installs the .NET 8 and ASP.NET Core 8 runtimes at 8.0.34 alongside SDK 10.0.300, then performs locked restore, formatting checks, a NuGet vulnerability audit including transitive dependencies, build, tests with coverage, publish, and a container build. External deployment is intentionally manual; the Azure App Service used for the project presentation is no longer hosted. diff --git a/other/media/SmartBot LiveDemo_WebControlls_Lidar.mp4 b/other/media/SmartBot LiveDemo_WebControlls_Lidar.mp4 new file mode 100644 index 0000000..01129a6 Binary files /dev/null and b/other/media/SmartBot LiveDemo_WebControlls_Lidar.mp4 differ diff --git a/src/server/SmartBotBlazorApp.Client/SmartBotBlazorApp.Client.csproj b/src/server/SmartBotBlazorApp.Client/SmartBotBlazorApp.Client.csproj index 4808897..1968ba3 100644 --- a/src/server/SmartBotBlazorApp.Client/SmartBotBlazorApp.Client.csproj +++ b/src/server/SmartBotBlazorApp.Client/SmartBotBlazorApp.Client.csproj @@ -10,9 +10,9 @@ - - - + + + diff --git a/src/server/SmartBotBlazorApp.Client/packages.lock.json b/src/server/SmartBotBlazorApp.Client/packages.lock.json index fec6e3f..10d8e86 100644 --- a/src/server/SmartBotBlazorApp.Client/packages.lock.json +++ b/src/server/SmartBotBlazorApp.Client/packages.lock.json @@ -4,35 +4,35 @@ "net8.0": { "Microsoft.AspNetCore.Components.WebAssembly": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "wAPYLWm1Y2ikdUY0OgsWOJ0A1iQ0GJIvwsgbQKXTBUP/9r5rK3DvmJnZy9a0yEMslJPxvYesACNYDmLz2sTcxQ==", + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "Q4EZwjHjVZiHxETMIZnNIoDGjX1morN7eY6mHLIOE23T0w1kJ3gl7vmOkqjoH/1M/Mgm2xgwx33XCa5MLVyPjg==", "dependencies": { - "Microsoft.AspNetCore.Components.Web": "8.0.29", + "Microsoft.AspNetCore.Components.Web": "8.0.34", "Microsoft.Extensions.Configuration.Binder": "8.0.2", "Microsoft.Extensions.Configuration.Json": "8.0.1", "Microsoft.Extensions.Logging": "8.0.1", - "Microsoft.JSInterop.WebAssembly": "8.0.29" + "Microsoft.JSInterop.WebAssembly": "8.0.34" } }, "Microsoft.AspNetCore.Components.WebAssembly.Authentication": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "rs3U4TsemB1lqnpBVtLlQbQM3ewtAImIy3OjlhM7YjxJb/1AEXmIno1Wm8S3HPScYmLZtwLrTG5//uNlYzlRag==", + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "WiY2Kz9H8F8v/QX924Uaj0klHgSvzigHPlFefat2y+MCXpmXzXGalVHY19Wqam17BORG5GNGT2qmQ7UinoAabw==", "dependencies": { - "Microsoft.AspNetCore.Components.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components.Web": "8.0.29" + "Microsoft.AspNetCore.Components.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components.Web": "8.0.34" } }, "Microsoft.AspNetCore.SignalR.Client": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "GeNFUL39i+NZ+Z8tGFLyqYpdMIwolMfrE7qUbw6ipt864yF4gEDRb/vBoOJhRRaJU6KVdXVuKwUX1s+Atvsprw==", + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "Z49bJC7HUjrBIQ5rXkOvzCYjx6T6TH/PrcFqOB4OhsBXYjJgw4JMrqisZGQK6gKsFaxAHnQ1V6HU1YJCzXnSbA==", "dependencies": { - "Microsoft.AspNetCore.Http.Connections.Client": "8.0.29", - "Microsoft.AspNetCore.SignalR.Client.Core": "8.0.29" + "Microsoft.AspNetCore.Http.Connections.Client": "8.0.34", + "Microsoft.AspNetCore.SignalR.Client.Core": "8.0.34" } }, "Microsoft.NET.ILLink.Tasks": { @@ -49,97 +49,97 @@ }, "Microsoft.AspNetCore.Authorization": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "IMVrMqYF7LASYMWVt/sL9f5vkA8qtfvsLEaxSchEc1Pk/zxdQt1fP1W3hN6Wxm0+wJjAKO+DhF/1mi22AtAfCQ==", + "resolved": "8.0.34", + "contentHash": "fbhLTjORf7gXdcJMdkXkY33wDJWgcUG/emjrSR6dGhEdvowB2AROA6YGCCTJjFf64OeDP/QlzdAVryVRDsN9xA==", "dependencies": { - "Microsoft.AspNetCore.Metadata": "8.0.29", + "Microsoft.AspNetCore.Metadata": "8.0.34", "Microsoft.Extensions.Logging.Abstractions": "8.0.3", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.Components": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1ZNdFYtEORG9LOYFJf0AtNMSAtkQ8WQ5XEGQXdEDvRMYBp4MS5t6mPAiWGVMb5aKpPfaeXOGHQqDcZHP3QfuAA==", + "resolved": "8.0.34", + "contentHash": "7D4rKdMDG1PCbSYIqajN8bypTJk19roErwK4hu78FWvokW7oS7SvrC0LV9SOxbdWZUpJ6LKIr58apNeHx3GNHw==", "dependencies": { - "Microsoft.AspNetCore.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components.Analyzers": "8.0.29" + "Microsoft.AspNetCore.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components.Analyzers": "8.0.34" } }, "Microsoft.AspNetCore.Components.Analyzers": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "AoGUtJ3CgKhihjGCga7vNCawzWUHb7QNMtxzBJKjTYYhM9HwkGE/xmg6sZNO3Tw5W+ke5PoUO411Squ//jgiTQ==" + "resolved": "8.0.34", + "contentHash": "bl55YLy7i6Fc2412TYklQP9MQnuuJ9mnxd5mhihpo9/F/E07iqkccYFxHVjx8+RPC82PPsROPXzO3N3e1xJH/g==" }, "Microsoft.AspNetCore.Components.Authorization": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1zf+E8B8BZod/1POB4c/YnHKPXaj/zkoFeT079iwJHWMBXxB/Y75Dug2KstusYEZBHyiHdN7UUD+Fh2edLEVvg==", + "resolved": "8.0.34", + "contentHash": "s1vm/rXTTKEQIzB9G/JAb3zNXbm/JQq1CG1ManyoJ6wS371SGSyeAYo2ZtPWNzoocCZCCCDjOjAOUjOhGckDOg==", "dependencies": { - "Microsoft.AspNetCore.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components": "8.0.29" + "Microsoft.AspNetCore.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components": "8.0.34" } }, "Microsoft.AspNetCore.Components.Forms": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "GXmEG6N30oDLZHvyxUmwKDPh/iQkcsktjUb3wffSV3Qi4DD1O37Zzz4EBIsgLQwTr4WtqjQ94yprJtKy+YSE1g==", + "resolved": "8.0.34", + "contentHash": "L/2r6BGxku65ZNBvcfB7kP385fAEVdUmG2dbc0TlRPTD+RS2tHhHmvFgCLDnVI5qWmwgVXTRfw0w3W/Gq6tomg==", "dependencies": { - "Microsoft.AspNetCore.Components": "8.0.29" + "Microsoft.AspNetCore.Components": "8.0.34" } }, "Microsoft.AspNetCore.Components.Web": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1El7nDceNvO07z3Wr8uYj9J5Y7KdtIEgpbyfb9r88BYFVuZxaDDA2F4n907mWib1iLbw+XoV25XbNcPH2rne/A==", + "resolved": "8.0.34", + "contentHash": "qfRk+JchjjxeKZddAOZ8mtvGqXpV+gfRBbEibvHmCDI1RZ9EmebZc1Fzrs9JJV3LQ6cJOndqWw9fVcsoM104BQ==", "dependencies": { - "Microsoft.AspNetCore.Components": "8.0.29", - "Microsoft.AspNetCore.Components.Forms": "8.0.29", + "Microsoft.AspNetCore.Components": "8.0.34", + "Microsoft.AspNetCore.Components.Forms": "8.0.34", "Microsoft.Extensions.DependencyInjection": "8.0.1", "Microsoft.Extensions.Primitives": "8.0.0", - "Microsoft.JSInterop": "8.0.29", + "Microsoft.JSInterop": "8.0.34", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.Connections.Abstractions": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "jq7oQyQE4EgWNeK6sHQn/XGyDHQ2pB5JzU4Bam9m1PQ9UtxLI/4AFqXW5Yl9VDZkTf8hkRLcJ1AbkBNCy/NiGQ==", + "resolved": "8.0.34", + "contentHash": "fr9GYwfv7T+61Mm9pN+6m4fEeiC4gNhE1bPIYMetinR2zVyvxmUJ8xtWLCq4pMYe6ZA9qo5IMIuu7IlPVJXrJg==", "dependencies": { - "Microsoft.Extensions.Features": "8.0.29", + "Microsoft.Extensions.Features": "8.0.34", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.Http.Connections.Client": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "ZnUtm+OPtOOKnnF+ZQucdPb/oBix5gyznn+XUztW7Z5c5TpWkwx4NNJVxJGoazMdpQu3EUsXF3anN2nOSK7pNg==", + "resolved": "8.0.34", + "contentHash": "gU92+8nzgVniLPHQ6/ZIr5qVqAcfEbRX4S2B9L80n2fF7PzRNCf5EgwSWZscS4vNM4sC/QIbXWlsRMc9MXBG3g==", "dependencies": { - "Microsoft.AspNetCore.Http.Connections.Common": "8.0.29", + "Microsoft.AspNetCore.Http.Connections.Common": "8.0.34", "Microsoft.Extensions.Logging.Abstractions": "8.0.3", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.Http.Connections.Common": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "JBJI5k7nXefp2pdlk2cgdQp1zdweCcKzzeXjIalEQDuFdkJ4nMZ/Lzt3NA2XhqCKzKzKSh+EfKMytkYkxdK0NA==", + "resolved": "8.0.34", + "contentHash": "bGr2szj86nvoywJfZBjBPz0IQ3ON+n+QOGola0Tk1AFN7KUexRCMMC/sLjDRRgVS/7cX0GHtFj7MCzPDTyEMUg==", "dependencies": { - "Microsoft.AspNetCore.Connections.Abstractions": "8.0.29" + "Microsoft.AspNetCore.Connections.Abstractions": "8.0.34" } }, "Microsoft.AspNetCore.Metadata": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "5Oyb4tncDGft/tXVJoyO7iWy1fnz1AzgycQfzPPSJqafmp3J+xLhgfDSTB+hzVVyG9mcb9z/8m9RDEx7bCj3Kw==" + "resolved": "8.0.34", + "contentHash": "uKyA3KoanU0FU4S697P5Cd99x4V1SbA//HT0YlctxJhFZGTQaEXbuF6Ys+riPUqB6Tpdphdp3Ee6Wwqls8DIPg==" }, "Microsoft.AspNetCore.SignalR.Client.Core": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "T7RADZHU0G093e037prxlYIjV09mxIaVXcSip4tcpMMivawMBAR9WIJc9mqhkmAhO8RxmFKaK8BloOzLPuk/9Q==", + "resolved": "8.0.34", + "contentHash": "oEx48tGld9jP+b85Rvk3QseBEhqHOwIA0x5VyDvDkZBKh55v9GhIFcXmeKpjUAa1Jfk15iKO5MC2LxgReF3fjw==", "dependencies": { - "Microsoft.AspNetCore.SignalR.Common": "8.0.29", - "Microsoft.AspNetCore.SignalR.Protocols.Json": "8.0.29", + "Microsoft.AspNetCore.SignalR.Common": "8.0.34", + "Microsoft.AspNetCore.SignalR.Protocols.Json": "8.0.34", "Microsoft.Extensions.DependencyInjection": "8.0.1", "Microsoft.Extensions.Logging": "8.0.1", "System.Threading.Channels": "8.0.0" @@ -147,19 +147,19 @@ }, "Microsoft.AspNetCore.SignalR.Common": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "silO++Rqw7ssetrLnSPTauWwJUwU/sgITKsYpuvJtDrqwZnXLYqvMflKkdS118oPLrh5GgZspvakJoQffbin4Q==", + "resolved": "8.0.34", + "contentHash": "uZYFV5VnMxLGbdAMs6o+zd11/M1a10k06dCvNtSPj2EYTd8bXMtBtvIO57S2OkglaBp6SMkbowK6vivvLojZ6Q==", "dependencies": { - "Microsoft.AspNetCore.Connections.Abstractions": "8.0.29", + "Microsoft.AspNetCore.Connections.Abstractions": "8.0.34", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.SignalR.Protocols.Json": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "lS8j3Awf+kwG0lGHNIHXJFiCEogdTroLhmRxQ4+T68aJUaXIu0LxVAZL9hjm16LoohL4jVmTPwgQHF7mYKo4Ow==", + "resolved": "8.0.34", + "contentHash": "auFD1HcdINHbSlof4wkjmteA8agMPdpO/TnrW60vih+bT3oB8NeP/4hn08+MttTtg6BxnzWifPNjQh9AEV26jg==", "dependencies": { - "Microsoft.AspNetCore.SignalR.Common": "8.0.29" + "Microsoft.AspNetCore.SignalR.Common": "8.0.34" } }, "Microsoft.Extensions.Configuration": { @@ -225,8 +225,8 @@ }, "Microsoft.Extensions.Features": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "0zMsmVIfuu9AP3pgIbHt3SOdEHHdGZSbRlTl8+ysZkNLbbZ0B2tm0Y6kYfuw/VsuAuKHy0IOOgobm3maYRQCIg==" + "resolved": "8.0.34", + "contentHash": "cMnYbfFxX8yz7mO0I8KVrD2V5gnTVJK3MscM3Qivs1WlDmAm1WeH50OMAa5jHyjtyV5V43vphs1+yPUDAy2NMg==" }, "Microsoft.Extensions.FileProviders.Abstractions": { "type": "Transitive", @@ -285,15 +285,15 @@ }, "Microsoft.JSInterop": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "6N3e6a5YHcV53/jU63XBvLEOEV3ctWSFZi+hNl0HNRHYd3aJrTSA9Wl6tq7/9piO+pYRat4V6wPB2NEWMe3TnA==" + "resolved": "8.0.34", + "contentHash": "xH7+tBkNDmicSsX1CTcBXmBwgL5ecGb3bzd7ztOXsP5ZuNP4o15bJTAHp4s67CDj5c/EpAEzX12GxZlKKvJtvg==" }, "Microsoft.JSInterop.WebAssembly": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "aPT2wbEYTKwFYwSGGNEoX0af5jrAPIG8zzMuZ02Hfh4+6+0lFAdRcZ3GEHljoVbE491WSLgoeyMQTcUKx3zYTQ==", + "resolved": "8.0.34", + "contentHash": "NTqJ9W8jW/EPqtoY/tiZBLbJXLcfpUTI1y2SBfJEDGfwE22Z/HLnXTblJOmw/z6ELXKVT+1PZCt34o94eQoaBA==", "dependencies": { - "Microsoft.JSInterop": "8.0.29" + "Microsoft.JSInterop": "8.0.34" } }, "System.IO.Pipelines": { diff --git a/src/server/SmartBotBlazorApp.Tests/ImageProcessorTests.cs b/src/server/SmartBotBlazorApp.Tests/ImageProcessorTests.cs index 53776d3..1547240 100644 --- a/src/server/SmartBotBlazorApp.Tests/ImageProcessorTests.cs +++ b/src/server/SmartBotBlazorApp.Tests/ImageProcessorTests.cs @@ -1,7 +1,83 @@ +using SkiaSharp; + namespace SmartBotBlazorApp.Tests; public class ImageProcessorTests { + [Theory] + [InlineData(0, 255, 0, 0)] + [InlineData(10, 255, 0, 0)] + [InlineData(1755, 0, 255, 0)] + [InlineData(3500, 255, 0, 255)] + [InlineData(ushort.MaxValue, 255, 0, 255)] + public void GenerateHeatmapProducesValidPng(int depth, int red, int green, int blue) + { + var input = Enumerable.Repeat((ushort)depth, 64).ToArray(); + + var result = new ImageProcessor().GenerateHeatmapBase64Image(input); + + var png = Convert.FromBase64String(result); + byte[] signature = [137, 80, 78, 71, 13, 10, 26, 10]; + Assert.True(png.Length >= signature.Length); + Assert.Equal(signature, png[..signature.Length]); + + using var image = SKBitmap.Decode(png); + Assert.NotNull(image); + Assert.Equal(64, image.Width); + Assert.Equal(64, image.Height); + for (int y = 0; y < image.Height; y++) + { + for (int x = 0; x < image.Width; x++) + { + var pixel = image.GetPixel(x, y); + Assert.Equal((byte)red, pixel.Red); + Assert.Equal((byte)green, pixel.Green); + Assert.Equal((byte)blue, pixel.Blue); + Assert.Equal(byte.MaxValue, pixel.Alpha); + } + } + } + + [Fact] + public void GenerateHeatmapPreservesXMajorOrientationAndInterpolatesColors() + { + var input = new ushort[64]; + for (int x = 0; x < 8; x++) + { + for (int y = 0; y < 8; y++) + { + input[x * 8 + y] = x < 4 ? (ushort)10 : (ushort)3500; + } + } + + var result = new ImageProcessor().GenerateHeatmapBase64Image(input); + + using var image = SKBitmap.Decode(Convert.FromBase64String(result)); + Assert.NotNull(image); + Assert.Equal(64, image.Width); + Assert.Equal(64, image.Height); + var red = new SKColor(255, 0, 0, 255); + var violet = new SKColor(255, 0, 255, 255); + Assert.Equal(red, image.GetPixel(8, 8)); + Assert.Equal(red, image.GetPixel(8, 56)); + Assert.Equal(violet, image.GetPixel(56, 8)); + Assert.Equal(violet, image.GetPixel(56, 56)); + + var leftTransition = image.GetPixel(31, 24); + var rightTransition = image.GetPixel(32, 24); + Assert.Equal((byte)255, leftTransition.Red); + Assert.Equal((byte)0, leftTransition.Green); + Assert.Equal((byte)255, leftTransition.Alpha); + Assert.Equal((byte)255, rightTransition.Red); + Assert.Equal((byte)0, rightTransition.Green); + Assert.Equal((byte)255, rightTransition.Alpha); + Assert.InRange(leftTransition.Blue, (byte)1, (byte)254); + Assert.InRange(rightTransition.Blue, (byte)1, (byte)254); + Assert.True(leftTransition.Blue < rightTransition.Blue); + Assert.Equal(leftTransition, image.GetPixel(31, 40)); + Assert.Equal(rightTransition, image.GetPixel(32, 40)); + } + [Fact] public void InterpolationPreservesAllInputCorners() { diff --git a/src/server/SmartBotBlazorApp.Tests/packages.lock.json b/src/server/SmartBotBlazorApp.Tests/packages.lock.json index fdecf4e..a1b70e2 100644 --- a/src/server/SmartBotBlazorApp.Tests/packages.lock.json +++ b/src/server/SmartBotBlazorApp.Tests/packages.lock.json @@ -63,162 +63,162 @@ }, "Microsoft.AspNetCore.Authorization": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "IMVrMqYF7LASYMWVt/sL9f5vkA8qtfvsLEaxSchEc1Pk/zxdQt1fP1W3hN6Wxm0+wJjAKO+DhF/1mi22AtAfCQ==", + "resolved": "8.0.34", + "contentHash": "fbhLTjORf7gXdcJMdkXkY33wDJWgcUG/emjrSR6dGhEdvowB2AROA6YGCCTJjFf64OeDP/QlzdAVryVRDsN9xA==", "dependencies": { - "Microsoft.AspNetCore.Metadata": "8.0.29", + "Microsoft.AspNetCore.Metadata": "8.0.34", "Microsoft.Extensions.Logging.Abstractions": "8.0.3", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.Components": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1ZNdFYtEORG9LOYFJf0AtNMSAtkQ8WQ5XEGQXdEDvRMYBp4MS5t6mPAiWGVMb5aKpPfaeXOGHQqDcZHP3QfuAA==", + "resolved": "8.0.34", + "contentHash": "7D4rKdMDG1PCbSYIqajN8bypTJk19roErwK4hu78FWvokW7oS7SvrC0LV9SOxbdWZUpJ6LKIr58apNeHx3GNHw==", "dependencies": { - "Microsoft.AspNetCore.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components.Analyzers": "8.0.29" + "Microsoft.AspNetCore.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components.Analyzers": "8.0.34" } }, "Microsoft.AspNetCore.Components.Analyzers": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "AoGUtJ3CgKhihjGCga7vNCawzWUHb7QNMtxzBJKjTYYhM9HwkGE/xmg6sZNO3Tw5W+ke5PoUO411Squ//jgiTQ==" + "resolved": "8.0.34", + "contentHash": "bl55YLy7i6Fc2412TYklQP9MQnuuJ9mnxd5mhihpo9/F/E07iqkccYFxHVjx8+RPC82PPsROPXzO3N3e1xJH/g==" }, "Microsoft.AspNetCore.Components.Authorization": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1zf+E8B8BZod/1POB4c/YnHKPXaj/zkoFeT079iwJHWMBXxB/Y75Dug2KstusYEZBHyiHdN7UUD+Fh2edLEVvg==", + "resolved": "8.0.34", + "contentHash": "s1vm/rXTTKEQIzB9G/JAb3zNXbm/JQq1CG1ManyoJ6wS371SGSyeAYo2ZtPWNzoocCZCCCDjOjAOUjOhGckDOg==", "dependencies": { - "Microsoft.AspNetCore.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components": "8.0.29" + "Microsoft.AspNetCore.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components": "8.0.34" } }, "Microsoft.AspNetCore.Components.Forms": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "GXmEG6N30oDLZHvyxUmwKDPh/iQkcsktjUb3wffSV3Qi4DD1O37Zzz4EBIsgLQwTr4WtqjQ94yprJtKy+YSE1g==", + "resolved": "8.0.34", + "contentHash": "L/2r6BGxku65ZNBvcfB7kP385fAEVdUmG2dbc0TlRPTD+RS2tHhHmvFgCLDnVI5qWmwgVXTRfw0w3W/Gq6tomg==", "dependencies": { - "Microsoft.AspNetCore.Components": "8.0.29" + "Microsoft.AspNetCore.Components": "8.0.34" } }, "Microsoft.AspNetCore.Components.Web": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1El7nDceNvO07z3Wr8uYj9J5Y7KdtIEgpbyfb9r88BYFVuZxaDDA2F4n907mWib1iLbw+XoV25XbNcPH2rne/A==", + "resolved": "8.0.34", + "contentHash": "qfRk+JchjjxeKZddAOZ8mtvGqXpV+gfRBbEibvHmCDI1RZ9EmebZc1Fzrs9JJV3LQ6cJOndqWw9fVcsoM104BQ==", "dependencies": { - "Microsoft.AspNetCore.Components": "8.0.29", - "Microsoft.AspNetCore.Components.Forms": "8.0.29", + "Microsoft.AspNetCore.Components": "8.0.34", + "Microsoft.AspNetCore.Components.Forms": "8.0.34", "Microsoft.Extensions.DependencyInjection": "8.0.1", "Microsoft.Extensions.Primitives": "8.0.0", - "Microsoft.JSInterop": "8.0.29", + "Microsoft.JSInterop": "8.0.34", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.Components.WebAssembly": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "wAPYLWm1Y2ikdUY0OgsWOJ0A1iQ0GJIvwsgbQKXTBUP/9r5rK3DvmJnZy9a0yEMslJPxvYesACNYDmLz2sTcxQ==", + "resolved": "8.0.34", + "contentHash": "Q4EZwjHjVZiHxETMIZnNIoDGjX1morN7eY6mHLIOE23T0w1kJ3gl7vmOkqjoH/1M/Mgm2xgwx33XCa5MLVyPjg==", "dependencies": { - "Microsoft.AspNetCore.Components.Web": "8.0.29", + "Microsoft.AspNetCore.Components.Web": "8.0.34", "Microsoft.Extensions.Configuration.Binder": "8.0.2", "Microsoft.Extensions.Configuration.Json": "8.0.1", "Microsoft.Extensions.Logging": "8.0.1", - "Microsoft.JSInterop.WebAssembly": "8.0.29" + "Microsoft.JSInterop.WebAssembly": "8.0.34" } }, "Microsoft.AspNetCore.Components.WebAssembly.Authentication": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "rs3U4TsemB1lqnpBVtLlQbQM3ewtAImIy3OjlhM7YjxJb/1AEXmIno1Wm8S3HPScYmLZtwLrTG5//uNlYzlRag==", + "resolved": "8.0.34", + "contentHash": "WiY2Kz9H8F8v/QX924Uaj0klHgSvzigHPlFefat2y+MCXpmXzXGalVHY19Wqam17BORG5GNGT2qmQ7UinoAabw==", "dependencies": { - "Microsoft.AspNetCore.Components.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components.Web": "8.0.29" + "Microsoft.AspNetCore.Components.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components.Web": "8.0.34" } }, "Microsoft.AspNetCore.Components.WebAssembly.Server": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "mF8RihuRK1PqMDDXCmD53f14Q1zp6N51UFwGLDjwiKpGEf4MWUknbRIglPIZf3Lt6c/af2pNSz1fLYXcymzNCg==" + "resolved": "8.0.34", + "contentHash": "CGv8iZx4dP/V1pbihb0MdKI9eqU55/e+85TzyVDK084EVtZ1V4u6190YySzxUXIfYyO/u17KJZwTg1U/HlpCKg==" }, "Microsoft.AspNetCore.Connections.Abstractions": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "jq7oQyQE4EgWNeK6sHQn/XGyDHQ2pB5JzU4Bam9m1PQ9UtxLI/4AFqXW5Yl9VDZkTf8hkRLcJ1AbkBNCy/NiGQ==", + "resolved": "8.0.34", + "contentHash": "fr9GYwfv7T+61Mm9pN+6m4fEeiC4gNhE1bPIYMetinR2zVyvxmUJ8xtWLCq4pMYe6ZA9qo5IMIuu7IlPVJXrJg==", "dependencies": { - "Microsoft.Extensions.Features": "8.0.29", + "Microsoft.Extensions.Features": "8.0.34", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.Cryptography.Internal": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "RAknfruzMmottkLWOxKzCrqOE5hp88Avr8qJU9YtxYsiJ1aH+Ij2SVcwS9Tx3VXuUesJqPADK6gZsG/bX4h6XA==" + "resolved": "8.0.34", + "contentHash": "95zvw0jLSY9SkrNZ4jAjpHI3Hsd26w4AAt3/tlOwRNop4KmLd12wvCCAIHoeMLZx4rzze1mpQl45d6PNX05+uw==" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "DIEnc7iZJHoNIar8pz+HHtm9XvshFrCSq9GtS+KLQn6AA98c9PeeoSPCwTBwvfY47KpuTUr6zNYIy/EERMzf3w==", + "resolved": "8.0.34", + "contentHash": "I9yYOA/Rd6iMhXiUjv9w5PkB4VKFRBFbOmqTGmRl4hHrefPVGXR8vI7FNTrA0T0tvRQnGsLAV2HzWO+9bvJWEw==", "dependencies": { - "Microsoft.AspNetCore.Cryptography.Internal": "8.0.29" + "Microsoft.AspNetCore.Cryptography.Internal": "8.0.34" } }, "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "S2oPwtyDpmRQTjPY7M/8kDqH2Eujd8FpkIav4tdgYdTM6LeM5ab+L2IklpQ+TUbtbdyItIooKHVEzbuk1pxUDg==", + "resolved": "8.0.34", + "contentHash": "OanV5E/61XaUsg4IuCcO2dmF7+bU5I53sX4CW01wrMPa7P+6MftSLRVPHQOPLyvLGb+/pg6+av0kNxoQuRaN5w==", "dependencies": { - "Microsoft.EntityFrameworkCore.Relational": "8.0.29" + "Microsoft.EntityFrameworkCore.Relational": "8.0.34" } }, "Microsoft.AspNetCore.Http.Connections.Client": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "ZnUtm+OPtOOKnnF+ZQucdPb/oBix5gyznn+XUztW7Z5c5TpWkwx4NNJVxJGoazMdpQu3EUsXF3anN2nOSK7pNg==", + "resolved": "8.0.34", + "contentHash": "gU92+8nzgVniLPHQ6/ZIr5qVqAcfEbRX4S2B9L80n2fF7PzRNCf5EgwSWZscS4vNM4sC/QIbXWlsRMc9MXBG3g==", "dependencies": { - "Microsoft.AspNetCore.Http.Connections.Common": "8.0.29", + "Microsoft.AspNetCore.Http.Connections.Common": "8.0.34", "Microsoft.Extensions.Logging.Abstractions": "8.0.3", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.Http.Connections.Common": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "JBJI5k7nXefp2pdlk2cgdQp1zdweCcKzzeXjIalEQDuFdkJ4nMZ/Lzt3NA2XhqCKzKzKSh+EfKMytkYkxdK0NA==", + "resolved": "8.0.34", + "contentHash": "bGr2szj86nvoywJfZBjBPz0IQ3ON+n+QOGola0Tk1AFN7KUexRCMMC/sLjDRRgVS/7cX0GHtFj7MCzPDTyEMUg==", "dependencies": { - "Microsoft.AspNetCore.Connections.Abstractions": "8.0.29" + "Microsoft.AspNetCore.Connections.Abstractions": "8.0.34" } }, "Microsoft.AspNetCore.Identity.EntityFrameworkCore": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "TYM50l/64ZShlAE2jChEQapK0KPg969yYKGR8w8KGxVtktRlaNC/aN43bggoYwswiXhQ7dU2zqmMu6UH2pVbYQ==", + "resolved": "8.0.34", + "contentHash": "i4tAvEFq1/NkR9FBDuxJwB2ArWQ5tGx/KtS9rtiAES8/B54iLrP/os9PereHG2LuV6yH0LrQibUFzBTqghfz1Q==", "dependencies": { - "Microsoft.EntityFrameworkCore.Relational": "8.0.29", - "Microsoft.Extensions.Identity.Stores": "8.0.29" + "Microsoft.EntityFrameworkCore.Relational": "8.0.34", + "Microsoft.Extensions.Identity.Stores": "8.0.34" } }, "Microsoft.AspNetCore.Metadata": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "5Oyb4tncDGft/tXVJoyO7iWy1fnz1AzgycQfzPPSJqafmp3J+xLhgfDSTB+hzVVyG9mcb9z/8m9RDEx7bCj3Kw==" + "resolved": "8.0.34", + "contentHash": "uKyA3KoanU0FU4S697P5Cd99x4V1SbA//HT0YlctxJhFZGTQaEXbuF6Ys+riPUqB6Tpdphdp3Ee6Wwqls8DIPg==" }, "Microsoft.AspNetCore.SignalR.Client": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "GeNFUL39i+NZ+Z8tGFLyqYpdMIwolMfrE7qUbw6ipt864yF4gEDRb/vBoOJhRRaJU6KVdXVuKwUX1s+Atvsprw==", + "resolved": "8.0.34", + "contentHash": "Z49bJC7HUjrBIQ5rXkOvzCYjx6T6TH/PrcFqOB4OhsBXYjJgw4JMrqisZGQK6gKsFaxAHnQ1V6HU1YJCzXnSbA==", "dependencies": { - "Microsoft.AspNetCore.Http.Connections.Client": "8.0.29", - "Microsoft.AspNetCore.SignalR.Client.Core": "8.0.29" + "Microsoft.AspNetCore.Http.Connections.Client": "8.0.34", + "Microsoft.AspNetCore.SignalR.Client.Core": "8.0.34" } }, "Microsoft.AspNetCore.SignalR.Client.Core": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "T7RADZHU0G093e037prxlYIjV09mxIaVXcSip4tcpMMivawMBAR9WIJc9mqhkmAhO8RxmFKaK8BloOzLPuk/9Q==", + "resolved": "8.0.34", + "contentHash": "oEx48tGld9jP+b85Rvk3QseBEhqHOwIA0x5VyDvDkZBKh55v9GhIFcXmeKpjUAa1Jfk15iKO5MC2LxgReF3fjw==", "dependencies": { - "Microsoft.AspNetCore.SignalR.Common": "8.0.29", - "Microsoft.AspNetCore.SignalR.Protocols.Json": "8.0.29", + "Microsoft.AspNetCore.SignalR.Common": "8.0.34", + "Microsoft.AspNetCore.SignalR.Protocols.Json": "8.0.34", "Microsoft.Extensions.DependencyInjection": "8.0.1", "Microsoft.Extensions.Logging": "8.0.1", "System.Threading.Channels": "8.0.0" @@ -226,19 +226,19 @@ }, "Microsoft.AspNetCore.SignalR.Common": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "silO++Rqw7ssetrLnSPTauWwJUwU/sgITKsYpuvJtDrqwZnXLYqvMflKkdS118oPLrh5GgZspvakJoQffbin4Q==", + "resolved": "8.0.34", + "contentHash": "uZYFV5VnMxLGbdAMs6o+zd11/M1a10k06dCvNtSPj2EYTd8bXMtBtvIO57S2OkglaBp6SMkbowK6vivvLojZ6Q==", "dependencies": { - "Microsoft.AspNetCore.Connections.Abstractions": "8.0.29", + "Microsoft.AspNetCore.Connections.Abstractions": "8.0.34", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.SignalR.Protocols.Json": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "lS8j3Awf+kwG0lGHNIHXJFiCEogdTroLhmRxQ4+T68aJUaXIu0LxVAZL9hjm16LoohL4jVmTPwgQHF7mYKo4Ow==", + "resolved": "8.0.34", + "contentHash": "auFD1HcdINHbSlof4wkjmteA8agMPdpO/TnrW60vih+bT3oB8NeP/4hn08+MttTtg6BxnzWifPNjQh9AEV26jg==", "dependencies": { - "Microsoft.AspNetCore.SignalR.Common": "8.0.29" + "Microsoft.AspNetCore.SignalR.Common": "8.0.34" } }, "Microsoft.Bcl.AsyncInterfaces": { @@ -253,12 +253,12 @@ }, "Microsoft.Data.SqlClient": { "type": "Transitive", - "resolved": "6.1.6", - "contentHash": "6abRPXrjjEWxcNkTomBIzBdGolYnwD0ykP+6YAynaEEfKlGe94ZSQd58pggucusp28xUA7wLo9XcvzU92ZuF6Q==", + "resolved": "6.1.8", + "contentHash": "LHe+YQAr0jTpbHXL/hQAZjZeHAtNeVIzSgmEX8W/dF6Y6VlEenR+ZKPFiFxOCwo2WjGCbDk9XnKbt0zwXk7cHw==", "dependencies": { "Azure.Core": "1.50.0", "Azure.Identity": "1.17.1", - "Microsoft.Data.SqlClient.SNI.runtime": "6.0.2", + "Microsoft.Data.SqlClient.SNI.runtime": "6.0.3", "Microsoft.Extensions.Caching.Memory": "8.0.1", "Microsoft.Identity.Client": "4.84.2", "Microsoft.Identity.Client.Broker": "4.84.2", @@ -268,13 +268,13 @@ "System.Configuration.ConfigurationManager": "8.0.1", "System.Diagnostics.DiagnosticSource": "8.0.1", "System.IdentityModel.Tokens.Jwt": "7.7.1", - "System.Security.Cryptography.Pkcs": "8.0.1" + "System.Security.Cryptography.Pkcs": "8.0.2" } }, "Microsoft.Data.SqlClient.SNI.runtime": { "type": "Transitive", - "resolved": "6.0.2", - "contentHash": "f+pRODTWX7Y67jXO3T5S2dIPZ9qMJNySjlZT/TKmWVNWe19N8jcWmHaqHnnchaq3gxEKv1SWVY5EFzOD06l41w==" + "resolved": "6.0.3", + "contentHash": "kt2JDsmcFGzeanCo6hJNalMcjEvgtYoxSQjqh00Nm1xXmahHzuR48TxjS1nq/lpnYh+g+wLqD5D9WSz8xsybhw==" }, "Microsoft.EntityFrameworkCore": { "type": "Transitive", @@ -405,8 +405,8 @@ }, "Microsoft.Extensions.Features": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "0zMsmVIfuu9AP3pgIbHt3SOdEHHdGZSbRlTl8+ysZkNLbbZ0B2tm0Y6kYfuw/VsuAuKHy0IOOgobm3maYRQCIg==" + "resolved": "8.0.34", + "contentHash": "cMnYbfFxX8yz7mO0I8KVrD2V5gnTVJK3MscM3Qivs1WlDmAm1WeH50OMAa5jHyjtyV5V43vphs1+yPUDAy2NMg==" }, "Microsoft.Extensions.FileProviders.Abstractions": { "type": "Transitive", @@ -433,21 +433,21 @@ }, "Microsoft.Extensions.Identity.Core": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "os0Bq475TseOIY+ieTPW/0Iyoe9B+qEr+ahipj9ojpvPgA95tRZXYGaEHSvjv71/AqRgFdN+gSi3AExT3wih7g==", + "resolved": "8.0.34", + "contentHash": "99dfXW13JA6HI5ZLFJ1omT8G+91gfr3fKhUMSzQMG9y2YHSZt7lgYQ0T8M6yJzeonDZ4c/W5ntBf66zIu+UR/A==", "dependencies": { - "Microsoft.AspNetCore.Cryptography.KeyDerivation": "8.0.29", + "Microsoft.AspNetCore.Cryptography.KeyDerivation": "8.0.34", "Microsoft.Extensions.Logging": "8.0.1", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.Extensions.Identity.Stores": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "AbZ/yMoGstUaDucifJ25/Dm344GuQv8LYLrIsPTkGZ/H+Nb1/oyfJXV+acQ3Gon6uNqvXso4W/xqqiSTkUqsvQ==", + "resolved": "8.0.34", + "contentHash": "573tumJRS+iGO+DHAYp+LXeNq4cIyn4bNEkxJC3n5wkXAnn6XPxcvs9xjWot/0scbKBubAPyawbSlLFeWLRkbg==", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", - "Microsoft.Extensions.Identity.Core": "8.0.29", + "Microsoft.Extensions.Identity.Core": "8.0.34", "Microsoft.Extensions.Logging": "8.0.1" } }, @@ -580,15 +580,15 @@ }, "Microsoft.JSInterop": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "6N3e6a5YHcV53/jU63XBvLEOEV3ctWSFZi+hNl0HNRHYd3aJrTSA9Wl6tq7/9piO+pYRat4V6wPB2NEWMe3TnA==" + "resolved": "8.0.34", + "contentHash": "xH7+tBkNDmicSsX1CTcBXmBwgL5ecGb3bzd7ztOXsP5ZuNP4o15bJTAHp4s67CDj5c/EpAEzX12GxZlKKvJtvg==" }, "Microsoft.JSInterop.WebAssembly": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "aPT2wbEYTKwFYwSGGNEoX0af5jrAPIG8zzMuZ02Hfh4+6+0lFAdRcZ3GEHljoVbE491WSLgoeyMQTcUKx3zYTQ==", + "resolved": "8.0.34", + "contentHash": "NTqJ9W8jW/EPqtoY/tiZBLbJXLcfpUTI1y2SBfJEDGfwE22Z/HLnXTblJOmw/z6ELXKVT+1PZCt34o94eQoaBA==", "dependencies": { - "Microsoft.JSInterop": "8.0.29" + "Microsoft.JSInterop": "8.0.34" } }, "Microsoft.NETCore.Platforms": { @@ -671,10 +671,29 @@ "resolved": "13.0.4", "contentHash": "pdgNNMai3zv51W5aq268sujXUyx7SNdE2bj1wZcWjAQrKMFZV260lbqYop1d2GM67JI1huLRwxo9ZqnfF/lC6A==" }, - "SixLabors.ImageSharp": { + "SkiaSharp": { "type": "Transitive", - "resolved": "3.1.12", - "contentHash": "iAg6zifihXEFS/t7fiHhZBGAdCp3FavsF4i2ZIDp0JfeYeDVzvmlbY1CNhhIKimaIzrzSi5M/NBFcWvZT2rB/A==" + "resolved": "4.156.1", + "contentHash": "DFlbYk/Rxnqm+UM/EaynxLlucc07+fuWzT84KsyT8aCDAT1PZOPlp5eATD7eYczTgV771bnxQKSrLbNmUCaSLQ==", + "dependencies": { + "SkiaSharp.NativeAssets.Win32": "4.156.1", + "SkiaSharp.NativeAssets.macOS": "4.156.1" + } + }, + "SkiaSharp.NativeAssets.Linux.NoDependencies": { + "type": "Transitive", + "resolved": "4.156.1", + "contentHash": "p7LcHVbwsLOmvugPySgjA/ncq/BFap1MMbRs1u119PD8ZYFZYWaFS7MIT1e6ObwJGkJ9HVV9lEvugt30IjmFOA==" + }, + "SkiaSharp.NativeAssets.macOS": { + "type": "Transitive", + "resolved": "4.156.1", + "contentHash": "c05wS/CpRum9JKzk77bXrUsBdxIhv4QBk+sbE3nlEfoEV53Uq9VY4yxuae20lO42kE8PoLShuh6dbbvRrE4/iw==" + }, + "SkiaSharp.NativeAssets.Win32": { + "type": "Transitive", + "resolved": "4.156.1", + "contentHash": "BFSUQxmxG9KI2UV7MW1Xb4XhCLSB7Rwsg9E94KelNi8L6ptGXnHIOm3yqU/y3djwg4ZNiBWhOB8XAGUVaF9LuA==" }, "System.ClientModel": { "type": "Transitive", @@ -752,8 +771,8 @@ }, "System.Security.Cryptography.Pkcs": { "type": "Transitive", - "resolved": "8.0.1", - "contentHash": "CoCRHFym33aUSf/NtWSVSZa99dkd0Hm7OCZUxORBjRB16LNhIEOf8THPqzIYlvKM0nNDAPTRBa1FxEECrgaxxA==" + "resolved": "8.0.2", + "contentHash": "VWACYq0JGxi9sw3TonSSV4B2MfhYk5nhgOtp9wbrt5NFOtUetFqHkMZylcCwPX+117cBJH5EnIzIy6X4OKn/kA==" }, "System.Security.Cryptography.ProtectedData": { "type": "Transitive", @@ -854,24 +873,25 @@ "smartbotblazorapp": { "type": "Project", "dependencies": { - "Microsoft.AspNetCore.Components.WebAssembly.Server": "[8.0.29, )", - "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "[8.0.29, )", - "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "[8.0.29, )", - "Microsoft.AspNetCore.SignalR.Client": "[8.0.29, )", - "Microsoft.Data.SqlClient": "[6.1.6, )", + "Microsoft.AspNetCore.Components.WebAssembly.Server": "[8.0.34, )", + "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "[8.0.34, )", + "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "[8.0.34, )", + "Microsoft.AspNetCore.SignalR.Client": "[8.0.34, )", + "Microsoft.Data.SqlClient": "[6.1.8, )", "Microsoft.EntityFrameworkCore.SqlServer": "[9.0.18, )", "MudBlazor": "[7.16.0, )", "Newtonsoft.Json": "[13.0.4, )", - "SixLabors.ImageSharp": "[3.1.12, )", + "SkiaSharp": "[4.156.1, )", + "SkiaSharp.NativeAssets.Linux.NoDependencies": "[4.156.1, )", "SmartBotBlazorApp.Client": "[1.0.0, )" } }, "smartbotblazorapp.client": { "type": "Project", "dependencies": { - "Microsoft.AspNetCore.Components.WebAssembly": "[8.0.29, )", - "Microsoft.AspNetCore.Components.WebAssembly.Authentication": "[8.0.29, )", - "Microsoft.AspNetCore.SignalR.Client": "[8.0.29, )" + "Microsoft.AspNetCore.Components.WebAssembly": "[8.0.34, )", + "Microsoft.AspNetCore.Components.WebAssembly.Authentication": "[8.0.34, )", + "Microsoft.AspNetCore.SignalR.Client": "[8.0.34, )" } } } diff --git a/src/server/SmartBotBlazorApp/ImageProcessor.cs b/src/server/SmartBotBlazorApp/ImageProcessor.cs index 5caa5b1..b6f0280 100644 --- a/src/server/SmartBotBlazorApp/ImageProcessor.cs +++ b/src/server/SmartBotBlazorApp/ImageProcessor.cs @@ -1,6 +1,4 @@ -using SixLabors.ImageSharp; -using SixLabors.ImageSharp.PixelFormats; -using SixLabors.ImageSharp.Processing; +using SkiaSharp; namespace SmartBotBlazorApp @@ -12,60 +10,62 @@ internal string GenerateHeatmapBase64Image(ushort[] depthData) int width = 8, scaledWidth = 64; // Tworzenie obrazu - using var image = new Image(width, width); + using var image = new SKBitmap(width, width, SKColorType.Rgba8888, SKAlphaType.Opaque); // Normalizacja głębokości ushort minDepth = 10, maxDepth = 3500; - double scale = 1.0 / (maxDepth - minDepth); for (int x1 = 0; x1 < width; x1++) { for (int y1 = 0; y1 < width; y1++) { int index = x1 * width + y1; - double normalizedValue = (depthData[index] - minDepth) * scale; + double normalizedValue = (double)(depthData[index] - minDepth) / (maxDepth - minDepth); normalizedValue = Math.Clamp(normalizedValue, 0, 1); // Ustawienie koloru pikseli var heatmapColor = GetHeatmapColor(normalizedValue); - image[x1, y1] = heatmapColor; + image.SetPixel(x1, y1, heatmapColor); } } // Skalowanie - image.Mutate(ctx => ctx.Resize(scaledWidth, scaledWidth)); + using var scaledImage = image.Resize( + new SKImageInfo(scaledWidth, scaledWidth, SKColorType.Rgba8888, SKAlphaType.Opaque), + new SKSamplingOptions(SKCubicResampler.CatmullRom)) + ?? throw new InvalidOperationException("Unable to resize the heatmap image."); // Zapisanie jako PNG i konwersja do Base64 - using var ms = new MemoryStream(); - image.SaveAsPng(ms); - return Convert.ToBase64String(ms.ToArray()); + using var png = scaledImage.Encode(SKEncodedImageFormat.Png, 100) + ?? throw new InvalidOperationException("Unable to encode the heatmap image as PNG."); + return Convert.ToBase64String(png.ToArray()); } - private static Rgba32 GetHeatmapColor(double value) + private static SKColor GetHeatmapColor(double value) { if (value < 0.25) { // Red → Yellow double t = value / 0.25; - return new Rgba32(255, (byte)(t * 255), 0); + return new SKColor(255, (byte)(t * 255), 0); } else if (value < 0.5) { // Yellow → Green double t = (value - 0.25) / 0.25; - return new Rgba32((byte)(255 - t * 255), 255, 0); + return new SKColor((byte)(255 - t * 255), 255, 0); } else if (value < 0.75) { // Green → Blue double t = (value - 0.5) / 0.25; - return new Rgba32(0, (byte)(255 - t * 255), (byte)(t * 255)); + return new SKColor(0, (byte)(255 - t * 255), (byte)(t * 255)); } else { // Blue → Purple double t = (value - 0.75) / 0.25; - return new Rgba32((byte)(t * 255), 0, 255); + return new SKColor((byte)(t * 255), 0, 255); } } diff --git a/src/server/SmartBotBlazorApp/SmartBotBlazorApp.csproj b/src/server/SmartBotBlazorApp/SmartBotBlazorApp.csproj index 564d44d..23dd117 100644 --- a/src/server/SmartBotBlazorApp/SmartBotBlazorApp.csproj +++ b/src/server/SmartBotBlazorApp/SmartBotBlazorApp.csproj @@ -20,18 +20,19 @@ - - - - + + + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + + @@ -44,6 +45,14 @@ PreserveNewest PreserveNewest + + PreserveNewest + PreserveNewest + + + PreserveNewest + PreserveNewest + diff --git a/src/server/SmartBotBlazorApp/packages.lock.json b/src/server/SmartBotBlazorApp/packages.lock.json index 9813815..ee063b7 100644 --- a/src/server/SmartBotBlazorApp/packages.lock.json +++ b/src/server/SmartBotBlazorApp/packages.lock.json @@ -4,48 +4,48 @@ "net8.0": { "Microsoft.AspNetCore.Components.WebAssembly.Server": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "mF8RihuRK1PqMDDXCmD53f14Q1zp6N51UFwGLDjwiKpGEf4MWUknbRIglPIZf3Lt6c/af2pNSz1fLYXcymzNCg==" + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "CGv8iZx4dP/V1pbihb0MdKI9eqU55/e+85TzyVDK084EVtZ1V4u6190YySzxUXIfYyO/u17KJZwTg1U/HlpCKg==" }, "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "S2oPwtyDpmRQTjPY7M/8kDqH2Eujd8FpkIav4tdgYdTM6LeM5ab+L2IklpQ+TUbtbdyItIooKHVEzbuk1pxUDg==", + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "OanV5E/61XaUsg4IuCcO2dmF7+bU5I53sX4CW01wrMPa7P+6MftSLRVPHQOPLyvLGb+/pg6+av0kNxoQuRaN5w==", "dependencies": { - "Microsoft.EntityFrameworkCore.Relational": "8.0.29" + "Microsoft.EntityFrameworkCore.Relational": "8.0.34" } }, "Microsoft.AspNetCore.Identity.EntityFrameworkCore": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "TYM50l/64ZShlAE2jChEQapK0KPg969yYKGR8w8KGxVtktRlaNC/aN43bggoYwswiXhQ7dU2zqmMu6UH2pVbYQ==", + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "i4tAvEFq1/NkR9FBDuxJwB2ArWQ5tGx/KtS9rtiAES8/B54iLrP/os9PereHG2LuV6yH0LrQibUFzBTqghfz1Q==", "dependencies": { - "Microsoft.EntityFrameworkCore.Relational": "8.0.29", - "Microsoft.Extensions.Identity.Stores": "8.0.29" + "Microsoft.EntityFrameworkCore.Relational": "8.0.34", + "Microsoft.Extensions.Identity.Stores": "8.0.34" } }, "Microsoft.AspNetCore.SignalR.Client": { "type": "Direct", - "requested": "[8.0.29, )", - "resolved": "8.0.29", - "contentHash": "GeNFUL39i+NZ+Z8tGFLyqYpdMIwolMfrE7qUbw6ipt864yF4gEDRb/vBoOJhRRaJU6KVdXVuKwUX1s+Atvsprw==", + "requested": "[8.0.34, )", + "resolved": "8.0.34", + "contentHash": "Z49bJC7HUjrBIQ5rXkOvzCYjx6T6TH/PrcFqOB4OhsBXYjJgw4JMrqisZGQK6gKsFaxAHnQ1V6HU1YJCzXnSbA==", "dependencies": { - "Microsoft.AspNetCore.Http.Connections.Client": "8.0.29", - "Microsoft.AspNetCore.SignalR.Client.Core": "8.0.29" + "Microsoft.AspNetCore.Http.Connections.Client": "8.0.34", + "Microsoft.AspNetCore.SignalR.Client.Core": "8.0.34" } }, "Microsoft.Data.SqlClient": { "type": "Direct", - "requested": "[6.1.6, )", - "resolved": "6.1.6", - "contentHash": "6abRPXrjjEWxcNkTomBIzBdGolYnwD0ykP+6YAynaEEfKlGe94ZSQd58pggucusp28xUA7wLo9XcvzU92ZuF6Q==", + "requested": "[6.1.8, )", + "resolved": "6.1.8", + "contentHash": "LHe+YQAr0jTpbHXL/hQAZjZeHAtNeVIzSgmEX8W/dF6Y6VlEenR+ZKPFiFxOCwo2WjGCbDk9XnKbt0zwXk7cHw==", "dependencies": { "Azure.Core": "1.50.0", "Azure.Identity": "1.17.1", - "Microsoft.Data.SqlClient.SNI.runtime": "6.0.2", + "Microsoft.Data.SqlClient.SNI.runtime": "6.0.3", "Microsoft.Extensions.Caching.Memory": "8.0.1", "Microsoft.Identity.Client": "4.84.2", "Microsoft.Identity.Client.Broker": "4.84.2", @@ -55,7 +55,7 @@ "System.Configuration.ConfigurationManager": "8.0.1", "System.Diagnostics.DiagnosticSource": "8.0.1", "System.IdentityModel.Tokens.Jwt": "7.7.1", - "System.Security.Cryptography.Pkcs": "8.0.1" + "System.Security.Cryptography.Pkcs": "8.0.2" } }, "Microsoft.EntityFrameworkCore.SqlServer": { @@ -99,11 +99,21 @@ "resolved": "13.0.4", "contentHash": "pdgNNMai3zv51W5aq268sujXUyx7SNdE2bj1wZcWjAQrKMFZV260lbqYop1d2GM67JI1huLRwxo9ZqnfF/lC6A==" }, - "SixLabors.ImageSharp": { + "SkiaSharp": { "type": "Direct", - "requested": "[3.1.12, )", - "resolved": "3.1.12", - "contentHash": "iAg6zifihXEFS/t7fiHhZBGAdCp3FavsF4i2ZIDp0JfeYeDVzvmlbY1CNhhIKimaIzrzSi5M/NBFcWvZT2rB/A==" + "requested": "[4.156.1, )", + "resolved": "4.156.1", + "contentHash": "DFlbYk/Rxnqm+UM/EaynxLlucc07+fuWzT84KsyT8aCDAT1PZOPlp5eATD7eYczTgV771bnxQKSrLbNmUCaSLQ==", + "dependencies": { + "SkiaSharp.NativeAssets.Win32": "4.156.1", + "SkiaSharp.NativeAssets.macOS": "4.156.1" + } + }, + "SkiaSharp.NativeAssets.Linux.NoDependencies": { + "type": "Direct", + "requested": "[4.156.1, )", + "resolved": "4.156.1", + "contentHash": "p7LcHVbwsLOmvugPySgjA/ncq/BFap1MMbRs1u119PD8ZYFZYWaFS7MIT1e6ObwJGkJ9HVV9lEvugt30IjmFOA==" }, "Azure.Core": { "type": "Transitive", @@ -132,131 +142,131 @@ }, "Microsoft.AspNetCore.Authorization": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "IMVrMqYF7LASYMWVt/sL9f5vkA8qtfvsLEaxSchEc1Pk/zxdQt1fP1W3hN6Wxm0+wJjAKO+DhF/1mi22AtAfCQ==", + "resolved": "8.0.34", + "contentHash": "fbhLTjORf7gXdcJMdkXkY33wDJWgcUG/emjrSR6dGhEdvowB2AROA6YGCCTJjFf64OeDP/QlzdAVryVRDsN9xA==", "dependencies": { - "Microsoft.AspNetCore.Metadata": "8.0.29", + "Microsoft.AspNetCore.Metadata": "8.0.34", "Microsoft.Extensions.Logging.Abstractions": "8.0.3", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.Components": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1ZNdFYtEORG9LOYFJf0AtNMSAtkQ8WQ5XEGQXdEDvRMYBp4MS5t6mPAiWGVMb5aKpPfaeXOGHQqDcZHP3QfuAA==", + "resolved": "8.0.34", + "contentHash": "7D4rKdMDG1PCbSYIqajN8bypTJk19roErwK4hu78FWvokW7oS7SvrC0LV9SOxbdWZUpJ6LKIr58apNeHx3GNHw==", "dependencies": { - "Microsoft.AspNetCore.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components.Analyzers": "8.0.29" + "Microsoft.AspNetCore.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components.Analyzers": "8.0.34" } }, "Microsoft.AspNetCore.Components.Analyzers": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "AoGUtJ3CgKhihjGCga7vNCawzWUHb7QNMtxzBJKjTYYhM9HwkGE/xmg6sZNO3Tw5W+ke5PoUO411Squ//jgiTQ==" + "resolved": "8.0.34", + "contentHash": "bl55YLy7i6Fc2412TYklQP9MQnuuJ9mnxd5mhihpo9/F/E07iqkccYFxHVjx8+RPC82PPsROPXzO3N3e1xJH/g==" }, "Microsoft.AspNetCore.Components.Authorization": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1zf+E8B8BZod/1POB4c/YnHKPXaj/zkoFeT079iwJHWMBXxB/Y75Dug2KstusYEZBHyiHdN7UUD+Fh2edLEVvg==", + "resolved": "8.0.34", + "contentHash": "s1vm/rXTTKEQIzB9G/JAb3zNXbm/JQq1CG1ManyoJ6wS371SGSyeAYo2ZtPWNzoocCZCCCDjOjAOUjOhGckDOg==", "dependencies": { - "Microsoft.AspNetCore.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components": "8.0.29" + "Microsoft.AspNetCore.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components": "8.0.34" } }, "Microsoft.AspNetCore.Components.Forms": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "GXmEG6N30oDLZHvyxUmwKDPh/iQkcsktjUb3wffSV3Qi4DD1O37Zzz4EBIsgLQwTr4WtqjQ94yprJtKy+YSE1g==", + "resolved": "8.0.34", + "contentHash": "L/2r6BGxku65ZNBvcfB7kP385fAEVdUmG2dbc0TlRPTD+RS2tHhHmvFgCLDnVI5qWmwgVXTRfw0w3W/Gq6tomg==", "dependencies": { - "Microsoft.AspNetCore.Components": "8.0.29" + "Microsoft.AspNetCore.Components": "8.0.34" } }, "Microsoft.AspNetCore.Components.Web": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "1El7nDceNvO07z3Wr8uYj9J5Y7KdtIEgpbyfb9r88BYFVuZxaDDA2F4n907mWib1iLbw+XoV25XbNcPH2rne/A==", + "resolved": "8.0.34", + "contentHash": "qfRk+JchjjxeKZddAOZ8mtvGqXpV+gfRBbEibvHmCDI1RZ9EmebZc1Fzrs9JJV3LQ6cJOndqWw9fVcsoM104BQ==", "dependencies": { - "Microsoft.AspNetCore.Components": "8.0.29", - "Microsoft.AspNetCore.Components.Forms": "8.0.29", + "Microsoft.AspNetCore.Components": "8.0.34", + "Microsoft.AspNetCore.Components.Forms": "8.0.34", "Microsoft.Extensions.DependencyInjection": "8.0.1", "Microsoft.Extensions.Primitives": "8.0.0", - "Microsoft.JSInterop": "8.0.29", + "Microsoft.JSInterop": "8.0.34", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.Components.WebAssembly": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "wAPYLWm1Y2ikdUY0OgsWOJ0A1iQ0GJIvwsgbQKXTBUP/9r5rK3DvmJnZy9a0yEMslJPxvYesACNYDmLz2sTcxQ==", + "resolved": "8.0.34", + "contentHash": "Q4EZwjHjVZiHxETMIZnNIoDGjX1morN7eY6mHLIOE23T0w1kJ3gl7vmOkqjoH/1M/Mgm2xgwx33XCa5MLVyPjg==", "dependencies": { - "Microsoft.AspNetCore.Components.Web": "8.0.29", + "Microsoft.AspNetCore.Components.Web": "8.0.34", "Microsoft.Extensions.Configuration.Binder": "8.0.2", "Microsoft.Extensions.Configuration.Json": "8.0.1", "Microsoft.Extensions.Logging": "8.0.1", - "Microsoft.JSInterop.WebAssembly": "8.0.29" + "Microsoft.JSInterop.WebAssembly": "8.0.34" } }, "Microsoft.AspNetCore.Components.WebAssembly.Authentication": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "rs3U4TsemB1lqnpBVtLlQbQM3ewtAImIy3OjlhM7YjxJb/1AEXmIno1Wm8S3HPScYmLZtwLrTG5//uNlYzlRag==", + "resolved": "8.0.34", + "contentHash": "WiY2Kz9H8F8v/QX924Uaj0klHgSvzigHPlFefat2y+MCXpmXzXGalVHY19Wqam17BORG5GNGT2qmQ7UinoAabw==", "dependencies": { - "Microsoft.AspNetCore.Components.Authorization": "8.0.29", - "Microsoft.AspNetCore.Components.Web": "8.0.29" + "Microsoft.AspNetCore.Components.Authorization": "8.0.34", + "Microsoft.AspNetCore.Components.Web": "8.0.34" } }, "Microsoft.AspNetCore.Connections.Abstractions": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "jq7oQyQE4EgWNeK6sHQn/XGyDHQ2pB5JzU4Bam9m1PQ9UtxLI/4AFqXW5Yl9VDZkTf8hkRLcJ1AbkBNCy/NiGQ==", + "resolved": "8.0.34", + "contentHash": "fr9GYwfv7T+61Mm9pN+6m4fEeiC4gNhE1bPIYMetinR2zVyvxmUJ8xtWLCq4pMYe6ZA9qo5IMIuu7IlPVJXrJg==", "dependencies": { - "Microsoft.Extensions.Features": "8.0.29", + "Microsoft.Extensions.Features": "8.0.34", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.Cryptography.Internal": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "RAknfruzMmottkLWOxKzCrqOE5hp88Avr8qJU9YtxYsiJ1aH+Ij2SVcwS9Tx3VXuUesJqPADK6gZsG/bX4h6XA==" + "resolved": "8.0.34", + "contentHash": "95zvw0jLSY9SkrNZ4jAjpHI3Hsd26w4AAt3/tlOwRNop4KmLd12wvCCAIHoeMLZx4rzze1mpQl45d6PNX05+uw==" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "DIEnc7iZJHoNIar8pz+HHtm9XvshFrCSq9GtS+KLQn6AA98c9PeeoSPCwTBwvfY47KpuTUr6zNYIy/EERMzf3w==", + "resolved": "8.0.34", + "contentHash": "I9yYOA/Rd6iMhXiUjv9w5PkB4VKFRBFbOmqTGmRl4hHrefPVGXR8vI7FNTrA0T0tvRQnGsLAV2HzWO+9bvJWEw==", "dependencies": { - "Microsoft.AspNetCore.Cryptography.Internal": "8.0.29" + "Microsoft.AspNetCore.Cryptography.Internal": "8.0.34" } }, "Microsoft.AspNetCore.Http.Connections.Client": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "ZnUtm+OPtOOKnnF+ZQucdPb/oBix5gyznn+XUztW7Z5c5TpWkwx4NNJVxJGoazMdpQu3EUsXF3anN2nOSK7pNg==", + "resolved": "8.0.34", + "contentHash": "gU92+8nzgVniLPHQ6/ZIr5qVqAcfEbRX4S2B9L80n2fF7PzRNCf5EgwSWZscS4vNM4sC/QIbXWlsRMc9MXBG3g==", "dependencies": { - "Microsoft.AspNetCore.Http.Connections.Common": "8.0.29", + "Microsoft.AspNetCore.Http.Connections.Common": "8.0.34", "Microsoft.Extensions.Logging.Abstractions": "8.0.3", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.Http.Connections.Common": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "JBJI5k7nXefp2pdlk2cgdQp1zdweCcKzzeXjIalEQDuFdkJ4nMZ/Lzt3NA2XhqCKzKzKSh+EfKMytkYkxdK0NA==", + "resolved": "8.0.34", + "contentHash": "bGr2szj86nvoywJfZBjBPz0IQ3ON+n+QOGola0Tk1AFN7KUexRCMMC/sLjDRRgVS/7cX0GHtFj7MCzPDTyEMUg==", "dependencies": { - "Microsoft.AspNetCore.Connections.Abstractions": "8.0.29" + "Microsoft.AspNetCore.Connections.Abstractions": "8.0.34" } }, "Microsoft.AspNetCore.Metadata": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "5Oyb4tncDGft/tXVJoyO7iWy1fnz1AzgycQfzPPSJqafmp3J+xLhgfDSTB+hzVVyG9mcb9z/8m9RDEx7bCj3Kw==" + "resolved": "8.0.34", + "contentHash": "uKyA3KoanU0FU4S697P5Cd99x4V1SbA//HT0YlctxJhFZGTQaEXbuF6Ys+riPUqB6Tpdphdp3Ee6Wwqls8DIPg==" }, "Microsoft.AspNetCore.SignalR.Client.Core": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "T7RADZHU0G093e037prxlYIjV09mxIaVXcSip4tcpMMivawMBAR9WIJc9mqhkmAhO8RxmFKaK8BloOzLPuk/9Q==", + "resolved": "8.0.34", + "contentHash": "oEx48tGld9jP+b85Rvk3QseBEhqHOwIA0x5VyDvDkZBKh55v9GhIFcXmeKpjUAa1Jfk15iKO5MC2LxgReF3fjw==", "dependencies": { - "Microsoft.AspNetCore.SignalR.Common": "8.0.29", - "Microsoft.AspNetCore.SignalR.Protocols.Json": "8.0.29", + "Microsoft.AspNetCore.SignalR.Common": "8.0.34", + "Microsoft.AspNetCore.SignalR.Protocols.Json": "8.0.34", "Microsoft.Extensions.DependencyInjection": "8.0.1", "Microsoft.Extensions.Logging": "8.0.1", "System.Threading.Channels": "8.0.0" @@ -264,19 +274,19 @@ }, "Microsoft.AspNetCore.SignalR.Common": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "silO++Rqw7ssetrLnSPTauWwJUwU/sgITKsYpuvJtDrqwZnXLYqvMflKkdS118oPLrh5GgZspvakJoQffbin4Q==", + "resolved": "8.0.34", + "contentHash": "uZYFV5VnMxLGbdAMs6o+zd11/M1a10k06dCvNtSPj2EYTd8bXMtBtvIO57S2OkglaBp6SMkbowK6vivvLojZ6Q==", "dependencies": { - "Microsoft.AspNetCore.Connections.Abstractions": "8.0.29", + "Microsoft.AspNetCore.Connections.Abstractions": "8.0.34", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.AspNetCore.SignalR.Protocols.Json": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "lS8j3Awf+kwG0lGHNIHXJFiCEogdTroLhmRxQ4+T68aJUaXIu0LxVAZL9hjm16LoohL4jVmTPwgQHF7mYKo4Ow==", + "resolved": "8.0.34", + "contentHash": "auFD1HcdINHbSlof4wkjmteA8agMPdpO/TnrW60vih+bT3oB8NeP/4hn08+MttTtg6BxnzWifPNjQh9AEV26jg==", "dependencies": { - "Microsoft.AspNetCore.SignalR.Common": "8.0.29" + "Microsoft.AspNetCore.SignalR.Common": "8.0.34" } }, "Microsoft.Bcl.AsyncInterfaces": { @@ -355,8 +365,8 @@ }, "Microsoft.Data.SqlClient.SNI.runtime": { "type": "Transitive", - "resolved": "6.0.2", - "contentHash": "f+pRODTWX7Y67jXO3T5S2dIPZ9qMJNySjlZT/TKmWVNWe19N8jcWmHaqHnnchaq3gxEKv1SWVY5EFzOD06l41w==" + "resolved": "6.0.3", + "contentHash": "kt2JDsmcFGzeanCo6hJNalMcjEvgtYoxSQjqh00Nm1xXmahHzuR48TxjS1nq/lpnYh+g+wLqD5D9WSz8xsybhw==" }, "Microsoft.EntityFrameworkCore": { "type": "Transitive", @@ -502,8 +512,8 @@ }, "Microsoft.Extensions.Features": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "0zMsmVIfuu9AP3pgIbHt3SOdEHHdGZSbRlTl8+ysZkNLbbZ0B2tm0Y6kYfuw/VsuAuKHy0IOOgobm3maYRQCIg==" + "resolved": "8.0.34", + "contentHash": "cMnYbfFxX8yz7mO0I8KVrD2V5gnTVJK3MscM3Qivs1WlDmAm1WeH50OMAa5jHyjtyV5V43vphs1+yPUDAy2NMg==" }, "Microsoft.Extensions.FileProviders.Abstractions": { "type": "Transitive", @@ -530,21 +540,21 @@ }, "Microsoft.Extensions.Identity.Core": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "os0Bq475TseOIY+ieTPW/0Iyoe9B+qEr+ahipj9ojpvPgA95tRZXYGaEHSvjv71/AqRgFdN+gSi3AExT3wih7g==", + "resolved": "8.0.34", + "contentHash": "99dfXW13JA6HI5ZLFJ1omT8G+91gfr3fKhUMSzQMG9y2YHSZt7lgYQ0T8M6yJzeonDZ4c/W5ntBf66zIu+UR/A==", "dependencies": { - "Microsoft.AspNetCore.Cryptography.KeyDerivation": "8.0.29", + "Microsoft.AspNetCore.Cryptography.KeyDerivation": "8.0.34", "Microsoft.Extensions.Logging": "8.0.1", "Microsoft.Extensions.Options": "8.0.2" } }, "Microsoft.Extensions.Identity.Stores": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "AbZ/yMoGstUaDucifJ25/Dm344GuQv8LYLrIsPTkGZ/H+Nb1/oyfJXV+acQ3Gon6uNqvXso4W/xqqiSTkUqsvQ==", + "resolved": "8.0.34", + "contentHash": "573tumJRS+iGO+DHAYp+LXeNq4cIyn4bNEkxJC3n5wkXAnn6XPxcvs9xjWot/0scbKBubAPyawbSlLFeWLRkbg==", "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", - "Microsoft.Extensions.Identity.Core": "8.0.29", + "Microsoft.Extensions.Identity.Core": "8.0.34", "Microsoft.Extensions.Logging": "8.0.1" } }, @@ -677,15 +687,15 @@ }, "Microsoft.JSInterop": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "6N3e6a5YHcV53/jU63XBvLEOEV3ctWSFZi+hNl0HNRHYd3aJrTSA9Wl6tq7/9piO+pYRat4V6wPB2NEWMe3TnA==" + "resolved": "8.0.34", + "contentHash": "xH7+tBkNDmicSsX1CTcBXmBwgL5ecGb3bzd7ztOXsP5ZuNP4o15bJTAHp4s67CDj5c/EpAEzX12GxZlKKvJtvg==" }, "Microsoft.JSInterop.WebAssembly": { "type": "Transitive", - "resolved": "8.0.29", - "contentHash": "aPT2wbEYTKwFYwSGGNEoX0af5jrAPIG8zzMuZ02Hfh4+6+0lFAdRcZ3GEHljoVbE491WSLgoeyMQTcUKx3zYTQ==", + "resolved": "8.0.34", + "contentHash": "NTqJ9W8jW/EPqtoY/tiZBLbJXLcfpUTI1y2SBfJEDGfwE22Z/HLnXTblJOmw/z6ELXKVT+1PZCt34o94eQoaBA==", "dependencies": { - "Microsoft.JSInterop": "8.0.29" + "Microsoft.JSInterop": "8.0.34" } }, "Microsoft.SqlServer.Server": { @@ -701,6 +711,16 @@ "System.CodeDom": "6.0.0" } }, + "SkiaSharp.NativeAssets.macOS": { + "type": "Transitive", + "resolved": "4.156.1", + "contentHash": "c05wS/CpRum9JKzk77bXrUsBdxIhv4QBk+sbE3nlEfoEV53Uq9VY4yxuae20lO42kE8PoLShuh6dbbvRrE4/iw==" + }, + "SkiaSharp.NativeAssets.Win32": { + "type": "Transitive", + "resolved": "4.156.1", + "contentHash": "BFSUQxmxG9KI2UV7MW1Xb4XhCLSB7Rwsg9E94KelNi8L6ptGXnHIOm3yqU/y3djwg4ZNiBWhOB8XAGUVaF9LuA==" + }, "System.ClientModel": { "type": "Transitive", "resolved": "1.8.0", @@ -826,8 +846,8 @@ }, "System.Security.Cryptography.Pkcs": { "type": "Transitive", - "resolved": "8.0.1", - "contentHash": "CoCRHFym33aUSf/NtWSVSZa99dkd0Hm7OCZUxORBjRB16LNhIEOf8THPqzIYlvKM0nNDAPTRBa1FxEECrgaxxA==" + "resolved": "8.0.2", + "contentHash": "VWACYq0JGxi9sw3TonSSV4B2MfhYk5nhgOtp9wbrt5NFOtUetFqHkMZylcCwPX+117cBJH5EnIzIy6X4OKn/kA==" }, "System.Security.Cryptography.ProtectedData": { "type": "Transitive", @@ -856,9 +876,9 @@ "smartbotblazorapp.client": { "type": "Project", "dependencies": { - "Microsoft.AspNetCore.Components.WebAssembly": "[8.0.29, )", - "Microsoft.AspNetCore.Components.WebAssembly.Authentication": "[8.0.29, )", - "Microsoft.AspNetCore.SignalR.Client": "[8.0.29, )" + "Microsoft.AspNetCore.Components.WebAssembly": "[8.0.34, )", + "Microsoft.AspNetCore.Components.WebAssembly.Authentication": "[8.0.34, )", + "Microsoft.AspNetCore.SignalR.Client": "[8.0.34, )" } } }