Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
This commit is contained in:
@@ -17,7 +17,7 @@ interface PluginLoaderProps {
|
||||
*/
|
||||
export function PluginLoader({ matrixClient, children }: PluginLoaderProps) {
|
||||
console.log('[PluginLoader] Component rendering, matrixClient:', !!matrixClient);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
const loadPlugins = async () => {
|
||||
try {
|
||||
@@ -33,7 +33,10 @@ export function PluginLoader({ matrixClient, children }: PluginLoaderProps) {
|
||||
const pluginsToLoad = await pluginMarketplaceManager.listEnabledPlugins();
|
||||
|
||||
console.log('[PluginLoader] Plugins to load:', pluginsToLoad.length);
|
||||
console.log('[PluginLoader] Plugin list:', pluginsToLoad.map(p => p.id));
|
||||
console.log(
|
||||
'[PluginLoader] Plugin list:',
|
||||
pluginsToLoad.map((p) => p.id),
|
||||
);
|
||||
|
||||
for (const installedPlugin of pluginsToLoad) {
|
||||
try {
|
||||
@@ -44,14 +47,14 @@ export function PluginLoader({ matrixClient, children }: PluginLoaderProps) {
|
||||
|
||||
if (!plugin || typeof plugin !== 'object') {
|
||||
console.error(
|
||||
`[PluginLoader] Plugin ${installedPlugin.id} does not export a valid plugin object`
|
||||
`[PluginLoader] Plugin ${installedPlugin.id} does not export a valid plugin object`,
|
||||
);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (typeof plugin.onLoad !== 'function') {
|
||||
console.error(
|
||||
`[PluginLoader] Plugin ${installedPlugin.id} does not have an onLoad function`
|
||||
`[PluginLoader] Plugin ${installedPlugin.id} does not have an onLoad function`,
|
||||
);
|
||||
continue;
|
||||
}
|
||||
@@ -68,7 +71,7 @@ export function PluginLoader({ matrixClient, children }: PluginLoaderProps) {
|
||||
});
|
||||
},
|
||||
},
|
||||
pluginRegistry
|
||||
pluginRegistry,
|
||||
);
|
||||
|
||||
const compatContext = Object.assign(context as Record<string, unknown>, {
|
||||
|
||||
Reference in New Issue
Block a user