feat(theme-2): sync inbox/announcements/presence/deposit from main

This commit is contained in:
2026-06-18 09:38:33 +08:00
parent ec51b675e3
commit e56029225e
86 changed files with 6828 additions and 928 deletions

View File

@@ -27,6 +27,10 @@ const adminPages: Record<string, string> = {
'user.filter.agent': 'Agent',
'user.filter.agent_ph': 'All',
'user.col.username': 'Username',
'user.col.online': 'Online',
'user.online_yes': 'Online now',
'user.presence_online': 'Online',
'user.presence_offline': 'Offline',
'user.col.agent': 'Agent',
'user.col.agent_cashback': 'Agent cashback',
'user.col.player_cashback': 'Player cashback',
@@ -786,15 +790,43 @@ const adminPages: Record<string, string> = {
'msg.outright_odds_saved': 'Outright odds saved',
'msg.load_failed': 'Load failed',
'content.upload.pick_media_title': 'Select image',
'content.upload.no_media': 'No images in library — upload one first',
'content.btn.create': 'New content',
'content.btn.enable': 'Enable',
'content.btn.disable': 'Disable',
'content.dialog.create': 'New public content',
'content.dialog.edit': 'Edit public content',
'content.dialog.create_banner': 'New home promotion',
'content.dialog.create_notice': 'Publish notification',
'content.dialog.edit': 'Edit content',
'content.dialog.edit_banner': 'Edit home promotion',
'content.dialog.edit_notice': 'Edit notification',
'content.confirm_delete': 'Delete "{title}"?',
'content.type.BANNER': 'Home banners',
'content.type.ANNOUNCEMENT': 'Announcements',
'content.hint.announcement': 'Shown in the player top marquee; fill title or body (body recommended)',
'content.type.BANNER': 'Home promotions',
'content.type.ANNOUNCEMENT': 'Notifications',
'content.type.INBOX_NOTIFY': 'Inbox notify',
'content.inbox_notify.inbox_enabled': 'Player inbox',
'content.inbox_notify.inbox_enabled_hint': 'When off, the player hub opens support only (no mailbox tab)',
'content.inbox_notify.deposit': 'Deposit results',
'content.inbox_notify.deposit_hint': 'Auto-send inbox messages on approve or reject',
'content.inbox_notify.manual_title': 'Check "Inbox notify" when creating:',
'content.inbox_notify.banner_note': 'Homepage promo',
'content.inbox_notify.announcement_note': 'Announcements / ticker',
'content.hint.banner': 'Shown in the home carousel; tapping opens the detail page. Add a cover image and rich body like an official site announcement.',
'content.hint.announcement': 'Shows as a scrolling marquee at the top of the player app. Enter title and marquee text per language — plain text only.',
'content.section.publish': 'Publish settings',
'content.section.content': 'Notification content',
'content.field.publish_kind': 'Publish type',
'content.publish_kind.notice': 'Full notification (detail page)',
'content.publish_kind.ticker': 'Ticker text only',
'content.publish_kind.hint': 'Full notifications appear in the list and detail page; ticker-only shows one scrolling line at the top.',
'content.field.cover_image': 'Cover image',
'content.field.ticker_title_ph': 'Ticker title (optional)',
'content.field.ticker_body_ph': 'Text shown in the marquee',
'content.field.ticker_hint': 'Ticker shows plain text only — no images or rich formatting.',
'content.editor.placeholder': 'Write the notification body; you can insert images and lists…',
'content.editor.insert_image': 'Insert image',
'content.upload.cover_size_hint': 'Recommended width 860px+. Cover and inline images scale to fit on the player detail page.',
'content.status.DRAFT': 'Draft',
'content.status.ACTIVE': 'Active',
'content.status.INACTIVE': 'Inactive',
@@ -808,8 +840,11 @@ const adminPages: Record<string, string> = {
'content.field.link_target': 'Link target',
'content.field.start_time': 'Start time',
'content.field.end_time': 'End time',
'content.field.notify_inbox': 'Inbox notification',
'content.field.notify_inbox_hint': 'Send an inbox message to all players about this promotion after saving',
'content.msg.notify_sent': 'Inbox notification sent to {count} player(s)',
'content.field.title': 'Title',
'content.field.title_ph': 'Optional; can match body',
'content.field.title_ph': 'Title shown on the player detail page',
'content.field.body': 'Body',
'content.field.announce_text': 'Marquee text',
'content.field.image_url': 'Image URL',
@@ -820,8 +855,6 @@ const adminPages: Record<string, string> = {
'content.upload.size_error': 'Image must be under 5 MB',
'content.upload.remove': 'Remove image',
'content.upload.pick_media': 'Pick from library',
'content.upload.pick_media_title': 'Select Banner Image',
'content.upload.no_media': 'No banner images in library — upload one first',
'content.upload.url_placeholder': 'Or paste image URL',
'content.upload.recommended_size': 'Recommended size: 860 x 360 px, or any 43:18 image. The player carousel keeps the full image visible and fills extra space.',
'content.link.none': 'No link',