Initial commit: OOODMDK website with updated cities page design
This commit is contained in:
62
cms/schemaTypes/about.js
Normal file
62
cms/schemaTypes/about.js
Normal file
@ -0,0 +1,62 @@
|
||||
export default {
|
||||
name: 'about',
|
||||
title: 'О нас',
|
||||
type: 'document',
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
title: 'Заголовок',
|
||||
type: 'string',
|
||||
initialValue: 'О НАС',
|
||||
},
|
||||
{
|
||||
name: 'paragraph1',
|
||||
title: 'Абзац 1',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph2',
|
||||
title: 'Абзац 2',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph3',
|
||||
title: 'Абзац 3',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph4',
|
||||
title: 'Абзац 4',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph5',
|
||||
title: 'Абзац 5',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph6',
|
||||
title: 'Абзац 6',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph7',
|
||||
title: 'Абзац 7',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'paragraph8',
|
||||
title: 'Абзац 8',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'images',
|
||||
title: 'Изображения',
|
||||
type: 'array',
|
||||
of: [{ type: 'image' }],
|
||||
options: {
|
||||
hotspot: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
45
cms/schemaTypes/category.js
Normal file
45
cms/schemaTypes/category.js
Normal file
@ -0,0 +1,45 @@
|
||||
export default {
|
||||
name: 'category',
|
||||
title: 'Категория',
|
||||
type: 'document',
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
title: 'Название',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'slug',
|
||||
title: 'Слаг',
|
||||
type: 'slug',
|
||||
options: {
|
||||
source: 'title',
|
||||
maxLength: 96,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'color',
|
||||
title: 'Цвет',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'elements',
|
||||
title: 'Элементы',
|
||||
type: 'array',
|
||||
of: [
|
||||
{
|
||||
type: 'object',
|
||||
fields: [
|
||||
{name: 'element', title: 'Обозначение элемента', type: 'string'},
|
||||
{name: 'elementNumber', title: 'Номер элемента', type: 'number'},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'order',
|
||||
title: 'Порядок отображения',
|
||||
type: 'number',
|
||||
},
|
||||
],
|
||||
}
|
33
cms/schemaTypes/documents.js
Normal file
33
cms/schemaTypes/documents.js
Normal file
@ -0,0 +1,33 @@
|
||||
export default {
|
||||
name: 'documents',
|
||||
title: 'Документ',
|
||||
type: 'document',
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
title: 'Название документа',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
title: 'Описание',
|
||||
type: 'text',
|
||||
},
|
||||
{
|
||||
name: 'file',
|
||||
title: 'Файл',
|
||||
type: 'file',
|
||||
options: {
|
||||
accept: '.pdf,.doc,.docx,.xlsx,.ppt,.pptx',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'icon',
|
||||
title: 'Иконка',
|
||||
type: 'image',
|
||||
options: {
|
||||
hotspot: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
6
cms/schemaTypes/index.js
Normal file
6
cms/schemaTypes/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
import about from './about'
|
||||
import category from './category'
|
||||
import product from './product'
|
||||
import documents from './documents'
|
||||
|
||||
export const schemaTypes = [about, product, category, documents]
|
52
cms/schemaTypes/product.js
Normal file
52
cms/schemaTypes/product.js
Normal file
@ -0,0 +1,52 @@
|
||||
export default {
|
||||
name: 'product',
|
||||
title: 'Продукт',
|
||||
type: 'document',
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
title: 'Название',
|
||||
type: 'string',
|
||||
},
|
||||
{
|
||||
name: 'slug',
|
||||
title: 'Слаг',
|
||||
type: 'slug',
|
||||
options: {
|
||||
source: 'title',
|
||||
maxLength: 96,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'descriptions',
|
||||
title: 'Описание',
|
||||
type: 'array',
|
||||
of: [{type: 'string'}],
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
title: 'Описание',
|
||||
type: 'text',
|
||||
},
|
||||
{
|
||||
name: 'image',
|
||||
title: 'Изображение',
|
||||
type: 'image',
|
||||
options: {
|
||||
hotspot: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'category',
|
||||
title: 'Категория',
|
||||
type: 'reference',
|
||||
to: {type: 'category'},
|
||||
},
|
||||
{
|
||||
name: 'items',
|
||||
title: 'Итемы',
|
||||
type: 'array',
|
||||
of: [{type: 'string'}],
|
||||
},
|
||||
],
|
||||
}
|
Reference in New Issue
Block a user