拆分 EQPage 页面,新增分享码功能,修复 bug,优化性能

This commit is contained in:
eafonyang
2026-06-15 18:39:07 +08:00
parent 1b0b447eee
commit a045db235a
15 changed files with 3198 additions and 1181 deletions
+432 -100
View File
@@ -53,10 +53,29 @@
"pageTitle": "輸入/輸出",
"inputSection": "輸入",
"outputSection": "輸出",
"inputOptions": ["USB-B", "USB-C", "同軸", "光纖", "藍牙", "IIS"],
"outputOptions": ["XLR", "RCA", "耳機", "XLR/RCA"],
"input": { "coaxial": "同軸", "optical": "光纖", "bluetooth": "藍牙", "rca": "類比RCA" },
"output": { "headset": "耳機" }
"inputOptions": [
"USB-B",
"USB-C",
"同軸",
"光纖",
"藍牙",
"IIS"
],
"outputOptions": [
"XLR",
"RCA",
"耳機",
"XLR/RCA"
],
"input": {
"coaxial": "同軸",
"optical": "光纖",
"bluetooth": "藍牙",
"rca": "類比RCA"
},
"output": {
"headset": "耳機"
}
},
"effect": {
"pageTitle": "音效",
@@ -74,25 +93,75 @@
"style": {
"label": "風格",
"options": [
{ "index": 0, "label": "古典" },
{ "index": 1, "label": "舞曲" },
{ "index": 2, "label": "流行" },
{ "index": 3, "label": "雷鬼" },
{ "index": 4, "label": "現場" },
{ "index": 5, "label": "搖滾" },
{ "index": 6, "label": "柔和" },
{ "index": 7, "label": "電子樂" },
{ "index": 8, "label": "俱樂部" },
{ "index": 9, "label": "全低音" },
{ "index": 10, "label": "全高音" },
{ "index": 11, "label": "耳機" },
{ "index": 12, "label": "大廳" },
{ "index": 13, "label": "聚合" },
{ "index": 14, "label": "斯卡" },
{ "index": 15, "label": "慢搖" }
{
"index": 0,
"label": "古典"
},
{
"index": 1,
"label": "舞曲"
},
{
"index": 2,
"label": "流行"
},
{
"index": 3,
"label": "雷鬼"
},
{
"index": 4,
"label": "現場"
},
{
"index": 5,
"label": "搖滾"
},
{
"index": 6,
"label": "柔和"
},
{
"index": 7,
"label": "電子樂"
},
{
"index": 8,
"label": "俱樂部"
},
{
"index": 9,
"label": "全低音"
},
{
"index": 10,
"label": "全高音"
},
{
"index": 11,
"label": "耳機"
},
{
"index": 12,
"label": "大廳"
},
{
"index": 13,
"label": "聚合"
},
{
"index": 14,
"label": "斯卡"
},
{
"index": 15,
"label": "慢搖"
}
]
},
"stereoWidth": { "label": "聲場寬度" },
"stereoWidth": {
"label": "聲場寬度"
},
"crossfeed": {
"label": "交叉回授",
"options": [
@@ -109,8 +178,14 @@
"output": {
"label": "輸出方式",
"options": [
{ "label": "單聲道", "index": 0 },
{ "label": "立體聲", "index": 1 }
{
"label": "單聲道",
"index": 0
},
{
"label": "立體聲",
"index": 1
}
]
}
},
@@ -265,8 +340,40 @@
"paramInputInvalid": "請輸入有效數值",
"paramInputOutOfRangeFreq": "頻率需在 {{min}} {{max}} Hz 之間",
"paramInputOutOfRangeGain": "增益需在 {{min}} {{max}} dB 之間",
"paramInputOutOfRangeQ": "Q 值需在 {{min}} {{max}} 之間"
}
"paramInputOutOfRangeQ": "Q 值需在 {{min}} {{max}} 之間",
"overwritePresetTitle": "預設名稱已存在",
"overwritePresetDesc": "預設「{{name}}」已存在,確認覆蓋原有資料嗎?",
"overwritePresetConfirm": "覆蓋",
"overwritePresetCancelled": "已取消",
"shareTitle": "分享 EQ",
"shareSelectHint": "選擇要分享的 EQ 預設",
"shareConfirm": "產生分享碼",
"shareCodeLabel": "分享碼",
"shareCopied": "已複製分享碼",
"shareGenerating": "產生中…",
"shareCreateFail": "產生分享碼失敗",
"shareActiveExists": "已有未過期的分享碼,請稍後再試",
"shareInvalidParams": "請求參數無效,請檢查後重試",
"shareSystemError": "系統錯誤,請稍後重試",
"shareExpireAt": "有效期至",
"importTab": "匯入 EQ",
"importCodeHint": "輸入或貼上 5 位分享碼",
"importQuery": "查詢",
"importQuerying": "查詢中…",
"importCodeNotFound": "分享碼不存在或已過期",
"importEqName": "EQ 名稱",
"importButton": "匯入",
"importSaving": "匯入中…",
"importSuccess": "EQ 匯入成功",
"importFail": "EQ 匯入失敗",
"mySharesTab": "我的分享",
"mySharesLoading": "載入中…",
"mySharesEmpty": "暫無分享記錄",
"mySharesCode": "分享碼",
"mySharesName": "EQ 名稱",
"mySharesLoadFail": "載入分享列表失敗"
},
"share": "分享 EQ"
},
"dac": {
"sectionBalanceSensitivity": "平衡與靈敏度",
@@ -278,42 +385,90 @@
"filters": {
"label": "濾波特性",
"options": [
{ "index": 0, "label": "快速衰減" },
{ "index": 1, "label": "慢速衰減" },
{ "index": 2, "label": "短延遲快速衰減" },
{ "index": 3, "label": "短延遲慢速衰減" },
{ "index": 4, "label": "去重強調" },
{ "index": 5, "label": "非過采樣(NOS" }
{
"index": 0,
"label": "快速衰減"
},
{
"index": 1,
"label": "慢速衰減"
},
{
"index": 2,
"label": "短延遲快速衰減"
},
{
"index": 3,
"label": "短延遲慢速衰減"
},
{
"index": 4,
"label": "去重強調"
},
{
"index": 5,
"label": "非過采樣(NOS"
}
]
},
"dacGain": {
"label": "耳機增益",
"options": [
{ "index": 0, "label": "低" },
{ "index": 1, "label": "中" },
{ "index": 2, "label": "" }
{
"index": 0,
"label": ""
},
{
"index": 1,
"label": "中"
},
{
"index": 2,
"label": "高"
}
]
},
"autoImpedance": {
"label": "自動檢測耳機阻抗",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "打開" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "打開"
}
]
},
"dreMode": {
"label": "動態範圍增強",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "打開" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "打開"
}
]
},
"dacVolumeDirect": {
"label": "前級輸出音量直通模式",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "0dB" },
{ "index": 2, "label": "-12dB" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "0dB"
},
{
"index": 2,
"label": "-12dB"
}
]
},
"dacVolumeDirectConfirm": {
@@ -328,51 +483,126 @@
"bootVolume": {
"label": "開機音量",
"options": [
{ "index": 0, "label": "預設" },
{ "index": 1, "label": "-5dB" },
{ "index": 2, "label": "-10dB" },
{ "index": 3, "label": "-15dB" },
{ "index": 4, "label": "-20dB" },
{ "index": 5, "label": "-25dB" },
{ "index": 6, "label": "-30dB" },
{ "index": 7, "label": "-35dB" },
{ "index": 8, "label": "-40dB" },
{ "index": 9, "label": "-45dB" },
{ "index": 10, "label": "-50dB" }
{
"index": 0,
"label": "預設"
},
{
"index": 1,
"label": "-5dB"
},
{
"index": 2,
"label": "-10dB"
},
{
"index": 3,
"label": "-15dB"
},
{
"index": 4,
"label": "-20dB"
},
{
"index": 5,
"label": "-25dB"
},
{
"index": 6,
"label": "-30dB"
},
{
"index": 7,
"label": "-35dB"
},
{
"index": 8,
"label": "-40dB"
},
{
"index": 9,
"label": "-45dB"
},
{
"index": 10,
"label": "-50dB"
}
]
},
"xlr": {
"label": "XLR端子極性",
"options": [
{ "index": 0, "label": "正常" },
{ "index": 1, "label": "反向" }
{
"index": 0,
"label": "正常"
},
{
"index": 1,
"label": "反向"
}
]
},
"arc": {
"label": "ARC模式",
"options": [
{ "index": 0, "label": "ARC" },
{ "index": 1, "label": "EARC" }
{
"index": 0,
"label": "ARC"
},
{
"index": 1,
"label": "EARC"
}
]
},
"mutePolar": {
"label": "IIS 靜音電平",
"options": [
{ "index": 0, "label": "低電平" },
{ "index": 1, "label": "高電平" }
{
"index": 0,
"label": "低電平"
},
{
"index": 1,
"label": "高電平"
}
]
},
"IISMode": {
"label": "IIS模式",
"options": [
{ "index": 0, "label": "模式1" },
{ "index": 1, "label": "模式2" },
{ "index": 2, "label": "模式3" },
{ "index": 3, "label": "模式4" },
{ "index": 4, "label": "模式5" },
{ "index": 5, "label": "模式6" },
{ "index": 6, "label": "模式7" },
{ "index": 7, "label": "模式8" }
{
"index": 0,
"label": "模式1"
},
{
"index": 1,
"label": "模式2"
},
{
"index": 2,
"label": "模式3"
},
{
"index": 3,
"label": "模式4"
},
{
"index": 4,
"label": "模式5"
},
{
"index": 5,
"label": "模式6"
},
{
"index": 6,
"label": "模式7"
},
{
"index": 7,
"label": "模式8"
}
]
}
},
@@ -382,71 +612,161 @@
"screenBrightness": {
"label": "螢幕亮度",
"options": [
{ "index": 0, "label": "較亮" },
{ "index": 1, "label": "中等" },
{ "index": 2, "label": "較" }
{
"index": 0,
"label": "較"
},
{
"index": 1,
"label": "中等"
},
{
"index": 2,
"label": "較暗"
}
]
},
"sleep": {
"label": "休眠",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "無訊號1分鐘" },
{ "index": 2, "label": "無訊號5分鐘" },
{ "index": 3, "label": "無訊號10分鐘" },
{ "index": 4, "label": "無訊號15分鐘" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "無訊號1分鐘"
},
{
"index": 2,
"label": "無訊號5分鐘"
},
{
"index": 3,
"label": "無訊號10分鐘"
},
{
"index": 4,
"label": "無訊號15分鐘"
}
]
},
"turnOffScreen": {
"label": "關閉螢幕",
"options": [
{ "index": 0, "label": "常亮" },
{ "index": 1, "label": "無操作30秒" },
{ "index": 2, "label": "無操作1分鐘" },
{ "index": 3, "label": "無操作3分鐘" },
{ "index": 4, "label": "無操作5分鐘" }
{
"index": 0,
"label": "常亮"
},
{
"index": 1,
"label": "無操作30秒"
},
{
"index": 2,
"label": "無操作1分鐘"
},
{
"index": 3,
"label": "無操作3分鐘"
},
{
"index": 4,
"label": "無操作5分鐘"
}
]
},
"knobBrightness": {
"label": "旋鈕亮度",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "較亮" },
{ "index": 2, "label": "中等" },
{ "index": 3, "label": "較暗" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "較亮"
},
{
"index": 2,
"label": "中等"
},
{
"index": 3,
"label": "較暗"
}
]
},
"sleepTime": {
"label": "休眠",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "無信號 1 分鐘後" },
{ "index": 2, "label": "無信號 5 分鐘後" },
{ "index": 3, "label": "無信號 10 分鐘後" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "無信號 1 分鐘後"
},
{
"index": 2,
"label": "無信號 5 分鐘後"
},
{
"index": 3,
"label": "無信號 10 分鐘後"
}
]
},
"buttonLight": {
"label": "旋鈕熄屏呼吸燈",
"options": [
{ "index": 0, "label": "開啟" },
{ "index": 1, "label": "關閉" }
{
"index": 0,
"label": "開啟"
},
{
"index": 1,
"label": "關閉"
}
]
},
"language": {
"label": "語言",
"options": [
{ "index": 0, "label": "英語" },
{ "index": 1, "label": "中文(繁體)" },
{ "index": 2, "label": "中文(簡體)" }
{
"index": 0,
"label": "英語"
},
{
"index": 1,
"label": "中文(繁體)"
},
{
"index": 2,
"label": "中文(簡體)"
}
]
},
"Automatic": {
"label": "自動返回首頁",
"options": [
{ "index": 0, "label": "關閉" },
{ "index": 1, "label": "無操作20秒" },
{ "index": 2, "label": "無操作40秒" },
{ "index": 3, "label": "無操作60秒" }
{
"index": 0,
"label": "關閉"
},
{
"index": 1,
"label": "無操作20秒"
},
{
"index": 2,
"label": "無操作40秒"
},
{
"index": 3,
"label": "無操作60秒"
}
]
},
"systemPage": {
@@ -497,10 +817,22 @@
"welcomeDescription": "可以幫你查詢與調整 {device} 的設定,分析耳機頻響、優化 EQ,或者解答使用上的疑問。",
"suggestionsLabel": "試試這樣問",
"suggestions": [
{ "title": "優化我的 EQ", "prompt": "幫我優化目前 EQ,我希望人聲更清晰一些" },
{ "title": "推薦流行樂 EQ", "prompt": "推薦一套適合聽流行音樂的 EQ 參數" },
{ "title": "查看裝置狀態", "prompt": "幫我查看目前的音量、輸入源和輸出埠" },
{ "title": "切換輸入源", "prompt": "把輸入源切換到 USB-C" }
{
"title": "優化我的 EQ",
"prompt": "幫我優化目前 EQ,我希望人聲更清晰一些"
},
{
"title": "推薦流行樂 EQ",
"prompt": "推薦一套適合聽流行音樂的 EQ 參數"
},
{
"title": "查看裝置狀態",
"prompt": "幫我查看目前的音量、輸入源和輸出埠"
},
{
"title": "切換輸入源",
"prompt": "把輸入源切換到 USB-C"
}
],
"inputPlaceholder": "問問關於裝置、EQ、音效……",
"thinking": "思考中…",