309 lines
38 KiB
HTML
309 lines
38 KiB
HTML
<!doctype html>
|
||
<html lang="ru" data-nodedc-ui="true" data-nodedc-theme="dark"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="design-system-commit" content="06cb8ad4cd193ae1b4b1ac40a513fd642e12b878"><title>NODE.DC — CMS</title><link rel="stylesheet" href="./admin.css"></head><body><link rel="preload" as="image" href="./nodedc-logo.svg"/><div class="nodedc-app-shell" data-navigation-open="true" data-content-open="true" data-content-expanded="true" id="cms-shell"><header class="nodedc-header-shell" data-fixed="true" data-preset="launcher"><div class="nodedc-header"><div class="nodedc-header__row"><div class="nodedc-header__left"><span class="nodedc-header__brand" data-monochrome="true" aria-label="NODE.DC"><img src="./nodedc-logo.svg" alt="NODE.DC"/></span><button type="button" class="nodedc-icon-button" aria-label="Показать разделы" title="Показать разделы" id="toggle-navigation"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-panel-top" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M3 9h18"></path></svg></button></div><div class="nodedc-header__center"><nav class="nodedc-header-navigation" aria-label="Разделы CMS"><button type="button" class="nodedc-header__nav-item" data-active="true" aria-current="page"><span data-cms-mode="content">Контент</span></button><button type="button" class="nodedc-header__nav-item"><span data-cms-mode="seo">SEO</span></button><button type="button" class="nodedc-header__nav-item"><span data-cms-mode="knowledge">База знаний</span></button></nav></div><div class="nodedc-header__right"><span id="cms-profile" class="cms-ui-island"></span></div></div></div></header><main class="nodedc-app-shell__main"><div class="nodedc-app-shell__stage"><div class="cms-stage"><p>Управление сайтами NODE.DC</p><button type="button" class="nodedc-button" data-variant="secondary" data-tone="neutral" id="open-navigation"><span class="nodedc-button__content">Открыть разделы</span></button></div></div><div class="nodedc-app-shell__navigation"><aside class="nodedc-admin-panel" data-has-contexts="true"><header class="nodedc-admin-panel__head"><div><p>NODE.DC / CMS</p><h2><span id="sidebar-title">Администрирование</span></h2></div><div class="nodedc-admin-panel__head-actions"><button type="button" class="nodedc-icon-button" aria-label="Добавить сайт" title="Добавить сайт" id="add-project"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button><button type="button" class="nodedc-admin-panel__close" aria-label="Закрыть администрирование"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x" aria-hidden="true" focusable="false"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div></header><div class="nodedc-admin-panel__context-slot"><div class="cms-site-context"><select id="site-selector" aria-label="Выбрать сайт"></select><a id="site-preview" class="nodedc-icon-button" aria-label="Открыть сайт" title="Открыть сайт" target="_blank" rel="noopener"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link" aria-hidden="true" focusable="false"><path d="M15 3h6v6"></path><path d="M10 14 21 3"></path><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path></svg></a><button type="button" class="nodedc-icon-button" aria-label="Настройки сайта" title="Настройки сайта" id="project-settings"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg></button><span id="workspace-name" hidden="">NODE.DC</span><span id="workspace-role" hidden="">Администратор сайта</span><span id="cms-add-block-parking" hidden=""><button type="button" class="nodedc-icon-button" aria-label="Добавить блок" title="Добавить блок" id="add-block"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></span></div></div><nav class="nodedc-admin-panel__nav" aria-label="Разделы администрирования"></nav></aside></div><div class="nodedc-app-shell__content"><section class="nodedc-application-panel" data-expanded="true"><header class="nodedc-application-panel__head"><div class="nodedc-application-panel__titles"><span><span id="editor-heading">Настройки сайта</span></span><h1>Контент</h1><p>Выберите раздел</p></div><div class="nodedc-application-panel__actions"><div class="nodedc-application-panel__tools"><div class="cms-editor-actions"><span class="nodedc-status" id="dirty-state" data-dirty="false">Синхронизировано</span><button type="button" class="nodedc-icon-button" aria-label="Перезагрузить данные" title="Перезагрузить данные" id="reload"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw" aria-hidden="true" focusable="false"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></button><button type="button" class="nodedc-button" data-variant="primary" data-tone="neutral" id="save"><span class="nodedc-button__content">Сохранить модель</span></button><button type="button" class="nodedc-button" data-variant="secondary" data-tone="neutral" id="render"><span class="nodedc-button__content">Обновить сайт</span></button><button type="button" class="nodedc-button hidden" data-variant="secondary" data-tone="neutral" id="publish"><span class="nodedc-button__content">Опубликовать</span></button></div></div><button type="button" class="nodedc-application-panel__action" data-action="close" aria-label="Закрыть окно"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x" aria-hidden="true" focusable="false"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div></header><div class="nodedc-application-panel__body"><div class="cms-editor"> <div id="empty-state" class="empty-state">
|
||
<div class="empty-icon">ND</div>
|
||
<div>
|
||
<h3>Выберите блок слева</h3>
|
||
<p>Откройте раздел сайта, чтобы изменить текст, медиа и настройки отображения.</p>
|
||
</div>
|
||
</div>
|
||
|
||
<form id="block-form" class="block-form hidden">
|
||
<details class="json-details cms-block-options"><summary>Параметры и операции с блоком</summary><div class="cms-block-options-body"><section class="settings-card block-meta-card">
|
||
<div class="card-head">
|
||
<div>
|
||
<div class="section-kicker">Идентификатор</div>
|
||
<h3>Служебные параметры</h3>
|
||
</div>
|
||
<label class="toggle-row">
|
||
<input id="block-enabled" name="enabled" type="checkbox" />
|
||
<span>Отображение</span>
|
||
</label>
|
||
</div>
|
||
<div class="field-grid">
|
||
<label class="field-control">
|
||
<span>ID блока</span>
|
||
<input id="block-id" name="id" type="text" autocomplete="off" />
|
||
</label>
|
||
<label class="field-control">
|
||
<span>Название в админке</span>
|
||
<input id="block-label" name="adminLabel" type="text" autocomplete="off" />
|
||
</label>
|
||
<label class="field-control">
|
||
<span>Шаблон / тип</span>
|
||
<input id="block-template" name="template" type="text" autocomplete="off" readonly />
|
||
</label>
|
||
<label class="field-control">
|
||
<span>Target</span>
|
||
<input id="block-anchor" name="target" type="text" autocomplete="off" list="block-target-options" />
|
||
<datalist id="block-target-options"></datalist>
|
||
</label>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="settings-card structure-card">
|
||
<div class="card-head structure-head">
|
||
<div>
|
||
<div class="section-kicker">Порядок блока</div>
|
||
<h3>Операции с блоком</h3>
|
||
</div>
|
||
<div class="button-row icon-action-row">
|
||
<button id="move-up" class="icon-action-btn" type="button" title="Поднять блок" aria-label="Поднять блок">
|
||
<span aria-hidden="true">↑</span>
|
||
</button>
|
||
<button id="move-down" class="icon-action-btn" type="button" title="Опустить блок" aria-label="Опустить блок">
|
||
<span aria-hidden="true">↓</span>
|
||
</button>
|
||
<button id="duplicate" class="icon-action-btn" type="button" title="Дублировать блок" aria-label="Дублировать блок">
|
||
<span aria-hidden="true">⧉</span>
|
||
</button>
|
||
<button id="copy" class="icon-action-btn operation-extra" type="button" title="Копировать блок" aria-label="Копировать блок">
|
||
<span aria-hidden="true">□</span>
|
||
</button>
|
||
<button id="paste-after" class="icon-action-btn operation-extra" type="button" title="Вставить после" aria-label="Вставить после">
|
||
<span aria-hidden="true">▣</span>
|
||
</button>
|
||
<button id="delete-block" class="icon-action-btn danger-action-btn" type="button" title="Удалить блок" aria-label="Удалить блок">
|
||
<svg class="trash-can-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
|
||
<path d="M3.75 6.75h16.5" />
|
||
<path d="M8.25 6.75V4.9c0-.64.51-1.15 1.15-1.15h5.2c.64 0 1.15.51 1.15 1.15v1.85" />
|
||
<path d="M6.25 6.75l.7 12.15c.06.78.7 1.35 1.47 1.35h7.16c.77 0 1.41-.57 1.47-1.35l.7-12.15" />
|
||
<path d="M10 10.75v5.5" />
|
||
<path d="M14 10.75v5.5" />
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
</div></details>
|
||
<section class="content-panel">
|
||
<div class="panel-head">
|
||
<div>
|
||
<div id="content-panel-kicker" class="section-kicker">Контент</div>
|
||
<h3 id="content-panel-title">Редактируемые поля</h3>
|
||
</div>
|
||
<span id="content-panel-note" class="panel-note">Поля сгруппированы по смысловым подблокам верстки.</span>
|
||
</div>
|
||
<div id="content-fields" class="content-fields"></div>
|
||
</section>
|
||
|
||
<details class="json-details">
|
||
<summary>JSON выбранного блока</summary>
|
||
<label class="json-field">
|
||
<span>Техническое представление</span>
|
||
<textarea id="block-json" spellcheck="false"></textarea>
|
||
</label>
|
||
</details>
|
||
</form>
|
||
|
||
<div id="knowledge-form" class="knowledge-editor hidden"></div>
|
||
<div id="project-settings-form" class="project-settings-editor hidden"></div>
|
||
|
||
<pre id="status" class="status"></pre>
|
||
</div></div></section></div></main></div>
|
||
<div id="template-modal" class="template-modal-layer hidden" role="dialog" aria-modal="true" aria-labelledby="template-modal-title">
|
||
<article class="template-modal">
|
||
<header class="template-modal-head">
|
||
<div>
|
||
<div class="section-kicker">Библиотека блоков</div>
|
||
<h2 id="template-modal-title">Добавить блок</h2>
|
||
<p>Выберите шаблон. Новый блок появится в конце соответствующего списка.</p>
|
||
</div>
|
||
<button id="template-modal-close" class="admin-panel-close modal-close-button" type="button" aria-label="Закрыть">×</button>
|
||
</header>
|
||
<div id="template-list" class="template-list"></div>
|
||
<footer class="template-modal-foot">
|
||
<button id="template-modal-cancel" class="ghost-btn" type="button">Отмена</button>
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
<div id="delete-modal" class="template-modal-layer delete-modal-layer hidden" role="dialog" aria-modal="true" aria-labelledby="delete-modal-title" aria-describedby="delete-modal-body">
|
||
<article class="template-modal delete-modal">
|
||
<header class="template-modal-head delete-modal-head">
|
||
<div>
|
||
<div class="section-kicker">Удаление</div>
|
||
<h2 id="delete-modal-title">Подтвердите действие</h2>
|
||
<p id="delete-modal-body">Вы действительно подтвердить удаление элемента?</p>
|
||
</div>
|
||
</header>
|
||
<footer class="template-modal-foot delete-modal-foot">
|
||
<button id="delete-modal-cancel" class="ghost-btn" type="button">Отмена</button>
|
||
<button id="delete-modal-confirm" class="danger-btn delete-confirm-btn" type="button">Да</button>
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
<div id="media-modal" class="template-modal-layer media-modal-layer hidden" role="dialog" aria-modal="true" aria-labelledby="media-modal-title">
|
||
<article class="template-modal media-modal">
|
||
<header class="template-modal-head media-modal-head">
|
||
<div>
|
||
<div class="section-kicker">Медиатека</div>
|
||
<h2 id="media-modal-title">Выбрать файл</h2>
|
||
<p id="media-modal-subtitle">Существующие файлы на сервере и загрузки для текущего поля.</p>
|
||
</div>
|
||
<div class="media-modal-actions">
|
||
<span id="media-site-size" class="media-site-size">Сайт: считаем...</span>
|
||
<button id="media-trash-toggle" class="admin-panel-close media-header-action media-trash-toggle" type="button" aria-label="Недавно удалённые" title="Недавно удалённые">
|
||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||
<path d="M3.75 6.75h16.5" />
|
||
<path d="M8.25 6.75V4.9c0-.64.51-1.15 1.15-1.15h5.2c.64 0 1.15.51 1.15 1.15v1.85" />
|
||
<path d="M6.25 6.75l.7 12.15c.06.78.7 1.35 1.47 1.35h7.16c.77 0 1.41-.57 1.47-1.35l.7-12.15" />
|
||
<path d="M10 10.75v5.5" />
|
||
<path d="M14 10.75v5.5" />
|
||
</svg>
|
||
</button>
|
||
<button id="media-modal-close" class="admin-panel-close modal-close-button media-header-action" type="button" aria-label="Закрыть">×</button>
|
||
</div>
|
||
</header>
|
||
<div class="media-toolbar">
|
||
<label class="media-search">
|
||
<span>Поиск</span>
|
||
<input id="media-search" type="search" autocomplete="off" placeholder="Имя, папка, путь" />
|
||
</label>
|
||
<div id="media-kind-filters" class="media-filter-row media-kind-row" aria-label="Тип файла"></div>
|
||
<div id="media-root-filters" class="media-filter-row media-root-row" aria-label="Корень файлов"></div>
|
||
<button id="media-upload" class="primary-btn media-upload-btn" type="button">+ Загрузить</button>
|
||
</div>
|
||
<div id="media-drop-zone" class="media-browser media-browser-columns">
|
||
<section class="media-main">
|
||
<div id="media-breadcrumbs" class="media-breadcrumbs"></div>
|
||
<div id="media-list" class="media-columns"></div>
|
||
<div id="media-empty" class="media-empty hidden">Папка пуста.</div>
|
||
</section>
|
||
<aside class="media-preview-panel">
|
||
<div id="media-preview" class="media-preview">
|
||
<span>FILE</span>
|
||
</div>
|
||
<div class="media-preview-copy">
|
||
<div id="media-preview-name" class="media-preview-name">Выберите файл</div>
|
||
<div id="media-preview-path" class="media-preview-path"></div>
|
||
<div id="media-preview-meta" class="media-preview-meta"></div>
|
||
</div>
|
||
<div id="media-preview-usage" class="media-usage-pill" data-status="idle">
|
||
<span class="media-usage-dot"></span>
|
||
<span>Нет выбора</span>
|
||
</div>
|
||
<div class="media-preview-actions">
|
||
<button id="media-select" class="primary-btn" type="button" disabled>Выбрать</button>
|
||
<button id="media-delete" class="danger-btn media-delete-btn" type="button" aria-label="Удалить файл" title="Удалить файл" disabled>
|
||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||
<path d="M3.75 6.75h16.5" />
|
||
<path d="M8.25 6.75V4.9c0-.64.51-1.15 1.15-1.15h5.2c.64 0 1.15.51 1.15 1.15v1.85" />
|
||
<path d="M6.25 6.75l.7 12.15c.06.78.7 1.35 1.47 1.35h7.16c.77 0 1.41-.57 1.47-1.35l.7-12.15" />
|
||
<path d="M10 10.75v5.5" />
|
||
<path d="M14 10.75v5.5" />
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</aside>
|
||
</div>
|
||
<footer class="template-modal-foot media-modal-foot">
|
||
<button id="media-refresh" class="ghost-btn" type="button">Обновить список</button>
|
||
<button id="media-modal-cancel" class="ghost-btn" type="button">Отмена</button>
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
<div id="media-context-menu" class="media-context-menu hidden" role="menu"></div>
|
||
<div id="media-action-modal" class="template-modal-layer media-action-modal-layer hidden" role="dialog" aria-modal="true" aria-labelledby="media-action-title">
|
||
<article class="template-modal media-action-modal">
|
||
<header class="template-modal-head media-action-head">
|
||
<div>
|
||
<div class="section-kicker">Файл-менеджер</div>
|
||
<h2 id="media-action-title">Действие</h2>
|
||
<p id="media-action-body">Введите имя.</p>
|
||
</div>
|
||
</header>
|
||
<div class="media-action-body">
|
||
<label class="field-control">
|
||
<span id="media-action-label">Имя</span>
|
||
<input id="media-action-input" type="text" autocomplete="off" />
|
||
</label>
|
||
</div>
|
||
<footer class="template-modal-foot media-action-foot">
|
||
<button id="media-action-cancel" class="ghost-btn" type="button">Отмена</button>
|
||
<button id="media-action-confirm" class="primary-btn" type="button">Подтвердить</button>
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
<div id="knowledge-button-modal" class="template-modal-layer knowledge-button-modal-layer hidden" role="dialog" aria-modal="true" aria-labelledby="knowledge-button-title">
|
||
<article class="template-modal knowledge-button-modal">
|
||
<header class="template-modal-head knowledge-button-head">
|
||
<div>
|
||
<div class="section-kicker">База знаний</div>
|
||
<h2 id="knowledge-button-title">Кнопка в статье</h2>
|
||
<p>Ссылка ведёт на лендинг или внешний адрес. Target открывает нужный блок лендинга.</p>
|
||
</div>
|
||
<button id="knowledge-button-close" class="admin-panel-close modal-close-button" type="button" aria-label="Закрыть">×</button>
|
||
</header>
|
||
<div class="knowledge-button-body">
|
||
<label class="field-control">
|
||
<span>Название</span>
|
||
<input id="knowledge-button-name" type="text" autocomplete="off" placeholder="Посмотреть демо" />
|
||
</label>
|
||
<label class="field-control">
|
||
<span>Ссылка</span>
|
||
<input id="knowledge-button-link" type="text" autocomplete="off" placeholder="/" />
|
||
</label>
|
||
<label class="field-control">
|
||
<span>Target / блок лендинга</span>
|
||
<input id="knowledge-button-target" type="text" autocomplete="off" list="knowledge-button-target-options" placeholder="hub-video" />
|
||
<datalist id="knowledge-button-target-options"></datalist>
|
||
</label>
|
||
<p class="knowledge-button-hint">Можно выбрать target из списка или ввести ID блока лендинга. Если target пустой, ссылка откроет первый экран.</p>
|
||
<p id="knowledge-button-error" class="knowledge-button-error" aria-live="polite"></p>
|
||
</div>
|
||
<footer class="template-modal-foot knowledge-button-foot">
|
||
<button id="knowledge-button-cancel" class="ghost-btn" type="button">Отмена</button>
|
||
<button id="knowledge-button-confirm" class="primary-btn" type="button">Добавить кнопку</button>
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
|
||
<dialog id="new-site-dialog" class="site-dialog">
|
||
<form id="new-site-form">
|
||
<h2>Добавить сайт</h2><p>Содержимое и медиа будут скопированы в отдельный проект. Публикация изначально отключена.</p>
|
||
<label>Название<input name="name" required maxlength="160" placeholder="NODE.DC — Mission Core"></label>
|
||
<label>ID сайта<input name="id" required pattern="[a-z][a-z0-9-]{0,47}" maxlength="48" placeholder="mission-core"></label>
|
||
<label>Копировать из<select id="new-site-source" name="copyFrom" required></select></label>
|
||
<label>Публичный адрес<input name="publicUrl" type="url" placeholder="https://nodedc.ru/"></label>
|
||
<p id="new-site-error" role="alert"></p>
|
||
<div class="site-dialog-actions"><button type="button" data-close-dialog>Отмена</button><button type="submit">Создать независимую копию</button></div>
|
||
</form>
|
||
</dialog>
|
||
<dialog id="transfer-site-dialog" class="site-dialog">
|
||
<form id="transfer-site-form">
|
||
<h2>Перенос настроек публикации</h2><p>Деплой исходного сайта будет отключён. Адрес сервера, папка и сохранённый пароль будут перенесены в текущий проект. Файлы на хостинге сейчас не меняются.</p>
|
||
<label>Исходный сайт<select id="transfer-site-source" required></select></label>
|
||
<p id="transfer-site-error" role="alert"></p>
|
||
<div class="site-dialog-actions"><button type="button" data-close-dialog>Отмена</button><button type="submit">Перенести настройки</button></div>
|
||
</form>
|
||
</dialog>
|
||
|
||
<template id="ds-nestedSurface"><div class="nodedc-glass" data-tone="soft" data-radius="card" data-padding="md"><span></span></div></template>
|
||
<template id="ds-dragHandle"><button type="button" class="nodedc-drag-handle" aria-label="Перетащить блок"><svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><circle cx="4" cy="4" r="0.75"></circle><circle cx="8" cy="4" r="0.75"></circle><circle cx="12" cy="4" r="0.75"></circle><circle cx="4" cy="8" r="0.75"></circle><circle cx="8" cy="8" r="0.75"></circle><circle cx="12" cy="8" r="0.75"></circle></svg></button></template>
|
||
<template id="ds-button"><button type="button" class="nodedc-button" data-variant="secondary"><span class="nodedc-button__content">Действие</span></button></template>
|
||
<template id="ds-iconButton"><button type="button" class="nodedc-icon-button" aria-label="Действие" title="Действие"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></button></template>
|
||
<template id="ds-field"><label class="nodedc-field"><span class="nodedc-field__label-row"><span class="nodedc-field__label">Поле</span></span><span data-slot="control"></span></label></template>
|
||
<template id="ds-text"><label class="nodedc-field" for="template-field"><span class="nodedc-field__label-row"><span class="nodedc-field__label">Поле</span></span><input id="template-field" class="nodedc-field__control"/></label></template>
|
||
<template id="ds-card"><section class="nodedc-settings-card"><header class="nodedc-settings-card__head"><div class="nodedc-settings-card__titles"><span>Раздел</span><h2>Название</h2><p class="nodedc-description">Описание</p></div></header><div class="nodedc-settings-card__body"><div data-slot="body"></div></div></section></template>
|
||
<template id="ds-media"><div class="nodedc-media-field"><div class="nodedc-media-field__label-row"><span class="nodedc-media-field__label">Медиа</span><span class="nodedc-media-field__kind">media</span></div><div class="nodedc-media-control" data-source="file"><div class="nodedc-media-file" data-nodedc-media-source-panel="file"><label class="nodedc-media-file__button" for="_R_0_">Выберите файл</label><span class="nodedc-media-file__name" title="Файл не выбран">Файл не выбран</span><input id="_R_0_" type="file" accept="image/*,video/*"/></div><input class="nodedc-media-url" type="url" hidden="" data-nodedc-media-source-panel="url" placeholder="https://..." autoComplete="off" aria-label="Медиа: внешняя ссылка" value=""/><div class="nodedc-media-source-switch" aria-label="Медиа: источник"><button type="button" class="nodedc-media-source-button" data-active="true" data-nodedc-media-source-option="file" aria-label="Файл с диска" aria-pressed="true">HD</button><button type="button" class="nodedc-media-source-button" data-nodedc-media-source-option="url" aria-label="Внешняя ссылка" aria-pressed="false">URL</button></div><div class="nodedc-media-preview" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg></div></div></div></template>
|
||
<template id="ds-icon-close"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x" aria-hidden="true" focusable="false"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></template>
|
||
<template id="ds-icon-plus"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true" focusable="false"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg></template>
|
||
<template id="ds-icon-chevron-up"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-up" aria-hidden="true" focusable="false"><path d="m18 15-6-6-6 6"></path></svg></template>
|
||
<template id="ds-icon-chevron-down"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></template>
|
||
<template id="ds-icon-copy"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy" aria-hidden="true" focusable="false"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></template>
|
||
<template id="ds-icon-clipboard"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clipboard-list" aria-hidden="true" focusable="false"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"></rect><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><path d="M12 11h4"></path><path d="M12 16h4"></path><path d="M8 11h.01"></path><path d="M8 16h.01"></path></svg></template>
|
||
<template id="ds-icon-trash"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-trash2" aria-hidden="true" focusable="false"><path d="M3 6h18"></path><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"></path><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"></path><line x1="10" x2="10" y1="11" y2="17"></line><line x1="14" x2="14" y1="11" y2="17"></line></svg></template>
|
||
<template id="ds-icon-eye"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye" aria-hidden="true" focusable="false"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></template>
|
||
<template id="ds-icon-eye-off"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye-off" aria-hidden="true" focusable="false"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"></path><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"></path><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"></path><path d="m2 2 20 20"></path></svg></template>
|
||
<template id="ds-icon-layers"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layers" aria-hidden="true" focusable="false"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg></template>
|
||
<template id="ds-icon-panel"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-panel-top" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2"></rect><path d="M3 9h18"></path></svg></template>
|
||
<template id="ds-icon-file"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text" aria-hidden="true" focusable="false"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></template>
|
||
<template id="ds-icon-settings"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings" aria-hidden="true" focusable="false"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx="12" cy="12" r="3"></circle></svg></template>
|
||
<template id="ds-icon-folder"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-open" aria-hidden="true" focusable="false"><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"></path></svg></template>
|
||
<template id="ds-icon-image"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true" focusable="false"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg></template>
|
||
<template id="ds-icon-video"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-video" aria-hidden="true" focusable="false"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"></path><rect x="2" y="6" width="14" height="12" rx="2"></rect></svg></template>
|
||
<template id="ds-icon-refresh"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw" aria-hidden="true" focusable="false"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></template>
|
||
<template id="ds-icon-move"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-move" aria-hidden="true" focusable="false"><path d="M12 2v20"></path><path d="m15 19-3 3-3-3"></path><path d="m19 9 3 3-3 3"></path><path d="M2 12h20"></path><path d="m5 9-3 3 3 3"></path><path d="m9 5 3-3 3 3"></path></svg></template>
|
||
<template id="ds-icon-edit"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pencil" aria-hidden="true" focusable="false"><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"></path><path d="m15 5 4 4"></path></svg></template>
|
||
<script type="module" src="./admin.js"></script></body></html>
|