Preferences inputs WIP
This commit is contained in:
@@ -3,6 +3,8 @@ import { electronApp, optimizer, is } from "@electron-toolkit/utils";
|
||||
import { app, ipcMain, BrowserWindow, shell } from "electron";
|
||||
import filesystemPlugin from "@takerofnotes/plugin-filesystem";
|
||||
import supabasePlugin from "@takerofnotes/plugin-supabase";
|
||||
import s3Plugin from "@takerofnotes/plugin-s3";
|
||||
import postgresPlugin from "@takerofnotes/plugin-postgre-sql";
|
||||
import sodium from "libsodium-wrappers";
|
||||
import { v4 } from "uuid";
|
||||
import { Index } from "flexsearch";
|
||||
@@ -323,10 +325,8 @@ const initPluginManager = (runtime, plugins, config) => {
|
||||
registry.register(plugin);
|
||||
}
|
||||
const manager = createPluginManager(registry);
|
||||
manager.setActivePlugin(
|
||||
config.activeAdapter,
|
||||
config.adapters[config.activeAdapter]
|
||||
);
|
||||
const activeConfig = config.adapters?.[config.activeAdapter] || {};
|
||||
manager.setActivePlugin(config.activeAdapter, activeConfig);
|
||||
return manager;
|
||||
};
|
||||
const initConfigManager = async (runtime) => {
|
||||
@@ -439,7 +439,12 @@ app.whenReady().then(async () => {
|
||||
const { pluginManager, configManager } = await initializeCore(
|
||||
"electron-main",
|
||||
{
|
||||
plugins: [filesystemPlugin, supabasePlugin]
|
||||
plugins: [
|
||||
filesystemPlugin,
|
||||
s3Plugin,
|
||||
postgresPlugin,
|
||||
supabasePlugin
|
||||
]
|
||||
}
|
||||
);
|
||||
ipcMain.handle("pluginManager:call", async (_, method, ...args) => {
|
||||
|
||||
Reference in New Issue
Block a user