Monorepo containing core modules of Zeichen.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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