diff --git a/src/app/serwist/[path]/route.ts b/src/app/serwist/[path]/route.ts
index 7772aae..031e88f 100644
--- a/src/app/serwist/[path]/route.ts
+++ b/src/app/serwist/[path]/route.ts
@@ -17,6 +17,7 @@ const revision = spawnSync("git", ["rev-parse", "HEAD"], { encoding: "utf-8" }).
export const { dynamic, dynamicParams, revalidate, generateStaticParams, GET } = createSerwistRoute({
additionalPrecacheEntries: [{ url: "/", revision }],
swSrc: "src/app/sw.ts",
+ maximumFileSizeToCacheInBytes: 300 * 1024 * 1024,
// nextConfig,
// If set to `false`, Serwist will attempt to use `esbuild-wasm`.
useNativeEsbuild: true,
diff --git a/src/components/riddles/Riddle_2.tsx b/src/components/riddles/Riddle_2.tsx
index 6901a5e..a4389f0 100644
--- a/src/components/riddles/Riddle_2.tsx
+++ b/src/components/riddles/Riddle_2.tsx
@@ -13,6 +13,7 @@ import VoiceOver from "../VoiceOver";
import RiddleHintPage from "../RiddleHintPage";
import { Player } from "@/types/player";
import { addCompletedRiddle } from "@/utils/completedRiddles";
+import ChargedButton from "../ChargedButton";
export type ConnectionStatus = "disconnected" | "connected" | "connecting";
@@ -262,7 +263,7 @@ export default function Riddle_2({
-
{
+ {
if (playerIndex >= players.length-1) {
setPage(2);
addPoints(riddle.points);
@@ -280,7 +281,7 @@ export default function Riddle_2({
setCanGoNext(false);
setPlayerIndex(playerIndex+1);
}
- }} disabled={!canGoNext}>{(playerIndex >= players.length-1) ? "PRÜFUNG BEENDEN" : "NÄCHSTER PRÜFLING"}
+ }} disabled={!canGoNext}>{(playerIndex >= players.length-1) ? "PRÜFUNG BEENDEN" : "NÄCHSTER PRÜFLING"}
{playerIndex < 1 ?
setPage(0)} className={styles["backButton"]}>ZURÜCK : null}
diff --git a/src/components/riddles/Riddle_5.tsx b/src/components/riddles/Riddle_5.tsx
index 93b3bf1..9c05ca6 100644
--- a/src/components/riddles/Riddle_5.tsx
+++ b/src/components/riddles/Riddle_5.tsx
@@ -13,6 +13,7 @@ import OldTextInput from "../OldTextInput";
import VoiceOver from "../VoiceOver";
import RiddleHintPage from "../RiddleHintPage";
import { addCompletedRiddle } from "@/utils/completedRiddles";
+import ChargedButton from "../ChargedButton";
export default function Riddle_5({
page,
@@ -64,7 +65,7 @@ export default function Riddle_5({
onChange={(e) => setSolution(e.target.value)}
value={solution}
/>
- {
+ {
const s = solution.toLowerCase().trim();
if (s.length < 2) {
return;
@@ -78,7 +79,7 @@ export default function Riddle_5({
setPage(2);
}
addCompletedRiddle(riddle.step);
- }} disabled={false}>EINREICHEN
+ }} disabled={false}>EINREICHEN
diff --git a/src/components/screens/Tour.tsx b/src/components/screens/Tour.tsx
index 226bee6..892544b 100644
--- a/src/components/screens/Tour.tsx
+++ b/src/components/screens/Tour.tsx
@@ -21,6 +21,7 @@ import { heartbeat } from "@/utils/sessionHandler";
import { getCompletedRiddles } from "@/utils/completedRiddles";
export default function Tour() {
+ const [ showTooFar, setShowTooFar ] = useState(false);
const [ completedRiddlesStr, ] = useLocalStorage(PREF.completed_riddles, "");
const [ riddleDataStr, ] = useLocalStorage(PREF.riddle_data, "");
const riddleData: Riddle[] = useMemo(() => {
@@ -152,11 +153,11 @@ export default function Tour() {
if (isNearby) {
setClickedMarker(marker.id);
} else {
- alert(`Ihr seid noch zu weit entfernt!`); // TODO: Change to OldPopUp
+ setShowTooFar(true);
}
}}>
-
+ { clickedMarker &&
{ activeRiddle === null ?
@@ -176,7 +177,23 @@ export default function Tour() {
:
}
-
+ }
+ { showTooFar &&
+
setShowTooFar(false)}>
+
+
Ihr seid leider noch zu weit von der Station entfernt!
+
{
+ setShowTooFar(false);
+ e.stopPropagation();
+ }}
+ >SCHLIEßEN
+
+
+
}
{ !permissionsGranted ?