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

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