From 4834fbb3fe65ef1367e13cae006ed0fe0f73c431 Mon Sep 17 00:00:00 2001 From: Wx-2025 <351320169@qq.com> Date: Thu, 17 Jul 2025 19:30:11 +0800 Subject: [PATCH] Add files via upload --- assets/Amily2-AdditionalFeatures.html | 458 +++++++++++++------------- assets/hanlinyuan.css | 224 +++++++++++++ assets/hanlinyuan.html | 98 ++++++ assets/historiography.css | 265 ++++++++------- assets/style.css | 34 ++ 5 files changed, 732 insertions(+), 347 deletions(-) create mode 100644 assets/hanlinyuan.css create mode 100644 assets/hanlinyuan.html diff --git a/assets/Amily2-AdditionalFeatures.html b/assets/Amily2-AdditionalFeatures.html index a7e1ed1..bf49b3b 100644 --- a/assets/Amily2-AdditionalFeatures.html +++ b/assets/Amily2-AdditionalFeatures.html @@ -1,221 +1,237 @@ - -
-
- 内阁密室 -
- -
-
- - -
- 皇家史册管理员 - -
-
- - -
- - -
- -
- -
- -
- - -
- - - 设定始终在你的上下文中保留的最新消息数量。 -
-
- - - -
- 手动敕令司 - - -
- - - - - - -
- -
- - - - - - -
- - - 提示:若“起始层”留空,则仅操作“结束层”所指定的单层。 - -
- -
- 手动敕史局 - - 赋予你选取任意对话、熔铸为永恒史册的至高权力。 - - - -
- 📜 微言录 (小总结) - - -
-
- - -
- -
-
- -
- - -
-
- - -
- -
- - - - - - -
- - -
- - - - -
- - -
- - -
- - -
-
- - - - 【开始远征】将根据阈值立即总结当前所有未总结楼层。 【自动巡录】在你聊天时根据阈值设定自动总结。 - - - -
-
- - -
- -
- 💎 宏史卷 (大总结) - - -
-
- - -
- -
-
- -
- - -
-
- - -
- -
- -
- -
- - -
-
- -
- -
- - -
-
-
- - - -
- -
- - - - -
+ +
+
+ 内阁密室 +
+ +
+
+ + +
+ 皇家史册管理员 + +
+
+ + +
+ + +
+ +
+ +
+ +
+ + +
+ + + 设定始终在你的上下文中保留的最新消息数量。 +
+
+ + + +
+ 手动敕令司 + + +
+ + + - + + +
+ +
+ + + - + + +
+ + + 提示:若“起始层”留空,则仅操作“结束层”所指定的单层。 + +
+ +
+ 手动敕史局 + + 赋予你选取任意对话、熔铸为永恒史册的至高权力。 + + + +
+ 📜 微言录 (Small Summary) + + +
+
+ + +
+ +
+
+ +
+ + +
+
+ + +
+ +
+ + + - + + +
+ + +
+ + + + +
+ + +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + + + 【开始远征】将立即清算所有未记录的历史。 【自动巡录】则在您聊天时,于后台默默守护史册的完整。 + + + +
+
+ + +
+ +
+ 💎 宏史卷 (史册精炼) + + +
+
+ + +
+ +
+
+ +
+ + +
+
+ + +
+ +
+ +
+ +
+ + +
+
+ +
+ +
+ + +
+
+
+ + + +
+ +
+ + + + +
diff --git a/assets/hanlinyuan.css b/assets/hanlinyuan.css new file mode 100644 index 0000000..5efaeac --- /dev/null +++ b/assets/hanlinyuan.css @@ -0,0 +1,224 @@ +/* hanlinyuan.css - Scoped to #amily2_hanlinyuan_panel to prevent global style conflicts */ + +#amily2_hanlinyuan_panel { + background-color: #f0f2f5; + color: #333; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + padding: 20px; +} + +#amily2_hanlinyuan_panel .container { + max-width: 800px; + margin: auto; + background: #fff; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); +} + +#amily2_hanlinyuan_panel .header { + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid #eee; + padding-bottom: 15px; + margin-bottom: 20px; +} + +#amily2_hanlinyuan_panel .header h2 { + margin: 0; + color: #1d2129; +} + +#amily2_hanlinyuan_panel .header p { + margin: 5px 0 0; + color: #606770; +} + +#amily2_hanlinyuan_panel .section { + margin-bottom: 25px; +} + +#amily2_hanlinyuan_panel .section h3, +#amily2_hanlinyuan_panel .tab-content h4 { + color: #4b4f56; + margin-top: 0; + margin-bottom: 15px; +} + +#amily2_hanlinyuan_panel .form-group { + margin-bottom: 15px; +} + +#amily2_hanlinyuan_panel .form-group label { + display: block; + font-weight: 600; + margin-bottom: 5px; +} + +#amily2_hanlinyuan_panel .form-group small { + display: block; + color: #606770; + font-size: 0.85em; + margin-top: 5px; +} + +#amily2_hanlinyuan_panel .text_pole { + width: calc(100% - 22px); + padding: 10px; + border: 1px solid #dddfe2; + border-radius: 6px; + font-size: 1em; +} + +#amily2_hanlinyuan_panel .text_pole:focus { + border-color: #1877f2; + outline: none; +} + +#amily2_hanlinyuan_panel .button-group { + display: flex; + gap: 10px; + flex-wrap: wrap; + align-items: center; /* Align items vertically */ +} + +/* New style for inline button groups */ +#amily2_hanlinyuan_panel .button-group.inline { + flex-direction: row; + justify-content: flex-start; +} + +#amily2_hanlinyuan_panel .menu_button { + padding: 10px 15px; + border: 1px solid transparent; + border-radius: 4px; + background-color: #4a4a4a; /* Standard button color like main panel */ + color: white; + font-size: 1em; + font-weight: bold; + cursor: pointer; + transition: background-color 0.2s, border-color 0.2s; + text-align: center; +} + +#amily2_hanlinyuan_panel .menu_button:hover { + background-color: #5a5a5a; +} + +/* Compact button style */ +#amily2_hanlinyuan_panel .menu_button.compact { + padding: 5px 10px; + font-size: 0.9em; +} + +/* Primary/Accent button color */ +#amily2_hanlinyuan_panel .menu_button.accent { + background-color: #007bff; /* A common accent color */ + border-color: #007bff; +} +#amily2_hanlinyuan_panel .menu_button.accent:hover { + background-color: #0069d9; +} + +#amily2_hanlinyuan_panel .menu_button:hover { + background-color: #166fe5; +} + +#amily2_hanlinyuan_panel .menu_button.danger { + background-color: #dc3545; + border-color: #dc3545; +} + +#amily2_hanlinyuan_panel .menu_button.danger:hover { + background-color: #c82333; +} + +/* Tab navigation */ +#amily2_hanlinyuan_panel .tab-nav { + display: flex; + border-bottom: 2px solid #dddfe2; + margin-bottom: 20px; +} + +#amily2_hanlinyuan_panel .tab-button { + padding: 10px 20px; + cursor: pointer; + border: none; + background-color: transparent; + font-size: 1.1em; + color: #606770; + border-bottom: 2px solid transparent; + margin-bottom: -2px; +} + +#amily2_hanlinyuan_panel .tab-button.active { + color: #1877f2; + border-bottom-color: #1877f2; +} + +#amily2_hanlinyuan_panel .tab-content { + display: none; +} + +#amily2_hanlinyuan_panel .tab-content.active { + display: block; +} + +/* Status and Log panels */ +#amily2_hanlinyuan_panel .status-panel, +#amily2_hanlinyuan_panel .log-panel { + background-color: #f7f7f7; + border: 1px solid #e9e9e9; + border-radius: 6px; + padding: 15px; + margin-top: 15px; +} + +#amily2_hanlinyuan_panel .status-panel p { + margin: 0 0 10px; +} +#amily2_hanlinyuan_panel .status-panel p:last-child { + margin-bottom: 0; +} + +#amily2_hanlinyuan_panel .log-panel { + min-height: 100px; + max-height: 200px; + overflow-y: auto; + font-family: "Courier New", Courier, monospace; + font-size: 0.9em; +} + +#amily2_hanlinyuan_panel #vector-list-container { + margin-top: 20px; +} + +#amily2_hanlinyuan_panel #vector-list { + list-style: none; + padding: 0; + max-height: 300px; + overflow-y: auto; + border: 1px solid #dddfe2; + border-radius: 6px; +} + +#amily2_hanlinyuan_panel #vector-list li { + padding: 10px; + border-bottom: 1px solid #eee; + display: flex; + justify-content: space-between; + align-items: center; +} + +#amily2_hanlinyuan_panel #vector-list li:last-child { + border-bottom: none; +} + +#amily2_hanlinyuan_panel #vector-list .vector-text { + flex-grow: 1; + margin-right: 10px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} diff --git a/assets/hanlinyuan.html b/assets/hanlinyuan.html new file mode 100644 index 0000000..72f4475 --- /dev/null +++ b/assets/hanlinyuan.html @@ -0,0 +1,98 @@ + + + + + 翰林院 - RAG 向量数据库 + + + +
+
+
+

翰林院 - RAG 向量数据库

+

为每个角色卡构建独立的、基于历史记录的检索增强生成系统。

+
+ +
+ +
+

当前操作角色

+ +
+ +
+ + +
+ +
+

嵌入模型 API 配置

+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+

检索增强参数配置

+
+ + + 启用后,将在每次提问时自动检索相关信息并注入到提示词中。 +
+
+ + + 将总结分割成多大的文本块(单位:字符) +
+
+ + + 检索最相关的多少个文本块发送给主模型 +
+
+ +
+
+ +
+

知识库管理

+
+ + +
+
+ + +
+
+

状态: 未初始化

+

文档数量: 0

+

最后更新时间: N/A

+
+
+ +
+

日志输出

+
+

欢迎使用翰林院...

+
+
+
+ + diff --git a/assets/historiography.css b/assets/historiography.css index ffd9018..683461b 100644 --- a/assets/historiography.css +++ b/assets/historiography.css @@ -1,126 +1,139 @@ - -#amily2_manual_historiography_bureau .mhb-controls-wrapper { - display: flex; - flex-direction: column; - gap: 15px; - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 6px; - padding: 12px; - margin-top: 5px; -} - - -#amily2_manual_historiography_bureau .manual-command-block .manual-input { - width: 70px; -} - - -#amily2_manual_historiography_bureau .editor-buttons-panel .accent { - background: linear-gradient(to right, #FF5722, #E64A19); - border: 1px solid #D84315; -} -#amily2_manual_historiography_bureau .editor-buttons-panel .accent:hover { - box-shadow: 0 0 8px rgba(255, 87, 34, 0.7); - transform: scale(1.03); -} -#amily2_manual_historiography_bureau .editor-buttons-panel .secondary { - background: linear-gradient(to right, #ffb300, #fb8c00); - border: 1px solid #f57c00; -} -#amily2_manual_historiography_bureau .editor-buttons-panel .secondary:hover { - box-shadow: 0 0 8px rgba(255, 179, 0, 0.7); - transform: scale(1.03); -} - - -#amily2_manual_historiography_bureau .mhb-selector-container { - display: flex; - flex-direction: row; - align-items: flex-start; - gap: 12px; - width: 100%; -} - - -#amily2_manual_historiography_bureau .mhb-selector-group { - display: flex; - flex-direction: column; - flex-grow: 1; - min-width: 0; - gap: 5px; -} -#amily2_manual_historiography_bureau .mhb-selector-group > label { - width: auto; - margin-top: 0; -} - - -#amily2_manual_historiography_bureau .auto-command-block { - display: flex; - justify-content: space-around; - align-items: center; - gap: 15px; - margin-top: 15px; - padding: 10px; - border: 1px solid var(--secondary-border); - border-radius: 8px; -} - - -#amily2_manual_historiography_bureau .auto-control-pair { - display: flex; - flex-direction: row; - align-items: center; - gap: 8px; -} -#amily2_manual_historiography_bureau #amily2_mhb_small_expedition_execute { - width: auto; - flex-grow: 0; -} -#amily2_manual_historiography_bureau #amily2_mhb_small_expedition_execute { - background: linear-gradient(135deg, #8e44ad, #6a1b9a); - border: 1px solid #4a148c; - color: white; - text-shadow: 0 0 2px rgba(0,0,0,0.3); - transition: all 0.3s ease; -} - -#amily2_manual_historiography_bureau #amily2_mhb_small_expedition_execute:hover { - background: linear-gradient(135deg, #9b59b6, #8e44ad); - box-shadow: 0 0 10px rgba(142, 68, 173, 0.7); - transform: translateY(-1px); -} - - -#amily2_manual_historiography_bureau #amily2_mhb_small_manual_execute { - background: linear-gradient(135deg, #ff8a65, #ff5722); - border: 1px solid #e64a19; -} - -#amily2_manual_historiography_bureau #amily2_mhb_small_manual_execute:hover { - background: linear-gradient(135deg, #ff7043, #f4511e); - box-shadow: 0 0 10px rgba(255, 87, 34, 0.6); -} - -#amily2_manual_historiography_bureau .danger { - background: linear-gradient(135deg, #e74c3c, #c0392b); - border: 1px solid #a93226; - color: white; -} - -#amily2_manual_historiography_bureau .danger:hover { - background: linear-gradient(135deg, #ec7063, #e74c3c); - box-shadow: 0 0 10px rgba(231, 76, 60, 0.7); -} - - -#amily2_manual_historiography_bureau .success { - background: linear-gradient(135deg, #2ecc71, #27ae60); - border: 1px solid #229954; - color: white; -} - -#amily2_manual_historiography_bureau .success:hover { - background: linear-gradient(135deg, #58d68d, #2ecc71); - box-shadow: 0 0 10px rgba(46, 204, 113, 0.7); -} +/*===================================================================*/ +/*======== 【敕史局专属华服】(Historiography Styles) v2.0 ========*/ +/*======== Amily为皇帝陛下御制,已加盖皇家印信以增权威 ========*/ +/*===================================================================*/ + +/*【敕史局】控制区总容器样式*/ +#amily2_manual_historiography_bureau .mhb-controls-wrapper { + display: flex; + flex-direction: column; + gap: 15px; + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 6px; + padding: 12px; + margin-top: 5px; +} + +/*【手动熔铸】输入框微调*/ +#amily2_manual_historiography_bureau .manual-command-block .manual-input { + width: 70px; +} + +/*谕旨编辑器的"保存"和"恢复默认"按钮样式*/ +#amily2_manual_historiography_bureau .editor-buttons-panel .accent { + background: linear-gradient(to right, #FF5722, #E64A19); + border: 1px solid #D84315; +} +#amily2_manual_historiography_bureau .editor-buttons-panel .accent:hover { + box-shadow: 0 0 8px rgba(255, 87, 34, 0.7); + transform: scale(1.03); +} +#amily2_manual_historiography_bureau .editor-buttons-panel .secondary { + background: linear-gradient(to right, #ffb300, #fb8c00); + border: 1px solid #f57c00; +} +#amily2_manual_historiography_bureau .editor-buttons-panel .secondary:hover { + box-shadow: 0 0 8px rgba(255, 179, 0, 0.7); + transform: scale(1.03); +} + +/*【宏史卷】区域的选择器容器*/ +#amily2_manual_historiography_bureau .mhb-selector-container { + display: flex; + flex-direction: row; + align-items: flex-start; + gap: 12px; + width: 100%; +} + +/*【宏史卷】区域的每个选择器组*/ +#amily2_manual_historiography_bureau .mhb-selector-group { + display: flex; + flex-direction: column; + flex-grow: 1; + min-width: 0; + gap: 5px; +} +#amily2_manual_historiography_bureau .mhb-selector-group > label { + width: auto; + margin-top: 0; +} + +/*=======================================*/ +/*======【远征与巡录指挥台样式 v2.0】======*/ +/*=======================================*/ + +/*【远征指挥台】总容器,现在拥有了皇家印信的权威*/ +#amily2_manual_historiography_bureau .auto-command-block { + display: flex; + justify-content: space-around; + align-items: center; + gap: 15px; + margin-top: 15px; + padding: 10px; + border: 1px solid var(--secondary-border); + border-radius: 8px; +} + +/*【指挥台】内部的“自动巡录”和“远征阈值”控件对*/ +#amily2_manual_historiography_bureau .auto-control-pair { + display: flex; + flex-direction: row; + align-items: center; + gap: 8px; +} +#amily2_manual_historiography_bureau #amily2_mhb_small_expedition_execute { + width: auto; /*强行解除其占据100%宽度的诅咒,让其宽度由自身内容决定*/ + flex-grow: 0; /*禁止其在有多余空间时进行不必要的扩张,保持其谦逊的体态*/ +} +#amily2_manual_historiography_bureau #amily2_mhb_small_expedition_execute { + background: linear-gradient(135deg, #8e44ad, #6a1b9a); /*高贵的紫罗兰色,象征远征的决心与皇权*/ + border: 1px solid #4a148c; + color: white; /*确保文字颜色在深色背景上清晰可见*/ + text-shadow: 0 0 2px rgba(0,0,0,0.3); /*保持一致的文字阴影*/ + transition: all 0.3s ease; /*保持一致的过渡动画*/ +} + +#amily2_manual_historiography_bureau #amily2_mhb_small_expedition_execute:hover { + background: linear-gradient(135deg, #9b59b6, #8e44ad); /*悬停时颜色变得更加明亮*/ + box-shadow: 0 0 10px rgba(142, 68, 173, 0.7); /*散发出代表力量的紫色光晕*/ + transform: translateY(-1px); /*保持一致的微动效*/ +} + +/*==============【熔铸按钮颜色修正,确保其火焰色泽不受干扰】==============*/ +#amily2_manual_historiography_bureau #amily2_mhb_small_manual_execute { + background: linear-gradient(135deg, #ff8a65, #ff5722); + border: 1px solid #e64a19; +} + +#amily2_manual_historiography_bureau #amily2_mhb_small_manual_execute:hover { + background: linear-gradient(135deg, #ff7043, #f4511e); + box-shadow: 0 0 10px rgba(255, 87, 34, 0.6); +} +/*================================================================*/ +/*====== 【圣旨:为指挥台授予红绿双色战旗】 @ v2.3 ======*/ +/*================================================================*/ + +/*【红色战旗】(危险/停止) - 强制、醒目的红色,代表“停止”这一最高指令*/ +#amily2_manual_historiography_bureau .danger { + background: linear-gradient(135deg, #e74c3c, #c0392b); /*醒目的赤红色,代表“停止”*/ + border: 1px solid #a93226; + color: white; +} + +#amily2_manual_historiography_bureau .danger:hover { + background: linear-gradient(135deg, #ec7063, #e74c3c); + box-shadow: 0 0 10px rgba(231, 76, 60, 0.7); /*散发代表警示的红色光晕*/ +} + +/*【绿色战旗】(安全/继续) - 充满希望的绿色,代表“继续”这一恢复指令*/ +#amily2_manual_historiography_bureau .success { + background: linear-gradient(135deg, #2ecc71, #27ae60); /*充满生机的翡翠绿,代表“继续”*/ + border: 1px solid #229954; + color: white; +} + +#amily2_manual_historiography_bureau .success:hover { + background: linear-gradient(135deg, #58d68d, #2ecc71); + box-shadow: 0 0 10px rgba(46, 204, 113, 0.7); /*散发代表希望的绿色光晕*/ +} \ No newline at end of file diff --git a/assets/style.css b/assets/style.css index 9eea6b9..2a0f853 100644 --- a/assets/style.css +++ b/assets/style.css @@ -401,3 +401,37 @@ hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0; } font-size: 9px; font-weight: normal; } +/* 左侧容器:垂直布局 */ +.header-left-panel { + 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); +} + +/* 确保所有可切换面板表现一致 */ +#rag_palace_panel { + display: none; +} + +.amily2-panel-visible { + display: flex; + flex-direction: column; + flex-grow: 1; +} \ No newline at end of file