feat: add Boosty donation link to README and LuCI support modal

- Add Boosty badge to README.md and README.en.md headers
- Add Boosty as first donation option in support sections of both READMEs
- Add Boosty card (with orange border accent) to LuCI diagnostic support modal
- Add Russian translations for Boosty strings in po/ru/tachyon.po
This commit is contained in:
Dushnilin
2026-09-16 06:42:09 +03:00
parent 971d958331
commit affd8f7ca4
5 changed files with 103 additions and 2 deletions
@@ -36,6 +36,7 @@ const CRYPTO_LIST: CryptoItem[] = [
];
const CLOUDTIPS_URL = 'https://pay.cloudtips.ru/p/48c57581';
const BOOSTY_URL = 'https://boosty.to/tachyon';
async function copyTextToClipboard(text: string): Promise<boolean> {
try {
@@ -82,6 +83,51 @@ export function renderSupportModal(): void {
],
);
// Boosty card (primary)
const boostyCard = E(
'div',
{
style:
'margin-bottom: 16px; padding: 14px; background: var(--background-color-secondary, rgba(0, 0, 0, 0.05)); border: 1px solid rgba(255, 106, 0, 0.35); border-radius: 6px;',
},
[
E(
'div',
{
style:
'display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;',
},
[
E(
'div',
{ style: 'display: flex; flex-direction: column; gap: 2px;' },
[
E('div', { style: 'font-weight: bold; font-size: 14px;' }, [
'⭐ Boosty',
]),
E(
'div',
{
style:
'font-size: 12px; color: var(--text-color-medium, #888);',
},
_('Subscriptions, one-time donations and exclusives'),
),
],
),
renderButton({
classNames: ['cbi-button-action'],
icon: renderLinkIcon24,
text: _('Support on Boosty'),
onClick: () => {
window.open(BOOSTY_URL, '_blank', 'noopener,noreferrer');
},
}),
],
),
],
);
// CloudTips card
const cloudTipsCard = E(
'div',
@@ -249,7 +295,7 @@ export function renderSupportModal(): void {
style:
'max-width: 640px; width: 100%; box-sizing: border-box; padding: 4px;',
},
[introBlock, cloudTipsCard, cryptoSection, footer],
[introBlock, boostyCard, cloudTipsCard, cryptoSection, footer],
);
ui.showModal(`💖 ${_('Support Development')}`, modalContent);