Skip to content

Commit b86c266

Browse files
authored
Merge pull request #923 from iceljc/master
refine menu
2 parents 1d93cc0 + e715072 commit b86c266

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

src/Infrastructure/BotSharp.Abstraction/Plugins/Models/PluginMenuDef.cs

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class PluginMenuDef(string label, string? link = null, string? icon = nul
1414
public string? Link { get; set; } = link;
1515

1616
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
17-
public string? EmbedUrl { get; set; }
17+
public EmbeddingData? EmbeddingInfo { get; set; }
1818

1919
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2020
public bool? IsHeader { get; set; }
@@ -33,3 +33,35 @@ public override string ToString()
3333
return $"{Label} {Link} {Weight}";
3434
}
3535
}
36+
37+
public class EmbeddingData
38+
{
39+
/// <summary>
40+
/// Embedding source, e.g., tableau
41+
/// </summary>
42+
public string Source { get; set; } = default!;
43+
44+
/// <summary>
45+
/// Embedding url
46+
/// </summary>
47+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
48+
public string? Url { get; set; }
49+
50+
/// <summary>
51+
/// Html tag
52+
/// </summary>
53+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
54+
public string? HtmlTag { get; set; }
55+
56+
/// <summary>
57+
/// Javascript script src
58+
/// </summary>
59+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
60+
public string? ScriptSrc { get; set; }
61+
62+
/// <summary>
63+
/// Javascript script type, e.g., module
64+
/// </summary>
65+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
66+
public string? ScriptType { get; set; }
67+
}

0 commit comments

Comments
 (0)