Add Site Studio themes and Theme Manager

Support categorized fragments, theme presets, block widths, and server-backed theme editing with onboarding and preview.

Include Site Studio, design sources, specification and verification reports; remove the legacy studio-site example.
This commit is contained in:
2026-11-13 14:04:49 +03:00
parent 231490bb7c
commit 0d171915d7
408 changed files with 11812 additions and 550 deletions
@@ -0,0 +1,19 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: collection_list
name: Список коллекции
category: data
version: 1
fields:
- key: heading
type: text
required: false
- key: collection
type: select
required: true
- key: sort
type: select
required: false
- key: limit
type: number
required: false
slots: {}
@@ -0,0 +1,6 @@
name: Список коллекции
props:
heading: ''
collection: ''
sort: ''
limit: ''
@@ -0,0 +1 @@
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Направления' }}</h2><p class="section-lead">Технологические решения для ваших процессов.</p><div class="cards">{% for item in query_entries(props.collection, props.sort or 'order', props.limit or 6) %}<a class="card" href="{{ site_link(item.url) }}"><small>0{{ loop.index }} / {{ item.collection|upper }}</small><strong>{{ item.title }}</strong><p>{{ item.summary }}</p></a>{% else %}<p>Пока нет опубликованных записей.</p>{% endfor %}</div></div></section>
@@ -0,0 +1,13 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: entry_card
name: Карточка записи
category: data
version: 1
fields:
- key: heading
type: text
required: false
- key: entry
type: ref
required: true
slots: {}
@@ -0,0 +1,4 @@
name: Карточка записи
props:
heading: ''
entry: ''
@@ -0,0 +1 @@
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Рекомендуем' }}</h2>{% set item = entry_by_ref(props.entry) %}{% if item %}<a class="card standalone" href="{{ site_link(item.url) }}"><small>{{ item.collection|upper }}</small><strong>{{ item.title }}</strong><p>{{ item.summary }}</p></a>{% endif %}</div></section>
@@ -0,0 +1,16 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: entry_header
name: Заголовок записи
category: data
version: 1
fields:
- key: title
type: text
required: true
- key: summary
type: textarea
required: false
- key: image
type: asset
required: false
slots: {}
@@ -0,0 +1,5 @@
name: Заголовок записи
props:
title: ''
summary: ''
image: ''
@@ -0,0 +1 @@
<section class="entry-intro"><div class="container"><div class="tag">STUDIO / {{ entry.collection|upper if entry else 'ENTRY' }}</div><h1>{{ props.title }}</h1>{% if props.summary %}<p>{{ props.summary }}</p>{% endif %}{% if props.image %}<img class="entry-cover" src="{{ asset_url(props.image) }}" alt="" loading="lazy">{% endif %}</div></section>