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:
@@ -6,6 +6,7 @@
|
|||||||
[](https://github.com/Dushnilin/tachyon/releases)
|
[](https://github.com/Dushnilin/tachyon/releases)
|
||||||
[](https://openwrt.org/)
|
[](https://openwrt.org/)
|
||||||
[](https://t.me/tachyon_proxy)
|
[](https://t.me/tachyon_proxy)
|
||||||
|
[](https://boosty.to/tachyon)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
[**🇷🇺 Русский**](README.md) | [**🇬🇧 English**](README.en.md)
|
[**🇷🇺 Русский**](README.md) | [**🇬🇧 English**](README.en.md)
|
||||||
@@ -342,6 +343,9 @@ Tachyon stands on the shoulders of incredible open-source projects:
|
|||||||
|
|
||||||
If Tachyon powers your daily networking and keeps your connection fast and secure, consider supporting ongoing development! ☕ 🧀 🌭
|
If Tachyon powers your daily networking and keeps your connection fast and secure, consider supporting ongoing development! ☕ 🧀 🌭
|
||||||
|
|
||||||
|
⭐ **Boosty (subscriptions, donations, exclusives):**
|
||||||
|
👉 [**Support on Boosty**](https://boosty.to/tachyon)
|
||||||
|
|
||||||
💳 **Credit Cards / SBP / Tinkoff Pay:**
|
💳 **Credit Cards / SBP / Tinkoff Pay:**
|
||||||
👉 [**Support the project via CloudTips**](https://pay.cloudtips.ru/p/48c57581)
|
👉 [**Support the project via CloudTips**](https://pay.cloudtips.ru/p/48c57581)
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
[](https://github.com/Dushnilin/tachyon/releases)
|
[](https://github.com/Dushnilin/tachyon/releases)
|
||||||
[](https://openwrt.org/)
|
[](https://openwrt.org/)
|
||||||
[](https://t.me/tachyon_proxy)
|
[](https://t.me/tachyon_proxy)
|
||||||
|
[](https://boosty.to/tachyon)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
[**🇷🇺 Русский**](README.md) | [**🇬🇧 English**](README.en.md)
|
[**🇷🇺 Русский**](README.md) | [**🇬🇧 English**](README.en.md)
|
||||||
@@ -342,6 +343,9 @@ Tachyon опирается на фундаментальные разработ
|
|||||||
|
|
||||||
Если Tachyon помогает вам и делает работу в сети комфортной, вы можете поддержать проект и автора! ☕ 🧀 🌭
|
Если Tachyon помогает вам и делает работу в сети комфортной, вы можете поддержать проект и автора! ☕ 🧀 🌭
|
||||||
|
|
||||||
|
⭐ **Boosty (подписки, донаты, эксклюзив):**
|
||||||
|
👉 [**Поддержать на Boosty**](https://boosty.to/tachyon)
|
||||||
|
|
||||||
💳 **Карты РФ / СБП / Tinkoff Pay:**
|
💳 **Карты РФ / СБП / Tinkoff Pay:**
|
||||||
👉 [**Поддержать проект на CloudTips**](https://pay.cloudtips.ru/p/48c57581)
|
👉 [**Поддержать проект на CloudTips**](https://pay.cloudtips.ru/p/48c57581)
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ const CRYPTO_LIST: CryptoItem[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const CLOUDTIPS_URL = 'https://pay.cloudtips.ru/p/48c57581';
|
const CLOUDTIPS_URL = 'https://pay.cloudtips.ru/p/48c57581';
|
||||||
|
const BOOSTY_URL = 'https://boosty.to/tachyon';
|
||||||
|
|
||||||
async function copyTextToClipboard(text: string): Promise<boolean> {
|
async function copyTextToClipboard(text: string): Promise<boolean> {
|
||||||
try {
|
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
|
// CloudTips card
|
||||||
const cloudTipsCard = E(
|
const cloudTipsCard = E(
|
||||||
'div',
|
'div',
|
||||||
@@ -249,7 +295,7 @@ export function renderSupportModal(): void {
|
|||||||
style:
|
style:
|
||||||
'max-width: 640px; width: 100%; box-sizing: border-box; padding: 4px;',
|
'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);
|
ui.showModal(`💖 ${_('Support Development')}`, modalContent);
|
||||||
|
|||||||
@@ -15573,6 +15573,7 @@ var CRYPTO_LIST = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
var CLOUDTIPS_URL = "https://pay.cloudtips.ru/p/48c57581";
|
var CLOUDTIPS_URL = "https://pay.cloudtips.ru/p/48c57581";
|
||||||
|
var BOOSTY_URL = "https://boosty.to/tachyon";
|
||||||
async function copyTextToClipboard(text) {
|
async function copyTextToClipboard(text) {
|
||||||
try {
|
try {
|
||||||
if (navigator.clipboard && window.isSecureContext) {
|
if (navigator.clipboard && window.isSecureContext) {
|
||||||
@@ -15613,6 +15614,46 @@ function renderSupportModal() {
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
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");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
);
|
||||||
const cloudTipsCard = E(
|
const cloudTipsCard = E(
|
||||||
"div",
|
"div",
|
||||||
{
|
{
|
||||||
@@ -15760,7 +15801,7 @@ function renderSupportModal() {
|
|||||||
{
|
{
|
||||||
style: "max-width: 640px; width: 100%; box-sizing: border-box; padding: 4px;"
|
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);
|
ui.showModal(`💖 ${_("Support Development")}`, modalContent);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4925,6 +4925,12 @@ msgstr "Поддержать разработку"
|
|||||||
msgid "Support on CloudTips"
|
msgid "Support on CloudTips"
|
||||||
msgstr "Поддержать проект на CloudTips"
|
msgstr "Поддержать проект на CloudTips"
|
||||||
|
|
||||||
|
msgid "Support on Boosty"
|
||||||
|
msgstr "Поддержать на Boosty"
|
||||||
|
|
||||||
|
msgid "Subscriptions, one-time donations and exclusives"
|
||||||
|
msgstr "Подписки, разовые донаты и эксклюзивный контент"
|
||||||
|
|
||||||
msgid "Sweden (se)"
|
msgid "Sweden (se)"
|
||||||
msgstr "Швеция (se)"
|
msgstr "Швеция (se)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user