From 28a19f203776d85ba05472e8d5f7528a53bcc17d Mon Sep 17 00:00:00 2001 From: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com> Date: Sun, 1 Oct 2023 18:49:20 +0200 Subject: [PATCH] Migrated some UI to nested sets, app starts now --- .../api/parenting/parentingFunctions.ts | 10 +++++---- .../creature/character/CharacterSheetFab.vue | 22 +++++-------------- .../creature/character/CreatureRootDialog.vue | 9 +------- .../character/characterSheetTabs/StatsTab.vue | 6 ++--- .../CreaturePropertiesTree.vue | 20 +++++++++-------- .../CreaturePropertyDialog.vue | 9 +------- .../ui/library/LibraryContentsContainer.vue | 18 ++++++++------- .../client/ui/library/LibraryNodeDialog.vue | 9 -------- .../library/LibraryNodeExpansionContent.vue | 9 +++----- .../archive/cleanArchiveAtCurrent.js | 2 +- app/imports/migrations/server/index.js | 1 + 11 files changed, 42 insertions(+), 73 deletions(-) diff --git a/app/imports/api/parenting/parentingFunctions.ts b/app/imports/api/parenting/parentingFunctions.ts index b2ec13ac..fad6a6ba 100644 --- a/app/imports/api/parenting/parentingFunctions.ts +++ b/app/imports/api/parenting/parentingFunctions.ts @@ -87,13 +87,15 @@ type FilteredDoc = { _ancestorOfMatchedDocument?: boolean, } & TreeDoc; -export default async function filterToForest( +export async function filterToForest( collection: Mongo.Collection, rootId: string, filter: Mongo.Selector, - options: Mongo.Options = {}, - includeFilteredDocAncestors = false, - includeFilteredDocDescendants = false + { + options = >{}, + includeFilteredDocAncestors = false, + includeFilteredDocDescendants = false + } = {} ): Promise[]> { // Setup the filter let collectionFilter = { diff --git a/app/imports/client/ui/creature/character/CharacterSheetFab.vue b/app/imports/client/ui/creature/character/CharacterSheetFab.vue index da68e855..f703cdd9 100644 --- a/app/imports/client/ui/creature/character/CharacterSheetFab.vue +++ b/app/imports/client/ui/creature/character/CharacterSheetFab.vue @@ -40,7 +40,6 @@