mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
refactor(editor): remove legacy block service spec slots (#11013)
This commit is contained in:
@@ -10,7 +10,6 @@ import {
|
||||
StdIdentifier,
|
||||
} from '../identifier.js';
|
||||
import type { BlockStdScope } from '../scope/index.js';
|
||||
import { getSlots } from '../spec/index.js';
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
@@ -27,8 +26,6 @@ export abstract class BlockService extends Extension {
|
||||
|
||||
readonly flavour: string;
|
||||
|
||||
readonly specSlots = getSlots();
|
||||
|
||||
get collection() {
|
||||
return this.std.workspace;
|
||||
}
|
||||
@@ -108,13 +105,9 @@ export abstract class BlockService extends Extension {
|
||||
}
|
||||
// life cycle end
|
||||
|
||||
mounted() {
|
||||
this.specSlots.mounted.next({ service: this });
|
||||
}
|
||||
mounted() {}
|
||||
|
||||
unmounted() {
|
||||
this.dispose();
|
||||
this.specSlots.unmounted.next({ service: this });
|
||||
this.disposables.dispose();
|
||||
}
|
||||
// event handlers end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user