some work on Manager

This commit is contained in:
2024-09-06 09:44:24 +02:00
parent 5bccd070f4
commit ebc57e05d5
14 changed files with 367 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
using ModpackUpdater.Apps.Manager.Api.Model;
using ModpackUpdater.Apps.Manager.Api.Plugins.Params;
using Pilz.Plugins.Advanced;
namespace ModpackUpdater.Apps.Manager.Features.Workspaces.GitLabRepo;
internal class GitLabRepoWorkspaceFeature : PluginFunction, IPluginFeatureProvider<GitLabRepoWorkspaceFeature>
{
public static GitLabRepoWorkspaceFeature Instance { get; } = new();
public GitLabRepoWorkspaceFeature() : base(FeatureTypes.Workspace, "origin.gitlab", "GitLab repository")
{
Icon = AppGlobals.Symbols.GetSvgImage(AppSymbols.github, Pilz.UI.Symbols.SymbolSize.Small);
}
protected override object? ExecuteFunction(PluginFunctionParameter? @params)
{
if (@params is not WorkspaceInitParameters p)
return null;
/// Open config UI
/// ...
return new GitLabRepoWorkspace();
}
}