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:
@@ -15573,6 +15573,7 @@ var CRYPTO_LIST = [
|
||||
}
|
||||
];
|
||||
var CLOUDTIPS_URL = "https://pay.cloudtips.ru/p/48c57581";
|
||||
var BOOSTY_URL = "https://boosty.to/tachyon";
|
||||
async function copyTextToClipboard(text) {
|
||||
try {
|
||||
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(
|
||||
"div",
|
||||
{
|
||||
@@ -15760,7 +15801,7 @@ function renderSupportModal() {
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -4925,6 +4925,12 @@ msgstr "Поддержать разработку"
|
||||
msgid "Support on CloudTips"
|
||||
msgstr "Поддержать проект на CloudTips"
|
||||
|
||||
msgid "Support on Boosty"
|
||||
msgstr "Поддержать на Boosty"
|
||||
|
||||
msgid "Subscriptions, one-time donations and exclusives"
|
||||
msgstr "Подписки, разовые донаты и эксклюзивный контент"
|
||||
|
||||
msgid "Sweden (se)"
|
||||
msgstr "Швеция (se)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user