mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 22:31:46 +00:00
feat(dashboard): mobile layout, glass UI, context bottom nav + OIDC PKCE (#1079)
* feat(dashboard): mobile layout, glass tiles, plain-text countdown, place photos - Rework the mobile dashboard: cover hero, separate boarding-pass card, trimmed atlas (trips + days only), stacked widgets - New floating bottom tab bar with a centred context-aware + button (new trip / place / journey / entry depending on the page) - Move profile + notifications into a small top strip on the dashboard - Desktop: glassmorphic tiles (light + dark), neutral dark palette, plain-text countdown module, real place photos in the boarding pass * i18n(dashboard): translate new dashboard keys across all locales Fill the dashboard-rework keys (hero, atlas, fx, tz, upcoming, copy dialog, aria labels, countdown) that were left as English placeholders, plus the new startsIn/aria keys, for all 19 languages. * feat(oidc): send PKCE (S256) in the OIDC login flow The OIDC client now generates a code_verifier per login, sends the S256 code_challenge on the authorize request and the code_verifier on the token exchange. Works whether the provider has PKCE optional or required (fixes login against providers that require PKCE, e.g. Pocket ID).
This commit is contained in:
@@ -9,7 +9,7 @@ const dashboard: TranslationStrings = {
|
||||
'dashboard.subtitle.activeMany': '{count} 個進行中的旅行',
|
||||
'dashboard.subtitle.archivedSuffix': ' · {count} 已歸檔',
|
||||
'dashboard.newTrip': '新建旅行',
|
||||
'dashboard.newTripSub': 'Start blank · or import from another planner',
|
||||
'dashboard.newTripSub': '從零開始規劃新旅行',
|
||||
'dashboard.gridView': '網格檢視',
|
||||
'dashboard.listView': '列表檢視',
|
||||
'dashboard.currency': '貨幣',
|
||||
@@ -102,55 +102,64 @@ const dashboard: TranslationStrings = {
|
||||
'dashboard.mobile.inMonths': '{count} 個月後',
|
||||
'dashboard.mobile.completed': '已完成',
|
||||
'dashboard.mobile.currencyConverter': '匯率轉換',
|
||||
'dashboard.filter.planned': 'Planned',
|
||||
'dashboard.hero.badgeLive': 'LIVE NOW',
|
||||
'dashboard.hero.badgeToday': 'STARTS TODAY',
|
||||
'dashboard.hero.badgeTomorrow': 'TOMORROW',
|
||||
'dashboard.hero.badgeNext': 'UP NEXT',
|
||||
'dashboard.hero.badgeRecent': 'RECENT',
|
||||
'dashboard.hero.tripDates': 'Trip dates',
|
||||
'dashboard.hero.noDates': 'No dates set',
|
||||
'dashboard.hero.travelerOne': '{count} traveler',
|
||||
'dashboard.hero.travelerMany': '{count} travelers',
|
||||
'dashboard.hero.destinationOne': '{count} destination',
|
||||
'dashboard.hero.destinationMany': '{count} destinations',
|
||||
'dashboard.hero.dayUnitOne': 'day',
|
||||
'dashboard.hero.dayUnitMany': 'days',
|
||||
'dashboard.hero.dayLeft': 'Day left',
|
||||
'dashboard.hero.daysLeft': 'Days left',
|
||||
'dashboard.hero.lastDay': 'Last day',
|
||||
'dashboard.atlas.countriesVisited': 'Atlas · Countries visited',
|
||||
'dashboard.atlas.ofTotal': 'of {total}',
|
||||
'dashboard.atlas.tripsTotal': 'Trips total',
|
||||
'dashboard.atlas.placesMapped': '{count} places mapped',
|
||||
'dashboard.atlas.daysTraveled': 'Days traveled',
|
||||
'dashboard.atlas.daysUnit': 'days',
|
||||
'dashboard.atlas.acrossAllTrips': 'across all trips',
|
||||
'dashboard.atlas.distanceFlown': 'Distance flown',
|
||||
'dashboard.filter.planned': '已規劃',
|
||||
'dashboard.hero.badgeLive': '進行中',
|
||||
'dashboard.hero.badgeToday': '今天開始',
|
||||
'dashboard.hero.badgeTomorrow': '明天',
|
||||
'dashboard.hero.badgeNext': '即將開始',
|
||||
'dashboard.hero.badgeRecent': '最近',
|
||||
'dashboard.hero.tripDates': '旅行日期',
|
||||
'dashboard.hero.noDates': '未設定日期',
|
||||
'dashboard.hero.travelerOne': '{count} 位旅客',
|
||||
'dashboard.hero.travelerMany': '{count} 位旅客',
|
||||
'dashboard.hero.destinationOne': '{count} 個目的地',
|
||||
'dashboard.hero.destinationMany': '{count} 個目的地',
|
||||
'dashboard.hero.dayUnitOne': '天',
|
||||
'dashboard.hero.dayUnitMany': '天',
|
||||
'dashboard.hero.dayLeft': '剩 1 天',
|
||||
'dashboard.hero.daysLeft': '剩餘天數',
|
||||
'dashboard.hero.lastDay': '最後一天',
|
||||
'dashboard.hero.untilStart': '距開始',
|
||||
'dashboard.hero.startsIn': '距出發',
|
||||
'dashboard.atlas.countriesVisited': '地圖集 · 已造訪國家',
|
||||
'dashboard.atlas.ofTotal': '/ {total}',
|
||||
'dashboard.atlas.tripsTotal': '旅行總數',
|
||||
'dashboard.atlas.placesMapped': '已標記 {count} 個地點',
|
||||
'dashboard.atlas.daysTraveled': '旅行天數',
|
||||
'dashboard.atlas.daysUnit': '天',
|
||||
'dashboard.atlas.acrossAllTrips': '所有旅行累計',
|
||||
'dashboard.atlas.distanceFlown': '飛行距離',
|
||||
'dashboard.atlas.kmUnit': 'km',
|
||||
'dashboard.atlas.aroundEquator': '≈ {count}× around the equator',
|
||||
'dashboard.card.idea': 'Idea',
|
||||
'dashboard.card.buddyOne': 'Buddy',
|
||||
'dashboard.fx.from': 'From',
|
||||
'dashboard.fx.to': 'To',
|
||||
'dashboard.fx.unavailable': 'Rate unavailable',
|
||||
'dashboard.tz.searchPlaceholder': 'Search timezone…',
|
||||
'dashboard.tz.empty': 'No other timezones yet — add one with +',
|
||||
'dashboard.upcoming.title': 'Upcoming reservations',
|
||||
'dashboard.upcoming.empty': 'Nothing booked yet.',
|
||||
'dashboard.confirm.copy.title': 'Copy this trip?',
|
||||
'dashboard.confirm.copy.willCopy': 'Will be copied',
|
||||
'dashboard.confirm.copy.will1': 'Days, places & day assignments',
|
||||
'dashboard.confirm.copy.will2': 'Accommodations & reservations',
|
||||
'dashboard.confirm.copy.will3': 'Budget items & category order',
|
||||
'dashboard.confirm.copy.will4': 'Packing lists (unchecked)',
|
||||
'dashboard.confirm.copy.will5': 'TODOs (unassigned & unchecked)',
|
||||
'dashboard.confirm.copy.will6': 'Day notes',
|
||||
'dashboard.confirm.copy.wontCopy': 'Won\'t be copied',
|
||||
'dashboard.confirm.copy.wont1': 'Collaborators & member assignments',
|
||||
'dashboard.confirm.copy.wont2': 'Collab notes, polls & messages',
|
||||
'dashboard.confirm.copy.wont3': 'Files & photos',
|
||||
'dashboard.confirm.copy.wont4': 'Share tokens',
|
||||
'dashboard.confirm.copy.confirm': 'Copy trip',
|
||||
'dashboard.atlas.aroundEquator': '≈ 繞赤道 {count} 圈',
|
||||
'dashboard.card.idea': '想法',
|
||||
'dashboard.card.buddyOne': '旅伴',
|
||||
'dashboard.fx.from': '從',
|
||||
'dashboard.fx.to': '到',
|
||||
'dashboard.fx.unavailable': '無法取得匯率',
|
||||
'dashboard.tz.searchPlaceholder': '搜尋時區…',
|
||||
'dashboard.tz.empty': '還沒有其他時區 — 用 + 新增一個',
|
||||
'dashboard.upcoming.title': '即將到來的預訂',
|
||||
'dashboard.upcoming.empty': '尚未預訂任何內容。',
|
||||
'dashboard.confirm.copy.title': '複製這次旅行?',
|
||||
'dashboard.confirm.copy.willCopy': '將被複製',
|
||||
'dashboard.confirm.copy.will1': '天數、地點和每日安排',
|
||||
'dashboard.confirm.copy.will2': '住宿和預訂',
|
||||
'dashboard.confirm.copy.will3': '預算項目和分類順序',
|
||||
'dashboard.confirm.copy.will4': '打包清單(未勾選)',
|
||||
'dashboard.confirm.copy.will5': '待辦事項(未指派且未勾選)',
|
||||
'dashboard.confirm.copy.will6': '每日筆記',
|
||||
'dashboard.confirm.copy.wontCopy': '不會被複製',
|
||||
'dashboard.confirm.copy.wont1': '協作者和成員指派',
|
||||
'dashboard.confirm.copy.wont2': '協作筆記、投票和訊息',
|
||||
'dashboard.confirm.copy.wont3': '檔案和照片',
|
||||
'dashboard.confirm.copy.wont4': '共享權杖',
|
||||
'dashboard.confirm.copy.confirm': '複製旅行',
|
||||
'dashboard.aria.toggleView': '切換檢視',
|
||||
'dashboard.aria.filter': '篩選',
|
||||
'dashboard.aria.duplicate': '複製',
|
||||
'dashboard.aria.refreshRates': '重新整理匯率',
|
||||
'dashboard.aria.swapCurrencies': '交換貨幣',
|
||||
'dashboard.aria.addTimezone': '新增時區',
|
||||
'dashboard.aria.removeTimezone': '移除 {city}',
|
||||
};
|
||||
export default dashboard;
|
||||
|
||||
Reference in New Issue
Block a user