Смерджить карточку «Поддержка» и текст о шифровании в голосовые сообщения

Объединены ветки ui/dm-voice и ui/support-card-ethereal для одного PR.
Конфликты: index.html — в список стилей вошли оба файла (dm-voice.css и
profile-support.css); VERSION.properties — client 1.21.8, server 1.17.6.
chat-view.js, словари ru/en, ui-icon.js и WALLET_SHINE_SUPPORT.md слились
автоматически.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pixel
2026-12-01 21:19:38 +03:00
co-authored by Claude Opus 5.5
13 changed files with 967 additions and 85 deletions
+6 -2
View File
@@ -28,9 +28,13 @@ export function parseStarCents(input) {
if (cents < 10n || cents > 0xffff_ffff_ffff_ffffn) throw new Error('Минимальная поддержка — 0,10 ⭐');
return cents;
}
export function formatStars(value) {
/** Только число («0.10»): для вёрстки, где единица показана отдельной SVG-иконкой. */
export function formatStarAmount(value) {
const cents = BigInt(value);
return `${cents / 100n}.${String(cents % 100n).padStart(2, '0')} ⭐`;
return `${cents / 100n}.${String(cents % 100n).padStart(2, '0')}`;
}
export function formatStars(value) {
return `${formatStarAmount(value)} ⭐`;
}
export function splitStarCents(value) {
const cents = BigInt(value);