mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 15:24:28 +00:00
Added provider icons (#934)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
afdcc0455d
commit
e78a0e61b9
74 files changed
+1018
-74
No files matched your search
@@ -16,8 +16,8 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
|
||||
protected readonly List<string> PluginIssues = [];
|
||||
|
||||
/// <inheritdoc />
|
||||
public string IconSVG { get; }
|
||||
|
||||
public string IconDataUrl { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public PluginType Type { get; }
|
||||
|
||||
@@ -88,14 +88,14 @@ public abstract partial class PluginBase : IPluginMetadata, IDisposable
|
||||
if (this is NoPlugin or NoPluginLanguage)
|
||||
{
|
||||
this.IsInternal = isInternal;
|
||||
this.IconSVG = string.Empty;
|
||||
this.IconDataUrl = string.Empty;
|
||||
this.baseIssues = issues;
|
||||
return;
|
||||
}
|
||||
|
||||
// Notice: when no icon is specified, the default icon will be used.
|
||||
this.TryInitIconSVG(out _, out var iconSVG);
|
||||
this.IconSVG = iconSVG;
|
||||
this.TryInitIconDataUrl(out _, out var iconDataUrl);
|
||||
this.IconDataUrl = iconDataUrl;
|
||||
|
||||
if(this.TryInitId(out var issue, out var id))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user