mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
web: add a Ko-fi donation button
A small pill in the bottom right corner, in Ko-fi's own red rather than the theme colors so it reads as what it is. It sits above the feedback button where that one exists and takes its place where it does not; the offset follows the instance rather than the dialog, so opening feedback does not make it jump. Unlike the feedback button this is not limited to the maintainer's own instance - it ships in every build, the Docker image included. Since that means self-hosters carry someone else's donation link, there is a way out: VITE_DONATE_URL= (empty) drops the button, any other value retargets it, and the Dockerfile passes it through as --build-arg DONATE_URL. The "keep" sentinel there is not decoration - an unset and an empty build arg are indistinguishable inside RUN, so without it "not passed" would silently mean "remove". Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
fa4daf7831
commit
6ebc3e22e0
5 files changed
+90
-1
No files matched your search
@@ -48,6 +48,9 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"menu.extras.feedback": "Feedback geben",
|
||||
"feedback.fab.nudge": "Was denkst du über WebSpeak3? Feedback ist willkommen!",
|
||||
|
||||
"donate.label": "Spenden",
|
||||
"donate.title": "WebSpeak3 auf Ko-fi unterstützen",
|
||||
|
||||
"pwa.updateAvailable": "Neue Version verfügbar",
|
||||
"pwa.reload": "Neu laden",
|
||||
|
||||
@@ -686,6 +689,9 @@ const translations: Record<Lang, Record<string, string>> = {
|
||||
"menu.extras.feedback": "Send Feedback",
|
||||
"feedback.fab.nudge": "What do you think of WebSpeak3? Feedback welcome!",
|
||||
|
||||
"donate.label": "Donate",
|
||||
"donate.title": "Support WebSpeak3 on Ko-fi",
|
||||
|
||||
"pwa.updateAvailable": "New version available",
|
||||
"pwa.reload": "Reload",
|
||||
|
||||
|
||||
Reference in new issue
Block a user