mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
refactor(editor): rename doc to blocks (#9510)
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
LinkedPageIcon,
|
||||
PageIcon,
|
||||
} from '@blocksuite/icons/lit';
|
||||
import type { Doc } from '@blocksuite/store';
|
||||
import type { Blocks } from '@blocksuite/store';
|
||||
import { computed, type Signal, signal } from '@preact/signals-core';
|
||||
import type { TemplateResult } from 'lit';
|
||||
|
||||
@@ -70,9 +70,9 @@ export class DocDisplayMetaService
|
||||
|
||||
readonly disposables: Disposable[] = [];
|
||||
|
||||
readonly iconMap = new WeakMap<Doc, Signal<TemplateResult>>();
|
||||
readonly iconMap = new WeakMap<Blocks, Signal<TemplateResult>>();
|
||||
|
||||
readonly titleMap = new WeakMap<Doc, Signal<string>>();
|
||||
readonly titleMap = new WeakMap<Blocks, Signal<string>>();
|
||||
|
||||
static override setup(di: Container) {
|
||||
di.addImpl(DocDisplayMetaProvider, this, [StdIdentifier]);
|
||||
|
||||
Reference in New Issue
Block a user