Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f354e5d
✨ feat(layout): refine footer visibility logic to target CardPro comp…
t0ng7u Sep 27, 2025
c4e0fc1
chore: go version & sonic dep
seefs001 Sep 30, 2025
0735b0c
feat(i18n): add and update French translations
comeback01 Sep 30, 2025
c320410
feat: add doubao video generate
feitianbubu Oct 1, 2025
b244a06
feat: add doubao video use quota by total token
feitianbubu Oct 1, 2025
7ca65a5
feat: add doubao video add log detail
feitianbubu Oct 1, 2025
2290acc
fix(topup): add currency symbol to amounts in RechargeCard
kyubibii Oct 2, 2025
acbfc9d
Merge pull request #1951 from feitianbubu/pr/add-doubao-video
seefs001 Oct 2, 2025
0769184
Merge pull request #1956 from QuantumNous/alpha
Calcium-Ion Oct 2, 2025
01469aa
refactor(adaptor): extract common header operations into a separate f…
Calcium-Ion Oct 2, 2025
81a66be
chore(docker): switch from MySQL to PostgreSQL in docker-compose conf…
Calcium-Ion Oct 2, 2025
b0b275b
chore(docker): add comment for compatibility with older Docker versions
Calcium-Ion Oct 2, 2025
6ee01d7
Merge branch 'main' into french-translation-final
comeback01 Oct 2, 2025
9061411
Merge pull request #1940 from comeback01/french-translation-final
Calcium-Ion Oct 2, 2025
f473d20
Merge pull request #1932 from seefs001/chore/upgrade-deps
Calcium-Ion Oct 2, 2025
0074085
Merge remote-tracking branch 'origin/main'
Calcium-Ion Oct 2, 2025
df19a8d
✨ feat(layout): refine footer visibility logic to target CardPro comp…
t0ng7u Sep 27, 2025
36ed41a
Merge remote-tracking branch 'origin/pr/console-footer' into pr/conso…
Calcium-Ion Oct 2, 2025
ace855e
refactor(footer): update footer links and localization text
Calcium-Ion Oct 2, 2025
19bbb7d
Merge pull request #1890 from QuantumNous/pr/console-footer
Calcium-Ion Oct 2, 2025
0682a15
Merge remote-tracking branch 'origin/main'
Calcium-Ion Oct 2, 2025
01bcbf0
✨ feat(api): add header override processing with variable support
Calcium-Ion Oct 2, 2025
66d0764
✨ docs: update README files to include Japanese language support
Calcium-Ion Oct 2, 2025
b0b6ab2
feat(web): add privacy policy and user agreement settings & pages
kyubibii Oct 2, 2025
f44f682
Merge branch 'main' of https://github.com/QuantumNous/new-api
kyubibii Oct 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/src/components/topup/RechargeCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ const RechargeCard = ({
fontSize: '12px',
margin: '4px 0'
}}>
{t('实付')} {actualPay.toFixed(2)},
{hasDiscount ? `${t('节省')} ${save.toFixed(2)}` : `${t('节省')} 0.00`}
{t('实付')} ${actualPay.toFixed(2)},
{hasDiscount ? `${t('节省')} $${save.toFixed(2)}` : `${t('节省')} $0.00`}
</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Avoid hardcoding the USD symbol here

This UI previously respected whatever currency the backend/formatters supplied; forcing a literal “$” now mislabels every non-USD top up (e.g., CNY users will see dollars). Pull the symbol from config/props (e.g., topupInfo?.currency_symbol) or reuse the existing formatter instead of hardcoding.

-                                {t('实付')} ${actualPay.toFixed(2)},
-                                {hasDiscount ? `${t('节省')} $${save.toFixed(2)}` : `${t('节省')} $0.00`}
+                                {t('实付')} {(topupInfo?.currency_symbol ?? topupInfo?.currencySymbol ?? '') + actualPay.toFixed(2)},
+                                {hasDiscount
+                                  ? `${t('节省')} ${(topupInfo?.currency_symbol ?? topupInfo?.currencySymbol ?? '')}${save.toFixed(2)}`
+                                  : `${t('节省')} ${(topupInfo?.currency_symbol ?? topupInfo?.currencySymbol ?? '')}0.00`}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{t('实付')} ${actualPay.toFixed(2)},
{hasDiscount ? `${t('节省')} $${save.toFixed(2)}` : `${t('节省')} $0.00`}
</div>
{t('实付')} {(topupInfo?.currency_symbol ?? topupInfo?.currencySymbol ?? '') + actualPay.toFixed(2)},
{hasDiscount
? `${t('节省')} ${(topupInfo?.currency_symbol ?? topupInfo?.currencySymbol ?? '')}${save.toFixed(2)}`
: `${t('节省')} ${(topupInfo?.currency_symbol ?? topupInfo?.currencySymbol ?? '')}0.00`}
</div>
🤖 Prompt for AI Agents
In web/src/components/topup/RechargeCard.jsx around lines 371-373, the code
hardcodes the USD symbol ("$") when rendering actualPay and save; replace the
literal "$" with the currency symbol provided by data or formatter (e.g., use
topupInfo?.currency_symbol or the existing number formatter) for both actualPay
and save, and add a safe fallback (e.g., an empty string or a default symbol
from config) so non-USD users display the correct currency symbol.

</div>
</Card>
Expand Down