refactor(core): remove collection atom (#5832)

This commit is contained in:
EYHN
2024-02-27 03:50:56 +00:00
parent ad9b0303c4
commit 5cd488fe1d
41 changed files with 644 additions and 962 deletions

View File

@@ -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) {

View File

@@ -0,0 +1,3 @@
export class PageListView {
constructor() {}
}