Added files to the repo

This commit is contained in:
DrMint 2021-12-10 11:06:04 +01:00
parent 5a4eb4c9f3
commit 3f3f1f16a6
86 changed files with 32443 additions and 0 deletions

16
.editorconfig Normal file
View File

@ -0,0 +1,16 @@
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false

2
.env.example Normal file
View File

@ -0,0 +1,2 @@
HOST=0.0.0.0
PORT=1337

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
.cache
build
**/node_modules/**

27
.eslintrc Normal file
View File

@ -0,0 +1,27 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"es6": true,
"node": true,
"browser": false
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": false
},
"sourceType": "module"
},
"globals": {
"strapi": true
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"no-console": 0,
"quotes": ["error", "single"],
"semi": ["error", "always"]
}
}

114
.gitignore vendored Normal file
View File

@ -0,0 +1,114 @@
############################
# OS X
############################
.DS_Store
.AppleDouble
.LSOverride
Icon
.Spotlight-V100
.Trashes
._*
############################
# Linux
############################
*~
############################
# Windows
############################
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msm
*.msp
############################
# Packages
############################
*.7z
*.csv
*.dat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.com
*.class
*.dll
*.exe
*.o
*.seed
*.so
*.swo
*.swp
*.swn
*.swm
*.out
*.pid
############################
# Logs and databases
############################
.tmp
*.log
*.sql
*.sqlite
*.sqlite3
############################
# Misc.
############################
*#
ssl
.idea
nbproject
public/uploads/*
!public/uploads/.gitkeep
############################
# Node.js
############################
lib-cov
lcov.info
pids
logs
results
node_modules
.node_history
############################
# Tests
############################
testApp
coverage
############################
# Strapi
############################
.env
license.txt
exports
*.cache
build
.strapi-updater.json

5
config/admin.js Normal file
View File

@ -0,0 +1,5 @@
module.exports = ({ env }) => ({
auth: {
secret: env('ADMIN_JWT_SECRET', '5b7570ef6a700c64483c58ca224d87f7'),
},
});

7
config/api.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
rest: {
defaultLimit: 25,
maxLimit: 100,
withCount: true,
},
};

11
config/database.js Normal file
View File

@ -0,0 +1,11 @@
const path = require('path');
module.exports = ({ env }) => ({
connection: {
client: 'sqlite',
connection: {
filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
},
useNullAsDefault: true,
},
});

11
config/middlewares.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = [
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::favicon',
'strapi::public',
];

4
config/server.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
});

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

30986
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

3
public/robots.txt Normal file
View File

@ -0,0 +1,3 @@
# To prevent search engines from seeing the site altogether, uncomment the next two lines:
# User-Agent: *
# Disallow: /

0
public/uploads/.gitkeep Normal file
View File

1
run_strapi.sh Executable file
View File

@ -0,0 +1 @@
npm run develop

33
src/admin/app.js Normal file
View File

@ -0,0 +1,33 @@
export default {
config: {
locales: [
// 'ar',
'fr',
// 'cs',
// 'de',
// 'dk',
// 'es',
// 'he',
// 'id',
// 'it',
// 'ja',
// 'ko',
// 'ms',
// 'nl',
// 'no',
// 'pl',
// 'pt-BR',
// 'pt',
// 'ru',
// 'sk',
// 'sv',
// 'th',
// 'tr',
// 'uk',
// 'vi',
// 'zh-Hans',
// 'zh',
],
},
bootstrap() {},
};

View File

@ -0,0 +1,9 @@
'use strict';
/* eslint-disable no-unused-vars */
module.exports = (config, webpack) => {
// Note: we provide webpack above so you should not `require` it
// Perform customizations to webpack config
// Important: return the modified config
return config;
};

0
src/api/.gitkeep Normal file
View File

View File

@ -0,0 +1,34 @@
{
"kind": "collectionType",
"collectionName": "categories",
"info": {
"singularName": "category",
"pluralName": "categories",
"displayName": "Category",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true,
"unique": true
},
"short": {
"type": "string",
"required": true,
"unique": true
},
"series": {
"type": "enumeration",
"enum": [
"Drakengard",
"NieR",
"YoRHa"
]
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* category controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::category.category');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* category router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::category.category');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* category service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::category.category');

View File

@ -0,0 +1,43 @@
{
"kind": "collectionType",
"collectionName": "chronology_eras",
"info": {
"singularName": "chronology-era",
"pluralName": "chronology-eras",
"displayName": "Chronology Era",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"starting_year": {
"pluginOptions": {},
"type": "integer",
"max": 13000,
"min": 0,
"required": true
},
"ending_year": {
"pluginOptions": {},
"type": "integer",
"required": true,
"max": 13000,
"min": 0
},
"slug": {
"pluginOptions": {},
"type": "string",
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"required": true,
"unique": true
},
"title": {
"displayName": "Chronology Era",
"type": "component",
"repeatable": true,
"component": "translations.chronology-era"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronology-era controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::chronology-era.chronology-era');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronology-era router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::chronology-era.chronology-era');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronology-era service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::chronology-era.chronology-era');

View File

@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "chronology_items",
"info": {
"singularName": "chronology-item",
"pluralName": "chronology-items",
"displayName": "Chronology Item",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"year": {
"pluginOptions": {},
"type": "integer",
"required": true,
"max": 13000,
"min": 0
},
"month": {
"pluginOptions": {},
"type": "integer",
"max": 12,
"min": 1
},
"day": {
"pluginOptions": {},
"type": "integer",
"max": 31,
"min": 1
},
"displayed_date": {
"pluginOptions": {},
"type": "string"
},
"translations": {
"type": "component",
"repeatable": true,
"component": "translations.chronology-item"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronology-item controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::chronology-item.chronology-item');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronology-item router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::chronology-item.chronology-item');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronology-item service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::chronology-item.chronology-item');

View File

@ -0,0 +1,30 @@
{
"kind": "collectionType",
"collectionName": "currencies",
"info": {
"singularName": "currency",
"pluralName": "currencies",
"displayName": "Currency",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"symbol": {
"type": "string",
"required": true,
"maxLength": 1,
"minLength": 1,
"unique": false
},
"code": {
"type": "string",
"unique": true,
"minLength": 3,
"maxLength": 3,
"required": true
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* currency controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::currency.currency');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* currency router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::currency.currency');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* currency service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::currency.currency');

View File

@ -0,0 +1,22 @@
{
"kind": "collectionType",
"collectionName": "game_platforms",
"info": {
"singularName": "game-platform",
"pluralName": "game-platforms",
"displayName": "Game Platform",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"short": {
"type": "string"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* game-platform controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::game-platform.game-platform');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* game-platform router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::game-platform.game-platform');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* game-platform service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::game-platform.game-platform');

View File

@ -0,0 +1,43 @@
{
"kind": "collectionType",
"collectionName": "glossary_items",
"info": {
"singularName": "glossary-item",
"pluralName": "glossary-items",
"displayName": "Glossary Item",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"type": {
"type": "enumeration",
"enum": [
"Character",
"Place",
"Term",
"Common_noun"
]
},
"title": {
"displayName": "Glossary Item",
"type": "component",
"repeatable": true,
"component": "translations.glossary-item"
},
"definitions": {
"displayName": "Glossary Definition",
"type": "component",
"repeatable": true,
"component": "collections-component.glossary-definition"
},
"slug": {
"type": "string",
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* glossary-item controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::glossary-item.glossary-item');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* glossary-item router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::glossary-item.glossary-item');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* glossary-item service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::glossary-item.glossary-item');

View File

@ -0,0 +1,29 @@
{
"kind": "collectionType",
"collectionName": "languages",
"info": {
"singularName": "language",
"pluralName": "languages",
"displayName": "Language",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true
},
"code": {
"type": "string",
"unique": true,
"required": true,
"regex": "^[a-z]+-[a-z]+$|^[a-z]+$"
},
"localized_name": {
"type": "string"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* language controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::language.language');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* language router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::language.language');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* language service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::language.language');

View File

@ -0,0 +1,86 @@
{
"kind": "collectionType",
"collectionName": "library_items",
"info": {
"singularName": "library-item",
"pluralName": "library-items",
"displayName": "Library Item",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"title": {
"pluginOptions": {},
"type": "string",
"required": true
},
"subtitle": {
"pluginOptions": {},
"type": "string"
},
"slug": {
"pluginOptions": {},
"type": "string",
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"required": true,
"unique": true
},
"thumbnail": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {}
},
"subitems": {
"type": "relation",
"relation": "manyToMany",
"target": "api::library-item.library-item",
"inversedBy": "subitem_of"
},
"subitem_of": {
"type": "relation",
"relation": "manyToMany",
"target": "api::library-item.library-item",
"inversedBy": "subitems"
},
"root_item": {
"pluginOptions": {},
"type": "boolean",
"default": true,
"required": true
},
"price": {
"type": "component",
"repeatable": false,
"pluginOptions": {},
"component": "basics.price"
},
"variants": {
"type": "relation",
"relation": "manyToOne",
"target": "api::library-variant.library-variant",
"inversedBy": "items"
},
"metadata": {
"pluginOptions": {},
"type": "dynamiczone",
"components": [
"metadata.books",
"metadata.video"
],
"max": 1
},
"size": {
"type": "component",
"repeatable": false,
"pluginOptions": {},
"component": "basics.size"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* library-item controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::library-item.library-item');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* library-item router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::library-item.library-item');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* library-item service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::library-item.library-item');

View File

@ -0,0 +1,22 @@
{
"kind": "collectionType",
"collectionName": "library_variants",
"info": {
"singularName": "library-variant",
"pluralName": "library-variants",
"displayName": "Library Variant",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"items": {
"type": "relation",
"relation": "oneToMany",
"target": "api::library-item.library-item",
"mappedBy": "variants"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* library-variant controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::library-variant.library-variant');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* library-variant router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::library-variant.library-variant');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* library-variant service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::library-variant.library-variant');

View File

@ -0,0 +1,35 @@
{
"kind": "collectionType",
"collectionName": "posts",
"info": {
"singularName": "post",
"pluralName": "posts",
"displayName": "Post",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"content": {
"pluginOptions": {},
"type": "dynamiczone",
"components": [
"page-builder.text",
"page-builder.tabs",
"page-builder.gallery",
"page-builder.grid"
]
},
"title": {
"pluginOptions": {},
"type": "string"
},
"authors": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* post controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::post.post');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* post router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::post.post');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* post service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::post.post');

View File

@ -0,0 +1,47 @@
{
"kind": "collectionType",
"collectionName": "recorders",
"info": {
"singularName": "recorder",
"pluralName": "recorders",
"displayName": "Recorder",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"username": {
"type": "string",
"unique": true,
"required": true
},
"anonymize": {
"type": "boolean",
"default": false,
"required": true
},
"anonymous_code": {
"type": "string",
"regex": "^[0-9]{4}$",
"unique": true,
"required": true,
"maxLength": 4,
"minLength": 4
},
"avatar": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* recorder controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::recorder.recorder');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* recorder router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::recorder.recorder');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* recorder service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::recorder.recorder');

View File

@ -0,0 +1,51 @@
{
"kind": "collectionType",
"collectionName": "weapon_stories",
"info": {
"singularName": "weapon-story",
"pluralName": "weapon-stories",
"displayName": "Weapon Story",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"type": {
"type": "enumeration",
"enum": [
"Axe",
"Chakram",
"Combat_Bracers",
"Hammer",
"Longsword",
"Mace",
"One_handed_Sword",
"Pole_Axe",
"Rod",
"Spear",
"Staff",
"Sword",
"Two_handed_Sword"
]
},
"name": {
"displayName": "Weapon Story",
"type": "component",
"repeatable": false,
"component": "translations.weapon-story"
},
"slug": {
"type": "string",
"required": false,
"unique": true,
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"stories": {
"type": "component",
"repeatable": true,
"component": "collections-component.weapon-story"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* weapon-story controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::weapon-story.weapon-story');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* weapon-story router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::weapon-story.weapon-story');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* weapon-story service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::weapon-story.weapon-story');

View File

@ -0,0 +1,19 @@
{
"collectionName": "components_basics_prices",
"info": {
"displayName": "Price",
"icon": "dollar-sign",
"description": ""
},
"options": {},
"attributes": {
"amount": {
"type": "decimal"
},
"currency": {
"type": "relation",
"relation": "oneToOne",
"target": "api::currency.currency"
}
}
}

View File

@ -0,0 +1,23 @@
{
"collectionName": "components_basics_sizes",
"info": {
"displayName": "Size",
"icon": "arrows-alt-h",
"description": ""
},
"options": {},
"attributes": {
"width": {
"type": "integer",
"min": 0
},
"height": {
"type": "integer",
"min": 0
},
"thickness": {
"type": "integer",
"min": 0
}
}
}

View File

@ -0,0 +1,22 @@
{
"collectionName": "components_collections_component_glossary_definitions",
"info": {
"displayName": "Glossary Definition",
"icon": "asterisk",
"description": ""
},
"options": {},
"attributes": {
"category": {
"type": "relation",
"relation": "oneToOne",
"target": "api::category.category"
},
"translations": {
"displayName": "Glossary Definition",
"type": "component",
"repeatable": true,
"component": "translations.glossary-definition"
}
}
}

View File

@ -0,0 +1,31 @@
{
"collectionName": "components_collections_component_weapon_stories",
"info": {
"displayName": "Weapon Story",
"icon": "file",
"description": ""
},
"options": {},
"attributes": {
"translations": {
"displayName": "Weapon Story Story",
"type": "component",
"repeatable": true,
"component": "translations.weapon-story-story"
},
"category": {
"type": "enumeration",
"enum": [
"DOD1",
"DOD2",
"DOD3",
"NieR",
"NieR_Automata",
"NieR_1_22",
"SINoALICE",
"Reincarnation"
],
"required": true
}
}
}

View File

@ -0,0 +1,29 @@
{
"collectionName": "components_metadata_books",
"info": {
"displayName": "Book",
"icon": "book",
"description": ""
},
"options": {},
"attributes": {
"binding_type": {
"type": "enumeration",
"enum": [
"Paperback",
"Hardcover"
],
"default": "Paperback",
"required": true
},
"page_count": {
"type": "integer",
"min": 0
},
"languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,30 @@
{
"collectionName": "components_metadata_videos",
"info": {
"displayName": "Video",
"icon": "video",
"description": ""
},
"options": {},
"attributes": {
"resolution": {
"type": "enumeration",
"enum": [
"SD_480p",
"HD_720p",
"FullHD_1080p",
"QuadHD_2160p"
]
},
"audio_languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
},
"sub_languages": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,13 @@
{
"collectionName": "components_page_builder_component_panes",
"info": {
"displayName": "Pane",
"icon": "poll-h"
},
"options": {},
"attributes": {
"text": {
"type": "richtext"
}
}
}

View File

@ -0,0 +1,14 @@
{
"collectionName": "components_page_builder_component_tabs",
"info": {
"displayName": "Tab",
"icon": "folder-plus",
"description": ""
},
"options": {},
"attributes": {
"text": {
"type": "richtext"
}
}
}

View File

@ -0,0 +1,18 @@
{
"collectionName": "components_page_builder_galleries",
"info": {
"displayName": "Gallery",
"icon": "images"
},
"options": {},
"attributes": {
"gallery": {
"allowedTypes": [
"videos",
"images"
],
"type": "media",
"multiple": true
}
}
}

View File

@ -0,0 +1,23 @@
{
"collectionName": "components_page_builder_grids",
"info": {
"displayName": "Grid",
"icon": "grip-horizontal",
"description": ""
},
"options": {},
"attributes": {
"column_count": {
"type": "integer",
"min": 1,
"max": 10,
"required": true,
"default": 1
},
"panes": {
"type": "component",
"repeatable": true,
"component": "page-builder-component.pane"
}
}
}

View File

@ -0,0 +1,17 @@
{
"collectionName": "components_page_builder_tabs",
"info": {
"displayName": "Tabs",
"icon": "folder",
"description": ""
},
"options": {},
"attributes": {
"tabs": {
"displayName": "tab",
"type": "component",
"repeatable": true,
"component": "page-builder-component.tab"
}
}
}

View File

@ -0,0 +1,14 @@
{
"collectionName": "components_page_builder_texts",
"info": {
"displayName": "Text",
"icon": "align-left",
"description": ""
},
"options": {},
"attributes": {
"text": {
"type": "richtext"
}
}
}

View File

@ -0,0 +1,18 @@
{
"collectionName": "components_translations_chronology_eras",
"info": {
"displayName": "Chronology Era",
"icon": "volume-mute"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,22 @@
{
"collectionName": "components_translations_chronology_items",
"info": {
"displayName": "Chronology Item",
"icon": "clock",
"description": ""
},
"options": {},
"attributes": {
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"title": {
"type": "string"
},
"description": {
"type": "text"
}
}
}

View File

@ -0,0 +1,19 @@
{
"collectionName": "components_translations_glossary_definitions",
"info": {
"displayName": "Glossary Definition",
"icon": "atlas",
"description": ""
},
"options": {},
"attributes": {
"definition": {
"type": "text"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,19 @@
{
"collectionName": "components_translations_glossary_items",
"info": {
"displayName": "Glossary Item",
"icon": "kiwi-bird",
"description": ""
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,31 @@
{
"collectionName": "components_translations_weapon_story_stories",
"info": {
"displayName": "Weapon Story Story",
"icon": "passport",
"description": ""
},
"options": {},
"attributes": {
"description": {
"type": "text"
},
"level_1": {
"type": "text"
},
"level_2": {
"type": "text"
},
"level_3": {
"type": "text"
},
"level_4": {
"type": "text"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,19 @@
{
"collectionName": "components_translations_weapon_stories",
"info": {
"displayName": "Weapon Story",
"icon": "file-alt",
"description": ""
},
"options": {},
"attributes": {
"name": {
"type": "string"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

0
src/extensions/.gitkeep Normal file
View File

20
src/index.js Normal file
View File

@ -0,0 +1,20 @@
'use strict';
module.exports = {
/**
* An asynchronous register function that runs before
* your application is initialized.
*
* This gives you an opportunity to extend code.
*/
register(/*{ strapi }*/) {},
/**
* An asynchronous bootstrap function that runs before
* your application gets started.
*
* This gives you an opportunity to set up your data model,
* run jobs, or perform some special logic.
*/
bootstrap(/*{ strapi }*/) {},
};