mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
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',
|
|
commands: ['com.blocksuite.bookmark-block.get-bookmark-data-by-link'],
|
|
},
|
|
undefined,
|
|
{
|
|
load: () => import('./blocksuite/index'),
|
|
hotModuleReload: onHot =>
|
|
import.meta.webpackHot &&
|
|
import.meta.webpackHot.accept('./blocksuite', () =>
|
|
onHot(import('./blocksuite/index'))
|
|
),
|
|
},
|
|
{
|
|
load: () =>
|
|
import(
|
|
/* webpackIgnore: true */
|
|
'./server'
|
|
),
|
|
hotModuleReload: onHot =>
|
|
onHot(
|
|
import(
|
|
/* webpackIgnore: true */
|
|
'./server'
|
|
)
|
|
),
|
|
}
|
|
);
|