Updated stuff

This commit is contained in:
DrMint 2022-06-28 00:23:06 +02:00
parent 734654988f
commit a28cbf962d
11 changed files with 1732 additions and 1492 deletions

10
config/plugins.js Normal file
View File

@ -0,0 +1,10 @@
module.exports = {
meilisearch: {
config: {
"weapon-story": {
indexName: "nested-weapon-story",
populateEntryRule: ["stories.translations", "translations"],
}
}
},
}

3103
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,10 +10,10 @@
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-graphql": "4.1.11",
"@strapi/strapi": "4.1.11",
"@strapi/plugin-graphql": "4.1.12",
"@strapi/strapi": "4.1.12",
"sqlite3": "5.0.8",
"strapi-plugin-meilisearch": "^0.6.4"
"strapi-plugin-meilisearch": "0.6.5"
},
"author": {
"name": "A Strapi developer"

View File

@ -1,2 +1,3 @@
tar -czvf backups/db_backup$(date +"%Y-%m-%d-%h-%M-%s").tar.gz .tmp/data.db
npx strapi build
npm run develop

View File

@ -40,6 +40,12 @@
"type": "component",
"repeatable": true,
"component": "collections-component.event"
},
"wiki_pages": {
"type": "relation",
"relation": "manyToMany",
"target": "api::wiki-page.wiki-page",
"mappedBy": "chronology_items"
}
}
}

View File

@ -47,6 +47,12 @@
"relation": "manyToOne",
"target": "api::weapon-story-group.weapon-story-group",
"inversedBy": "weapons"
},
"wiki_page": {
"type": "relation",
"relation": "oneToOne",
"target": "api::wiki-page.wiki-page",
"mappedBy": "weapon"
}
}
}

View File

@ -441,6 +441,30 @@
},
"search_title": {
"type": "string"
},
"want_it": {
"type": "string"
},
"have_it": {
"type": "string"
},
"source": {
"type": "string"
},
"reset_all_filters": {
"type": "string"
},
"only_display_items_i_have": {
"type": "string"
},
"only_display_items_i_want": {
"type": "string"
},
"only_display_unmarked_items": {
"type": "string"
},
"display_all_items": {
"type": "string"
}
}
}

View File

@ -25,14 +25,6 @@
"images"
]
},
"Aspects": {
"type": "dynamiczone",
"components": [
"wiki-specialization.chronology",
"wiki-specialization.glossary-item",
"wiki-specialization.weapon"
]
},
"categories": {
"type": "relation",
"relation": "oneToMany",
@ -43,6 +35,23 @@
"type": "component",
"repeatable": true,
"component": "translations.wiki"
},
"chronology_items": {
"type": "relation",
"relation": "manyToMany",
"target": "api::chronology-item.chronology-item",
"inversedBy": "wiki_pages"
},
"weapon": {
"type": "relation",
"relation": "oneToOne",
"target": "api::weapon-story.weapon-story",
"inversedBy": "wiki_page"
},
"definitions": {
"type": "component",
"repeatable": true,
"component": "wiki-specialization.glossary-item"
}
}
}

View File

@ -24,7 +24,8 @@
"required": true
},
"body": {
"type": "richtext"
"type": "richtext",
"required": true
},
"authors": {
"type": "relation",

View File

@ -0,0 +1,35 @@
{
"collectionName": "components_collections_component_definitions",
"info": {
"displayName": "Definition",
"icon": "atlas"
},
"options": {},
"attributes": {
"source": {
"type": "relation",
"relation": "oneToOne",
"target": "api::source.source"
},
"definition": {
"type": "richtext",
"required": true
},
"source_language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"status": {
"type": "enumeration",
"enum": [
"Incomplete",
"Draft",
"Review",
"Done"
],
"default": "Incomplete",
"required": true
}
}
}

View File

@ -25,6 +25,11 @@
],
"default": "Incomplete",
"required": true
},
"source_language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}