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,16 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: form
name: Форма из схемы
category: forms
version: 1
fields:
- key: form_id
type: ref
required: true
- key: heading
type: text
required: false
- key: description
type: textarea
required: false
slots: {}
@@ -0,0 +1,5 @@
name: Форма из схемы
props:
form_id: ''
heading: ''
description: ''
@@ -0,0 +1 @@
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Связаться' }}</h2>{% if props.description %}<p>{{ props.description }}</p>{% endif %}{% set form = get_form(props.form_id) %}{% if form %}<form class="demo-form" data-form="{{ form.id }}" novalidate>{% for field in form.fields if field.enabled %}<label>{{ field.label }}{% if field.type == 'textarea' %}<textarea name="{{ field.id }}" placeholder="Демонстрационный ввод" {% if field.required %}required{% endif %}></textarea>{% else %}<input type="{{ field.type if field.type in ['email','tel'] else 'text' }}" name="{{ field.id }}" placeholder="Демонстрационный ввод" {% if field.required %}required{% endif %}>{% endif %}</label>{% endfor %}<button type="submit" class="btn">Отправить демо-заявку</button><p class="form-feedback" role="status">Это статическая демонстрация. Заявки не отправляются и не сохраняются.</p></form>{% endif %}</div></section>