use cap files from submodule instead of copied references

This commit is contained in:
2026-04-30 15:29:56 +02:00
parent 884ff91ab8
commit 0c18916113
7 changed files with 11 additions and 7 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "Finch/Includes/cap"]
path = Finch/Includes/cap
url = https://github.com/tiagozip/cap.git
+2 -1
View File
@@ -27,7 +27,8 @@
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\**\*" />
<EmbeddedResource LogicalName="finch/res/cap/cap.js" Include="Includes\cap\widget\src\cap.min.js" />
<EmbeddedResource LogicalName="finch/res/cap/cap.wasm" Include="Includes\cap/wasm/src/browser/cap_wasm_bg.wasm" />
</ItemGroup>
</Project>
Submodule Finch/Includes/cap added at 8584867e44
+3 -3
View File
@@ -26,10 +26,10 @@ public class LogLevelOverrides : Dictionary<string, LogLevel>
this["System.Net.Http.HttpClient"] = LogLevel.Warning;
this["Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager"] = LogLevel.Error;
string executingAssemblyName = Assembly.GetEntryAssembly()?.GetName().Name;
if (executingAssemblyName != null)
string entryAssemblyName = Assembly.GetEntryAssembly()?.GetName().Name;
if (entryAssemblyName != null)
{
this[executingAssemblyName] = LogLevel.Debug;
this[entryAssemblyName] = LogLevel.Debug;
}
}
}
File diff suppressed because one or more lines are too long
Binary file not shown.
+2 -2
View File
@@ -57,7 +57,7 @@ public class CaptchaController(ICaptchaService captchaService) : FinchController
public IActionResult GetWasmFile()
{
Assembly assembly = typeof(FinchSecurityModule).GetTypeInfo().Assembly;
Stream resource = assembly.GetManifestResourceStream("Finch.Resources.cap_wasm_bg_0_0_6.wasm");
Stream resource = assembly.GetManifestResourceStream("finch/res/cap/cap.wasm");
if (resource is null)
{
@@ -72,7 +72,7 @@ public class CaptchaController(ICaptchaService captchaService) : FinchController
public IActionResult GetWidgetJsFile()
{
Assembly assembly = typeof(FinchSecurityModule).GetTypeInfo().Assembly;
Stream resource = assembly.GetManifestResourceStream("Finch.Resources.cap_min_0_1_41.js");
Stream resource = assembly.GetManifestResourceStream("finch/res/cap/cap.js");
if (resource is null)
{