This commit is contained in:
redphx
2024-12-07 16:48:58 +07:00
parent 557a38214d
commit 4011eb402a
55 changed files with 181 additions and 139 deletions

View File

@@ -1,4 +1,4 @@
import { isLiteVersion } from "@macros/build" with {type: "macro"};
import { isLiteVersion } from "@macros/build" with { type: "macro" };
import { t } from "@utils/translation";
import { BxEvent } from "@utils/bx-event";
@@ -118,9 +118,9 @@ export class StreamBadges {
return $badge;
}
$badge = CE('div', {class: 'bx-badge', title: badgeInfo.name},
CE('span', {class: 'bx-badge-name'}, createSvgIcon(badgeInfo.icon)),
CE('span', {class: 'bx-badge-value', style: `background-color: ${badgeInfo.color}`}, value),
$badge = CE('div', { class: 'bx-badge', title: badgeInfo.name },
CE('span', { class: 'bx-badge-name' }, createSvgIcon(badgeInfo.icon)),
CE('span', { class: 'bx-badge-value', style: `background-color: ${badgeInfo.color}` }, value),
);
if (name === StreamBadge.BATTERY) {
@@ -219,7 +219,7 @@ export class StreamBadges {
this.serverInfo.audio ? this.badges.audio.$element : [StreamBadge.AUDIO, '?'],
];
const $container = CE('div', {class: 'bx-badges'});
const $container = CE('div', { class: 'bx-badges' });
for (const item of BADGES) {
if (!item) {