mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 12:45:51 +00:00
Update amily2-glossary.html
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr class="header-divider">
|
<hr class="header-divider">
|
||||||
|
|
||||||
<!-- 标签页导航 -->
|
|
||||||
<div class="glossary-tabs">
|
<div class="glossary-tabs">
|
||||||
<button class="glossary-tab active" data-tab="api">
|
<button class="glossary-tab active" data-tab="api">
|
||||||
<i class="fas fa-bolt"></i> API 设置
|
<i class="fas fa-bolt"></i> API 设置
|
||||||
@@ -16,18 +15,16 @@
|
|||||||
<button class="glossary-tab" data-tab="novel-process">
|
<button class="glossary-tab" data-tab="novel-process">
|
||||||
<i class="fas fa-file-invoice"></i> 小说处理
|
<i class="fas fa-file-invoice"></i> 小说处理
|
||||||
</button>
|
</button>
|
||||||
<button class="glossary-tab" data-tab="prompts">
|
<button class="glossary-tab" data-tab="tools">
|
||||||
<i class="fas fa-edit"></i> 待开发
|
<i class="fas fa-tools"></i> 条目工具
|
||||||
</button>
|
</button>
|
||||||
<button class="glossary-tab" data-tab="context">
|
<button class="glossary-tab" data-tab="context">
|
||||||
<i class="fas fa-book-open"></i> 世界书条目
|
<i class="fas fa-book-open"></i> 世界书条目
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 标签页内容容器 -->
|
|
||||||
<div class="glossary-content-container">
|
<div class="glossary-content-container">
|
||||||
|
|
||||||
<!-- API 设置面板 -->
|
|
||||||
<div id="glossary-content-api" class="glossary-content active">
|
<div id="glossary-content-api" class="glossary-content active">
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<div class="legend"><i class="fas fa-satellite-dish"></i> Sybd API 调用系统</div>
|
<div class="legend"><i class="fas fa-satellite-dish"></i> Sybd API 调用系统</div>
|
||||||
@@ -100,15 +97,28 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 提示词指令面板 -->
|
<div id="glossary-content-tools" class="glossary-content">
|
||||||
<div id="glossary-content-prompts" class="glossary-content">
|
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<div class="legend"><i class="fas fa-edit"></i> 待开发</div>
|
<div class="legend"><i class="fas fa-sitemap"></i> 按标题重组条目</div>
|
||||||
<p style="text-align: center; margin-top: 20px;">待开发</p>
|
<small class="notes" style="text-align: center; display: block; margin-bottom: 15px;">
|
||||||
|
在下方文本框中输入您想要合并的标题 (不带'#'),每行一个。<br>
|
||||||
|
插件将精确查找这些标题,并将它们的内容合并到同名的新条目中。
|
||||||
|
</small>
|
||||||
|
<div class="control-group" style="margin: 15px auto; max-width: 80%;">
|
||||||
|
<label for="reorganize-headings-list" style="display: block; text-align: center; margin-bottom: 5px;">要重组的标题列表:</label>
|
||||||
|
<textarea id="reorganize-headings-list" class="text_pole" style="width: 100%; min-height: 120px;" placeholder="世界观设定 章节内容概述 时间线 角色关系网 角色总览"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="sybd-button-row" style="justify-content: center; margin-top: 10px;">
|
||||||
|
<button id="reorganize-entries-by-heading" class="menu_button primary interactable">
|
||||||
|
<i class="fas fa-play-circle"></i> 开始重组
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="reorganize-status" style="text-align: center; margin-top: 10px; font-weight: bold;">
|
||||||
|
请选择一个世界书并开始操作...
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 世界书条目面板 -->
|
|
||||||
<div id="glossary-content-context" class="glossary-content">
|
<div id="glossary-content-context" class="glossary-content">
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<div class="legend"><i class="fas fa-book-open"></i> 世界书条目预览</div>
|
<div class="legend"><i class="fas fa-book-open"></i> 世界书条目预览</div>
|
||||||
@@ -119,28 +129,31 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="world-book-entries-display" class="world-book-entries-container">
|
<div id="world-book-entries-display" class="world-book-entries-container">
|
||||||
<!-- 条目将在这里动态生成 -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 小说处理面板 -->
|
|
||||||
<div id="glossary-content-novel-process" class="glossary-content">
|
<div id="glossary-content-novel-process" class="glossary-content">
|
||||||
<div class="settings-group">
|
<div class="settings-group">
|
||||||
<div class="legend"><i class="fas fa-file-upload"></i> 小说文件处理流程</div>
|
<div class="legend"><i class="fas fa-file-upload"></i> 小说文件处理流程</div>
|
||||||
|
|
||||||
<!-- 使用 horizontal-group 来确保标签和控件水平对齐 -->
|
|
||||||
<div class="control-group horizontal-group">
|
<div class="control-group horizontal-group">
|
||||||
<label for="novel-world-book-select">1. 选择目标世界书:</label>
|
<label for="novel-world-book-select">1. 选择目标世界书:</label>
|
||||||
<select id="novel-world-book-select" class="text_pole"></select>
|
<select id="novel-world-book-select" class="text_pole"></select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 为上传按钮使用独立的容器,不再使用 control-group -->
|
<div class="upload-button-container" style="display: flex; gap: 10px; justify-content: center;">
|
||||||
<div class="upload-button-container">
|
|
||||||
<label for="novel-file-input" class="menu_button secondary interactable">
|
<label for="novel-file-input" class="menu_button secondary interactable">
|
||||||
<i class="fas fa-upload"></i> 2. 上传小说文件 (.txt)
|
<i class="fas fa-upload"></i> 2a. 上传本地文件 (.txt)
|
||||||
</label>
|
</label>
|
||||||
<input type="file" id="novel-file-input" accept=".txt" style="display: none;">
|
<input type="file" id="novel-file-input" accept=".txt" style="display: none;">
|
||||||
|
<button id="select-from-database-button" class="menu_button secondary interactable">
|
||||||
|
<i class="fas fa-database"></i> 2b. 从数据库选择
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="database-file-list-container" class="world-book-entries-container" style="display: none; margin-top: 10px; max-height: 200px; overflow-y: auto;">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group horizontal-group">
|
<div class="control-group horizontal-group">
|
||||||
@@ -148,9 +161,13 @@
|
|||||||
<input type="number" id="novel-chunk-size" class="text_pole" value="300000" min="1000" step="500" data-setting-key="novelChunkSize" data-type="integer">
|
<input type="number" id="novel-chunk-size" class="text_pole" value="300000" min="1000" step="500" data-setting-key="novelChunkSize" data-type="integer">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group horizontal-group">
|
||||||
|
<label for="novel-start-batch-index" title="如果处理中断,可在此指定从第几批重新开始。">指定开始批次:</label>
|
||||||
|
<input type="number" id="novel-start-batch-index" class="text_pole" value="1" min="1" step="1">
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr class="header-divider">
|
<hr class="header-divider">
|
||||||
|
|
||||||
<!-- 为预览区域使用独立的容器 -->
|
|
||||||
<div class="preview-container">
|
<div class="preview-container">
|
||||||
<label>4. 内容分块预览 (共 <span id="novel-chunk-count">0</span> 块):</label>
|
<label>4. 内容分块预览 (共 <span id="novel-chunk-count">0</span> 块):</label>
|
||||||
<div id="novel-chunk-preview">
|
<div id="novel-chunk-preview">
|
||||||
@@ -158,7 +175,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 开关按钮使用 amily2_settings_block,但CSS会对其进行特殊处理 -->
|
|
||||||
<div class="amily2_settings_block">
|
<div class="amily2_settings_block">
|
||||||
<label for="novel-force-new">强制新建条目 (不更新现有条目)</label>
|
<label for="novel-force-new">强制新建条目 (不更新现有条目)</label>
|
||||||
<label class="amily2-glossary-toggle">
|
<label class="amily2-glossary-toggle">
|
||||||
|
|||||||
Reference in New Issue
Block a user