fix: corrige unicode flags no trading terminal do BI
Double-escaped unicode sequences (\uD83C) estavam renderizando como texto literal em vez de emojis de bandeira. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -307,12 +307,12 @@ ${buildHeader({ role: role, userName: user.nome, activePage: 'bi' })}
|
||||
<div class="rate-pair-group">
|
||||
<span class="rate-pair-label">USD</span>
|
||||
<button class="live-rate-btn compra">
|
||||
<span class="rate-flags">\\uD83C\\uDDFA\\uD83C\\uDDF8 \\u2192 \\uD83C\\uDDE7\\uD83C\\uDDF7</span>
|
||||
<span class="rate-flags">\uD83C\uDDFA\uD83C\uDDF8 \u2192 \uD83C\uDDE7\uD83C\uDDF7</span>
|
||||
<span class="rate-type">Compra</span>
|
||||
<span class="rate-value" id="rateUsdCompra">--</span>
|
||||
</button>
|
||||
<button class="live-rate-btn venda">
|
||||
<span class="rate-flags">\\uD83C\\uDDE7\\uD83C\\uDDF7 \\u2192 \\uD83C\\uDDFA\\uD83C\\uDDF8</span>
|
||||
<span class="rate-flags">\uD83C\uDDE7\uD83C\uDDF7 \u2192 \uD83C\uDDFA\uD83C\uDDF8</span>
|
||||
<span class="rate-type">Venda</span>
|
||||
<span class="rate-value" id="rateUsdVenda">--</span>
|
||||
</button>
|
||||
@@ -561,7 +561,7 @@ async function loadBI() {
|
||||
chartDonut = new Chart(document.getElementById('chartDonut'), {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
labels: ['BRL \\u2192 USD', 'USD \\u2192 BRL'],
|
||||
labels: ['BRL \u2192 USD', 'USD \u2192 BRL'],
|
||||
datasets: [{
|
||||
data: [d.kpis.brlUsd.spread_revenue, d.kpis.usdBrl.spread_revenue],
|
||||
backgroundColor: ['#1A73E8', '#1E8E3E'],
|
||||
@@ -693,9 +693,9 @@ async function loadBI() {
|
||||
data: {
|
||||
labels,
|
||||
datasets: [
|
||||
{ label: 'BRL\\u2192USD', data: volBrlUsd, backgroundColor: '#1A73E8', borderRadius: 2 },
|
||||
{ label: 'USD\\u2192BRL', data: volUsdBrl, backgroundColor: '#1E8E3E', borderRadius: 2 },
|
||||
{ label: 'USD\\u2192USD', data: volUsdUsd, backgroundColor: '#7B1FA2', borderRadius: 2 }
|
||||
{ label: 'BRL\u2192USD', data: volBrlUsd, backgroundColor: '#1A73E8', borderRadius: 2 },
|
||||
{ label: 'USD\u2192BRL', data: volUsdBrl, backgroundColor: '#1E8E3E', borderRadius: 2 },
|
||||
{ label: 'USD\u2192USD', data: volUsdUsd, backgroundColor: '#7B1FA2', borderRadius: 2 }
|
||||
]
|
||||
},
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user