feat: enhance wallet strip for mobile responsiveness
Some checks failed
lotteryfront CI / build (push) Has been cancelled

- Added mobile-specific styles to the HallWalletStrip component for better usability on smaller screens.
- Adjusted padding, font sizes, and spacing based on device type.
- Introduced a new hook `useIsMobile` to determine the device type.

feat: sort ticket items by provider code

- Updated the sorting logic in `sortTicketGroupItems` to include provider code for better organization of ticket items.

feat: display provider information in ticket order details

- Added a `providerLabel` function to format provider information.
- Updated `TicketOrderDetailScreen` and `TicketOrdersListScreen` to display provider name and code.

feat: enhance ticket item types with provider information

- Extended `TicketItemListRow` and `TicketItemDetailPayload` types to include optional provider code and name.

feat: add API for fetching bet providers

- Created a new API endpoint to retrieve bet providers.
- Defined types for bet provider data in `bet-provider.ts`.

chore: update player spacing constants

- Adjusted padding values in `player-spacing.ts` for improved layout consistency.
This commit is contained in:
2026-07-08 15:57:09 +08:00
parent 45376473f3
commit add3d1fc05
17 changed files with 619 additions and 104 deletions

View File

@@ -255,7 +255,10 @@
"quickFill": {
"title": "Quick fill",
"description": "Fill the current row with favorite or recent numbers in one tap.",
"batchTitle": "Quick amount",
"clearAll": "Clear all",
"clearRow": "Clear row amounts",
"copyPrev": "Copy prev row",
"favorite": "Favorite number",
"unfavorite": "Remove favorite",
"favorites": "Favorites",
@@ -264,6 +267,13 @@
"history": "Recent 20 numbers",
"emptyHistory": "No recent numbers"
},
"mobile": {
"availableBalance": "Available {{amount}}",
"quickFillSummary": "{{favorites}} favorites, {{history}} recent",
"collapseQuickFill": "Collapse quick fill",
"expandQuickFill": "Expand quick fill",
"noProvidersSelected": "None selected"
},
"preview": {
"title": "Confirm bet",
"description": "Check the number, play type, and actual deduction. After confirmation, the lottery wallet will be debited and the ticket cannot be cancelled.",

View File

@@ -255,7 +255,10 @@
"quickFill": {
"title": "छिटो भर्ने",
"description": "मनपर्ने वा पछिल्ला नम्बरहरू एक ट्यापमा हालको पंक्तिमा भर्नुहोस्।",
"batchTitle": "छिटो रकम",
"clearAll": "सबै हटाउनुहोस्",
"clearRow": "यो पङ्क्तिको रकम हटाउनुहोस्",
"copyPrev": "अघिल्लो पङ्क्ति कपी गर्नुहोस्",
"favorite": "नम्बर मनपर्नेमा राख्नुहोस्",
"unfavorite": "मनपर्नेबाट हटाउनुहोस्",
"favorites": "मनपर्ने",
@@ -264,6 +267,13 @@
"history": "पछिल्ला 20 नम्बर",
"emptyHistory": "इतिहास नम्बर छैन"
},
"mobile": {
"availableBalance": "उपलब्ध मौज्दात {{amount}}",
"quickFillSummary": "{{favorites}} मनपर्ने, {{history}} इतिहास",
"collapseQuickFill": "छिटो भर्ने खुम्च्याउनुहोस्",
"expandQuickFill": "छिटो भर्ने विस्तार गर्नुहोस्",
"noProvidersSelected": "छानिएको छैन"
},
"preview": {
"title": "बेट पुष्टि गर्नुहोस्",
"description": "नम्बर, प्ले प्रकार र वास्तविक कट्टा जाँच गर्नुहोस्। पुष्टि गरेपछि वालेटबाट रकम कट्टा हुनेछ र टिकट रद्द गर्न सकिँदैन।",

View File

@@ -254,7 +254,10 @@
"quickFill": {
"title": "快速填单",
"description": "收藏号码、最近号码可一键填入当前行。",
"batchTitle": "快捷金额",
"clearAll": "批量清空",
"clearRow": "清空本行金额",
"copyPrev": "复制上一行",
"favorite": "收藏号码",
"unfavorite": "取消收藏",
"favorites": "收藏",
@@ -263,6 +266,13 @@
"history": "最近 20 个历史号码",
"emptyHistory": "暂无历史号码"
},
"mobile": {
"availableBalance": "可用余额 {{amount}}",
"quickFillSummary": "收藏 {{favorites}} 个,历史 {{history}} 个",
"collapseQuickFill": "收起快捷填单",
"expandQuickFill": "展开快捷填单",
"noProvidersSelected": "未选择"
},
"preview": {
"title": "确认下注",
"description": "请核对号码、玩法与实扣金额;确认后将扣减彩票钱包且不可撤单。",