Initial commit: OOODMDK website with updated cities page design

This commit is contained in:
albivkt
2025-06-29 03:18:28 +03:00
commit 5a37ded261
70 changed files with 41347 additions and 0 deletions

62
cms/schemaTypes/about.js Normal file
View 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,
},
},
],
};

View 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',
},
],
}

View 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
View 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]

View 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'}],
},
],
}