Monorepo containing core modules of Zeichen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.ts 353 B

123456789101112131415
  1. import { Plugin } from '../core/plugin'
  2. import Storage from './Storage'
  3. type PluginConfig = {
  4. baseUrl: string,
  5. }
  6. const RemoteStoragePlugin: Plugin<PluginConfig> = config => ({
  7. currentUserId,
  8. }) => {
  9. new Storage(currentUserId, config.baseUrl, 'notes')
  10. new Storage(currentUserId, config.baseUrl, 'folders')
  11. }
  12. export default RemoteStoragePlugin