feat(media-hosting): add multi-provider configurable upload with fallback

Add Random/Preferred/None modes, preferred provider selection, and provider-order fallback. Catbox/Imgur/PostImages on Android via WebView; Electron CDP automation for Imgur/PostImages. Hide upload controls on web runtime.
This commit is contained in:
plebeius
2026-02-18 18:51:02 +08:00
parent 72b70915fd
commit 96a4aaec0e
63 changed files with 1991 additions and 201 deletions
+10 -1
View File
@@ -283,9 +283,18 @@
"vote_button_unavailable_outro": "The highest-voted /{{boardIdentifier}}/ becomes the official /{{boardIdentifier}}/.",
"upload_failed": "Upload failed",
"upload_not_supported_web": "Uploading media isn't supported by your browser due to technical limitations (CORS). It is supported in the 5chan Android app and Mac/Linux/Windows desktop app. Download from the official release page: https://github.com/bitsocialhq/5chan/releases/latest",
"upload_not_supported_web_before_link": "Uploading media isn't supported by your browser due to technical limitations (CORS). It is supported in the 5chan Android app and Mac/Linux/Windows desktop app.",
"upload_not_supported_web_link_text": "Download from the official release page",
"file": "File",
"media_hosting_none": "None",
"media_hosting_none_tip": "Hides the file upload button from post and reply forms",
"media_hosting": "Media Hosting",
"advanced_settings": "Advanced settings"
"advanced_settings": "Advanced settings",
"upload_failed_all_providers": "All providers failed",
"upload_failed_preferred_guidance": "Choose a different provider or set to random.",
"media_hosting_random": "Random",
"media_hosting_preferred": "Preferred provider",
"media_hosting_preferred_provider_label": "Choose provider",
"media_hosting_preferred_failure_guidance": "If your preferred provider fails, the app will try other providers (Random mode) or show an error (Preferred mode).",
"media_hosting_all_providers_failed_guidance": "All upload providers failed. Try again or paste a link manually."
}