add encryption

This commit is contained in:
nicwands
2026-03-02 11:59:52 -05:00
parent 1c753a6f8f
commit 2609d73bbd
6 changed files with 208 additions and 154 deletions

View File

@@ -82,16 +82,19 @@ app.whenReady().then(async () => {
const config = await new PluginConfig(filesystemPlugin).load()
// Create instance of active adapter
// const plugin = registry.get(config.activeAdapter)
const plugin = registry.get(supabasePlugin.id)
// const adapter = plugin.createAdapter(config.adapterConfig)
const adapter = plugin.createAdapter({
supabaseKey: process.env.SUPABASE_KEY,
supabaseUrl: process.env.SUPABASE_URL,
})
const plugin = registry.get(config.activeAdapter)
// const plugin = registry.get(supabasePlugin.id)
const adapter = plugin.createAdapter(config.adapterConfig)
// const adapter = plugin.createAdapter({
// supabaseKey: process.env.SUPABASE_KEY,
// supabaseUrl: process.env.SUPABASE_URL,
// })
// Init Notes API
const notesAPI = new NotesAPI(adapter)
const notesAPI = new NotesAPI(
adapter,
'729a0d21d783654c68f1a0123e2a0e986350de536b5324f1f35876ea12ffeaf5',
)
await notesAPI.init()
// Handle Notes API