Fixed RPG

This commit is contained in:
2026-06-01 07:44:38 +03:00
parent 600ad78f05
commit d4cd8f02f4
30 changed files with 1516 additions and 816 deletions
+59 -14
View File
@@ -35,6 +35,7 @@
<div class="system-blob" id="systemBlob">
<div class="system-blob-header">
<span>System</span>
<button type="button" id="systemBlobRefresh" title="Обновить"></button>
<button type="button" id="systemBlobToggle">Скрыть</button>
</div>
<pre class="system-blob-content" id="systemBlobContent"></pre>
@@ -126,20 +127,53 @@
</div>
<div class="modal-overlay" id="cardModalOverlay">
<div class="modal">
<h2>📥 Импорт карточки (chub.io / V2)</h2>
<label>Файл JSON или PNG
<input type="file" id="cardFile" accept=".json,.png">
</label>
<label>LoRA
<input type="text" id="cardLora" placeholder="CharacterLoRA">
</label>
<label>Вес LoRA
<input type="number" id="cardLoraWeight" value="0.8" min="0" max="2" step="0.1">
</label>
<div class="modal-buttons">
<div class="modal modal-wizard" style="max-width:520px">
<div class="modal-wizard-header">
<h2>📥 Импорт карточки</h2>
<div class="wizard-steps">
<span class="wizard-step-dot active" data-step="1">1</span>
<span class="wizard-step-line"></span>
<span class="wizard-step-dot" data-step="2">2</span>
</div>
</div>
<div class="modal-wizard-body">
<div class="wizard-page active" data-step="1">
<p class="wizard-page-title">Файл</p>
<label>JSON или PNG (chub.io / V2)
<input type="file" id="cardFile" accept=".json,.png">
</label>
<p class="wizard-hint" id="cardPreviewHint"></p>
<label>LoRA
<input type="text" id="cardLora" placeholder="CharacterLoRA">
</label>
<label>Вес LoRA
<input type="number" id="cardLoraWeight" value="0.8" min="0" max="2" step="0.1">
</label>
</div>
<div class="wizard-page" data-step="2">
<p class="wizard-page-title">Проверь и отредактируй</p>
<label>Имя <input type="text" id="impCardName"></label>
<label>Описание <textarea id="impCardDescription" rows="3"></textarea></label>
<label>Личность <textarea id="impCardPersonality" rows="2"></textarea></label>
<label>Сценарий <textarea id="impCardScenario" rows="2"></textarea></label>
<label>Первое сообщение
<select id="impCardGreetingSelect"></select>
</label>
<label>Текст первого сообщения
<textarea id="impCardFirstMes" rows="4"></textarea>
</label>
<p class="wizard-hint hidden" id="impCardAltHint"></p>
<label>Пример диалога <textarea id="impCardMesExample" rows="2"></textarea></label>
<label>Теги внешности (SD) <input type="text" id="impCardAppearance"></label>
</div>
</div>
<div class="modal-buttons modal-wizard-footer">
<button id="cardModalCancel" type="button">Отмена</button>
<button id="cardModalImport" type="button">Импорт</button>
<div class="wizard-nav">
<button id="cardModalPrev" type="button" class="wizard-nav-btn hidden">← Назад</button>
<button id="cardModalNext" type="button" class="wizard-nav-btn">Далее →</button>
<button id="cardModalImport" type="button" class="hidden" style="background:#e94560;color:white">Импорт</button>
</div>
</div>
</div>
</div>
@@ -156,6 +190,9 @@
<label>Личность <textarea id="editPersonality" rows="3"></textarea></label>
<label>Сценарий <textarea id="editScenario" rows="3"></textarea></label>
<label>Первое сообщение <textarea id="editFirstMes" rows="3"></textarea></label>
<label class="hidden" id="editCardAltBlock">Альтернативные приветствия (из карточки)
<select id="editCardGreetingSelect" size="4"></select>
</label>
<label>Пример диалога <textarea id="editMesExample" rows="3"></textarea></label>
<label>Теги внешности (SD) <input type="text" id="editAppearance" placeholder="silver hair, yellow eyes, wolf ears, black cloak"></label>
<label>LoRA <input type="text" id="editLora" placeholder="CharacterLoRA"></label>
@@ -226,6 +263,14 @@
<label>Название чата
<input type="text" id="newChatTitle" placeholder="Оставь пустым — сгенерируем автоматически">
</label>
<div id="newChatGreetingBlock" class="hidden" style="margin-top:12px">
<label>Первое сообщение
<select id="newChatGreetingSelect"></select>
</label>
<label>Текст (можно отредактировать)
<textarea id="newChatGreetingText" rows="3"></textarea>
</label>
</div>
</div>
<div id="newChatRpgStep" class="hidden">
<p class="wizard-page-title">Жанры и настройки RPG</p>
@@ -301,6 +346,6 @@
</div>
</div>
<script type="module" src="/static/js/app.js"></script>
<script type="module" src="/static/js/app.js?v=4"></script>
</body>
</html>