mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-06 03:49:56 +08:00
chore: bump bs to lts (#8147)
This commit is contained in:
@@ -1,29 +1,11 @@
|
||||
import {
|
||||
BlockFlavourIdentifier,
|
||||
BlockServiceIdentifier,
|
||||
BlockViewIdentifier,
|
||||
type ExtensionType,
|
||||
StdIdentifier,
|
||||
} from '@blocksuite/block-std';
|
||||
import { PageEditorBlockSpecs, PageRootService } from '@blocksuite/blocks';
|
||||
import { BlockViewIdentifier, type ExtensionType } from '@blocksuite/block-std';
|
||||
import { PageEditorBlockSpecs } from '@blocksuite/blocks';
|
||||
import { literal } from 'lit/static-html.js';
|
||||
|
||||
/**
|
||||
* Custom PageRootService that does not load fonts
|
||||
*/
|
||||
class CustomPageRootService extends PageRootService {
|
||||
override loadFonts() {}
|
||||
}
|
||||
|
||||
export const CustomPageEditorBlockSpecs: ExtensionType[] = [
|
||||
...PageEditorBlockSpecs,
|
||||
{
|
||||
setup: di => {
|
||||
di.override(
|
||||
BlockServiceIdentifier('affine:page'),
|
||||
CustomPageRootService,
|
||||
[StdIdentifier, BlockFlavourIdentifier('affine:page')]
|
||||
);
|
||||
di.override(
|
||||
BlockViewIdentifier('affine:page'),
|
||||
() => literal`affine-page-root`
|
||||
|
||||
Reference in New Issue
Block a user