mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-06-02 02:14:47 +12:00
0.1.6a - hotfixes
This commit is contained in:
parent
36abdc6b56
commit
1f4e1941cf
|
@ -95,7 +95,7 @@
|
|||
<q-badge
|
||||
class="treeBadge"
|
||||
:class="{'noChilden': prop.node.children.length === 0}"
|
||||
v-if="prop.node.sticker && !hideTreeOrderNumbers"
|
||||
v-if="typeof prop.node.sticker === 'number' && !hideTreeOrderNumbers"
|
||||
color="primary"
|
||||
outline
|
||||
floating
|
||||
|
@ -512,8 +512,8 @@ export default class ObjectTree extends BaseClass {
|
|||
|
||||
// Put the number value on top of the list and alphabetical below them
|
||||
input = [
|
||||
...input.filter(e => e.extraFields.find(e => e.id === "order")?.value),
|
||||
...input.filter(e => !e.extraFields.find(e => e.id === "order")?.value)
|
||||
...input.filter(e => typeof e.extraFields.find(e => e.id === "order")?.value === "number"),
|
||||
...input.filter(e => typeof e.extraFields.find(e => e.id === "order")?.value !== "number")
|
||||
]
|
||||
|
||||
input.forEach((e, i) => {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
dense
|
||||
class="existingDocumentSelect"
|
||||
dark
|
||||
popup-content-class="menuResizer"
|
||||
menu-anchor="bottom middle"
|
||||
menu-self="top middle"
|
||||
:options="filteredExistingInput"
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
ref="ref_newDocument"
|
||||
style="flex-grow: 1;"
|
||||
dense
|
||||
popup-content-class="menuResizer"
|
||||
menu-anchor="bottom middle"
|
||||
menu-self="top middle"
|
||||
class="newDocumentSelect"
|
||||
|
|
|
@ -140,6 +140,7 @@
|
|||
class="multiRelashionshipSelect"
|
||||
dark
|
||||
style="flex-grow: 1;"
|
||||
popup-content-class="menuResizer"
|
||||
dense
|
||||
:ref="`multieRelationshipField${this.inputDataBluePrint.id}`"
|
||||
:options="filterList"
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
style="width: 100%;"
|
||||
dense
|
||||
dark
|
||||
popup-content-class="menuResizer"
|
||||
:ref="`multiSelectField${this.inputDataBluePrint.id}`"
|
||||
menu-anchor="bottom middle"
|
||||
menu-self="top middle"
|
||||
|
|
|
@ -136,6 +136,7 @@
|
|||
menu-anchor="bottom middle"
|
||||
menu-self="top middle"
|
||||
dark
|
||||
popup-content-class="menuResizer"
|
||||
style="flex-grow: 1;"
|
||||
dense
|
||||
:ref="`singleRelationshipField${inputDataBluePrint.id}`"
|
||||
|
@ -621,16 +622,19 @@ export default class Field_SingleRelationship extends FieldBase {
|
|||
}
|
||||
|
||||
processSelectInteraction (input: null| I_ShortenedDocument) {
|
||||
if (input) {
|
||||
this.disabledIDList.push(input._id)
|
||||
}
|
||||
else {
|
||||
const toRemoveIndex = this.disabledIDList.findIndex(id => id === this.inputDataValue.value._id)
|
||||
if (this.inputDataBluePrint.type === "singleToSingleRelationship") {
|
||||
if (input) {
|
||||
this.disabledIDList.push(input._id)
|
||||
}
|
||||
else {
|
||||
const toRemoveIndex = this.disabledIDList.findIndex(id => id === this.inputDataValue.value._id)
|
||||
|
||||
if (toRemoveIndex > -1) {
|
||||
this.disabledIDList.splice(toRemoveIndex, 1)
|
||||
if (toRemoveIndex > -1) {
|
||||
this.disabledIDList.splice(toRemoveIndex, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.processInput()
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
style="width: 100%;"
|
||||
dense
|
||||
dark
|
||||
popup-content-class="menuResizer"
|
||||
:ref="`singleSelectField${this.inputDataBluePrint.id}`"
|
||||
menu-anchor="bottom middle"
|
||||
menu-self="top middle"
|
||||
|
|
|
@ -141,6 +141,10 @@ a {
|
|||
}
|
||||
}
|
||||
|
||||
.menuResizer {
|
||||
min-width: 600px !important;
|
||||
}
|
||||
|
||||
.q-notification.bg-info {
|
||||
max-width: 550px;
|
||||
border: 2px solid var(--q-color-dark);
|
||||
|
|
|
@ -3,6 +3,28 @@
|
|||
|
||||
---
|
||||
|
||||
## 0.1.6a
|
||||
|
||||
### Known issues
|
||||
|
||||
- Overusing Tags (20+ with 400+ documents in them for most) currently causes slowdowns/crashes on some PCs when using the Hierarchy tree. If you suffer from this issue, reduce the number of tags and/or objects paired underneath them.
|
||||
- When using the `Legacy project repair` tool, a very small amount of users report being stuck on the progress. If you suffer from the issue, restart the app and then restart the fixing process - this seems to be a workaround for now.
|
||||
- Importing existing project can sometimes get stuck. Restarting the app fixes this.
|
||||
|
||||
### Bugfixes & Optimizations
|
||||
|
||||
- Fixed hierarchy tree ignoring "0" value in Order fields
|
||||
- Fixed a bug where the automatic relationship limter was treating single-to-many field type as single-to-single types
|
||||
- Fixed a bug that was causing import/merge/repair tools to get stuck after exporting in the same popup
|
||||
- Fixed an issue with flickering select menus
|
||||
- Fixed functionality of the `Connected Locations` field in the `Teachings/Religious groups` document type
|
||||
|
||||
### New features
|
||||
|
||||
- Added new options to predefeined select lists across the app
|
||||
|
||||
### QoL adjustments
|
||||
|
||||
## 0.1.6
|
||||
|
||||
### Known issues
|
||||
|
|
|
@ -685,6 +685,7 @@ export const charactersBlueprint: I_Blueprint = {
|
|||
"Meretricious",
|
||||
"Messy",
|
||||
"Methodical",
|
||||
"Mischievous",
|
||||
"Miserable",
|
||||
"Miserly",
|
||||
"Misguided",
|
||||
|
|
|
@ -266,7 +266,7 @@ export const religionsBlueprint: I_Blueprint = {
|
|||
}
|
||||
},
|
||||
{
|
||||
id: "collectedLocations",
|
||||
id: "connectedLocations",
|
||||
name: "Connected Locations",
|
||||
type: "manyToManyRelationship",
|
||||
icon: "mdi-map-marker-radius",
|
||||
|
|
|
@ -84,7 +84,7 @@ export const exportProject = (projectName: string, Loading: any, loadingSetup: a
|
|||
})
|
||||
|
||||
for (const db of DBnames) {
|
||||
const CurrentDB = new PouchDB(db)
|
||||
window.FA_dbs[db] = new PouchDB(db)
|
||||
|
||||
if (!fs.existsSync(`${folderPath}`)) {
|
||||
fs.mkdirSync(`${folderPath}`)
|
||||
|
@ -96,8 +96,7 @@ export const exportProject = (projectName: string, Loading: any, loadingSetup: a
|
|||
const ws = fs.createWriteStream(`${folderPath}/${projectName}/${db}.txt`)
|
||||
|
||||
// @ts-ignore
|
||||
await CurrentDB.dump(ws)
|
||||
await CurrentDB.close()
|
||||
await window.FA_dbs[db].dump(ws)
|
||||
|
||||
}
|
||||
|
||||
|
@ -128,8 +127,8 @@ export const removeCurrentProject = async () => {
|
|||
|
||||
|
||||
for (const db of DBnames) {
|
||||
const CurrentDB = new PouchDB(db)
|
||||
await CurrentDB.destroy()
|
||||
window.FA_dbs[db] = new PouchDB(db)
|
||||
await window.FA_dbs[db].destroy()
|
||||
}
|
||||
/* eslint-enable */
|
||||
}
|
||||
|
@ -162,12 +161,11 @@ export const importExistingProject = (vueRouter: any, Loading: any, loadingSetup
|
|||
|
||||
for (const file of allFiles) {
|
||||
const currentDBName = path.parse(file).name
|
||||
const CurrentDB = new PouchDB(currentDBName)
|
||||
window.FA_dbs[currentDBName] = new PouchDB(currentDBName)
|
||||
|
||||
const fileContents = fs.readFileSync(`${folderPath}/${file}`, { encoding: "utf8" })
|
||||
// @ts-ignore
|
||||
await CurrentDB.loadIt(fileContents)
|
||||
await CurrentDB.close()
|
||||
await window.FA_dbs[currentDBName].loadIt(fileContents)
|
||||
|
||||
}
|
||||
|
||||
|
@ -235,12 +233,11 @@ export const mergeExistingProject = (vueRouter: any, Loading: any, loadingSetup:
|
|||
|
||||
for (const file of allFiles) {
|
||||
const currentDBName = path.parse(file).name
|
||||
const CurrentDB = new PouchDB(currentDBName)
|
||||
window.FA_dbs[currentDBName] = new PouchDB(currentDBName)
|
||||
|
||||
const fileContents = fs.readFileSync(`${folderPath}/${file}`, { encoding: "utf8" })
|
||||
// @ts-ignore
|
||||
await CurrentDB.loadIt(fileContents)
|
||||
await CurrentDB.close()
|
||||
await window.FA_dbs[currentDBName].loadIt(fileContents)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
|
||||
- Fix file name symbols for OSs in new project names
|
||||
- Add a way to view the project graph without closing all the documents
|
||||
- Add checkbox or something for viewmode switch fields
|
||||
- Consider adding color support for text shadow of individual documents
|
||||
- Consider adding coloring to icons of documents separately
|
||||
|
||||
## THE GM BATCH
|
||||
|
||||
|
|
Loading…
Reference in a new issue