23 lines
616 B
JavaScript
23 lines
616 B
JavaScript
import FileSystemAdapter from './FileSystemAdapter'
|
|
import { definePlugin } from '@takerofnotes/plugin-sdk'
|
|
|
|
export default definePlugin({
|
|
id: 'filesystem',
|
|
name: 'Filesystem',
|
|
description: 'Store notes as markdown files on your local filesystem',
|
|
version: '0.1.0',
|
|
apiVersion: '0.1.0',
|
|
configSchema: [
|
|
{
|
|
key: 'notesDir',
|
|
label: 'Notes Directory',
|
|
type: 'directory',
|
|
default: '__DEFAULT_USER_DATA__/notes',
|
|
required: true,
|
|
},
|
|
],
|
|
createAdapter(config) {
|
|
return new FileSystemAdapter(config)
|
|
},
|
|
})
|