0.1.5 - bugfixes, added switches for minor and dead, cleaned up document blueprints

This commit is contained in:
Elvanos 2021-04-06 16:01:37 +02:00
parent 7154ab2b20
commit 37c0f8fd81
28 changed files with 1027 additions and 500 deletions

View file

@ -470,7 +470,9 @@ export default class BaseClass extends Vue {
color: doc.extraFields.find(e => e.id === "documentColor")?.value,
bgColor: doc.extraFields.find(e => e.id === "documentBackgroundColor")?.value,
isCategory: doc.extraFields.find(e => e.id === "categorySwitch")?.value,
isMinor: doc.extraFields.find(e => e.id === "minorSwitch")?.value
isMinor: doc.extraFields.find(e => e.id === "minorSwitch")?.value,
isDead: doc.extraFields.find(e => e.id === "deadSwitch")?.value
} as unknown as I_ShortenedDocument
formattedDocuments.push(pushValue)
}

View file

@ -438,6 +438,8 @@ export default class DocumentControl extends BaseClass {
}
}
documentsCopy = null as unknown as I_OpenedDocument[]
async saveCurrentDocument () {
if (document.activeElement) {
(document.activeElement as HTMLElement).blur()
@ -447,14 +449,14 @@ export default class DocumentControl extends BaseClass {
const allDocuments = this.SGET_allOpenedDocuments
const docCopy: I_OpenedDocument[] = extend(true, [], allDocuments.docs)
this.documentsCopy = extend(true, [], allDocuments.docs)
if (currentDoc) {
// @ts-ignore
const savedDocument: {
documentCopy: I_OpenedDocument,
allOpenedDocuments: I_OpenedDocument[]
} = await saveDocument(currentDoc, docCopy)
} = await saveDocument(currentDoc, this.documentsCopy)
// Update the opened document
const dataPass = { doc: savedDocument.documentCopy, treeAction: true }

View file

@ -51,7 +51,7 @@
<template v-slot:default-header="prop">
<div
class="row items-center col-grow documentWrapper"
:class="{'isMinor': prop.node.isMinor}"
:class="{'isMinor': prop.node.isMinor, 'isDeadTree': prop.node.isDead}"
:style="`background-color: ${prop.node.bgColor};`"
@click.stop.prevent="processNodeClick(prop.node)"
@click.stop.prevent.middle="processNodeLabelMiddleClick(prop.node)"
@ -64,7 +64,11 @@
:size="(prop.node.icon.includes('fas')? '16px': '21px')"
:name="prop.node.icon"
class="q-mr-sm self-center" />
{{ prop.node.label }}
<span v-if="prop.node.isDead" class="documentLabel__isDeadMarker"></span>
<span class="documentLabel__content">
{{ prop.node.label }}
</span>
<span
class="text-grey-5 text-weight-medium q-ml-xs"
v-if="(prop.node.isRoot || prop.node.isTag) && !disableDocumentCounts">
@ -465,12 +469,14 @@ export default class ObjectTree extends BaseClass {
const isCategory = doc.extraFields.find(e => e.id === "categorySwitch")?.value as unknown as boolean
const isMinor = doc.extraFields.find(e => e.id === "minorSwitch")?.value as unknown as boolean
const isDead = doc.extraFields.find(e => e.id === "deadSwitch")?.value as unknown as boolean
return {
label: doc.extraFields.find(e => e.id === "name")?.value,
icon: (isCategory) ? "fas fa-folder-open" : doc.icon,
isCategory: !!(isCategory),
isMinor: isMinor,
isDead: isDead,
sticker: doc.extraFields.find(e => e.id === "order")?.value,
parentDoc: (parentDocID) ? parentDocID._id : false,
handler: this.openExistingDocumentRoute,
@ -903,6 +909,18 @@ export default class ObjectTree extends BaseClass {
&.isMinor {
filter: grayscale(100) brightness(0.7);
}
&.isDeadTree {
.documentLabel__content {
text-decoration: line-through;
text-decoration-color: #fff;
}
.documentLabel__isDeadMarker {
margin-right: 5px;
font-weight: 600;
}
}
}
.documentLabel {

View file

@ -33,7 +33,6 @@
:to="`/project/display-content/${document.type}/${document._id}`"
:key="document.type+document._id"
:icon="(retrieveFieldValue(document,'categorySwitch') ? 'fas fa-folder-open' : document.icon)"
:label="retrieveFieldValue(document,'name')"
:style="`color: ${retrieveFieldValue(document,'documentColor')}; background-color: ${retrieveFieldValue(document,'documentBackgroundColor')}; filter: ${(retrieveFieldValue(document,'minorSwitch') ? 'grayscale(100) brightness(0.7)' : '')}`"
:class="[
{'isBold':
@ -41,14 +40,26 @@
retrieveFieldValue(document,'documentColor') !== '#ffffff' &&
retrieveFieldValue(document,'documentColor') !== '#fff'
) &&
retrieveFieldValue(document,'documentColor') !== ''}]"
retrieveFieldValue(document,'documentColor') !== ''
}]"
:alert="document.hasEdits"
alert-icon="mdi-feather"
@click.prevent.middle="tryCloseTab(document)"
>
<span class="isDeadIndicator" v-if="retrieveFieldValue(document,'deadSwitch')">
</span>
<div
class="q-tab__label"
:class="{'isDead': retrieveFieldValue(document,'deadSwitch')}">
{{retrieveFieldValue(document,'name')}}
</div>
<q-tooltip
:delay="700"
>
<span class="isDeadIndicator" v-if="retrieveFieldValue(document,'deadSwitch')">
</span>
{{retrieveFieldValue(document,'name')}}
<br>
<span class="text-caption">Middle mouse button to close</span>

View file

@ -54,7 +54,13 @@
/>
</q-item-section>
<q-item-section>
<q-item-label v-html="opt.label" ></q-item-label>
<q-item-label>
<span class="isDeadIndicator" v-if="opt.isDead">
</span>
<span :class="{'isDead': opt.isDead}" v-html="opt.label">
</span>
</q-item-label>
<q-item-label caption class="text-cultured" v-html="opt.hierarchicalPath"></q-item-label>
<q-item-label caption class="text-cultured" v-if="opt.tags">
<q-chip

View file

@ -46,7 +46,12 @@
@click.middle="openNewTab(single)"
>
<span class="text-weight-medium">
{{stripTags(single.label)}}
<span class="isDeadIndicator" v-if="single.isDead">
</span>
<span :class="{'isDead': single.isDead}">
{{stripTags(single.label)}}
</span>
</span>
<span class="inline-block q-ml-xs text-italic connectionNote">
{{retrieveNoteText(single._id)}}
@ -101,6 +106,9 @@
text-color="dark"
class="text-bold"
>
<template v-if="scope.opt.isDead">
</template>
{{ stripTags(scope.opt.label) }}
<q-btn
round
@ -135,7 +143,13 @@
<q-item-section>
<q-item-label
:style="`color: ${opt.color}`"
v-html="opt.label" ></q-item-label>
>
<span class="isDeadIndicator" v-if="opt.isDead">
</span>
<span :class="{'isDead': opt.isDead}" v-html="opt.label">
</span>
</q-item-label>
<q-item-label caption class="text-cultured" v-html="opt.hierarchicalPath"></q-item-label>
<q-item-label caption class="text-cultured" v-if="opt.tags">
<q-chip
@ -370,6 +384,7 @@ export default class Field_MultiRelationship extends FieldBase {
label: objectDoc.extraFields.find(e => e.id === "name")?.value,
isCategory: objectDoc.extraFields.find(e => e.id === "categorySwitch")?.value,
isMinor: objectDoc.extraFields.find(e => e.id === "minorSwitch")?.value,
isDead: objectDoc.extraFields.find(e => e.id === "deadSwitch")?.value,
color: objectDoc.extraFields.find(e => e.id === "documentColor")?.value,
bgColor: objectDoc.extraFields.find(e => e.id === "documentBackgroundColor")?.value,
pairedField: pairedField,
@ -401,8 +416,13 @@ export default class Field_MultiRelationship extends FieldBase {
else {
const matchedFieldContent = allObjectsWithoutCurrent.find(e => e._id === s._id)
if (matchedFieldContent && this.localInput[index].label !== matchedFieldContent.label) {
if (matchedFieldContent && (
this.localInput[index].label !== matchedFieldContent.label ||
this.localInput[index]?.isDead !== matchedFieldContent.extraFields.find(e => e.id === "deadSwitch")?.value)
) {
this.localInput[index].label = matchedFieldContent.label
this.localInput[index].isDead = matchedFieldContent.extraFields.find(e => e.id === "deadSwitch")?.value
needsRefresh = true
}
}

View file

@ -43,7 +43,12 @@
@click.middle="openNewTab(localInput)"
>
<span class="text-weight-medium">
{{stripTags(localInput.label)}}
<span class="isDeadIndicator" v-if="localInput.isDead">
</span>
<span :class="{'isDead': localInput.isDead}">
{{stripTags(localInput.label)}}
</span>
</span>
<span class="inline-block q-ml-xs text-italic connectionNote">
{{retrieveNoteText()}}
@ -98,6 +103,9 @@
text-color="dark"
class="text-bold"
>
<template v-if="scope.opt.isDead">
</template>
{{ stripTags(scope.opt.label) }}
<q-btn
round
@ -132,8 +140,14 @@
</q-item-section>
<q-item-section>
<q-item-label
:style="`color: ${opt.color}`"
v-html="opt.label" ></q-item-label>
:style="`color: ${opt.color}`"
>
<span class="isDeadIndicator" v-if="opt.isDead">
</span>
<span :class="{'isDead': opt.isDead}" v-html="opt.label">
</span>
</q-item-label>
<q-item-label caption class="text-cultured" v-html="opt.hierarchicalPath"></q-item-label>
<q-item-label caption class="text-cultured" v-if="opt.tags">
<q-chip
@ -375,6 +389,7 @@ export default class Field_SingleRelationship extends FieldBase {
bgColor: objectDoc.extraFields.find(e => e.id === "documentBackgroundColor")?.value,
isCategory: objectDoc.extraFields.find(e => e.id === "categorySwitch")?.value,
isMinor: objectDoc.extraFields.find(e => e.id === "minorSwitch")?.value,
isDead: objectDoc.extraFields.find(e => e.id === "deadSwitch")?.value,
pairedField: pairedField,
tags: objectDoc.extraFields.find(e => e.id === "tags")?.value,
// @ts-ignore
@ -399,8 +414,13 @@ export default class Field_SingleRelationship extends FieldBase {
// If the object does exist, make sure we have the newest available name by reasigning the label if it is different. Then trigger a silent update
else {
const matchedFieldContent = objectsWithoutCurrent.find(e => e._id === this.localInput._id)
if (matchedFieldContent && this.localInput.label !== matchedFieldContent.label) {
if (matchedFieldContent && (
this.localInput.label !== matchedFieldContent.label ||
this.localInput?.isDead !== matchedFieldContent.extraFields.find(e => e.id === "deadSwitch")?.value)
) {
this.localInput.label = matchedFieldContent.label
this.localInput.isDead = matchedFieldContent.extraFields.find(e => e.id === "deadSwitch")?.value
this.signalInput(true)
}
}

View file

@ -203,6 +203,16 @@ a {
}
}
.isDeadIndicator {
margin-right: 5px;
font-weight: 600;
}
.isDead {
text-decoration: line-through;
text-decoration-color: #fff;
}
.q-icon::after,
.q-icon::before {
backface-visibility: hidden;
@ -223,6 +233,7 @@ a {
.q-toggle__inner {
width: 100%;
max-width: 150px;
}
.q-toggle__thumb {

View file

@ -20,16 +20,20 @@
- Fixed a rather peculiar recuring bug that could cause the database to endlessly attempt to update a document while constantly throwing errors
- Managed to fix or at least mitigate multiple memory-leaks across the app
- Optimized multiple parts of the code to run smoother
- Fixed wrong icons in some fields in some document types
### New features
- Added a dedicated button that opens the connected documents straight from the little chips in relationship fields while in edit mode
- Added support for background color for documents
- Added support for "Minor document" mode switch for better organization of documents
- Added support for "Minor document" mode switch for better organization and visual representation of documents
- Added support for "Dead/Gone/Destroyed" mode switch for better organization and visual representation of documents
### QoL adjustments
- Updated fullscreen editor looks to work more like a proper document editor
- Reordered the basic document settings inside the app and separated them from the document content
- Adjusted maximum width of switch fields to make them look like spaggeti
- Updated the Advanced search guide with new additions and added one new Trivia popup text concerning it
- Made the app a bit more "snappy" by decreasing animation lengths when transitioning between documents
- Updated `readme` file on how to properly compile the app since I made it OSS and all... kinda important

View file

@ -6,6 +6,7 @@ export interface I_FieldRelationship{
_id: string
pairedField: string
isCategory: boolean
isDead: boolean
}
export interface I_RelationshipPair {

View file

@ -713,7 +713,7 @@ export default class PageDocumentDisplay extends BaseClass {
categoryFieldFilter (currentFieldID: string) {
const isCategory = this.retrieveFieldValue(this.currentData, "categorySwitch")
const ignoredList = ["breakBasic", "name", "documentColor", "documentBackgroundColor", "parentDoc", "order", "categorySwitch", "minorSwitch", "tags"]
const ignoredList = ["breakDocumentSettings", "name", "documentColor", "documentBackgroundColor", "parentDoc", "order", "categorySwitch", "minorSwitch", "deadSwitch", "tags"]
return (!isCategory || ignoredList.includes(currentFieldID))
}

View file

@ -7,8 +7,8 @@ export const chaptersBlueprint: I_Blueprint = {
icon: "mdi-file-outline",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const chaptersBlueprint: I_Blueprint = {
icon: "mdi-file-outline",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const chaptersBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "chapters"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const chaptersBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,13 @@ export const chaptersBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "content",
name: "Chapter content",

View file

@ -7,8 +7,8 @@ export const charactersBlueprint: I_Blueprint = {
icon: "mdi-account",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const charactersBlueprint: I_Blueprint = {
icon: "mdi-account",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -56,16 +34,26 @@ export const charactersBlueprint: I_Blueprint = {
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
@ -80,6 +68,18 @@ export const charactersBlueprint: I_Blueprint = {
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
name: "Is a category",
@ -90,7 +90,19 @@ export const charactersBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -108,6 +120,12 @@ export const charactersBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const currenciesBlueprint: I_Blueprint = {
icon: "fas fa-coins",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const currenciesBlueprint: I_Blueprint = {
icon: "fas fa-coins",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const currenciesBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "currencies"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const currenciesBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const currenciesBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const eventsBlueprint: I_Blueprint = {
icon: "mdi-calendar-text",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -16,31 +16,9 @@ export const eventsBlueprint: I_Blueprint = {
id: "name",
name: "Name",
type: "text",
icon: "mdi-account",
icon: "mdi-calendar-text",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const eventsBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "events"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const eventsBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const eventsBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const itemsBlueprint: I_Blueprint = {
icon: "mdi-sword-cross",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const itemsBlueprint: I_Blueprint = {
icon: "mdi-sword-cross",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const itemsBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "items"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const itemsBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const itemsBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const languagesBlueprint: I_Blueprint = {
icon: "mdi-book-alphabet",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -16,31 +16,9 @@ export const languagesBlueprint: I_Blueprint = {
id: "name",
name: "Name",
type: "text",
icon: "mdi-account",
icon: "mdi-book-alphabet",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const languagesBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "languages"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const languagesBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const languagesBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const locationsBlueprint: I_Blueprint = {
icon: "mdi-map-marker-radius",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const locationsBlueprint: I_Blueprint = {
icon: "mdi-map-marker-radius",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const locationsBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "locations"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const locationsBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const locationsBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const loreNotesBlueprint: I_Blueprint = {
icon: "mdi-script-text-outline",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const loreNotesBlueprint: I_Blueprint = {
icon: "mdi-script-text-outline",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const loreNotesBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "loreNotes"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const loreNotesBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const loreNotesBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "notes",
name: "Note list",

View file

@ -7,8 +7,8 @@ export const magicBlueprint: I_Blueprint = {
icon: "fas fa-hat-wizard",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const magicBlueprint: I_Blueprint = {
icon: "fas fa-hat-wizard",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const magicBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "magic"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const magicBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const magicBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other names & Epithets",

View file

@ -7,8 +7,8 @@ export const mythsBlueprint: I_Blueprint = {
icon: "fas fa-journal-whills",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const mythsBlueprint: I_Blueprint = {
icon: "fas fa-journal-whills",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const mythsBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "myths"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const mythsBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const mythsBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const politicalGroupsBlueprint: I_Blueprint = {
icon: "mdi-bank-outline",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const politicalGroupsBlueprint: I_Blueprint = {
icon: "mdi-bank-outline",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const politicalGroupsBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "politicalGroups"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const politicalGroupsBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const politicalGroupsBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const racesBlueprint: I_Blueprint = {
icon: "fas fa-dragon",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const racesBlueprint: I_Blueprint = {
icon: "fas fa-dragon",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const racesBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "races"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const racesBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const racesBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const religionsBlueprint: I_Blueprint = {
icon: "fas fa-ankh",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const religionsBlueprint: I_Blueprint = {
icon: "fas fa-ankh",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const religionsBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "religions"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const religionsBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const religionsBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other Names & Epithets",

View file

@ -7,8 +7,8 @@ export const techBlueprint: I_Blueprint = {
icon: "fas fa-wrench",
extraFields: [
{
id: "breakBasic",
name: "Basic information",
id: "breakDocumentSettings",
name: "Document settings",
type: "break",
sizing: 12
},
@ -19,28 +19,6 @@ export const techBlueprint: I_Blueprint = {
icon: "fas fa-wrench",
sizing: 3
},
{
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
},
{
id: "parentDoc",
name: "Belongs under",
@ -52,20 +30,55 @@ export const techBlueprint: I_Blueprint = {
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "tech"
connectedObjectType: "characters"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
id: "documentColor",
name: "Text color",
type: "colorPicker",
icon: "mdi-eyedropper",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show on the icon and name of the document both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 2
sizing: 3
},
{
id: "documentBackgroundColor",
name: "Background color",
type: "colorPicker",
icon: "mdi-format-color-fill",
tooltip:
`This field allows for custom-coloring your document to any available HEX or RBG color.
<br>The selected color will show as a background both in the hierarchical tree on the left and in the top tabs.
`,
sizing: 3
},
{
id: "minorSwitch",
name: "Is a minor document",
type: "switch",
icon: "mdi-magnify-minus-outline",
tooltip:
`This setting allows for setting the current document to minor document mode.
<br>
A document with minor document mode toggled on will not show in any other relationship searches.<br>
The idea behind this setting is to allow for creation of documents that will not clutter the search, but could be theoretically relevant in some very specific cases to the story (eg: distant relatives of a character).
`,
sizing: 3
},
{
id: "deadSwitch",
name: "Is Dead/Gone/Destroyed",
type: "switch",
icon: "mdi-skull-crossbones",
tooltip:
`This setting allows for setting the current document to dead/gone/estroyed mode.
<br>
A document with dead/gone/destroyed mode toggled on will have a crossed-over text modifier applied to it - showing that it is no longer a part of the current timeline.
`,
sizing: 3
},
{
id: "categorySwitch",
@ -77,7 +90,19 @@ export const techBlueprint: I_Blueprint = {
<br>
A document with category mode toggled on will have most of its fields hidden and will not show in any other relationship searches except for "Belongs under".
`,
sizing: 2
sizing: 3
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
tooltip:
`In case the default sorting via alphabet in the hierarchical tree on the left is inadequite for your needs, this field allows you to fill custom numbers to order by that get placed before the default alphabetical order.
<br>It is heavily suggested to "pad-out" the custom order numbers by writing for example 100 (or least 10) instead of 1.
<br>This allows for extra "padding" between the items in case a new one needs to be added in the middle without needing to redo the custom order on all documents.
`,
sizing: 3
},
{
id: "tags",
@ -95,6 +120,12 @@ export const techBlueprint: I_Blueprint = {
`,
sizing: 12
},
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "otherNames",
name: "Other names & Epithets",

View file

@ -11,7 +11,7 @@ export const saveDocument = async (document: I_OpenedDocument, allOpenedDocument
const BlueprintsDB = new PouchDB("blueprints")
const currentBlueprint: {extraFields: I_ExtraFields[]} = await BlueprintsDB.get(document.type)
const CurrentObjectDB = new PouchDB(document.type)
let CurrentObjectDB = new PouchDB(document.type)
let currentDocument = false as unknown as I_OpenedDocument
try {
@ -97,8 +97,17 @@ export const saveDocument = async (document: I_OpenedDocument, allOpenedDocument
documentCopy.editMode = false
// Save the document
await CurrentObjectDB.put(documentCopy)
try {
await CurrentObjectDB.put(documentCopy)
}
// This exists here as a backup in case the databases closes the connection from elsewhere in the meantime
catch (error) {
await CurrentObjectDB.close()
CurrentObjectDB = new PouchDB(document.type)
await CurrentObjectDB.put(documentCopy)
}
await BlueprintsDB.close()
await CurrentObjectDB.close()
return { documentCopy, allOpenedDocuments }

View file

@ -91,7 +91,9 @@ export const single_addRelationShipToAnotherObject = async (
type: currentDocument.type,
url: `/project/display-content/${currentDocument.type}/${currentDocument._id}`,
label: currentDocument.extraFields.find(e => e.id === "name")?.value,
pairedField: field.id
pairedField: field.id,
isCategory: currentDocument.extraFields.find(e => e.id === "categorySwitch")?.value,
isDead: currentDocument.extraFields.find(e => e.id === "deadSwitch")?.value
}
await PairedObjectDB.put(pairedDocument)
@ -200,7 +202,8 @@ export const many_addRelationShipToAnotherObject = async (
url: `/project/display-content/${currentDocument.type}/${currentDocument._id}`,
label: currentDocument.extraFields.find(e => e.id === "name")?.value,
pairedField: field.id,
isCategory: currentDocument.extraFields.find(e => e.id === "categorySwitch")?.value
isCategory: currentDocument.extraFields.find(e => e.id === "categorySwitch")?.value,
isDead: currentDocument.extraFields.find(e => e.id === "deadSwitch")?.value
}
pairedFieldValue = (Array.isArray(pairedFieldValue)) ? pairedFieldValue : []

View file

@ -1,5 +1,3 @@
- Add "is dead" or some similar switch to documents and show strike-through/etc on items in lists, tombstone icon or overlay crossed out icon
- Add "Related notes"
- Add "Predecessors", "Successors", "Date of start", "Date of end" and "How long it lasted" fields to locations and all other groups
- Save scroll distance when switching tabs (consider some auto-scroll when opening edit mode)