Add NuGet (.nupkg/.snupkg) info panel and parser
build / build (push) Has been cancelled
build / publish (push) Has been cancelled

This commit is contained in:
ema
2026-04-24 19:35:22 +08:00
parent f95cc940a0
commit 5a9f12a3dc
6 changed files with 706 additions and 0 deletions
@@ -57,6 +57,10 @@ public sealed class Plugin : IViewer
// Others
".wgt", ".wgtu", // UniApp Widget
// NuGet
".nupkg", // NuGet Package
".snupkg", // NuGet Symbol Package
];
private IAppInfoPanel _ip;
@@ -87,6 +91,7 @@ public sealed class Plugin : IViewer
".appimage" => new Size { Width = 600, Height = 300 },
".rpm" => new Size { Width = 600, Height = 260 },
".wgt" or ".wgtu" => new Size { Width = 600, Height = 345 },
".nupkg" or ".snupkg" => new Size { Width = 660, Height = 580 },
_ => throw new NotSupportedException("Extension is not supported."),
};
context.Title = string.Empty;
@@ -112,6 +117,7 @@ public sealed class Plugin : IViewer
".appimage" => new AppImageInfoPanel(context),
".rpm" => new RpmInfoPanel(context),
".wgt" or ".wgtu" => new WgtInfoPanel(context),
".nupkg" or ".snupkg" => new NugetInfoPanel(context),
_ => throw new NotSupportedException("Extension is not supported."),
};