fantasia-archive/src/scripts/databaseManager/blueprints/politicalGroups.ts

437 lines
12 KiB
TypeScript
Raw Normal View History

2021-02-26 14:50:46 +13:00
import { I_Blueprint } from "../../../interfaces/I_Blueprint"
2021-02-09 15:21:48 +13:00
export const politicalGroupsBlueprint: I_Blueprint = {
_id: "politicalGroups",
order: 15,
2021-02-09 15:21:48 +13:00
namePlural: "Political groups/Ideologies",
nameSingular: "Political group/Ideology",
icon: "mdi-bank-outline",
extraFields: [
2021-02-09 15:21:48 +13:00
{
id: "breakBasic",
name: "Basic information",
type: "break",
sizing: 12
},
{
id: "name",
name: "Name",
type: "text",
2021-02-09 15:21:48 +13:00
icon: "mdi-bank-outline",
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: "politicalGroups"
}
},
{
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: "tags",
name: "Tags",
type: "tags",
icon: "mdi-tag",
tooltip:
`tags
`,
sizing: 12
},
{
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: "headquarters",
2021-02-21 01:06:21 +13:00
name: "Headquarters",
2021-02-09 15:21:48 +13:00
type: "singleToNoneRelationship",
icon: "mdi-map-marker-radius",
sizing: 4,
relationshipSettings: {
connectedObjectType: "locations"
}
},
{
id: "population",
name: "Population",
type: "text",
icon: "mdi-account-group",
sizing: 2
},
{
id: "leaders",
name: "Leading figures",
type: "manyToNoneRelationship",
icon: "mdi-crown",
sizing: 6,
relationshipSettings: {
connectedObjectType: "characters"
}
},
{
id: "formGovernment",
name: "Form of government",
type: "multiSelect",
icon: "fas fa-person-booth",
sizing: 6,
predefinedSelectValues: [
"Anarchism",
"Anarcho-capitalism",
"Anarchy",
"Aristocracy",
"Autocracy",
"Communism",
"Corporatocracy",
"Democracy",
"Despotism",
"Dictatorship",
"Fascism",
"Feudalism",
"Geniocracy",
"Matriarchy",
"Monarchy",
"Oligarchy",
"Patriarchy",
"Republic",
"Technocracy",
"Theocracy",
"Theodemocracy",
"Tyranny"
]
},
{
id: "localCurrencies",
name: "Used currencies",
type: "manyToManyRelationship",
icon: "fas fa-coins",
sizing: 4,
relationshipSettings: {
connectedObjectType: "currencies",
connectedField: "usedInPoliticalGroups"
}
},
{
id: "localLanguages",
name: "Used languages",
type: "manyToManyRelationship",
icon: "mdi-book-alphabet",
sizing: 4,
relationshipSettings: {
connectedObjectType: "languages",
connectedField: "usedInPoliticalGroups"
}
},
{
id: "connectedRaces",
name: "Common species/races",
type: "manyToManyRelationship",
icon: "fas fa-dragon",
sizing: 4,
relationshipSettings: {
connectedObjectType: "races",
connectedField: "commonInPoliticalGroups"
}
},
{
id: "description",
name: "Description & History",
type: "wysiwyg",
sizing: 12
},
{
id: "traditions",
name: "Traditions & Customs",
type: "wysiwyg",
sizing: 12
},
{
id: "breakRelasionships",
name: "Diplomatic relationships & Influences",
type: "break",
sizing: 12
},
{
id: "governLocations",
name: "Ruled locations",
type: "manyToManyRelationship",
icon: "mdi-map-marker-radius",
sizing: 6,
relationshipSettings: {
connectedObjectType: "locations",
connectedField: "governPolitical"
}
},
{
id: "connectedLocations",
name: "Connected locations",
type: "manyToManyRelationship",
icon: "mdi-map-marker-radius",
sizing: 6,
relationshipSettings: {
connectedObjectType: "locations",
connectedField: "connectedPolitical"
}
},
2021-03-08 11:07:40 +13:00
{
id: "pairedConnectionCharacter",
name: "Connected characters",
type: "manyToManyRelationship",
icon: "mdi-account",
sizing: 6,
relationshipSettings: {
connectedObjectType: "characters",
connectedField: "pairedConnectionPolGroup"
}
},
2021-02-09 15:21:48 +13:00
{
id: "pairedBelongingCharacter",
name: "Prominent members",
type: "manyToManyRelationship",
icon: "mdi-account",
2021-03-08 11:07:40 +13:00
sizing: 6,
2021-02-09 15:21:48 +13:00
relationshipSettings: {
connectedObjectType: "characters",
connectedField: "pairedBelongingPolGroup"
}
},
{
id: "pairedAllyCharacter",
name: "Prominent allies",
type: "manyToManyRelationship",
icon: "mdi-account",
2021-03-08 11:07:40 +13:00
sizing: 6,
2021-02-09 15:21:48 +13:00
relationshipSettings: {
connectedObjectType: "characters",
connectedField: "pairedAllyPolGroup"
}
},
{
id: "pairedEnemyCharacter",
name: "Prominent enemies",
type: "manyToManyRelationship",
icon: "mdi-account",
2021-03-08 11:07:40 +13:00
sizing: 6,
2021-02-09 15:21:48 +13:00
relationshipSettings: {
connectedObjectType: "characters",
connectedField: "pairedEnemyPolGroup"
}
},
{
id: "pairedConnectedPolGroups",
name: "Connected political groups/ideologies",
type: "manyToManyRelationship",
icon: "mdi-bank-outline",
sizing: 4,
relationshipSettings: {
connectedObjectType: "politicalGroups",
connectedField: "pairedConnectedPolGroups"
}
},
{
id: "pairedAllyPolGroups",
name: "Allied political groups/ideologies",
type: "manyToManyRelationship",
icon: "mdi-bank-outline",
sizing: 4,
relationshipSettings: {
connectedObjectType: "politicalGroups",
connectedField: "pairedAllyPolGroups"
}
},
{
id: "pairedEnemyPolGroups",
name: "Enemy political groups/ideologies",
type: "manyToManyRelationship",
icon: "mdi-bank-outline",
sizing: 4,
relationshipSettings: {
connectedObjectType: "politicalGroups",
connectedField: "pairedEnemyPolGroups"
}
},
{
id: "pairedConnectedReligiousGroups",
name: "Connected religious groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-ankh",
sizing: 4,
relationshipSettings: {
connectedObjectType: "religions",
connectedField: "pairedConnectedPolGroups"
}
},
{
id: "pairedAllyReligiousGroups",
name: "Allied religious groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-ankh",
sizing: 4,
relationshipSettings: {
connectedObjectType: "religions",
connectedField: "pairedAllyPolGroups"
}
},
{
id: "pairedEnemyReligiousGroups",
name: "Enemy religious groups/teaching",
type: "manyToManyRelationship",
icon: "fas fa-ankh",
sizing: 4,
relationshipSettings: {
connectedObjectType: "religions",
connectedField: "pairedEnemyPolGroups"
}
},
{
id: "pairedConnectedMagicalGroups",
name: "Connected magical groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-hat-wizard",
sizing: 4,
relationshipSettings: {
connectedObjectType: "magic",
connectedField: "pairedConnectedPolGroups"
}
},
{
id: "pairedAllyMagicalGroups",
name: "Allied magical groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-hat-wizard",
sizing: 4,
relationshipSettings: {
connectedObjectType: "magic",
connectedField: "pairedAllyPolGroups"
}
},
{
id: "pairedEnemyMagicalGroups",
name: "Enemy magical groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-hat-wizard",
sizing: 4,
relationshipSettings: {
connectedObjectType: "magic",
connectedField: "pairedEnemyPolGroups"
}
},
{
id: "pairedConnectedTechGroups",
name: "Connected scientifical/technological groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-wrench",
sizing: 4,
relationshipSettings: {
connectedObjectType: "tech",
connectedField: "pairedConnectedPolGroups"
}
},
{
id: "pairedAllyTechGroups",
name: "Allied scientifical/technological groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-wrench",
sizing: 4,
relationshipSettings: {
connectedObjectType: "tech",
connectedField: "pairedAllyPolGroups"
}
},
{
id: "pairedEnemyTechGroups",
name: "Enemy scientifical/technological groups/teachings",
type: "manyToManyRelationship",
icon: "fas fa-wrench",
sizing: 4,
relationshipSettings: {
connectedObjectType: "tech",
connectedField: "pairedEnemyPolGroups"
}
},
{
id: "breakOther",
name: "Other details",
type: "break",
sizing: 12
},
{
id: "connectedEvents",
name: "Connected events",
type: "manyToManyRelationship",
icon: "mdi-calendar-text",
sizing: 4,
relationshipSettings: {
connectedObjectType: "events",
connectedField: "connectedPolitical"
}
},
{
id: "pairedConnectedMyths",
2021-03-08 11:07:40 +13:00
name: "Connected to myths. legends and stories",
2021-02-09 15:21:48 +13:00
type: "manyToManyRelationship",
icon: "fas fa-journal-whills",
sizing: 4,
relationshipSettings: {
connectedObjectType: "myths",
connectedField: "pairedConnectedPolGroups"
}
},
{
id: "pairedConnectedItems",
name: "Connected legendary items/artifacts",
type: "manyToManyRelationship",
icon: "mdi-sword-cross",
sizing: 4,
relationshipSettings: {
connectedObjectType: "items",
connectedField: "pairedConnectedPolGroups"
}
}
]
}