mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
refactor(shared): consolidate player payload decoding into Shared.Engine namespace
Move PlayerPayload class into PlayerJsDecoder.cs and rename namespace to Shared.Engine. Remove linked source file references from anime projects (AnimeON, Mikai, NMoonAnime) to prevent duplicate compilation and ensure single source of truth through Shared.dll.
This commit is contained in:
parent
b253a21cdf
commit
fd01af1e2c
@ -10,8 +10,6 @@
|
|||||||
<Reference Include="Shared">
|
<Reference Include="Shared">
|
||||||
<HintPath>..\..\Shared.dll</HintPath>
|
<HintPath>..\..\Shared.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Compile Include="..\LME.Shared\PlayerJsDecoder.cs" Link="Shared\PlayerJsDecoder.cs" />
|
|
||||||
<Compile Include="..\LME.Shared\Models\PlayerPayload.cs" Link="Shared\Models\PlayerPayload.cs" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@ -12,7 +12,6 @@ using System.Text;
|
|||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using LME.AnimeON.Models;
|
using LME.AnimeON.Models;
|
||||||
using LME.Common.Playerjs;
|
|
||||||
using Shared.Engine;
|
using Shared.Engine;
|
||||||
|
|
||||||
namespace LME.AnimeON
|
namespace LME.AnimeON
|
||||||
|
|||||||
@ -10,8 +10,6 @@
|
|||||||
<Reference Include="Shared">
|
<Reference Include="Shared">
|
||||||
<HintPath>..\..\Shared.dll</HintPath>
|
<HintPath>..\..\Shared.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Compile Include="..\LME.Shared\PlayerJsDecoder.cs" Link="Shared\PlayerJsDecoder.cs" />
|
|
||||||
<Compile Include="..\LME.Shared\Models\PlayerPayload.cs" Link="Shared\Models\PlayerPayload.cs" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -8,7 +8,6 @@ using System.Web;
|
|||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using LME.Mikai.Models;
|
using LME.Mikai.Models;
|
||||||
using LME.Common.Playerjs;
|
|
||||||
using Shared;
|
using Shared;
|
||||||
using Shared.Engine;
|
using Shared.Engine;
|
||||||
using Shared.Models;
|
using Shared.Models;
|
||||||
|
|||||||
@ -10,8 +10,6 @@
|
|||||||
<Reference Include="Shared">
|
<Reference Include="Shared">
|
||||||
<HintPath>..\..\Shared.dll</HintPath>
|
<HintPath>..\..\Shared.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Compile Include="..\LME.Shared\PlayerJsDecoder.cs" Link="Shared\PlayerJsDecoder.cs" />
|
|
||||||
<Compile Include="..\LME.Shared\Models\PlayerPayload.cs" Link="Shared\Models\PlayerPayload.cs" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
using LME.NMoonAnime.Models;
|
using LME.NMoonAnime.Models;
|
||||||
using LME.Common.Playerjs;
|
|
||||||
using Shared;
|
using Shared;
|
||||||
using Shared.Engine;
|
using Shared.Engine;
|
||||||
using Shared.Models;
|
using Shared.Models;
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
namespace LME.Common.Playerjs.Models
|
|
||||||
{
|
|
||||||
public sealed class PlayerPayload
|
|
||||||
{
|
|
||||||
public string Title { get; set; }
|
|
||||||
|
|
||||||
public object FilePayload { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -6,9 +6,8 @@ using System.Text;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using LME.Common.Playerjs.Models;
|
|
||||||
|
|
||||||
namespace LME.Common.Playerjs
|
namespace Shared.Engine
|
||||||
{
|
{
|
||||||
public static class PlayerJsDecoder
|
public static class PlayerJsDecoder
|
||||||
{
|
{
|
||||||
@ -452,4 +451,11 @@ namespace LME.Common.Playerjs
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sealed class PlayerPayload
|
||||||
|
{
|
||||||
|
public string Title { get; set; }
|
||||||
|
|
||||||
|
public object FilePayload { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user