Integrate Antirion admin with FastAPI and htmx

Add the shared document API, constructor and expert editors, isolated preview, and fragment catalog metadata with typed block IDs.

Include design references, specification 001, QA scripts, project guidance, and cached Docker dependency installation. Leave example sites for a separate commit.
This commit is contained in:
2026-11-12 21:55:36 +03:00
parent 58cc8090a9
commit 88ac95dd19
260 changed files with 20395 additions and 320 deletions
@@ -2,7 +2,7 @@
{% macro bind_box(name, bind) %}
<details class='bind'{% if bind %} open{% endif %}>
<summary>привязка</summary>
<input type='text' name='{{ name }}._bind' value='{{ bind }}' placeholder='entry.title · page.body · site.name'>
<input type='text' name='{{ name }}._bind' value='{{ bind }}' aria-label='Привязка {{ name }}' placeholder='entry.title · page.body · site.name'>
</details>
{% endmacro %}
@@ -37,11 +37,11 @@
<fieldset class='link'>
<legend>{{ f.label }}{% if f.required %} *{% endif %}</legend>
{% set kinds = [('page', 'страница'), ('entry', 'запись'), ('url', 'адрес')] %}
<select name='{{ f.name }}.kind'>
<select name='{{ f.name }}.kind' aria-label='Тип ссылки {{ f.label }}'>
{% for k, title in kinds %}<option value='{{ k }}'{% if f.link_kind == k %} selected{% endif %}>{{ title }}</option>{% endfor %}
</select>
<input type='text' name='{{ f.name }}.target' value='{{ f.target }}' placeholder='contacts · services/bots · https://…'>
<input type='text' name='{{ f.name }}.label' value='{{ f.link_label }}' placeholder='подпись'>
<input type='text' name='{{ f.name }}.target' value='{{ f.target }}' aria-label='Цель ссылки {{ f.label }}' placeholder='contacts · services/bots · https://…'>
<input type='text' name='{{ f.name }}.label' value='{{ f.link_label }}' aria-label='Подпись ссылки {{ f.label }}' placeholder='подпись'>
<label class='inline'><input type='checkbox' name='{{ f.name }}.new_tab' value='1'{% if f.new_tab %} checked{% endif %}> в новой вкладке</label>
{{ bind_box(f.name, f.bind) }}
</fieldset>