Skip to content

Commit 8d9427d

Browse files
author
Jicheng Lu
committed
add full screen
1 parent c4ffc80 commit 8d9427d

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,9 @@ public class EmbeddingData
7676
/// </summary>
7777
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
7878
public string? AppendTokenName { get; set; }
79+
80+
/// <summary>
81+
/// Whether to enable full screen or not
82+
/// </summary>
83+
public bool FullScreen { get; set; }
7984
}

src/Plugins/BotSharp.Plugin.Membase/MembasePlugin.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
using BotSharp.Abstraction.Graph;
21
using BotSharp.Abstraction.Plugins.Models;
32
using BotSharp.Abstraction.Rules;
43
using BotSharp.Plugin.Membase.GraphDb;
54
using BotSharp.Plugin.Membase.Handlers;
6-
using BotSharp.Plugin.Membase.Interfaces;
75
using Refit;
86

97
namespace BotSharp.Plugin.Membase;
@@ -13,7 +11,7 @@ public class MembasePlugin : IBotSharpPlugin
1311
public string Id => "8df12767-9a44-45d9-93cd-12a10adf3933";
1412
public string Name => "Membase";
1513
public string Description => "Document Database with Graph Traversal & Vector Search.";
16-
public string IconUrl => "https://membase.dev/favicon.png";
14+
public string IconUrl => "https://www.membase.dev/favicon.png";
1715

1816
private string _membaseCredential = string.Empty;
1917
private string _membaseProjectId = string.Empty;
@@ -56,7 +54,9 @@ public bool AttachMenu(List<PluginMenuDef> menu)
5654
{
5755
Source = "membase",
5856
HtmlTag = "iframe",
59-
Url = $"https://console.membase.dev/query-editor/{_membaseProjectId}?token={_membaseCredential}"
57+
Url = $"https://console.membase.dev/query-editor/{_membaseProjectId}?token={_membaseCredential}",
58+
HtmlStyle = "width: 100%; height: 90%;",
59+
FullScreen = true
6060
}
6161
});
6262
return true;

0 commit comments

Comments
 (0)