and settings UI - Added Message Logger core plugin (port of Antied) - Added ShiggyHelper core plugin with verbose logging and log dump UI - Improved /plugins command to show core and external plugins separately - Split core and external plugins into separate settings pages - Updated theme selection logic for better color sync - Updated MessageFix author attribution - Bumped version to 1.1.0
28 lines
906 B
TypeScript
28 lines
906 B
TypeScript
import { PluginInstanceInternal } from "@lib/addons/plugins/types";
|
|
|
|
interface CorePlugin {
|
|
default: PluginInstanceInternal;
|
|
preenabled: boolean;
|
|
}
|
|
|
|
// Called from @lib/plugins
|
|
export const getCorePlugins = (): Record<string, CorePlugin> => ({
|
|
"bunny.quickinstall": { ...require("./quickinstall"), preenabled: true },
|
|
"bunny.badges": require("./badges"),
|
|
"bunny.notrack": { ...require("./notrack"), preenabled: true },
|
|
"bunny.messagefix": { ...require("./messagefix") },
|
|
"bunny.messagelogger": { ...require("./messagelogger"), preenabled: true },
|
|
"bunny.fixembed": { ...require("./fixembed"), preenabled: true },
|
|
"bunny.shiggyhelper": { ...require("./shiggyhelper") },
|
|
});
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
export function defineCorePlugin(
|
|
instance: PluginInstanceInternal,
|
|
): PluginInstanceInternal {
|
|
// @ts-expect-error
|
|
instance[Symbol.for("bunny.core.plugin")] = true;
|
|
return instance;
|
|
}
|