feat(frontend): show active app domain with click-to-copy

Surface the domain the app is actually reachable on right now (verified
custom domain, else the platform subdomain) as a single "Application
Domain" field. Clicking it copies the address to the clipboard and shows
a "Copied" toast. Centralizes the active-domain logic so the page header
and the verified-custom-domain block stay in sync, and always loads
domain-info so the platform host is correct even without a custom domain.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
keyhan
2026-06-18 14:31:45 +03:30
parent a3a7e17cca
commit 04b2f040e0
3 changed files with 44 additions and 14 deletions
+1
View File
@@ -1291,6 +1291,7 @@ const fa = {
sourceCode: 'سورس‌کد', replace: 'جایگزینی', uploadSourceClick: 'سورس‌کد را آپلود و روی «انتشار» بزن تا شروع کنی',
// domain
customDomain: 'دامنهٔ اختصاصی', addCustomDomain: 'افزودن دامنهٔ اختصاصی', setUpCustomDomain: 'راه‌اندازی دامنهٔ اختصاصی',
appDomain: 'دامنهٔ اپلیکیشن', copyDomainHint: 'برای کپی کلیک کن',
platformDomain: 'دامنهٔ پلتفرم', domainPlaceholder: 'example.com یا www.example.com', dnsSetupGuide: 'راهنمای تنظیم DNS',
removeCustomDomain: 'حذف دامنهٔ اختصاصی',
// resources