Fixed bug where deletes of artifact groupings would not cascade
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
namespace OpenArchival.Blazor.FileViewer;
|
||||
/*
|
||||
“Commons Clause” License Condition v1.0
|
||||
https://commonsclause.com/
|
||||
|
||||
The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
|
||||
|
||||
Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.
|
||||
|
||||
For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.
|
||||
|
||||
Software: Open Archival
|
||||
|
||||
License: GNU GPL: https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
|
||||
Licensor: Vincent Allen
|
||||
*/
|
||||
|
||||
namespace OpenArchival.Blazor.FileViewer;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -6,12 +23,12 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
public static class FileViewerFactory
|
||||
{
|
||||
private static Dictionary<string, Type> _extensionMapping = [];
|
||||
|
||||
static FileViewerFactory() {
|
||||
static FileViewerFactory()
|
||||
{
|
||||
// Image types taken from https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types
|
||||
RegisterViewerComponent<ImageViewer>([".apng", ".png", ".avif", ".gif", ".jpg", ".jpeg", ".jfif", ".pjpeg", ".pjp", ".svg", ".webp"]);
|
||||
}
|
||||
@@ -26,13 +43,13 @@ public static class FileViewerFactory
|
||||
|
||||
public static Type GetViewerComponent(string filename)
|
||||
{
|
||||
if (_extensionMapping.TryGetValue(Path.GetExtension(filename).ToLowerInvariant(), out var componentType))
|
||||
if (_extensionMapping.TryGetValue(Path.GetExtension(filename).ToLowerInvariant(), out var componentType))
|
||||
{
|
||||
return componentType;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return typeof(UnsupportedFileViewer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("OpenArchival.Blazor.FileViewer")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0e24ce207395fb1c32a87d10049c1d81dc4784fe")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b34449808fa29388ff6ca79b560f657d74738fdd")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("OpenArchival.Blazor.FileViewer")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("OpenArchival.Blazor.FileViewer")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
f1ba7f54be1e506a835f983a45c73d549134150dd2485966661149dafcd47ffa
|
||||
3adcfe2233824d9d6f831060de946e0fbcc4b9b525df6198ca26b45494cf9a5e
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
{"documents":{"C:\\Users\\vtall\\source\\repos\\vtallen\\Open-Archival\\*":"https://raw.githubusercontent.com/vtallen/Open-Archival/0e24ce207395fb1c32a87d10049c1d81dc4784fe/*"}}
|
||||
{"documents":{"C:\\Users\\vtall\\source\\repos\\vtallen\\Open-Archival\\*":"https://raw.githubusercontent.com/vtallen/Open-Archival/b34449808fa29388ff6ca79b560f657d74738fdd/*"}}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
RHRolgesXFw2XDZukxBdDArgANFALDIQjod478Wyc7A=
|
||||
EDzsIEV3WPvXMz3NDQhLr3ImQ12F2g2fqNPcZBipbns=
|
||||
@@ -34,3 +34,27 @@ C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\De
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
C:\Users\vtall\source\repos\vtallen\Open-Archival\OpenArchival.DataAccess\obj\Debug\net9.0\staticwebassets.build.json
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<AssetFile>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\staticwebassets\OpenArchival.Blazor.FileViewer.83wakjp31g.bundle.scp.css'))</AssetFile>
|
||||
<Selectors><![CDATA[[]]]></Selectors>
|
||||
<EndpointProperties><![CDATA[[{"Name":"fingerprint","Value":"83wakjp31g"},{"Name":"integrity","Value":"sha256-9NCmFFvSZYsIWCQoks2vSnN9EMEwePSQhoXfFOCn5mg="},{"Name":"label","Value":"_content/OpenArchival.Blazor.FileViewer/OpenArchival.Blazor.FileViewer.bundle.scp.css"}]]]></EndpointProperties>
|
||||
<ResponseHeaders><![CDATA[[{"Name":"Accept-Ranges","Value":"bytes"},{"Name":"Cache-Control","Value":"max-age=31536000, immutable"},{"Name":"Content-Length","Value":"186"},{"Name":"Content-Type","Value":"text/css"},{"Name":"ETag","Value":"\u00229NCmFFvSZYsIWCQoks2vSnN9EMEwePSQhoXfFOCn5mg=\u0022"},{"Name":"Last-Modified","Value":"Mon, 20 Oct 2025 19:10:59 GMT"}]]]></ResponseHeaders>
|
||||
<ResponseHeaders><![CDATA[[{"Name":"Accept-Ranges","Value":"bytes"},{"Name":"Cache-Control","Value":"max-age=31536000, immutable"},{"Name":"Content-Length","Value":"186"},{"Name":"Content-Type","Value":"text/css"},{"Name":"ETag","Value":"\u00229NCmFFvSZYsIWCQoks2vSnN9EMEwePSQhoXfFOCn5mg=\u0022"},{"Name":"Last-Modified","Value":"Fri, 07 Nov 2025 15:33:03 GMT"}]]]></ResponseHeaders>
|
||||
</StaticWebAssetEndpoint>
|
||||
<StaticWebAssetEndpoint Include="_content/OpenArchival.Blazor.FileViewer/OpenArchival.Blazor.FileViewer.bundle.scp.css">
|
||||
<AssetFile>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\staticwebassets\OpenArchival.Blazor.FileViewer.83wakjp31g.bundle.scp.css'))</AssetFile>
|
||||
<Selectors><![CDATA[[]]]></Selectors>
|
||||
<EndpointProperties><![CDATA[[{"Name":"integrity","Value":"sha256-9NCmFFvSZYsIWCQoks2vSnN9EMEwePSQhoXfFOCn5mg="}]]]></EndpointProperties>
|
||||
<ResponseHeaders><![CDATA[[{"Name":"Accept-Ranges","Value":"bytes"},{"Name":"Cache-Control","Value":"no-cache"},{"Name":"Content-Length","Value":"186"},{"Name":"Content-Type","Value":"text/css"},{"Name":"ETag","Value":"\u00229NCmFFvSZYsIWCQoks2vSnN9EMEwePSQhoXfFOCn5mg=\u0022"},{"Name":"Last-Modified","Value":"Mon, 20 Oct 2025 19:10:59 GMT"}]]]></ResponseHeaders>
|
||||
<ResponseHeaders><![CDATA[[{"Name":"Accept-Ranges","Value":"bytes"},{"Name":"Cache-Control","Value":"no-cache"},{"Name":"Content-Length","Value":"186"},{"Name":"Content-Type","Value":"text/css"},{"Name":"ETag","Value":"\u00229NCmFFvSZYsIWCQoks2vSnN9EMEwePSQhoXfFOCn5mg=\u0022"},{"Name":"Last-Modified","Value":"Fri, 07 Nov 2025 15:33:03 GMT"}]]]></ResponseHeaders>
|
||||
</StaticWebAssetEndpoint>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -17,7 +17,7 @@
|
||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
<FileLength>186</FileLength>
|
||||
<LastWriteTime>Mon, 20 Oct 2025 19:10:59 GMT</LastWriteTime>
|
||||
<LastWriteTime>Fri, 07 Nov 2025 15:33:03 GMT</LastWriteTime>
|
||||
<OriginalItemSpec>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\staticwebassets\OpenArchival.Blazor.FileViewer.83wakjp31g.bundle.scp.css'))</OriginalItemSpec>
|
||||
</StaticWebAsset>
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user