mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-09-30 00:56:59 +13:00
0.1.5a - fixed a bug with non-loading blueprints
This commit is contained in:
parent
9c2ba43034
commit
ea7fb5ed5e
2 changed files with 33 additions and 20 deletions
|
@ -293,9 +293,6 @@ import { I_OpenedDocument, I_ShortenedDocument } from "src/interfaces/I_OpenedDo
|
||||||
import PouchDB from "pouchdb"
|
import PouchDB from "pouchdb"
|
||||||
import deleteDocumentCheckDialog from "src/components/dialogs/DeleteDocumentCheck.vue"
|
import deleteDocumentCheckDialog from "src/components/dialogs/DeleteDocumentCheck.vue"
|
||||||
|
|
||||||
import { engageBlueprints, retrieveAllBlueprints } from "src/scripts/databaseManager/blueprintManager"
|
|
||||||
// import { cleanDatabases } from "src/scripts/databaseManager/cleaner"
|
|
||||||
import { I_Blueprint } from "src/interfaces/I_Blueprint"
|
|
||||||
import { extend, colors } from "quasar"
|
import { extend, colors } from "quasar"
|
||||||
import { tagListBuildFromBlueprints } from "src/scripts/utilities/tagListBuilder"
|
import { tagListBuildFromBlueprints } from "src/scripts/utilities/tagListBuilder"
|
||||||
import { retrieveCurrentProjectName } from "src/scripts/projectManagement/projectManagent"
|
import { retrieveCurrentProjectName } from "src/scripts/projectManagement/projectManagent"
|
||||||
|
@ -336,9 +333,6 @@ export default class ObjectTree extends BaseClass {
|
||||||
async created () {
|
async created () {
|
||||||
this.projectName = await retrieveCurrentProjectName()
|
this.projectName = await retrieveCurrentProjectName()
|
||||||
|
|
||||||
// await cleanDatabases()
|
|
||||||
await this.processBluePrints()
|
|
||||||
|
|
||||||
// Unfuck the rendering by giving the app some time to load first
|
// Unfuck the rendering by giving the app some time to load first
|
||||||
await this.$nextTick()
|
await this.$nextTick()
|
||||||
}
|
}
|
||||||
|
@ -402,19 +396,6 @@ export default class ObjectTree extends BaseClass {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Processes all blueprints and redies the store for population of the app
|
|
||||||
*/
|
|
||||||
async processBluePrints (): Promise<void> {
|
|
||||||
await engageBlueprints()
|
|
||||||
|
|
||||||
const allObjectBlueprints = (await retrieveAllBlueprints()).rows.map((blueprint) => {
|
|
||||||
return blueprint.doc
|
|
||||||
}) as I_Blueprint[]
|
|
||||||
|
|
||||||
this.SSET_allBlueprints(allObjectBlueprints)
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
// HIERARCHICAL TREE - HELPERS AND MODELS
|
// HIERARCHICAL TREE - HELPERS AND MODELS
|
||||||
/****************************************************************/
|
/****************************************************************/
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
v-model="splitterModel"
|
v-model="splitterModel"
|
||||||
unit="px"
|
unit="px"
|
||||||
emit-immediately
|
emit-immediately
|
||||||
:class="splitterClass"
|
:class="{splitterClass, 'splitterHidden': hideHierarchyTree}"
|
||||||
@input="onChange"
|
@input="onChange"
|
||||||
:limits="[limiterWidth, Infinity]"
|
:limits="[limiterWidth, Infinity]"
|
||||||
class="pageSplitter"
|
class="pageSplitter"
|
||||||
|
@ -55,9 +55,11 @@ import BaseClass from "src/BaseClass"
|
||||||
import objectTree from "src/components/ObjectTree.vue"
|
import objectTree from "src/components/ObjectTree.vue"
|
||||||
import appHeader from "src/components/AppHeader.vue"
|
import appHeader from "src/components/AppHeader.vue"
|
||||||
import documentControl from "src/components/DocumentControl.vue"
|
import documentControl from "src/components/DocumentControl.vue"
|
||||||
|
import { engageBlueprints, retrieveAllBlueprints } from "src/scripts/databaseManager/blueprintManager"
|
||||||
|
|
||||||
import { extend } from "quasar"
|
import { extend } from "quasar"
|
||||||
import { OptionsStateInteface } from "src/store/module-options/state"
|
import { OptionsStateInteface } from "src/store/module-options/state"
|
||||||
|
import { I_Blueprint } from "src/interfaces/I_Blueprint"
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
components: {
|
components: {
|
||||||
|
@ -88,6 +90,30 @@ export default class DocumentLayout extends BaseClass {
|
||||||
return !this.leftDrawerOpen ? "splitt" : ""
|
return !this.leftDrawerOpen ? "splitt" : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Load all blueprints and build the tree out of them
|
||||||
|
*/
|
||||||
|
async created () {
|
||||||
|
// await cleanDatabases()
|
||||||
|
await this.processBluePrints()
|
||||||
|
|
||||||
|
// Unfuck the rendering by giving the app some time to load first
|
||||||
|
await this.$nextTick()
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Processes all blueprints and redies the store for population of the app
|
||||||
|
*/
|
||||||
|
async processBluePrints (): Promise<void> {
|
||||||
|
await engageBlueprints()
|
||||||
|
|
||||||
|
const allObjectBlueprints = (await retrieveAllBlueprints()).rows.map((blueprint) => {
|
||||||
|
return blueprint.doc
|
||||||
|
}) as I_Blueprint[]
|
||||||
|
|
||||||
|
this.SSET_allBlueprints(allObjectBlueprints)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Special padding reset for the main page
|
* Special padding reset for the main page
|
||||||
*/
|
*/
|
||||||
|
@ -178,6 +204,12 @@ export default class DocumentLayout extends BaseClass {
|
||||||
margin-top: 55px !important;
|
margin-top: 55px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.splitterHidden {
|
||||||
|
.q-splitter__separator {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.q-splitter__separator {
|
.q-splitter__separator {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
height: calc(100vh - 95px);
|
height: calc(100vh - 95px);
|
||||||
|
|
Loading…
Reference in a new issue