Skip to content

Commit 27470c2

Browse files
committed
fix: Update emotion model and adjust tutorial steps for clarity
- Changed the emotion model from "free-tiny-model" to "free-mini-model" in the API configuration. - Updated tutorial popover titles and descriptions to reflect new step numbers for better user guidance. - Adjusted CSS for button heights to ensure consistent layout across components.
1 parent 6bf361e commit 27470c2

9 files changed

Lines changed: 202 additions & 80 deletions

File tree

config/api_providers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"openrouter_url": "https://lanlan.tech/text/v1",
4646
"summary_model": "free-model",
4747
"correction_model": "free-model",
48-
"emotion_model": "free-tiny-model",
48+
"emotion_model": "free-mini-model",
4949
"vision_model": "free-vision-model",
5050
"audio_api_key": "free-access",
5151
"openrouter_api_key": "free-access",

static/css/index.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -935,12 +935,12 @@ background: #fff;
935935
color: #222;
936936
resize: none;
937937
/* 高度精确等于按钮组总高度,确保上沿和下沿对齐 */
938-
/* 发送按钮: padding 8px上下 + border 2px上下(透明) + 内容高度(图标22px) = 8+2+22+2+8 = 42px */
938+
/* 发送按钮: padding 8px上下 + border 2px上下(透明) + 内容高度(图标28px) = 8+2+28+2+8 = 48px */
939939
/* gap: 6px */
940-
/* 截图按钮: padding 8px上下 + border 2px上下(蓝色) + 内容高度(图标22px) = 8+2+22+2+8 = 42px */
941-
/* 总高度: 42px + 6px + 42px = 90px */
940+
/* 截图按钮: padding 8px上下 + border 2px上下(蓝色) + 内容高度(图标28px) = 8+2+28+2+8 = 48px */
941+
/* 总高度: 48px + 6px + 48px = 102px */
942942
/* 由于box-sizing: border-box,边框包含在高度内 */
943-
height: 90px;
943+
height: 102px;
944944
box-sizing: border-box;
945945
cursor: text;
946946
caret-color: #222;
@@ -1232,9 +1232,12 @@ transition: none !important;
12321232

12331233
#textInputBox {
12341234
font-size: 0.9rem;
1235-
/* 移动端:按钮组高度 = 两个按钮(6px*2+内容) + gap(4px) */
1236-
height: 62px;
1237-
/* 保持移动端原有高度 */
1235+
/* 移动端:按钮组高度精确等于按钮组总高度 */
1236+
/* 发送按钮: padding 6px上下 + border 2px上下 + 内容高度(图标28px) = 6+2+28+2+6 = 44px */
1237+
/* gap: 4px */
1238+
/* 截图按钮: padding 6px上下 + border 2px上下 + 内容高度(图标28px) = 6+2+28+2+6 = 44px */
1239+
/* 总高度: 44px + 4px + 44px = 92px */
1240+
height: 92px;
12381241
}
12391242

12401243
#button-group {

static/libs/driver.min.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
overlayClickNext: options.overlayClickNext || false,
1616
animate: options.animate !== false,
1717
className: options.className || 'driver-default',
18+
// i18n 按钮文本
19+
nextBtnText: options.nextBtnText || '下一步',
20+
prevBtnText: options.prevBtnText || '上一步',
21+
doneBtnText: options.doneBtnText || '完成',
1822
...options
1923
};
2024

@@ -264,12 +268,12 @@
264268

265269
html += '<div class="driver-popover-footer">';
266270
if (stepIndex > 0) {
267-
html += '<button class="driver-prev">上一步</button>';
271+
html += `<button class="driver-prev">${this.options.prevBtnText}</button>`;
268272
}
269273
if (stepIndex < this.steps.length - 1) {
270-
html += '<button class="driver-next">下一步</button>';
274+
html += `<button class="driver-next">${this.options.nextBtnText}</button>`;
271275
} else {
272-
html += '<button class="driver-finish">完成</button>';
276+
html += `<button class="driver-finish">${this.options.doneBtnText}</button>`;
273277
}
274278
html += '</div>';
275279

static/locales/en.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,8 @@
955955
"tutorialPageMemoryBrowser": "Memory Browser",
956956
"resetTutorialBtn": "Reset Tutorial",
957957
"tutorialResetSuccess": "All tutorials have been reset. They will be shown again when you visit each page.",
958-
"tutorialPageResetSuccess": "Tutorial for this page has been reset. It will be shown again when you visit."
958+
"tutorialPageResetSuccess": "Tutorial for this page has been reset. It will be shown again when you visit.",
959+
"tutorialPageResetSuccessWithName": "Tutorial for \"{{pageName}}\" has been reset. It will be shown again when you visit that page."
959960
},
960961
"character": {
961962
"manager": "Character Manager",
@@ -1575,7 +1576,7 @@
15751576
},
15761577
"step2": {
15771578
"title": "🔑 Core API Provider",
1578-
"desc": "Most important setting. Core API handles conversation.\n\n• Free: Completely free, no API Key needed, great for beginners\n• Alibaba: Free quota available, full features\n• Zhipu: Free quota available, supports web search\n• OpenAI: Highest intelligence, but requires VPN and is expensive"
1579+
"desc": "Most important setting. Core API handles conversation."
15791580
},
15801581
"step3": {
15811582
"title": "📝 Core API Key",
@@ -1655,6 +1656,17 @@
16551656
"title": "📝 Chat History Editing",
16561657
"desc": "Shows all conversation records for selected character. View, edit or delete specific conversations here."
16571658
}
1659+
},
1660+
"buttons": {
1661+
"next": "Next",
1662+
"prev": "Previous",
1663+
"done": "Done",
1664+
"close": "Close"
1665+
},
1666+
"fullscreenPrompt": {
1667+
"title": "🎓 Start Tutorial",
1668+
"desc": "For the best tutorial experience, we recommend entering fullscreen mode.\nIn fullscreen mode, the tutorial content will be clearer and won't be obscured by other elements.",
1669+
"enterFullscreen": "Enter Fullscreen Tutorial"
16581670
}
16591671
},
16601672
"console": {

static/locales/ja.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,8 @@
10021002
"tutorialPageMemoryBrowser": "メモリブラウザ",
10031003
"resetTutorialBtn": "リセット",
10041004
"tutorialResetSuccess": "すべてのチュートリアルがリセットされました。各ページにアクセスすると再度表示されます。",
1005-
"tutorialPageResetSuccess": "このページのチュートリアルがリセットされました。次回アクセス時に再度表示されます。"
1005+
"tutorialPageResetSuccess": "このページのチュートリアルがリセットされました。次回アクセス時に再度表示されます。",
1006+
"tutorialPageResetSuccessWithName": "「{{pageName}}」のチュートリアルがリセットされました。次回アクセス時に再度表示されます。"
10061007
},
10071008
"character": {
10081009
"manager": "キャラクターマネージャー",
@@ -1618,7 +1619,7 @@
16181619
},
16191620
"step2": {
16201621
"title": "🔑 コアAPIプロバイダー",
1621-
"desc": "最も重要な設定です。コアAPIは会話機能を処理します。\n\n• 無料版:完全無料、APIキー不要、初心者向け\n• Alibaba:無料枠あり、機能充実\n• Zhipu:無料枠あり、ウェブ検索対応\n• OpenAI:最高の知能レベル、ただしVPN必要で高価"
1622+
"desc": "最も重要な設定です。コアAPIは会話機能を処理します。"
16221623
},
16231624
"step3": {
16241625
"title": "📝 コアAPIキー",
@@ -1698,6 +1699,17 @@
16981699
"title": "📝 チャット履歴編集",
16991700
"desc": "選択したキャラクターのすべての会話記録を表示します。ここで特定の会話を表示・編集・削除できます。"
17001701
}
1702+
},
1703+
"buttons": {
1704+
"next": "次へ",
1705+
"prev": "前へ",
1706+
"done": "完了",
1707+
"close": "閉じる"
1708+
},
1709+
"fullscreenPrompt": {
1710+
"title": "🎓 チュートリアルを開始",
1711+
"desc": "最高のチュートリアル体験のために、フルスクリーンモードに入ることをお勧めします。\nフルスクリーンモードでは、チュートリアルの内容がより見やすく、他の要素に遮られません。",
1712+
"enterFullscreen": "フルスクリーンで開始"
17011713
}
17021714
},
17031715
"console": {

static/locales/zh-CN.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,8 @@
973973
"tutorialPageMemoryBrowser": "记忆浏览",
974974
"resetTutorialBtn": "重置引导",
975975
"tutorialResetSuccess": "已重置所有引导,下次进入各页面时将重新显示引导。",
976-
"tutorialPageResetSuccess": "已重置该页面的引导,下次进入时将重新显示引导。"
976+
"tutorialPageResetSuccess": "已重置该页面的引导,下次进入时将重新显示引导。",
977+
"tutorialPageResetSuccessWithName": "已重置「{{pageName}}」的引导,下次进入该页面时将重新显示引导。"
977978
},
978979
"character": {
979980
"manager": "角色管理",
@@ -1635,7 +1636,7 @@
16351636
},
16361637
"step2": {
16371638
"title": "🔑 核心 API 服务商",
1638-
"desc": "这是最重要的设置。核心 API 负责对话功能。\n\n• 免费版:完全免费,无需 API Key,适合新手体验\n• 阿里:有免费额度,功能全面\n• 智谱:有免费额度,支持联网搜索\n• OpenAI:智能水平最高,但需要翻墙且价格昂贵"
1639+
"desc": "这是最重要的设置。核心 API 负责对话功能。"
16391640
},
16401641
"step3": {
16411642
"title": "📝 核心 API Key",
@@ -1715,6 +1716,17 @@
17151716
"title": "📝 聊天记录编辑",
17161717
"desc": "这里显示选中猫娘的所有对话记录。您可以在这里查看、编辑或删除特定的对话内容。"
17171718
}
1719+
},
1720+
"buttons": {
1721+
"next": "下一步",
1722+
"prev": "上一步",
1723+
"done": "完成",
1724+
"close": "关闭"
1725+
},
1726+
"fullscreenPrompt": {
1727+
"title": "🎓 开始新手引导",
1728+
"desc": "为了获得最佳的引导体验,建议进入全屏模式。\n全屏模式下,引导内容会更清晰,不会被其他元素遮挡。",
1729+
"enterFullscreen": "进入全屏引导"
17181730
}
17191731
},
17201732
"console": {

static/locales/zh-TW.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,8 @@
972972
"tutorialPageMemoryBrowser": "記憶瀏覽",
973973
"resetTutorialBtn": "重置引導",
974974
"tutorialResetSuccess": "已重置所有引導,下次進入各頁面時將重新顯示引導。",
975-
"tutorialPageResetSuccess": "已重置該頁面的引導,下次進入時將重新顯示引導。"
975+
"tutorialPageResetSuccess": "已重置該頁面的引導,下次進入時將重新顯示引導。",
976+
"tutorialPageResetSuccessWithName": "已重置「{{pageName}}」的引導,下次進入該頁面時將重新顯示引導。"
976977
},
977978
"character": {
978979
"manager": "角色管理",
@@ -1636,7 +1637,7 @@
16361637
},
16371638
"step2": {
16381639
"title": "🔑 核心 API 服務商",
1639-
"desc": "這是最重要的設置。核心 API 負責對話功能。\n\n• 免費版:完全免費,無需 API Key,適合新手體驗\n• 阿里:有免費額度,功能全面\n• 智譜:有免費額度,支持聯網搜索\n• OpenAI:智能水平最高,但需要翻牆且價格昂貴"
1640+
"desc": "這是最重要的設置。核心 API 負責對話功能。"
16401641
},
16411642
"step3": {
16421643
"title": "📝 核心 API Key",
@@ -1716,6 +1717,17 @@
17161717
"title": "📝 聊天記錄編輯",
17171718
"desc": "這裡顯示選中貓娘的所有對話記錄。妳可以在這裡查看、編輯或刪除特定的對話內容。"
17181719
}
1720+
},
1721+
"buttons": {
1722+
"next": "下一步",
1723+
"prev": "上一步",
1724+
"done": "完成",
1725+
"close": "關閉"
1726+
},
1727+
"fullscreenPrompt": {
1728+
"title": "🎓 開始新手引導",
1729+
"desc": "為了獲得最佳的引導體驗,建議進入全螢幕模式。\n全螢幕模式下,引導內容會更清晰,不會被其他元素遮擋。",
1730+
"enterFullscreen": "進入全螢幕引導"
17191731
}
17201732
},
17211733
"console": {

0 commit comments

Comments
 (0)