fantasia-archive/src/databaseManager/blueprints/languages.ts

215 lines
6.1 KiB
TypeScript
Raw Normal View History

import { I_Blueprint } from "../../interfaces/I_Blueprint"
2021-02-09 15:21:48 +13:00
export const languagesBlueprint: I_Blueprint = {
_id: "languages",
2021-02-09 15:21:48 +13:00
order: 9,
namePlural: "Languages",
nameSingular: "Language",
2021-02-09 15:21:48 +13:00
icon: "mdi-book-alphabet",
extraFields: [
2021-02-09 15:21:48 +13:00
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "name",
name: "Name",
type: "text",
icon: "mdi-account",
2021-02-21 01:06:21 +13:00
sizing: 3
},
{
id: "documentColor",
name: "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: "parentDoc",
2021-02-09 15:21:48 +13:00
name: "Belongs under",
type: "singleToNoneRelationship",
2021-02-21 01:06:21 +13:00
tooltip:
`This field is used to build up custom hierarchical tree structure in the main list of items in the left side of the app.
<br> You can use this for an infinite amount of sub-levels to the hierarchical structure.
<br> An example would be multiple sub-groups (provinces) of Roman Empire belonging under the main political group called "Roman Empire".
`,
sizing: 3,
relationshipSettings: {
connectedObjectType: "languages"
}
},
{
id: "order",
name: "Order number",
type: "number",
icon: "mdi-file-tree",
2021-02-21 01:06:21 +13:00
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: 2
},
{
id: "categorySwitch",
name: "Is a category",
type: "switch",
icon: "fas fa-folder-open",
tooltip:
`This setting allows for setting the current document to category mode.
<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
},
{
id: "otherNames",
2021-02-21 01:06:21 +13:00
name: "Other names & Epithets",
type: "list",
2021-02-09 15:21:48 +13:00
icon: "mdi-book-plus",
sizing: 6
2021-02-09 15:21:48 +13:00
},
{
id: "languageFamily",
name: "Language family",
type: "manyToManyRelationship",
icon: "mdi-book-alphabet",
sizing: 4,
relationshipSettings: {
connectedObjectType: "languages",
connectedField: "languageFamily"
}
},
{
id: "speakerCount",
name: "Estimated speaker count",
type: "text",
icon: "mdi-account-group",
sizing: 2
},
{
id: "predecessorLanguages",
name: "Predecessor languages",
type: "manyToManyRelationship",
icon: "mdi-book-alphabet",
sizing: 6,
relationshipSettings: {
connectedObjectType: "languages",
connectedField: "predecessorLanguages"
}
},
{
id: "followingLanguages",
name: "Evolved into languages",
type: "manyToManyRelationship",
icon: "mdi-book-alphabet",
sizing: 6,
relationshipSettings: {
connectedObjectType: "languages",
connectedField: "followingLanguages"
}
},
{
id: "description",
name: "History & Conteporary situation",
type: "wysiwyg",
sizing: 12
},
{
id: "traditions",
name: "Traditions & Customs connected to the language",
type: "wysiwyg",
sizing: 12
},
{
id: "breakSpeakers",
name: "Spoken in groups, areas and by characters",
type: "break",
sizing: 12
},
{
id: "pairedCharacter",
name: "Prominent speakers",
type: "manyToManyRelationship",
icon: "mdi-account",
sizing: 4,
relationshipSettings: {
connectedObjectType: "characters",
connectedField: "pairedLanguage"
}
},
{
id: "usedByRaces",
name: "Spoken by species/races",
type: "manyToManyRelationship",
icon: "fas fa-dragon",
sizing: 4,
relationshipSettings: {
connectedObjectType: "races",
connectedField: "localLanguages"
}
},
{
id: "pairedLocations",
name: "Spoken in locations",
type: "manyToManyRelationship",
icon: "mdi-map-marker-radius",
sizing: 4,
relationshipSettings: {
connectedObjectType: "locations",
connectedField: "pairedLanguages"
}
},
{
id: "usedInPoliticalGroups",
name: "Spoken in political groups/ideologies",
type: "manyToManyRelationship",
icon: "mdi-bank-outline",
sizing: 6,
relationshipSettings: {
connectedObjectType: "politicalGroups",
connectedField: "localLanguages"
}
},
{
id: "usedInReligiousGroups",
name: "Spoken in religious groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-ankh",
sizing: 6,
relationshipSettings: {
connectedObjectType: "religions",
connectedField: "localLanguages"
}
},
{
id: "usedInMagicalGroups",
name: "Spoken in magical groups/institutions",
type: "manyToManyRelationship",
icon: "fas fa-hat-wizard",
sizing: 6,
relationshipSettings: {
connectedObjectType: "magic",
connectedField: "localLanguages"
}
},
{
id: "usedInTechGroups",
name: "Spoken in science/technology groups/institutions",
type: "manyToManyRelationship",
icon: "fas fa-wrench",
sizing: 6,
relationshipSettings: {
connectedObjectType: "tech",
connectedField: "localLanguages"
}
}
]
}