feat(core): init organize (#7456)

This commit is contained in:
EYHN
2024-07-26 04:35:31 +00:00
parent b26b0c3a22
commit 54da85ec62
140 changed files with 6257 additions and 2804 deletions
@@ -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);