mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: add beta tag to global search plugin
This commit is contained in:
@@ -182,6 +182,7 @@ export class PluginManager {
|
||||
pluginId: string;
|
||||
name: string;
|
||||
description: string;
|
||||
beta?: boolean;
|
||||
settings: {
|
||||
[key: string]:
|
||||
| (Omit<BooleanSetting, "type"> & { type: "boolean"; id: string })
|
||||
@@ -235,6 +236,7 @@ export class PluginManager {
|
||||
pluginId: id,
|
||||
name: plugin.name,
|
||||
description: plugin.description,
|
||||
beta: plugin.beta,
|
||||
settings: Object.fromEntries(settingsEntries),
|
||||
disableToggle: plugin.disableToggle,
|
||||
};
|
||||
|
||||
@@ -132,6 +132,7 @@ export interface Plugin<T extends PluginSettings = PluginSettings, S = any> {
|
||||
styles?: string; // Optional CSS styles for the plugin
|
||||
disableToggle?: boolean; // Optional flag to show/hide the plugin's enable/disable toggle in settings
|
||||
defaultEnabled?: boolean; // Optional flag to set the plugin's default enabled state
|
||||
beta?: boolean; // Optional flag to mark the plugin as beta
|
||||
run: (
|
||||
api: PluginAPI<T, S>,
|
||||
) => void | Promise<void> | (() => void) | Promise<() => void>;
|
||||
|
||||
Reference in New Issue
Block a user