From ee71e46e8e5a69f041c6e2fb6d7a1808c1ae7e2f Mon Sep 17 00:00:00 2001 From: Wx-2025 <351320169@qq.com> Date: Wed, 3 Sep 2025 13:08:17 +0800 Subject: [PATCH] Add files via upload --- assets/Amily2-AdditionalFeatures.html | 78 +++++++++++++++++ assets/Memorisation-forms.html | 73 +++++++++++++++- assets/amily2-modal.html | 116 +++++++++++++++++++------- assets/historiography.css | 54 ++++++++++++ assets/style.css | 26 +++--- assets/table.css | 44 +++++++++- 6 files changed, 341 insertions(+), 50 deletions(-) diff --git a/assets/Amily2-AdditionalFeatures.html b/assets/Amily2-AdditionalFeatures.html index f264763..5950be1 100644 --- a/assets/Amily2-AdditionalFeatures.html +++ b/assets/Amily2-AdditionalFeatures.html @@ -42,6 +42,84 @@ +
+ Ngms API 调用系统 + + 独立的API调用系统,可与主系统并行使用,支持全兼容和SillyTavern预设两种模式。 + + +
+ + +
+ + +
+
diff --git a/assets/Memorisation-forms.html b/assets/Memorisation-forms.html index d02b68b..5f0675a 100644 --- a/assets/Memorisation-forms.html +++ b/assets/Memorisation-forms.html @@ -15,7 +15,7 @@ flex: 1; display: flex; flex-direction: column; - min-width: 0; + min-width: 0; /* Prevents flex items from overflowing */ } .scrollable-container { @@ -138,6 +138,7 @@
+
+ 版本信息 +
+
+
当前版本
+
加载中...
+
+
+
+ + +
+ +
+
+
最新版本
+
检查中...
+
+
+
+
- 核心功能 + 正文优化
diff --git a/assets/historiography.css b/assets/historiography.css index a174cda..c9b8e58 100644 --- a/assets/historiography.css +++ b/assets/historiography.css @@ -374,3 +374,57 @@ gap: 12px; flex-wrap: wrap; } + +/* Ngms API 按钮样式 - 水平扁平按钮 */ +.ngms-button-row { + display: flex; + gap: 10px; + justify-content: center; + margin-top: 15px; +} + +.ngms-button-row .menu_button { + min-width: 120px; + height: 35px; + padding: 8px 16px; + display: inline-flex; + align-items: center; + justify-content: center; + gap: 6px; + border-radius: 20px; + font-size: 14px; + font-weight: 500; + transition: all 0.3s ease; + text-transform: none; + letter-spacing: 0.5px; +} + +.ngms-button-row .menu_button.primary { + background: linear-gradient(135deg, #4CAF50, #45a049); + border: 1px solid #388e3c; + color: white; + text-shadow: 0 1px 2px rgba(0,0,0,0.2); +} + +.ngms-button-row .menu_button.primary:hover { + background: linear-gradient(135deg, #5CBF60, #4CAF50); + box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4); + transform: translateY(-1px); +} + +.ngms-button-row .menu_button.secondary { + background: linear-gradient(135deg, #2196F3, #1976D2); + border: 1px solid #1565C0; + color: white; + text-shadow: 0 1px 2px rgba(0,0,0,0.2); +} + +.ngms-button-row .menu_button.secondary:hover { + background: linear-gradient(135deg, #42A5F5, #2196F3); + box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4); + transform: translateY(-1px); +} + +.ngms-button-row .menu_button i { + font-size: 14px; +} diff --git a/assets/style.css b/assets/style.css index 3c51276..018ed20 100644 --- a/assets/style.css +++ b/assets/style.css @@ -308,28 +308,22 @@ hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0; } flex-grow: 1; gap: 15px; } - +/* 左侧容器:垂直布局 */ .header-left-panel { - display: flex; - flex-direction: column; - align-items: flex-start; - gap: 10px; + display: flex; /* 弹性布局 */ + flex-direction: column; /* 垂直排列 */ + align-items: flex-start;/* 左对齐 */ + gap: 10px; /* 内部元素间距 */ } +/* 翰林院入口容器 (简化无背景) */ .rag-palace-entry-container { - width: auto; -} - -#amily2_open_rag_palace { - background: none !important; - border: none !important; - box-shadow: none !important; - padding: 0; - font-size: 14px; - color: var(--SmartThemeBodyColor); + width: auto; /* 自适应宽度 */ } - +/* 翰林院按钮样式已移至新增扩展区域,使用统一按钮样式 */ + +/* 确保所有可切换面板表现一致 */ #rag_palace_panel { display: none; } diff --git a/assets/table.css b/assets/table.css index 60b0947..d4ac271 100644 --- a/assets/table.css +++ b/assets/table.css @@ -308,13 +308,13 @@ } -.prompt-editor-area { +#amily2_memorisation_forms_panel.prompt-editor-area { display: flex; flex-direction: column; gap: 8px; } -.editor-buttons-panel { +#amily2_memorisation_forms_panel.editor-buttons-panel { display: flex; justify-content: flex-end; gap: 8px; @@ -622,3 +622,43 @@ th.amily2-menu-open .amily2-header-text { border-color: rgba(120, 120, 120, 0.6) !important; transform: translateY(-1px); } + +/* Nccs API 按钮行样式 */ +.nccs-button-row { + display: flex; + gap: 10px; + justify-content: center; + align-items: center; + margin-top: 15px; +} + +.nccs-button-row .menu_button { + min-width: 120px; + height: 35px; + border-radius: 20px; + background: linear-gradient(45deg, rgba(74, 158, 255, 0.6), rgba(138, 114, 255, 0.6)); + border: 1px solid rgba(74, 158, 255, 0.8) !important; + color: #fff !important; + font-weight: bold; + transition: all 0.3s ease; + display: flex; + align-items: center; + justify-content: center; + gap: 5px; +} + +.nccs-button-row .menu_button:hover { + background: linear-gradient(45deg, rgba(74, 158, 255, 0.8), rgba(138, 114, 255, 0.8)); + transform: translateY(-2px); + box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4); +} + +.nccs-button-row .menu_button.secondary { + background: linear-gradient(45deg, rgba(120, 120, 120, 0.6), rgba(160, 160, 160, 0.6)); + border: 1px solid rgba(120, 120, 120, 0.8) !important; +} + +.nccs-button-row .menu_button.secondary:hover { + background: linear-gradient(45deg, rgba(120, 120, 120, 0.8), rgba(160, 160, 160, 0.8)); + box-shadow: 0 4px 15px rgba(120, 120, 120, 0.4); +}