新增分享 EQ 功能,具体功能还没实现,先用伪代码

This commit is contained in:
eafonyang
2026-06-12 19:50:14 +08:00
parent 72d0872ced
commit 517ae96ab1
7 changed files with 586 additions and 828 deletions
-274
View File
@@ -1,274 +0,0 @@
{
"home": { "audioSet": "Audioeinstellungen" },
"source": {
"label": "Eingang & Ausgang",
"inputOptions": ["USB-B", "USB-C", "Koaxial", "Optisch", "Bluetooth", "HDMI-EARC", "RCA", "USB-Treiber"],
"input": {
"coaxial": "Koaxial",
"optical": "Optisch",
"bluetooth": "Bluetooth",
"rca": "Analog RCA"
},
"output": { "headset": "Kopfhörer" }
},
"effect": {
"lowBass": "Tiefton",
"enterBass": "Mittlerer Ton",
"highBass": "Hochton",
"tone": "Tonhöhe",
"loudness": "Lautheit",
"threshold": "Schwellenwert",
"delayed": "Verzögerung",
"mainframeCase": "Hauptgehäuse",
"subwooferUnit": "Subwoofer",
"style": {
"label": "Stil",
"options": [
{ "index": 0, "label": "Klassisch" },
{ "index": 1, "label": "Dance" },
{ "index": 2, "label": "Pop" },
{ "index": 3, "label": "Reggae" },
{ "index": 4, "label": "Live" },
{ "index": 5, "label": "Rock" },
{ "index": 6, "label": "Sanft" },
{ "index": 7, "label": "Elektronisch" },
{ "index": 8, "label": "Club" },
{ "index": 9, "label": "Nur Bass" },
{ "index": 10, "label": "Nur Höhen" },
{ "index": 11, "label": "Kopfhörer" },
{ "index": 12, "label": "Halle" },
{ "index": 13, "label": "Fusion" },
{ "index": 14, "label": "Ska" },
{ "index": 15, "label": "Slow Dance" }
]
},
"stereoWidth": { "label": "Stereobreite" },
"crossfeed": { "label": "Crossfeed" },
"subwoofer": {
"label": "Subwoofer-Ausgang",
"freq": "Tiefpassfrequenz",
"attenuation": "Dämpfungsrate",
"gain": "Bassverstärkung",
"output": {
"label": "Ausgangsmodus",
"options": [
{ "label": "Mono", "index": 0 },
{ "label": "Stereo", "index": 1 }
]
}
}
},
"peq": {
"Standard": "Standard-Equalizer-Voreinstellung",
"edit": "Mehrfachbearbeitung",
"headset": "Kopfhörermodell hinzufügen",
"preamp": "Vorverstärkung",
"filters": {
"label": "Filter",
"options": [
{
"index": 0,
"title": "LPF",
"desc1": "Tiefpassfilter lässt nur Signale unterhalb",
"desc2": "einer bestimmten Grenzfrequenz durch,",
"desc3": "Hochfrequente Signale werden abgeschwächt.",
"img": "LPF.png"
},
{
"index": 1,
"title": "HPF",
"desc1": "Hochpassfilter lässt nur Signale oberhalb",
"desc2": "einer bestimmten Grenzfrequenz durch,",
"desc3": "Niederfrequente Signale werden abgeschwächt.",
"img": "HPF.png"
},
{
"index": 2,
"title": "BPF",
"img": "BPF.png",
"desc1": "Bandpassfilter lässt nur Signale in einem",
"desc2": "bestimmten Frequenzbereich durch,",
"desc3": "andere Frequenzen werden abgeschwächt."
},
{
"index": 3,
"title": "NOTCH",
"img": "NOTCH.png",
"desc1": "Notch-Filter zur Beseitigung von",
"desc2": "Resonanzen oder Störungen bei bestimmten Frequenzen."
},
{
"index": 4,
"title": "PEAK",
"img": "PEAK.png",
"desc1": "Peak-Filter verstärken oder dämpfen",
"desc2": "Signale um eine bestimmte Frequenz herum."
},
{
"index": 5,
"title": "LSHELF",
"img": "LSHELF.png",
"desc1": "Low-Shelf-Filter zur Verstärkung oder",
"desc2": "Dämpfung tiefer Frequenzen."
},
{
"index": 5,
"title": "HSHELF",
"img": "HSHELF.png",
"desc1": "High-Shelf-Filter zur Verstärkung oder",
"desc2": "Dämpfung hoher Frequenzen."
},
{
"index": 6,
"title": "APF",
"img": "APF.png",
"desc1": "Allpassfilter verändern nur",
"desc2": "die Phase des Signals, nicht die Amplitude."
}
]
},
"freq": "FREQ",
"gain": "GAIN",
"q": "Q-Wert",
"loadDeviceBtn": "Laden bestätigen",
"peqNoneItem": "Nicht konfiguriert"
},
"dac": {
"balance": "Balance Links/Rechts",
"filters": {
"label": "Filtercharakteristik",
"options": [
{ "index": 0, "label": "Schneller Abfall" },
{ "index": 1, "label": "Langsamer Abfall" },
{ "index": 2, "label": "Kurze Verzögerung, schneller Abfall" },
{ "index": 3, "label": "Kurze Verzögerung, langsamer Abfall" },
{ "index": 4, "label": "Sehr langsamer Abfall" },
{ "index": 5, "label": "Geringe Dispersion, kurze Verzögerung" }
]
},
"headPhoneGain": {
"label": "Kopfhörerverstärkung",
"options": [
{ "index": 0, "label": "Niedrig" },
{ "index": 1, "label": "Mittel" },
{ "index": 2, "label": "Hoch" }
]
},
"volumeStep": "Lautstärkeschritt",
"bootVolume": "Startlautstärke",
"xlr": {
"label": "XLR-Polarität",
"options": [
{ "index": 0, "label": "Normal" },
{ "index": 1, "label": "Invertiert" }
]
},
"arc": {
"label": "ARC-Modus",
"options": [
{ "index": 0, "label": "ARC" },
{ "index": 1, "label": "EARC" }
]
}
},
"settings": {
"vu": "Einstellungen",
"vuMeter": "VU-Meter",
"screenBrightness": {
"label": "Bildschirmhelligkeit",
"options": [
{ "index": 0, "label": "Hell" },
{ "index": 1, "label": "Mittel" },
{ "index": 2, "label": "Dunkel" }
]
},
"sleep": {
"label": "Ruhezustand",
"options": [
{ "index": 0, "label": "Aus" },
{ "index": 1, "label": "Kein Signal 1 Min" },
{ "index": 2, "label": "Kein Signal 5 Min" },
{ "index": 3, "label": "Kein Signal 10 Min" },
{ "index": 4, "label": "Kein Signal 15 Min" }
]
},
"turnOffScreen": {
"label": "Bildschirm ausschalten",
"options": [
{ "index": 0, "label": "Immer an" },
{ "index": 1, "label": "Keine Aktion 30 Sek" },
{ "index": 2, "label": "Keine Aktion 1 Min" },
{ "index": 3, "label": "Keine Aktion 3 Min" },
{ "index": 4, "label": "Keine Aktion 5 Min" }
]
},
"knobBrightness": {
"label": "Drehknopfhelligkeit",
"options": [
{ "index": 0, "label": "Aus" },
{ "index": 1, "label": "Hell" },
{ "index": 2, "label": "Mittel" },
{ "index": 3, "label": "Dunkel" }
]
},
"sleepTime": {
"label": "Ruhezustand",
"options": [
{ "index": 0, "label": "Aus" },
{ "index": 1, "label": "Kein Signal nach 1 Min." },
{ "index": 2, "label": "Kein Signal nach 5 Min." },
{ "index": 3, "label": "Kein Signal nach 10 Min." }
]
},
"buttonLight": {
"label": "Drehknopf-Standby-Atemlicht",
"options": [
{ "index": 0, "label": "Ein" },
{ "index": 1, "label": "Aus" }
]
},
"language": {
"label": "Sprache",
"options": [
{ "index": 0, "label": "Englisch" },
{ "index": 1, "label": "Chinesisch (traditionell)" },
{ "index": 2, "label": "Chinesisch (vereinfacht)" },
{ "index": 3, "label": "Deutsch" },
{ "index": 4, "label": "Spanisch" },
{ "index": 5, "label": "Französisch" }
]
},
"Automatic": {
"label": "Automatisch zur Startseite zurückkehren",
"options": [
{ "index": 0, "label": "Aus" },
{ "index": 1, "label": "Keine Aktion 20 Sek" },
{ "index": 2, "label": "Keine Aktion 40 Sek" },
{ "index": 3, "label": "Keine Aktion 60 Sek" }
]
}
},
"prompt": {
"prompt": "Hinweis",
"NotAdded": "Kopfhörer nicht hinzugefügt. Möchten Sie hinzufügen?",
"confirm": "Bestätigen",
"cancel": "Abbrechen",
"save": "Speichern",
"reset": "Zurücksetzen",
"delete": "Löschen",
"add": "Hinzufügen",
"edit": "Bearbeiten",
"deleteConfirm": "Möchten Sie löschen?",
"saveConfirm": "Speichern bestätigen?",
"HP-EQ": "HP-EQ ist deaktiviert. Aktivieren?",
"Effect": "Effekt ist deaktiviert. Aktivieren?",
"EnableEffectY": "Bestätigen",
"EnableEffectN": "Abbrechen",
"noDelete": "Dieser Eintrag kann nicht gelöscht werden",
"SavePreset": "Neue Voreinstellung speichern",
"default": "Standard",
"invalidData": "Ungültige Daten",
"range": "Bereich",
"selectedYet": "Sie haben keine Zielkurve ausgewählt"
}
}
+22 -1
View File
@@ -210,6 +210,7 @@
"Standard": "Standard equalizer preset",
"edit": "Batch Edit",
"headset": "Add HeadSet",
"share": "Share EQ",
"preamp": "Preamp",
"filters": {
"label": "Filters",
@@ -352,7 +353,27 @@
"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}}",
"shareTitle": "Share EQ",
"shareSelectHint": "Select the EQ preset to share",
"shareConfirm": "Generate Code",
"shareCodeLabel": "Share Code",
"shareCopied": "Code copied",
"shareGenerating": "Generating…",
"importTab": "Import EQ",
"importCodeHint": "Enter or paste the 5-character share code",
"importQuery": "Query",
"importQuerying": "Querying…",
"importCodeNotFound": "Share code not found",
"importEqName": "EQ Name",
"importButton": "Import",
"importSuccess": "EQ imported successfully",
"mySharesTab": "My Shares",
"mySharesLoading": "Loading…",
"mySharesEmpty": "No shared EQ yet",
"mySharesCode": "Code",
"mySharesName": "EQ Name",
"mySharesLoadFail": "Failed to load share list"
}
},
"dac": {
-274
View File
@@ -1,274 +0,0 @@
{
"home": { "audioSet": "Configuración de audio" },
"source": {
"label": "Entrada/Salida",
"inputOptions": ["USB-B", "USB-C", "Coaxial", "Óptico", "Bluetooth", "HDMI-EARC", "RCA", "Controlador USB"],
"input": {
"coaxial": "Coaxial",
"optical": "Óptico",
"bluetooth": "Bluetooth",
"rca": "RCA analógico"
},
"output": { "headset": "Auriculares" }
},
"effect": {
"lowBass": "Bajo",
"enterBass": "Medio",
"highBass": "Agudo",
"tone": "Tono",
"loudness": "Sonoridad",
"threshold": "Umbral",
"delayed": "Retardo",
"mainframeCase": "Caja principal",
"subwooferUnit": "Subwoofer",
"style": {
"label": "Estilo",
"options": [
{ "index": 0, "label": "Clásico" },
{ "index": 1, "label": "Dance" },
{ "index": 2, "label": "Pop" },
{ "index": 3, "label": "Reggae" },
{ "index": 4, "label": "En vivo" },
{ "index": 5, "label": "Rock" },
{ "index": 6, "label": "Suave" },
{ "index": 7, "label": "Electrónica" },
{ "index": 8, "label": "Club" },
{ "index": 9, "label": "Todo Bajo" },
{ "index": 10, "label": "Todo Agudo" },
{ "index": 11, "label": "Auriculares" },
{ "index": 12, "label": "Salón" },
{ "index": 13, "label": "Fusión" },
{ "index": 14, "label": "Ska" },
{ "index": 15, "label": "Slow Shake" }
]
},
"stereoWidth": { "label": "Ancho del escenario sonoro" },
"crossfeed": { "label": "Realimentación cruzada" },
"subwoofer": {
"label": "Salida de subwoofer",
"freq": "Frecuencia de corte",
"attenuation": "Pendiente de atenuación",
"gain": "Realce de bajos",
"output": {
"label": "Modo de salida",
"options": [
{ "label": "Mono", "index": 0 },
{ "label": "Estéreo", "index": 1 }
]
}
}
},
"peq": {
"Standard": "Preajuste de ecualizador estándar",
"edit": "Edición en lote",
"headset": "Agregar modelo de auriculares",
"preamp": "Ganancia total",
"filters": {
"label": "Filtros",
"options": [
{
"index": 0,
"title": "LPF",
"desc1": "Filtro paso bajo, solo permite el paso de",
"desc2": "señales por debajo de cierta frecuencia de corte,",
"desc3": "las señales altas se atenúan.",
"img": "LPF.png"
},
{
"index": 1,
"title": "HPF",
"desc1": "Filtro paso alto, solo permite el paso de",
"desc2": "señales por encima de cierta frecuencia de corte,",
"desc3": "las señales bajas se atenúan.",
"img": "HPF.png"
},
{
"index": 2,
"title": "BPF",
"img": "BPF.png",
"desc1": "Filtro paso banda, solo permite señales",
"desc2": "dentro de un cierto rango de frecuencias,",
"desc3": "otras frecuencias se atenúan."
},
{
"index": 3,
"title": "NOTCH",
"img": "NOTCH.png",
"desc1": "Filtro de muesca, elimina señales de",
"desc2": "frecuencias específicas."
},
{
"index": 4,
"title": "PEAK",
"img": "PEAK.png",
"desc1": "Filtro de pico, realza o atenúa",
"desc2": "señales cerca de una frecuencia específica."
},
{
"index": 5,
"title": "LSHELF",
"img": "LSHELF.png",
"desc1": "Filtro de estantería baja, usado para realzar o",
"desc2": "atenuar señales de baja frecuencia."
},
{
"index": 5,
"title": "HSHELF",
"img": "HSHELF.png",
"desc1": "Filtro de estantería alta, usado para realzar o",
"desc2": "atenuar señales de alta frecuencia."
},
{
"index": 6,
"title": "APF",
"img": "APF.png",
"desc1": "Filtro de paso total, no cambia la amplitud",
"desc2": "pero sí la fase de la señal."
}
]
},
"freq": "FREQ",
"gain": "GANANCIA",
"q": "Valor Q",
"loadDeviceBtn": "Confirmar carga",
"peqNoneItem": "No configurado"
},
"dac": {
"balance": "Balance izquierdo/derecho",
"filters": {
"label": "Características de filtrado",
"options": [
{ "index": 0, "label": "Descenso rápido" },
{ "index": 1, "label": "Descenso lento" },
{ "index": 2, "label": "Descenso rápido con retardo corto" },
{ "index": 3, "label": "Descenso lento con retardo corto" },
{ "index": 4, "label": "Descenso ultra lento" },
{ "index": 5, "label": "Poca dispersión con retardo corto" }
]
},
"headPhoneGain": {
"label": "Ganancia de auriculares",
"options": [
{ "index": 0, "label": "Baja" },
{ "index": 1, "label": "Media" },
{ "index": 2, "label": "Alta" }
]
},
"volumeStep": "Incremento de volumen",
"bootVolume": "Volumen de arranque",
"xlr": {
"label": "Polaridad del puerto XLR",
"options": [
{ "index": 0, "label": "Normal" },
{ "index": 1, "label": "Invertido" }
]
},
"arc": {
"label": "Modo ARC",
"options": [
{ "index": 0, "label": "ARC" },
{ "index": 1, "label": "EARC" }
]
}
},
"settings": {
"vu": "Configuración",
"vuMeter": "Medidor VU",
"screenBrightness": {
"label": "Brillo de pantalla",
"options": [
{ "index": 0, "label": "Brillante" },
{ "index": 1, "label": "Medio" },
{ "index": 2, "label": "Oscuro" }
]
},
"sleep": {
"label": "Modo de reposo",
"options": [
{ "index": 0, "label": "Apagado" },
{ "index": 1, "label": "Sin señal 1 min" },
{ "index": 2, "label": "Sin señal 5 min" },
{ "index": 3, "label": "Sin señal 10 min" },
{ "index": 4, "label": "Sin señal 15 min" }
]
},
"turnOffScreen": {
"label": "Apagar pantalla",
"options": [
{ "index": 0, "label": "Siempre encendida" },
{ "index": 1, "label": "Sin operación 30 s" },
{ "index": 2, "label": "Sin operación 1 min" },
{ "index": 3, "label": "Sin operación 3 min" },
{ "index": 4, "label": "Sin operación 5 min" }
]
},
"knobBrightness": {
"label": "Brillo del mando",
"options": [
{ "index": 0, "label": "Apagado" },
{ "index": 1, "label": "Brillante" },
{ "index": 2, "label": "Medio" },
{ "index": 3, "label": "Oscuro" }
]
},
"sleepTime": {
"label": "Reposo",
"options": [
{ "index": 0, "label": "Apagado" },
{ "index": 1, "label": "Sin señal tras 1 min" },
{ "index": 2, "label": "Sin señal tras 5 min" },
{ "index": 3, "label": "Sin señal tras 10 min" }
]
},
"buttonLight": {
"label": "Luz de respiración del mando (pantalla apagada)",
"options": [
{ "index": 0, "label": "Encendido" },
{ "index": 1, "label": "Apagado" }
]
},
"language": {
"label": "Idioma",
"options": [
{ "index": 0, "label": "Inglés" },
{ "index": 1, "label": "Chino Tradicional" },
{ "index": 2, "label": "Chino Simplificado" },
{ "index": 3, "label": "Alemán" },
{ "index": 4, "label": "Español" },
{ "index": 5, "label": "Francés" }
]
},
"Automatic": {
"label": "Regresar automáticamente al inicio",
"options": [
{ "index": 0, "label": "Desactivado" },
{ "index": 1, "label": "Sin operación 20 s" },
{ "index": 2, "label": "Sin operación 40 s" },
{ "index": 3, "label": "Sin operación 60 s" }
]
}
},
"prompt": {
"prompt": "Aviso",
"NotAdded": "Auriculares no agregados. ¿Desea agregarlos?",
"confirm": "Confirmar",
"cancel": "Cancelar",
"save": "Guardar",
"reset": "Restablecer",
"delete": "Eliminar",
"add": "Agregar",
"edit": "Editar",
"deleteConfirm": "¿Desea eliminar?",
"saveConfirm": "¿Confirmar guardado?",
"HP-EQ": "HP-EQ no está activado. ¿Desea activarlo?",
"Effect": "Effect no está activado. ¿Desea activarlo?",
"EnableEffectY": "Sí",
"EnableEffectN": "No",
"noDelete": "Este elemento no puede eliminarse",
"SavePreset": "Nuevo preajuste",
"default": "Predeterminado",
"invalidData": "Datos no válidos",
"range": "Rango",
"selectedYet": "Aún no has seleccionado una curva objetivo"
}
}
-274
View File
@@ -1,274 +0,0 @@
{
"home": { "audioSet": "Paramètres audio" },
"source": {
"label": "Entrée/Sortie",
"inputOptions": ["USB-B", "USB-C", "Coaxial", "Optique", "Bluetooth", "HDMI-EARC", "RCA", "Clé USB"],
"input": {
"coaxial": "Coaxial",
"optical": "Optique",
"bluetooth": "Bluetooth",
"rca": "RCA analogique"
},
"output": { "headset": "Casque" }
},
"effect": {
"lowBass": "Basses",
"enterBass": "Médiums",
"highBass": "Aigus",
"tone": "Ton",
"delayed": "Retard",
"loudness": "Sonie",
"threshold": "Seuil",
"mainframeCase": "Châssis principal",
"subwooferUnit": "Caisson de basses",
"style": {
"label": "Style",
"options": [
{ "index": 0, "label": "Classique" },
{ "index": 1, "label": "Dance" },
{ "index": 2, "label": "Pop" },
{ "index": 3, "label": "Reggae" },
{ "index": 4, "label": "Live" },
{ "index": 5, "label": "Rock" },
{ "index": 6, "label": "Doux" },
{ "index": 7, "label": "Électronique" },
{ "index": 8, "label": "Club" },
{ "index": 9, "label": "Tout basses" },
{ "index": 10, "label": "Tout aigus" },
{ "index": 11, "label": "Casque" },
{ "index": 12, "label": "Hall" },
{ "index": 13, "label": "Aggrégé" },
{ "index": 14, "label": "Ska" },
{ "index": 15, "label": "Slow" }
]
},
"stereoWidth": { "label": "Largeur stéréo" },
"crossfeed": { "label": "Crossfeed" },
"subwoofer": {
"label": "Sortie caisson de basses",
"freq": "Fréquence de coupure",
"attenuation": "Pente d'atténuation",
"gain": "Renforcement basses",
"output": {
"label": "Mode de sortie",
"options": [
{ "label": "Mono", "index": 0 },
{ "label": "Stéréo", "index": 1 }
]
}
}
},
"peq": {
"Standard": "Préréglages EQ standard",
"edit": "Édition groupée",
"headset": "Ajouter modèle casque",
"preamp": "Gain global",
"filters": {
"label": "Filtres",
"options": [
{
"index": 0,
"title": "LPF",
"desc1": "Filtre passe-bas, ne laisse passer que",
"desc2": "les signaux en dessous d'une certaine",
"desc3": "fréquence de coupure, atténue les aigus.",
"img": "LPF.png"
},
{
"index": 1,
"title": "HPF",
"desc1": "Filtre passe-haut, ne laisse passer que",
"desc2": "les signaux au-dessus d'une certaine",
"desc3": "fréquence de coupure, atténue les basses.",
"img": "HPF.png"
},
{
"index": 2,
"title": "BPF",
"img": "BPF.png",
"desc1": "Filtre passe-bande, ne laisse passer",
"desc2": "qu'une plage de fréquences spécifique,",
"desc3": "atténue les autres fréquences."
},
{
"index": 3,
"title": "NOTCH",
"img": "NOTCH.png",
"desc1": "Filtre coupe-bande, élimine les",
"desc2": "résonances ou interférences spécifiques."
},
{
"index": 4,
"title": "PEAK",
"img": "PEAK.png",
"desc1": "Filtre peak, amplifie ou atténue",
"desc2": "les signaux autour d'une fréquence."
},
{
"index": 5,
"title": "LSHELF",
"img": "LSHELF.png",
"desc1": "Étage bas, renforce ou atténue",
"desc2": "les fréquences basses."
},
{
"index": 5,
"title": "HSHELF",
"img": "HSHELF.png",
"desc1": "Étage haut, renforce ou atténue",
"desc2": "les fréquences hautes."
},
{
"index": 6,
"title": "APF",
"img": "APF.png",
"desc1": "Filtre passe-tout, conserve l'amplitude",
"desc2": "mais modifie la phase du signal."
}
]
},
"freq": "FREQ",
"gain": "GAIN",
"q": "Facteur Q",
"loadDeviceBtn": "Charger",
"peqNoneItem": "Non configuré"
},
"dac": {
"balance": "Balance L/R",
"filters": {
"label": "Caractéristiques filtre",
"options": [
{ "index": 0, "label": "Déclin rapide" },
{ "index": 1, "label": "Déclin lent" },
{ "index": 2, "label": "Déclin rapide court délai" },
{ "index": 3, "label": "Déclin lent court délai" },
{ "index": 4, "label": "Déclin très lent" },
{ "index": 5, "label": "Court délai faible dispersion" }
]
},
"headPhoneGain": {
"label": "Gain casque",
"options": [
{ "index": 0, "label": "Faible" },
{ "index": 1, "label": "Moyen" },
{ "index": 2, "label": "Élevé" }
]
},
"volumeStep": "Pas volume",
"bootVolume": "Volume démarrage",
"xlr": {
"label": "Polarité XLR",
"options": [
{ "index": 0, "label": "Normal" },
{ "index": 1, "label": "Inversé" }
]
},
"arc": {
"label": "Mode ARC",
"options": [
{ "index": 0, "label": "ARC" },
{ "index": 1, "label": "eARC" }
]
}
},
"settings": {
"vu": "Paramètres",
"vuMeter": "VU-mètre",
"screenBrightness": {
"label": "Luminosité écran",
"options": [
{ "index": 0, "label": "Élevée" },
{ "index": 1, "label": "Moyenne" },
{ "index": 2, "label": "Faible" }
]
},
"sleep": {
"label": "Veille",
"options": [
{ "index": 0, "label": "Désactivée" },
{ "index": 1, "label": "1 min sans signal" },
{ "index": 2, "label": "5 min sans signal" },
{ "index": 3, "label": "10 min sans signal" },
{ "index": 4, "label": "15 min sans signal" }
]
},
"turnOffScreen": {
"label": "Éteindre écran",
"options": [
{ "index": 0, "label": "Toujours allumé" },
{ "index": 1, "label": "30s inactivité" },
{ "index": 2, "label": "1 min inactivité" },
{ "index": 3, "label": "3 min inactivité" },
{ "index": 4, "label": "5 min inactivité" }
]
},
"knobBrightness": {
"label": "Luminosité bouton",
"options": [
{ "index": 0, "label": "Désactivée" },
{ "index": 1, "label": "Élevée" },
{ "index": 2, "label": "Moyenne" },
{ "index": 3, "label": "Faible" }
]
},
"sleepTime": {
"label": "Veille",
"options": [
{ "index": 0, "label": "Désactivé" },
{ "index": 1, "label": "Aucun signal après 1 min" },
{ "index": 2, "label": "Aucun signal après 5 min" },
{ "index": 3, "label": "Aucun signal après 10 min" }
]
},
"buttonLight": {
"label": "Lumière respiratoire du bouton (écran éteint)",
"options": [
{ "index": 0, "label": "Activé" },
{ "index": 1, "label": "Désactivé" }
]
},
"language": {
"label": "Langue",
"options": [
{ "index": 0, "label": "Anglais" },
{ "index": 1, "label": "Chinois (Traditionnel)" },
{ "index": 2, "label": "Chinois (Simplifié)" },
{ "index": 3, "label": "Allemand" },
{ "index": 4, "label": "Espagnol" },
{ "index": 5, "label": "Français" }
]
},
"Automatic": {
"label": "Retour auto. accueil",
"options": [
{ "index": 0, "label": "Désactivé" },
{ "index": 1, "label": "20s inactivité" },
{ "index": 2, "label": "40s inactivité" },
{ "index": 3, "label": "60s inactivité" }
]
}
},
"prompt": {
"prompt": "Avertissement",
"NotAdded": "Aucun casque ajouté. Ajouter un casque ?",
"confirm": "Confirmer",
"cancel": "Annuler",
"save": "Enregistrer",
"reset": "Réinitialiser",
"delete": "Supprimer",
"add": "Ajouter",
"edit": "Éditer",
"deleteConfirm": "Confirmer la suppression ?",
"saveConfirm": "Confirmer l'enregistrement ?",
"HP-EQ": "HP-EQ désactivé, activer ?",
"Effect": "Effet désactivé, activer ?",
"EnableEffectY": "Confirmer",
"EnableEffectN": "Annuler",
"noDelete": "Impossible de supprimer",
"SavePreset": "Nouveau préréglage",
"default": "Par défaut",
"invalidData": "Données invalides",
"range": "Plage",
"selectedYet": "Aucune courbe cible sélectionnée"
}
}
+22 -1
View File
@@ -146,6 +146,7 @@
"Standard": "標準等化器預設",
"edit": "批次編輯",
"headset": "新增耳機型號",
"share": "分享 EQ",
"preamp": "總增益",
"filters": {
"label": "濾波器",
@@ -288,7 +289,27 @@
"paramInputInvalid": "請輸入有效數值",
"paramInputOutOfRangeFreq": "頻率需在 {{min}} {{max}} Hz 之間",
"paramInputOutOfRangeGain": "增益需在 {{min}} {{max}} dB 之間",
"paramInputOutOfRangeQ": "Q 值需在 {{min}} {{max}} 之間"
"paramInputOutOfRangeQ": "Q 值需在 {{min}} {{max}} 之間",
"shareTitle": "分享 EQ",
"shareSelectHint": "選擇要分享的 EQ 預設",
"shareConfirm": "產生分享碼",
"shareCodeLabel": "分享碼",
"shareCopied": "已複製分享碼",
"shareGenerating": "產生中…",
"importTab": "匯入 EQ",
"importCodeHint": "輸入或貼上 5 位分享碼",
"importQuery": "查詢",
"importQuerying": "查詢中…",
"importCodeNotFound": "分享碼不存在",
"importEqName": "EQ 名稱",
"importButton": "匯入",
"importSuccess": "EQ 匯入成功",
"mySharesTab": "我的分享",
"mySharesLoading": "載入中…",
"mySharesEmpty": "暫無分享記錄",
"mySharesCode": "分享碼",
"mySharesName": "EQ 名稱",
"mySharesLoadFail": "載入分享列表失敗"
}
},
"dac": {
+22 -1
View File
@@ -146,6 +146,7 @@
"Standard": "标准均衡器预设",
"edit": "批量编辑",
"headset": "添加耳机型号",
"share": "分享 EQ",
"preamp": "总增益",
"filters": {
"label": "滤波器",
@@ -288,7 +289,27 @@
"paramInputInvalid": "请输入有效数值",
"paramInputOutOfRangeFreq": "频率需在 {{min}} {{max}} Hz 之间",
"paramInputOutOfRangeGain": "增益需在 {{min}} {{max}} dB 之间",
"paramInputOutOfRangeQ": "Q 值需在 {{min}} {{max}} 之间"
"paramInputOutOfRangeQ": "Q 值需在 {{min}} {{max}} 之间",
"shareTitle": "分享 EQ",
"shareSelectHint": "选择要分享的 EQ 预设",
"shareConfirm": "生成分享码",
"shareCodeLabel": "分享码",
"shareCopied": "已复制分享码",
"shareGenerating": "生成中…",
"importTab": "导入 EQ",
"importCodeHint": "输入或粘贴 5 位分享码",
"importQuery": "查询",
"importQuerying": "查询中…",
"importCodeNotFound": "分享码不存在",
"importEqName": "EQ 名称",
"importButton": "导入",
"importSuccess": "EQ 导入成功",
"mySharesTab": "我的分享",
"mySharesLoading": "加载中…",
"mySharesEmpty": "暂无分享记录",
"mySharesCode": "分享码",
"mySharesName": "EQ 名称",
"mySharesLoadFail": "加载分享列表失败"
}
},
"dac": {
+520 -3
View File
@@ -11,7 +11,7 @@
7. Total gain card: 总增益 value + AUTO toggle + slider
============================================================ */
import { useDevice } from "@/contexts/DeviceContext";
import { ChevronLeft, ChevronDown, Minus, Plus, Edit3, Headphones, Search, X } from "lucide-react";
import { ChevronLeft, ChevronDown, Minus, Plus, Edit3, Headphones, Search, X, Share2, Copy, Loader2 } from "lucide-react";
import { useLocation } from "wouter";
import { useState, useMemo, useEffect, useRef, useCallback } from "react";
import { cn } from "@/lib/utils";
@@ -568,6 +568,7 @@ export default function EQPage() {
name: string;
brand?: string;
model?: string;
form?: string;
filters?: any[] | string;
autoPre?: number;
preamp?: number;
@@ -597,6 +598,16 @@ export default function EQPage() {
type BrandDrawerTab = "brands" | "models" | "target";
const [isBrandDrawerOpen, setIsBrandDrawerOpen] = useState(false);
const [brandDrawerTab, setBrandDrawerTab] = useState<BrandDrawerTab>("brands");
const [isShareDialogOpen, setIsShareDialogOpen] = useState(false);
const [shareDialogTab, setShareDialogTab] = useState<"share" | "import" | "myShares">("share");
const [shareSelectedIdx, setShareSelectedIdx] = useState<number>(headphoneIdx);
const [shareCode, setShareCode] = useState<string | null>(null);
const [shareGenerating, setShareGenerating] = useState(false);
const [importCodeInputs, setImportCodeInputs] = useState<string[]>(["", "", "", "", ""]);
const [importQuerying, setImportQuerying] = useState(false);
const [importedEqData, setImportedEqData] = useState<{ name: string; brand?: string; model?: string; form?: string; filters?: any[] | string; preamp?: number } | null>(null);
const [mySharesList, setMySharesList] = useState<Array<{ code: string; name: string }>>([]);
const [mySharesLoading, setMySharesLoading] = useState(false);
const [brandSearchQuery, setBrandSearchQuery] = useState("");
const [catalogBrands, setCatalogBrands] = useState<LuxsinAudioBrand[]>([]);
const [catalogBrandsLoading, setCatalogBrandsLoading] = useState(false);
@@ -1894,8 +1905,8 @@ export default function EQPage() {
return updateSetting(bypass ? { peqEnable: 1, dsp_enable: 1 } : { peqEnable: 1 });
}}
>
{/* ── Action cards: 批量编辑 / 添加耳机型号 ── */}
<div className="grid grid-cols-2 gap-3">
{/* ── Action cards: 批量编辑 / 添加耳机型号 / 分享EQ ── */}
<div className="grid grid-cols-3 gap-3">
<button
className="ios-list-group flex flex-col items-center justify-center py-3 gap-2 active:opacity-70 transition-opacity"
onClick={openBatchEditDialog}>
@@ -1914,6 +1925,26 @@ export default function EQPage() {
</div>
<span className="text-[14px] text-white/80">{peqCardLabels.headset}</span>
</button>
<button
className="ios-list-group flex flex-col items-center justify-center py-3 gap-2 active:opacity-70 transition-opacity"
onClick={() => {
setIsShareDialogOpen(true);
setShareDialogTab("share");
setShareSelectedIdx(headphoneIdx);
setShareCode(null);
setShareGenerating(false);
setImportCodeInputs(["", "", "", "", ""]);
setImportQuerying(false);
setImportedEqData(null);
setMySharesList([]);
setMySharesLoading(false);
}}>
<div className="w-10 h-10 rounded-[12px] flex items-center justify-center"
style={{ background: "rgba(0,255,246,0.12)", border: "1px solid rgba(0,255,246,0.2)" }}>
<Share2 size={20} style={{ color: "#00FFF6" }} />
</div>
<span className="text-[14px] text-white/80">{peqCardLabels.share}</span>
</button>
</div>
{/* ── Headphone model selector ── */}
@@ -2786,6 +2817,492 @@ export default function EQPage() {
</div>
)}
{/* ── Share / Import EQ Dialog ── */}
{isShareDialogOpen && (
<div
className="fixed inset-0 z-[120] flex items-center justify-center bg-black/65 px-4"
onClick={() => setIsShareDialogOpen(false)}
>
<div
className="w-full max-w-[420px] rounded-[14px] p-5"
style={{
background: "linear-gradient(180deg, rgba(34,36,40,0.98) 0%, rgba(24,26,30,0.98) 100%)",
border: "1px solid rgba(255,255,255,0.12)",
boxShadow: "0 18px 48px rgba(0,0,0,0.55)",
}}
onClick={(e) => e.stopPropagation()}
>
{/* header */}
<div className="flex items-center justify-between mb-4">
{/* tab bar */}
<div className="flex gap-1 rounded-[10px] p-1" style={{ background: "rgba(44,44,46,0.8)" }}>
<button
type="button"
className={cn(
"px-3 py-1.5 rounded-[8px] text-[13px] font-medium transition-colors",
shareDialogTab === "share"
? "bg-[#00FFF6] text-black font-semibold"
: "text-white/60 hover:text-white/80",
)}
onClick={() => setShareDialogTab("share")}
>
{peqCardLabels.share}
</button>
<button
type="button"
className={cn(
"px-3 py-1.5 rounded-[8px] text-[13px] font-medium transition-colors",
shareDialogTab === "import"
? "bg-[#00FFF6] text-black font-semibold"
: "text-white/60 hover:text-white/80",
)}
onClick={() => setShareDialogTab("import")}
>
{eqUi.importTab}
</button>
<button
type="button"
className={cn(
"px-3 py-1.5 rounded-[8px] text-[13px] font-medium transition-colors",
shareDialogTab === "myShares"
? "bg-[#00FFF6] text-black font-semibold"
: "text-white/60 hover:text-white/80",
)}
onClick={() => {
setShareDialogTab("myShares");
// 进入选项卡时调用查询分享列表接口
if (mySharesList.length === 0 && !mySharesLoading) {
void (async () => {
setMySharesLoading(true);
try {
// ── TODO: 伪代码 — 调用查询我的分享列表接口 ──
// const res = await fetch("/api/eq/share/list");
// if (!res.ok) {
// toast.error(eqUi.mySharesLoadFail);
// return;
// }
// const data = await res.json();
// setMySharesList(data.list);
// 模拟接口延迟
await new Promise((r) => setTimeout(r, 600));
// 模拟返回分享列表
setMySharesList([
{ code: "AK7NR", name: "Sennheiser HD 600 (AutoEQ)" },
{ code: "P3WQM", name: "Beyerdynamic DT 880" },
{ code: "Z5XKL", name: "Hifiman HE400i" },
]);
} catch {
// TODO: 错误处理
} finally {
setMySharesLoading(false);
}
})();
}
}}
>
{eqUi.mySharesTab}
</button>
</div>
<button
type="button"
className="rounded-full p-1.5 text-white/45 transition-colors hover:bg-white/10 hover:text-white/80"
onClick={() => setIsShareDialogOpen(false)}
>
<X size={20} />
</button>
</div>
{/* ── Tab: Share EQ ── */}
{shareDialogTab === "share" && (
<>
{/* hint */}
<p className="mb-3 text-[13px] leading-relaxed text-white/45">{eqUi.shareSelectHint}</p>
{/* EQ preset list */}
<div
className="rounded-[10px] overflow-hidden max-h-48 overflow-y-auto mb-4"
style={{
background: "rgba(10,12,16,0.98)",
border: "1px solid rgba(0,255,246,0.35)",
boxShadow: "0 8px 20px rgba(0,0,0,0.45)",
}}
>
{peqItems.length === 0 && (
<div className="py-6 text-center text-[13px] text-white/30"></div>
)}
{peqItems.map((item, idx) => {
const active = idx === shareSelectedIdx;
return (
<button
key={`${item.name}-${idx}`}
type="button"
className={`w-full px-3 py-2.5 text-left text-[13px] transition-colors truncate border-b border-white/[0.06] last:border-b-0 ${
active ? "text-black font-semibold" : "text-white/90 hover:bg-white/10"
}`}
style={active ? { background: "#00FFF6" } : undefined}
title={item.name}
onClick={() => setShareSelectedIdx(idx)}
>
{item.name}
</button>
);
})}
</div>
{/* confirm button */}
<button
type="button"
disabled={shareGenerating || peqItems.length === 0}
className={cn(
"w-full rounded-full py-2.5 text-[15px] font-semibold text-black transition-all active:scale-[0.98]",
shareGenerating || peqItems.length === 0
? "bg-[#00FFF6]/40 cursor-not-allowed"
: "bg-[#00FFF6] hover:brightness-95",
)}
onClick={async () => {
if (shareGenerating) return;
setShareGenerating(true);
setShareCode(null);
try {
// ── TODO: 伪代码 — 调用分享接口 ──
// const selectedPeq = peqItems[shareSelectedIdx];
// const res = await fetch("/api/eq/share", {
// method: "POST",
// headers: { "Content-Type": "application/json" },
// body: JSON.stringify({
// brand: selectedPeq.brand,
// model: selectedPeq.model,
// target: selectedPeq.form,
// filters: selectedPeq.filters,
// preamp: selectedPeq.preamp,
// }),
// });
// const data = await res.json();
// setShareCode(data.shareCode);
// 模拟接口延迟
await new Promise((r) => setTimeout(r, 800));
// 模拟返回 5 位随机分享码
const fakeCode = Array.from(
{ length: 5 },
() => "ABCDEFGHJKLMNPQRSTUVWXYZ23456789"[Math.floor(Math.random() * 32)],
).join("");
setShareCode(fakeCode);
} catch {
// TODO: 错误处理
} finally {
setShareGenerating(false);
}
}}
>
{shareGenerating ? (
<span className="flex items-center justify-center gap-2">
<Loader2 size={16} className="animate-spin" />
{eqUi.shareGenerating}
</span>
) : (
eqUi.shareConfirm
)}
</button>
{/* share code display */}
{shareCode && (
<div className="mt-5">
<p className="mb-2 text-[12px] text-white/40 font-medium">{eqUi.shareCodeLabel}</p>
<div className="flex items-center gap-2">
<div className="flex flex-1 gap-1.5 justify-center">
{shareCode.split("").map((ch, i) => (
<div
key={i}
className="w-11 h-12 rounded-[8px] flex items-center justify-center text-[18px] font-bold tracking-wider text-[#00FFF6]"
style={{
background: "rgba(0,255,246,0.08)",
border: "1px solid rgba(0,255,246,0.25)",
}}
>
{ch}
</div>
))}
</div>
<button
type="button"
className="shrink-0 w-9 h-9 rounded-[8px] flex items-center justify-center text-[#00FFF6] active:scale-95 transition-transform"
style={{
background: "rgba(0,255,246,0.12)",
border: "1px solid rgba(0,255,246,0.25)",
}}
onClick={async () => {
try {
await navigator.clipboard.writeText(shareCode);
toast.success(eqUi.shareCopied);
} catch {
const ta = document.createElement("textarea");
ta.value = shareCode;
ta.style.position = "fixed";
ta.style.opacity = "0";
document.body.appendChild(ta);
ta.select();
document.execCommand("copy");
document.body.removeChild(ta);
toast.success(eqUi.shareCopied);
}
}}
>
<Copy size={16} />
</button>
</div>
</div>
)}
</>
)}
{/* ── Tab: Import EQ ── */}
{shareDialogTab === "import" && (
<>
{/* hint */}
<p className="mb-3 text-[13px] leading-relaxed text-white/45">{eqUi.importCodeHint}</p>
{/* 5 input boxes */}
<div className="flex gap-2 justify-center mb-4">
{importCodeInputs.map((ch, i) => (
<input
key={i}
value={ch}
inputMode="text"
maxLength={1}
autoCapitalize="characters"
autoCorrect="off"
className="w-11 h-12 rounded-[8px] text-center text-[18px] font-bold tracking-wider text-[#00FFF6] bg-transparent outline-none uppercase"
style={{
background: "rgba(0,255,246,0.06)",
border: "1px solid rgba(0,255,246,0.25)",
caretColor: "#00FFF6",
}}
onChange={(e) => {
const val = e.target.value.replace(/[^a-zA-Z0-9]/g, "").slice(-1).toUpperCase();
const next = [...importCodeInputs];
next[i] = val;
setImportCodeInputs(next);
setImportedEqData(null);
// auto-focus next box
if (val && i < 4) {
const el = e.target.nextElementSibling as HTMLInputElement | null;
el?.focus();
}
}}
onKeyDown={(e) => {
// backspace: clear current & focus previous
if (e.key === "Backspace" && !importCodeInputs[i] && i > 0) {
const next = [...importCodeInputs];
next[i - 1] = "";
setImportCodeInputs(next);
setImportedEqData(null);
const prev = (e.target as HTMLElement).previousElementSibling as HTMLInputElement | null;
prev?.focus();
}
}}
onPaste={(e) => {
e.preventDefault();
const text = (e.clipboardData.getData("text") || "").replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, 5);
if (!text) return;
const next = [...importCodeInputs];
for (let j = 0; j < 5; j++) {
next[j] = text[j] ?? "";
}
setImportCodeInputs(next);
setImportedEqData(null);
// focus last filled or last box
const focusIdx = Math.min(text.length, 4);
const inputs = (e.target as HTMLElement).parentElement?.querySelectorAll("input");
(inputs?.[focusIdx] as HTMLInputElement | undefined)?.focus();
}}
ref={(el) => {
// stash ref for focus management if needed later
}}
/>
))}
</div>
{/* query button */}
<button
type="button"
disabled={importQuerying || importCodeInputs.some((c) => !c)}
className={cn(
"w-full rounded-full py-2.5 text-[15px] font-semibold text-black transition-all active:scale-[0.98]",
importQuerying || importCodeInputs.some((c) => !c)
? "bg-[#00FFF6]/40 cursor-not-allowed"
: "bg-[#00FFF6] hover:brightness-95",
)}
onClick={async () => {
if (importQuerying) return;
const code = importCodeInputs.join("");
setImportQuerying(true);
setImportedEqData(null);
try {
// ── TODO: 伪代码 — 调用导入查询接口 ──
// const res = await fetch(`/api/eq/share/${code}`);
// if (!res.ok) {
// toast.error(eqUi.importCodeNotFound);
// return;
// }
// const data = await res.json();
// setImportedEqData({
// name: data.name,
// brand: data.brand,
// model: data.model,
// form: data.target,
// filters: data.filters,
// preamp: data.preamp,
// });
// 模拟接口延迟
await new Promise((r) => setTimeout(r, 600));
// 模拟返回 EQ 数据
setImportedEqData({
name: "Sennheiser HD 600 (AutoEQ)",
brand: "Sennheiser",
model: "HD 600",
form: "over-ear",
filters: [],
preamp: -5.2,
});
} catch {
// TODO: 错误处理
} finally {
setImportQuerying(false);
}
}}
>
{importQuerying ? (
<span className="flex items-center justify-center gap-2">
<Loader2 size={16} className="animate-spin" />
{eqUi.importQuerying}
</span>
) : (
eqUi.importQuery
)}
</button>
{/* imported EQ result */}
{importedEqData && (
<div className="mt-4 rounded-[10px] p-3" style={{ background: "rgba(0,255,246,0.06)", border: "1px solid rgba(0,255,246,0.2)" }}>
<div className="flex items-center justify-between">
<div className="min-w-0 flex-1">
<p className="text-[12px] text-white/40 font-medium mb-0.5">{eqUi.importEqName}</p>
<p className="text-[14px] text-white/90 font-semibold truncate">{importedEqData.name}</p>
</div>
<button
type="button"
className="shrink-0 ml-3 rounded-full px-4 py-2 text-[13px] font-semibold text-black bg-[#00FFF6] hover:brightness-95 active:scale-[0.98] transition-all"
onClick={() => {
// ── TODO: 伪代码 — 导入 EQ 到预设列表 ──
// if (!guardPeqPresetCapacity()) return;
// setPeqItems((prev) => [
// ...prev,
// {
// name: importedEqData.name,
// brand: importedEqData.brand,
// model: importedEqData.model,
// form: importedEqData.form,
// filters: importedEqData.filters,
// preamp: importedEqData.preamp,
// autoPre: 0,
// canDel: 1,
// },
// ]);
// setHeadphoneIdx(peqItems.length);
// setIsShareDialogOpen(false);
// toast.success(eqUi.importSuccess);
// 模拟导入
toast.success(eqUi.importSuccess);
setIsShareDialogOpen(false);
}}
>
{eqUi.importButton}
</button>
</div>
</div>
)}
</>
)}
{/* ── Tab: My Shares ── */}
{shareDialogTab === "myShares" && (
<>
{mySharesLoading && mySharesList.length === 0 ? (
<div className="flex items-center justify-center py-10 gap-2 text-white/50">
<Loader2 size={16} className="animate-spin" />
<span className="text-[13px]">{eqUi.mySharesLoading}</span>
</div>
) : mySharesList.length === 0 ? (
<div className="py-10 text-center text-[13px] text-white/30">{eqUi.mySharesEmpty}</div>
) : (
<div
className="rounded-[10px] overflow-hidden max-h-64 overflow-y-auto"
style={{
background: "rgba(10,12,16,0.98)",
border: "1px solid rgba(0,255,246,0.35)",
boxShadow: "0 8px 20px rgba(0,0,0,0.45)",
}}
>
{mySharesList.map((item, idx) => (
<div
key={`${item.code}-${idx}`}
className="flex items-center gap-3 px-3 py-2.5 border-b border-white/[0.06] last:border-b-0"
>
{/* share code */}
<div
className="shrink-0 flex gap-0.5"
title={eqUi.mySharesCode}
>
{item.code.split("").map((ch, ci) => (
<span
key={ci}
className="w-[18px] h-[22px] rounded-[4px] flex items-center justify-center text-[11px] font-bold text-[#00FFF6]"
style={{ background: "rgba(0,255,246,0.1)", border: "1px solid rgba(0,255,246,0.2)" }}
>
{ch}
</span>
))}
</div>
{/* EQ name */}
<div className="min-w-0 flex-1 truncate text-[13px] text-white/85">{item.name}</div>
{/* copy code button */}
<button
type="button"
className="shrink-0 w-7 h-7 rounded-[6px] flex items-center justify-center text-[#00FFF6]/70 active:scale-95 transition-transform"
style={{ background: "rgba(0,255,246,0.08)", border: "1px solid rgba(0,255,246,0.15)" }}
onClick={async () => {
try {
await navigator.clipboard.writeText(item.code);
toast.success(eqUi.shareCopied);
} catch {
const ta = document.createElement("textarea");
ta.value = item.code;
ta.style.position = "fixed";
ta.style.opacity = "0";
document.body.appendChild(ta);
ta.select();
document.execCommand("copy");
document.body.removeChild(ta);
toast.success(eqUi.shareCopied);
}
}}
>
<Copy size={13} />
</button>
</div>
))}
</div>
)}
</>
)}
</div>
</div>
)}
<BottomNav />
</div>
);