change plugin system

This commit is contained in:
Angelos Bouklis
2023-11-26 01:17:24 +02:00
parent 10a54b9de0
commit 3ab4cd5d05
34 changed files with 1670 additions and 990 deletions

View File

@ -1,20 +1,7 @@
import { createPlugin } from '@/utils';
import style from './style.css?inline';
import { createPluginBuilder } from '../utils/builder';
const builder = createPluginBuilder('blur-nav-bar', {
export default createPlugin({
name: 'Blur Navigation Bar',
restartNeeded: true,
config: {
enabled: false,
},
styles: [style],
renderer: { stylesheet: style },
});
export default builder;
declare global {
interface PluginBuilderList {
[builder.id]: typeof builder;
}
}