-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Fix(Plugins): Fixed two not debugged plugins.
- Loading branch information
1 parent
02d9b24
commit 5b5aca9
Showing
6 changed files
with
75 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,51 @@ | ||
using KitX.Contract.CSharp; | ||
using KitX.Shared.Plugin; | ||
|
||
namespace TestPlugin.Winform.Core; | ||
|
||
public class IdentityInterface : IIdentityInterface | ||
{ | ||
public string GetName() => "TestPlugin.Winform.Core"; | ||
|
||
public string GetVersion() => "v0.1.0"; | ||
public IController GetController() => new Controller(); | ||
|
||
public Dictionary<string, string> GetDisplayName() => new() | ||
public IMarketPluginContract GetMarketPluginContract() => null!; | ||
|
||
public PluginInfo GetPluginInfo() => new() | ||
{ | ||
Name = "TestPlugin.Winform.Core", | ||
Version = "v0.1.0", | ||
AuthorName = "Dynesshely", | ||
AuthorLink = "https://blog.catrol.cn", | ||
PublisherName = "Crequency", | ||
PublisherLink = "https://catrol.cn", | ||
DisplayName = new() | ||
{ | ||
{ "zh-cn", "适用于 C# Winform 框架的 KitX 测试用插件" }, | ||
{ "zh-cnt", "適用於 C# Winform 框架的 KitX 測試用插件" }, | ||
{ "zh-tw", "適用於 C# Winform 框架的 KitX 測試用插件" }, | ||
{ "en-us", "KitX Testing Plugin for C# with Winform framework" }, | ||
}; | ||
|
||
public string GetAuthorName() => "Dynesshely"; | ||
|
||
public string GetPublisherName() => "Crequency"; | ||
|
||
public string GetAuthorLink() => "https://blog.catrol.cn"; | ||
|
||
public string GetPublisherLink() => "https://catrol.cn"; | ||
|
||
public Dictionary<string, string> GetSimpleDescription() => new() | ||
}, | ||
SimpleDescription = new() | ||
{ | ||
{ "zh-cn", "KitX 测试用插件" }, | ||
{ "zh-cnt", "KitX 測試用插件" }, | ||
{ "zh-tw", "KitX 測試用插件" }, | ||
{ "en-us", "KitX Test Plugin" }, | ||
}; | ||
|
||
public Dictionary<string, string> GetComplexDescription() => new() | ||
}, | ||
ComplexDescription = new() | ||
{ | ||
{ "zh-cn", "KitX 测试用插件, 使用 KitX.Loader.Winform.Core 作为加载器." }, | ||
{ "zh-cnt", "KitX 測試用插件, 使用 KitX.Loader.Winform.Core 作爲加載器." }, | ||
{ "zh-tw", "KitX 測試用插件, 使用 KitX.Loader.Winform.Core 作爲加載器." }, | ||
{ "en-us", "KitX Test Plugin, use KitX.Loader.Winform.Core as loader." }, | ||
}; | ||
|
||
public Dictionary<string, string> GetTotalDescriptionInMarkdown() => new() | ||
}, | ||
TotalDescriptionInMarkdown = new() | ||
{ | ||
{ "zh-cn", "Nope" }, | ||
{ "zh-cnt", "Nope" }, | ||
{ "zh-tw", "Nope" }, | ||
{ "en-us", "Nope" }, | ||
}; | ||
|
||
public string GetIconInBase64() => "图标"; | ||
|
||
public DateTime GetPublishDate() => DateTime.Now; | ||
|
||
public DateTime GetLastUpdateDate() => DateTime.Now; | ||
|
||
public IController GetController() => new Controller(); | ||
|
||
public bool IsMarketVersion() => false; | ||
|
||
public IMarketPluginContract GetMarketPluginContract() => null; | ||
|
||
public string GetRootStartupFileName() => "TestPlugin.Winform.Core.dll"; | ||
}, | ||
IconInBase64 = "Icon", | ||
PublishDate = DateTime.Now, | ||
LastUpdateDate = DateTime.Now, | ||
IsMarketVersion = false, | ||
RootStartupFileName = "TestPlugin.Winform.Core.dll", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters