From 020f3317297e7cbb69a283cb3c1afb76f73875f9 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 5 May 2026 21:44:31 +0300 Subject: [PATCH] feat(shared): implement player payload extraction and decoding infrastructure Add PlayerJsDecoder class with comprehensive methods for extracting player payloads from HTML content, handling atob-encoded strings, and parsing JSON configurations. The implementation includes regex patterns for various encoding schemes, loose JSON parsing with trailing comma tolerance, and helper function resolution. Additionally, configure global usings for Shared.Services, Shared.Services.Hybrid, and Shared.Models.Base to improve type accessibility across the shared library. --- LME.Shared/GlobalUsings.cs | 3 +++ LME.Shared/{ => Playerjs}/PlayerJsDecoder.cs | 0 2 files changed, 3 insertions(+) rename LME.Shared/{ => Playerjs}/PlayerJsDecoder.cs (100%) diff --git a/LME.Shared/GlobalUsings.cs b/LME.Shared/GlobalUsings.cs index 3a1f874..c3d3cbf 100644 --- a/LME.Shared/GlobalUsings.cs +++ b/LME.Shared/GlobalUsings.cs @@ -1,3 +1,6 @@ +global using Shared.Services; +global using Shared.Services.Hybrid; +global using Shared.Models.Base; global using AppInit = Shared.CoreInit; global using LME.Common.Online; global using LME.Common.Update; diff --git a/LME.Shared/PlayerJsDecoder.cs b/LME.Shared/Playerjs/PlayerJsDecoder.cs similarity index 100% rename from LME.Shared/PlayerJsDecoder.cs rename to LME.Shared/Playerjs/PlayerJsDecoder.cs