mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 17:39:55 +08:00
feat(core): init organize (#7456)
This commit is contained in:
@@ -8,10 +8,19 @@ export class GlobalContext extends Entity {
|
||||
|
||||
workspaceId = this.define<string>('workspaceId');
|
||||
|
||||
isDoc = this.define<boolean>('isDoc');
|
||||
docId = this.define<string>('docId');
|
||||
|
||||
isCollection = this.define<boolean>('isCollection');
|
||||
collectionId = this.define<string>('collectionId');
|
||||
|
||||
isTrash = this.define<boolean>('isTrash');
|
||||
|
||||
docMode = this.define<DocMode>('docMode');
|
||||
|
||||
isTag = this.define<boolean>('isTag');
|
||||
tagId = this.define<string>('tagId');
|
||||
|
||||
define<T>(key: string) {
|
||||
this.memento.set(key, null);
|
||||
const livedata$ = LiveData.from(this.memento.watch<T>(key), null);
|
||||
|
||||
Reference in New Issue
Block a user