mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(core): remove collection atom (#5832)
This commit is contained in:
@@ -81,6 +81,15 @@ export class CollectionService {
|
||||
}
|
||||
}
|
||||
|
||||
addPageToCollection(collectionId: string, pageId: string) {
|
||||
this.updateCollection(collectionId, old => {
|
||||
return {
|
||||
...old,
|
||||
allowList: [pageId, ...(old.allowList ?? [])],
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
deleteCollection(info: DeleteCollectionInfo, ...ids: string[]) {
|
||||
const collectionsYArray = this.collectionsYArray;
|
||||
if (!collectionsYArray) {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export class PageListView {
|
||||
constructor() {}
|
||||
}
|
||||
Reference in New Issue
Block a user