mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
Add ExpandedMapScreen and integrate it into navigation; enhance CacheCardItem and GameSettingsScreen with improved UI elements
This commit is contained in:
1 parent
60cf6baad2
commit
d34bb650f4
15 files changed
+426
-126
No files matched your search
@@ -560,6 +560,7 @@ addRoute('GET', '/game-data/:gid', (req, res, params) => {
|
||||
// Helper: convert storage cache to API response format
|
||||
const toCacheApi = (cache, gid) => ({
|
||||
id: cache.CacheId,
|
||||
name: cache.Name || '',
|
||||
coordinates: { latitude: cache.Latitude, longitude: cache.Longitude },
|
||||
radius: cache.TriggerMeters,
|
||||
clue: cache.Title,
|
||||
@@ -572,6 +573,7 @@ const toCacheApi = (cache, gid) => ({
|
||||
// Helper: convert API payload to storage cache format
|
||||
const toCacheStorage = (data, cacheId) => ({
|
||||
CacheId: cacheId,
|
||||
Name: data.name || data.Name || '',
|
||||
Title: data.clue || data.Title || '',
|
||||
Latitude: data.latitude != null ? data.latitude : (data.Latitude || 0),
|
||||
Longitude: data.longitude != null ? data.longitude : (data.Longitude || 0),
|
||||
|
||||
Reference in new issue
Block a user