use cap files from submodule instead of copied references
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[submodule "Finch/Includes/cap"]
|
||||
path = Finch/Includes/cap
|
||||
url = https://github.com/tiagozip/cap.git
|
||||
+2
-1
@@ -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
+1
Submodule Finch/Includes/cap added at 8584867e44
@@ -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.
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user