mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
feat: add @affine/bookmark-block plugin (#2618)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { definePlugin } from '@toeverything/plugin-infra/manager';
|
||||
import { ReleaseStage } from '@toeverything/plugin-infra/type';
|
||||
|
||||
definePlugin(
|
||||
{
|
||||
id: 'com.blocksuite.bookmark-block',
|
||||
name: {
|
||||
fallback: 'BlockSuite Bookmark Block',
|
||||
i18nKey: 'com.blocksuite.bookmark.name',
|
||||
},
|
||||
description: {
|
||||
fallback: 'Bookmark block',
|
||||
},
|
||||
publisher: {
|
||||
name: {
|
||||
fallback: 'AFFiNE',
|
||||
},
|
||||
link: 'https://affine.pro',
|
||||
},
|
||||
stage: ReleaseStage.NIGHTLY,
|
||||
version: '0.0.1',
|
||||
},
|
||||
undefined,
|
||||
{
|
||||
load: () => import('./blocksuite/index'),
|
||||
hotModuleReload: onHot =>
|
||||
import.meta.webpackHot &&
|
||||
import.meta.webpackHot.accept('./blocksuite', () =>
|
||||
onHot(import('./blocksuite/index'))
|
||||
),
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user