Compare commits
	
		
			2 Commits
		
	
	
		
			d1cdf8cf6d
			...
			7f06ac94e8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7f06ac94e8 | |||
| ced5259272 | 
| @@ -42,7 +42,6 @@ | ||||
|           "locationAlwaysAndWhenInUsePermission": "Allow $(PRODUCT_NAME) to use your location." | ||||
|         } | ||||
|       ], | ||||
|       "expo-notifications", | ||||
|       "expo-router", | ||||
|       "expo-secure-store", | ||||
|       "expo-share-intent", | ||||
|   | ||||
| @@ -7,13 +7,13 @@ import { Banner, MD3Colors, ProgressBar, Text } from "react-native-paper" | ||||
| export default function FreeChaseBanner() { | ||||
|   const game = useGame() | ||||
|   const chaseFreeTime = game.chaseFreeTime | ||||
|   const chaser = !game.gameStarted && !game.currentRunner && chaseFreeTime !== null | ||||
|   const chaser = game.gameStarted && !game.currentRunner && chaseFreeTime !== null | ||||
|   const chaseFreeDate = useMemo(() => new Date(chaseFreeTime || 0), [chaseFreeTime]) | ||||
|   const chaseFreePretty = chaseFreeDate.toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' }) | ||||
|   const [remainingTime, setRemainingTime] = useState(0) | ||||
|   const prettyRemainingTime = useMemo(() => `${Math.floor(remainingTime / 60).toString().padStart(2, '0')}:${Math.floor(remainingTime % 60).toString().padStart(2, '0')}`, [remainingTime]) | ||||
|   const iconName = useMemo(() => { | ||||
|     switch (Math.abs(remainingTime % 4)) { | ||||
|     switch (Math.abs(Math.floor(remainingTime) % 4)) { | ||||
|       case 0: return 'hourglass-empty' | ||||
|       case 1: return 'hourglass-end' | ||||
|       case 2: return 'hourglass-half' | ||||
| @@ -25,7 +25,7 @@ export default function FreeChaseBanner() { | ||||
|     const now = new Date().getTime() | ||||
|     if (!chaser || (chaseFreeTime < now && remainingTime < 0)) | ||||
|       return | ||||
|     const interval = setInterval(() => setRemainingTime(Math.floor(chaseFreeTime - now) / 1000), 1000) | ||||
|     const interval = setInterval(() => setRemainingTime(Math.floor(chaseFreeTime - new Date().getTime()) / 1000), 1000) | ||||
|     return () => clearInterval(interval) | ||||
|   }, [game.gameStarted, game.currentRunner, chaseFreeDate]) | ||||
|  | ||||
|   | ||||
							
								
								
									
										159
									
								
								client/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										159
									
								
								client/package-lock.json
									
									
									
										generated
									
									
									
								
							| @@ -25,10 +25,8 @@ | ||||
|         "expo-constants": "~17.0.3", | ||||
|         "expo-dev-client": "~5.0.4", | ||||
|         "expo-font": "~13.0.1", | ||||
|         "expo-haptics": "~14.0.0", | ||||
|         "expo-linking": "~7.0.3", | ||||
|         "expo-location": "^18.0.2", | ||||
|         "expo-notifications": "~0.29.11", | ||||
|         "expo-router": "~4.0.9", | ||||
|         "expo-secure-store": "~14.0.0", | ||||
|         "expo-share-intent": "^3.1.1", | ||||
| @@ -38,7 +36,6 @@ | ||||
|         "expo-system-ui": "~4.0.4", | ||||
|         "expo-task-manager": "^12.0.3", | ||||
|         "expo-updates": "~0.26.10", | ||||
|         "expo-web-browser": "~14.0.1", | ||||
|         "maplibre-gl": "^4.7.1", | ||||
|         "maplibre-react-components": "^0.1.9", | ||||
|         "react": "18.3.1", | ||||
| @@ -48,11 +45,9 @@ | ||||
|         "react-native-gesture-handler": "~2.20.2", | ||||
|         "react-native-paper": "^5.12.5", | ||||
|         "react-native-paper-dropdown": "^2.3.1", | ||||
|         "react-native-reanimated": "~3.16.1", | ||||
|         "react-native-safe-area-context": "~4.12.0", | ||||
|         "react-native-screens": "~4.1.0", | ||||
|         "react-native-web": "~0.19.13", | ||||
|         "react-native-webview": "13.12.2", | ||||
|         "react-redux": "^9.1.2", | ||||
|         "socket.io-client": "^4.8.1" | ||||
|       }, | ||||
| @@ -1851,6 +1846,7 @@ | ||||
|       "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", | ||||
|       "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", | ||||
|       "license": "MIT", | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@babel/helper-plugin-utils": "^7.25.9" | ||||
|       }, | ||||
| @@ -2957,12 +2953,6 @@ | ||||
|         "js-yaml": "bin/js-yaml.js" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/@ide/backoff": { | ||||
|       "version": "1.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/@ide/backoff/-/backoff-1.0.0.tgz", | ||||
|       "integrity": "sha512-F0YfUDjvT+Mtt/R4xdl2X0EYCHMMiJqNLdxHD++jDT5ydEFIyqbCHh51Qx2E211dgZprPKhV7sHmnXKpLuvc5g==", | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/@isaacs/cliui": { | ||||
|       "version": "8.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", | ||||
| @@ -5687,19 +5677,6 @@ | ||||
|       "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/assert": { | ||||
|       "version": "2.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/assert/-/assert-2.1.0.tgz", | ||||
|       "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "call-bind": "^1.0.2", | ||||
|         "is-nan": "^1.3.2", | ||||
|         "object-is": "^1.1.5", | ||||
|         "object.assign": "^4.1.4", | ||||
|         "util": "^0.12.5" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/assign-symbols": { | ||||
|       "version": "1.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", | ||||
| @@ -5983,12 +5960,6 @@ | ||||
|         "@babel/core": "^7.0.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/badgin": { | ||||
|       "version": "1.2.3", | ||||
|       "resolved": "https://registry.npmjs.org/badgin/-/badgin-1.2.3.tgz", | ||||
|       "integrity": "sha512-NQGA7LcfCpSzIbGRbkgjgdWkjy7HI+Th5VLxTJfW5EeaAf3fnS+xWQaQOCYiny+q6QSvxqoSO04vCx+4u++EJw==", | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/balanced-match": { | ||||
|       "version": "1.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", | ||||
| @@ -7124,23 +7095,6 @@ | ||||
|         "node": ">=8" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/define-properties": { | ||||
|       "version": "1.2.1", | ||||
|       "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", | ||||
|       "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "define-data-property": "^1.0.1", | ||||
|         "has-property-descriptors": "^1.0.0", | ||||
|         "object-keys": "^1.1.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">= 0.4" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "url": "https://github.com/sponsors/ljharb" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/del": { | ||||
|       "version": "6.1.1", | ||||
|       "resolved": "https://registry.npmjs.org/del/-/del-6.1.1.tgz", | ||||
| @@ -7847,15 +7801,6 @@ | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/expo-application": { | ||||
|       "version": "6.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/expo-application/-/expo-application-6.0.1.tgz", | ||||
|       "integrity": "sha512-w+1quSmKp8SYKT+GAFHSN5c6u+PqoVRIfpsLyRQrQdOnBA9dA8Hw6JT9sHNFmA30A2v1b/sdYZE3qKuRJFNSWQ==", | ||||
|       "license": "MIT", | ||||
|       "peerDependencies": { | ||||
|         "expo": "*" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/expo-asset": { | ||||
|       "version": "11.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/expo-asset/-/expo-asset-11.0.1.tgz", | ||||
| @@ -7982,15 +7927,6 @@ | ||||
|         "react": "*" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/expo-haptics": { | ||||
|       "version": "14.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/expo-haptics/-/expo-haptics-14.0.0.tgz", | ||||
|       "integrity": "sha512-5tYJN+2axYF22BtG1elBQAV1aZPUOCtr9sItClfm4jDoekGiPCxZG/nylcA3DVh2bUHMSll4Y98qjFFFhwZ1Cw==", | ||||
|       "license": "MIT", | ||||
|       "peerDependencies": { | ||||
|         "expo": "*" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/expo-json-utils": { | ||||
|       "version": "0.14.0", | ||||
|       "resolved": "https://registry.npmjs.org/expo-json-utils/-/expo-json-utils-0.14.0.tgz", | ||||
| @@ -8107,26 +8043,6 @@ | ||||
|         "invariant": "^2.2.4" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/expo-notifications": { | ||||
|       "version": "0.29.11", | ||||
|       "resolved": "https://registry.npmjs.org/expo-notifications/-/expo-notifications-0.29.11.tgz", | ||||
|       "integrity": "sha512-u/Csc3YNOPjjuyjAeyj5ne7XR/Z0ABYVquhSnyjEj2Fp8mSldOPCMvaEA01pTFj+8HTlkjX5RZDvQ7cR62ngOA==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "@expo/image-utils": "^0.6.0", | ||||
|         "@ide/backoff": "^1.0.0", | ||||
|         "abort-controller": "^3.0.0", | ||||
|         "assert": "^2.0.0", | ||||
|         "badgin": "^1.1.5", | ||||
|         "expo-application": "~6.0.0", | ||||
|         "expo-constants": "~17.0.0" | ||||
|       }, | ||||
|       "peerDependencies": { | ||||
|         "expo": "*", | ||||
|         "react": "*", | ||||
|         "react-native": "*" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/expo-router": { | ||||
|       "version": "4.0.11", | ||||
|       "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-4.0.11.tgz", | ||||
| @@ -8331,16 +8247,6 @@ | ||||
|       "integrity": "sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==", | ||||
|       "license": "MIT" | ||||
|     }, | ||||
|     "node_modules/expo-web-browser": { | ||||
|       "version": "14.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/expo-web-browser/-/expo-web-browser-14.0.1.tgz", | ||||
|       "integrity": "sha512-QM9F3ie+UyIOoBvqFmT6CZojb1vMc2H+7ZlMT5dEu1PL2jtYyOeK2hLfbt/EMt7CBm/w+P29H9W9Y9gdebOkuQ==", | ||||
|       "license": "MIT", | ||||
|       "peerDependencies": { | ||||
|         "expo": "*", | ||||
|         "react-native": "*" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/exponential-backoff": { | ||||
|       "version": "3.1.1", | ||||
|       "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.1.tgz", | ||||
| @@ -9559,22 +9465,6 @@ | ||||
|         "node": ">=0.10.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/is-nan": { | ||||
|       "version": "1.3.2", | ||||
|       "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", | ||||
|       "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "call-bind": "^1.0.0", | ||||
|         "define-properties": "^1.1.3" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">= 0.4" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "url": "https://github.com/sponsors/ljharb" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/is-number": { | ||||
|       "version": "7.0.0", | ||||
|       "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", | ||||
| @@ -12453,49 +12343,6 @@ | ||||
|         "node": ">=0.10.0" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/object-is": { | ||||
|       "version": "1.1.6", | ||||
|       "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", | ||||
|       "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "call-bind": "^1.0.7", | ||||
|         "define-properties": "^1.2.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">= 0.4" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "url": "https://github.com/sponsors/ljharb" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/object-keys": { | ||||
|       "version": "1.1.1", | ||||
|       "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", | ||||
|       "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", | ||||
|       "license": "MIT", | ||||
|       "engines": { | ||||
|         "node": ">= 0.4" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/object.assign": { | ||||
|       "version": "4.1.5", | ||||
|       "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", | ||||
|       "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "call-bind": "^1.0.5", | ||||
|         "define-properties": "^1.2.1", | ||||
|         "has-symbols": "^1.0.3", | ||||
|         "object-keys": "^1.1.1" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">= 0.4" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "url": "https://github.com/sponsors/ljharb" | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/on-finished": { | ||||
|       "version": "2.3.0", | ||||
|       "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", | ||||
| @@ -13688,6 +13535,8 @@ | ||||
|       "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-3.16.5.tgz", | ||||
|       "integrity": "sha512-mq/5k14pimkhCeP9XwFJkEr8XufaHqIekum8fqpsn0fcBzbLvyiqfM2LEuBvi0+DTv5Bd2dHmUHkYqGYfkj3Jw==", | ||||
|       "license": "MIT", | ||||
|       "optional": true, | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "@babel/plugin-transform-arrow-functions": "^7.0.0-0", | ||||
|         "@babel/plugin-transform-class-properties": "^7.0.0-0", | ||||
| @@ -13861,6 +13710,8 @@ | ||||
|       "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-13.12.2.tgz", | ||||
|       "integrity": "sha512-OpRcEhf1IEushREax6rrKTeqGrHZ9OmryhZLBLQQU4PwjqVsq55iC8OdYSD61/F628f9rURn9THyxEZjrknpQQ==", | ||||
|       "license": "MIT", | ||||
|       "optional": true, | ||||
|       "peer": true, | ||||
|       "dependencies": { | ||||
|         "escape-string-regexp": "^4.0.0", | ||||
|         "invariant": "2.2.4" | ||||
|   | ||||
| @@ -31,10 +31,8 @@ | ||||
|     "expo-constants": "~17.0.3", | ||||
|     "expo-dev-client": "~5.0.4", | ||||
|     "expo-font": "~13.0.1", | ||||
|     "expo-haptics": "~14.0.0", | ||||
|     "expo-linking": "~7.0.3", | ||||
|     "expo-location": "^18.0.2", | ||||
|     "expo-notifications": "~0.29.11", | ||||
|     "expo-router": "~4.0.9", | ||||
|     "expo-secure-store": "~14.0.0", | ||||
|     "expo-share-intent": "^3.1.1", | ||||
| @@ -44,7 +42,6 @@ | ||||
|     "expo-system-ui": "~4.0.4", | ||||
|     "expo-task-manager": "^12.0.3", | ||||
|     "expo-updates": "~0.26.10", | ||||
|     "expo-web-browser": "~14.0.1", | ||||
|     "maplibre-gl": "^4.7.1", | ||||
|     "maplibre-react-components": "^0.1.9", | ||||
|     "react": "18.3.1", | ||||
| @@ -54,11 +51,9 @@ | ||||
|     "react-native-gesture-handler": "~2.20.2", | ||||
|     "react-native-paper": "^5.12.5", | ||||
|     "react-native-paper-dropdown": "^2.3.1", | ||||
|     "react-native-reanimated": "~3.16.1", | ||||
|     "react-native-safe-area-context": "~4.12.0", | ||||
|     "react-native-screens": "~4.1.0", | ||||
|     "react-native-web": "~0.19.13", | ||||
|     "react-native-webview": "13.12.2", | ||||
|     "react-redux": "^9.1.2", | ||||
|     "socket.io-client": "^4.8.1" | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user