拆分 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
+200 -43
View File
@@ -53,8 +53,20 @@
"pageTitle": "I/O",
"inputSection": "Input",
"outputSection": "Output",
"inputOptions": ["USB-B", "USB-C", "Coaxial", "Optical", "Bluetooth", "IIS"],
"outputOptions": ["XLR", "RCA", "Headset", "XLR/RCA"],
"inputOptions": [
"USB-B",
"USB-C",
"Coaxial",
"Optical",
"Bluetooth",
"IIS"
],
"outputOptions": [
"XLR",
"RCA",
"Headset",
"XLR/RCA"
],
"input": {
"coaxial": "COAXIAL",
"optical": "OPTICAL",
@@ -75,7 +87,6 @@
"tone": "Tone",
"loudness": "Loudness",
"threshold": "Threshold",
"delayed": "Delayed",
"mainframeCase": "Main speaker",
"subwooferUnit": "Subwoofer",
@@ -329,8 +340,40 @@
"paramInputInvalid": "Enter a valid number",
"paramInputOutOfRangeFreq": "Frequency must be between {{min}} and {{max}} Hz",
"paramInputOutOfRangeGain": "Gain must be between {{min}} and {{max}} dB",
"paramInputOutOfRangeQ": "Q must be between {{min}} and {{max}}"
}
"paramInputOutOfRangeQ": "Q must be between {{min}} and {{max}}",
"overwritePresetTitle": "Preset name already exists",
"overwritePresetDesc": "A preset named \"{{name}}\" already exists. Overwrite it?",
"overwritePresetConfirm": "Overwrite",
"overwritePresetCancelled": "Cancelled",
"shareTitle": "Share EQ",
"shareSelectHint": "Select the EQ preset to share",
"shareConfirm": "Generate Code",
"shareCodeLabel": "Share Code",
"shareCopied": "Code copied",
"shareGenerating": "Generating…",
"shareCreateFail": "Failed to generate share code",
"shareActiveExists": "You already have an active share code. Please try again later.",
"shareInvalidParams": "Invalid request. Please check and try again.",
"shareSystemError": "System error. Please try again later.",
"shareExpireAt": "Expires at",
"importTab": "Import EQ",
"importCodeHint": "Enter or paste the 5-character share code",
"importQuery": "Query",
"importQuerying": "Querying…",
"importCodeNotFound": "Share code not found or expired",
"importEqName": "EQ Name",
"importButton": "Import",
"importSaving": "Importing…",
"importSuccess": "EQ imported successfully",
"importFail": "Failed to import EQ",
"mySharesTab": "My Shares",
"mySharesLoading": "Loading…",
"mySharesEmpty": "No shared EQ yet",
"mySharesCode": "Code",
"mySharesName": "EQ Name",
"mySharesLoadFail": "Failed to load share list"
},
"share": "Share EQ"
},
"dac": {
"sectionBalanceSensitivity": "Balance & sensitivity",
@@ -388,23 +431,44 @@
"autoImpedance": {
"label": "Auto Impedance Detection",
"options": [
{ "index": 0, "label": "Off" },
{ "index": 1, "label": "On" }
{
"index": 0,
"label": "Off"
},
{
"index": 1,
"label": "On"
}
]
},
"dreMode": {
"label": "Dynamic Range Enhancement",
"options": [
{ "index": 0, "label": "Off" },
{ "index": 1, "label": "On" }
{
"index": 0,
"label": "Off"
},
{
"index": 1,
"label": "On"
}
]
},
"dacVolumeDirect": {
"label": "Pre-out Volume passthrough",
"options": [
{ "index": 0, "label": "Off" },
{ "index": 1, "label": "0dB" },
{ "index": 2, "label": "-12dB" }
{
"index": 0,
"label": "Off"
},
{
"index": 1,
"label": "0dB"
},
{
"index": 2,
"label": "-12dB"
}
]
},
"dacVolumeDirectConfirm": {
@@ -419,17 +483,50 @@
"bootVolume": {
"label": "Boot volume",
"options": [
{ "index": 0, "label": "Default" },
{ "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": "Default"
},
{
"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": {
@@ -461,21 +558,51 @@
"mutePolar": {
"label": "Mute polar",
"options": [
{ "index": 0, "label": "Low(mute)" },
{ "index": 1, "label": "High(mute)" }
{
"index": 0,
"label": "Low(mute)"
},
{
"index": 1,
"label": "High(mute)"
}
]
},
"IISMode": {
"label": "IIS mode",
"options": [
{ "index": 0, "label": "mode 1" },
{ "index": 1, "label": "mode 2" },
{ "index": 2, "label": "mode 3" },
{ "index": 3, "label": "mode 4" },
{ "index": 4, "label": "mode 5" },
{ "index": 5, "label": "mode 6" },
{ "index": 6, "label": "mode 7" },
{ "index": 7, "label": "mode 8" }
{
"index": 0,
"label": "mode 1"
},
{
"index": 1,
"label": "mode 2"
},
{
"index": 2,
"label": "mode 3"
},
{
"index": 3,
"label": "mode 4"
},
{
"index": 4,
"label": "mode 5"
},
{
"index": 5,
"label": "mode 6"
},
{
"index": 6,
"label": "mode 7"
},
{
"index": 7,
"label": "mode 8"
}
]
}
},
@@ -573,17 +700,35 @@
"sleepTime": {
"label": "Sleep",
"options": [
{ "index": 0, "label": "Off" },
{ "index": 1, "label": "No signal after 1 min" },
{ "index": 2, "label": "No signal after 5 min" },
{ "index": 3, "label": "No signal after 10 min" }
{
"index": 0,
"label": "Off"
},
{
"index": 1,
"label": "No signal after 1 min"
},
{
"index": 2,
"label": "No signal after 5 min"
},
{
"index": 3,
"label": "No signal after 10 min"
}
]
},
"buttonLight": {
"label": "Knob Screen-Off Breathing Light",
"options": [
{ "index": 0, "label": "On" },
{ "index": 1, "label": "Off" }
{
"index": 0,
"label": "On"
},
{
"index": 1,
"label": "Off"
}
]
},
"language": {
@@ -672,10 +817,22 @@
"welcomeDescription": "I can assist with Luxsin X8 system configuration, headphone frequency response analysis, EQ optimization, and advanced audio setup guidance.",
"suggestionsLabel": "Try asking",
"suggestions": [
{ "title": "EQ Optimization", "prompt": "Optimize my current EQ for clearer vocals, deeper bass." },
{ "title": "Recommend Pop EQ", "prompt": "Recommend a set of EQ parameters suitable for pop music." },
{ "title": "Check device status", "prompt": "Show me the current volume, input source and output port." },
{ "title": "Switch input source", "prompt": "Switch the input source to USB-C." }
{
"title": "EQ Optimization",
"prompt": "Optimize my current EQ for clearer vocals, deeper bass."
},
{
"title": "Recommend Pop EQ",
"prompt": "Recommend a set of EQ parameters suitable for pop music."
},
{
"title": "Check device status",
"prompt": "Show me the current volume, input source and output port."
},
{
"title": "Switch input source",
"prompt": "Switch the input source to USB-C."
}
],
"inputPlaceholder": "Ask about your device, EQ, effects…",
"thinking": "Thinking…",