Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion games/TotoTheMonkey.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
@title: TotoTheMonkey
@author: Armaan Soni
@description:A Game of monkey who lves math but needs to learn new things choose correct option to teach him rember he is monkey so dont frustrate if the process goes to infinity
@description: A Game of monkey who lves math but needs to learn new things choose correct option to teach him rember he is monkey so dont frustrate if the process goes to infinity
@tags: ["endless","Logical"]
@addedOn: 2025-10-13
*/
Expand Down
2 changes: 1 addition & 1 deletion games/horse-rider-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/*
@title: horse rider 1
@author: Moma120
@descrpition: In this game you jump over obstacles in order to get into the portal in order to go to the next level and if you beat all levels you win
@description: In this game you jump over obstacles in order to get into the portal in order to go to the next level and if you beat all levels you win
@tags: ['horse', 'jumping', 'puzzle']
@addedOn: 2025-12-27
*/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"test:unit": "cross-env PUBLIC_MAX_ITERATIONS=2000 PUBLIC_MAX_LOOP_TIME_MS=1500 vitest"
},
"dependencies": {
"@astrojs/node": "^10.0.0",
"@astrojs/preact": "^2.0.1",
"@astrojs/svelte": "^2.0.1",
"@astrojs/node": "^8.3.4",
"@astrojs/preact": "^3.5.4",
"@astrojs/svelte": "^5.7.3",
"@codemirror/commands": "^6.2.0",
"@codemirror/lang-javascript": "^6.1.2",
"@codemirror/language": "^6.4.0",
Expand All @@ -27,7 +27,7 @@
"@preact/signals": "^1.1.3",
"@sendgrid/mail": "^7.7.0",
"@wcj/markdown-to-html": "^3.0.2",
"astro": "2.7.0",
"astro": "^4.16.19",
"bcryptjs": "^2.4.3",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/games/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { APIContext } from 'astro';
import metrics from "../../../../metrics";

export async function post({ request }: APIContext) {
export async function POST({ request }: APIContext) {
try {
const { metric, value, type } = await request.json();

Expand Down
6 changes: 3 additions & 3 deletions src/pages/editor.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (galleryMatches) return Astro.redirect(`/gallery/${galleryMatches[1]}`, 302)
if (Astro.url.searchParams.has('id'))
return Astro.redirect(`/legacy-bucket/${Astro.url.searchParams.get('id')}`, 302)

const tempGame = Astro.cookies.get('sprigTempGame').value
const tempGame = Astro.cookies.get('sprigTempGame')?.value
if (tempGame) return Astro.redirect(`/~/${encodeURIComponent(tempGame)}`, 302)

const session = await getSession(Astro.cookies)
Expand Down Expand Up @@ -58,8 +58,8 @@ if (reviewMode && reviewCode) {
client:load
persistenceState={persistenceState}
cookies={{
outputAreaSize: Astro.cookies.get('outputAreaSize').number(),
hideHelp: Astro.cookies.get('hideHelp').boolean()
outputAreaSize: Astro.cookies.get('outputAreaSize')?.number(),
hideHelp: Astro.cookies.get('hideHelp')?.boolean()
}}
/>
{isMobile ? <MobileUnsupported /> : null}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/gallery/[filename].astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ const isMobile = mobileUserAgent(Astro.request.headers.get('user-agent') ?? '')
client:load
persistenceState={persistenceState}
cookies={{
outputAreaSize: Astro.cookies.get('outputAreaSize').number(),
hideHelp: Astro.cookies.get('hideHelp').boolean()
outputAreaSize: Astro.cookies.get('outputAreaSize')?.number(),
hideHelp: Astro.cookies.get('hideHelp')?.boolean()
}}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/legacy-bucket/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const isMobile = mobileUserAgent(Astro.request.headers.get('user-agent') ?? '')
client:load
persistenceState={persistenceState}
cookies={{
outputAreaSize: Astro.cookies.get('outputAreaSize').number(),
hideHelp: Astro.cookies.get('hideHelp').boolean()
outputAreaSize: Astro.cookies.get('outputAreaSize')?.number(),
hideHelp: Astro.cookies.get('hideHelp')?.boolean()
}}
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/share/[snapshotId].astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const isMobile = mobileUserAgent(Astro.request.headers.get('user-agent') ?? '')
client:load
persistenceState={persistenceState}
cookies={{
outputAreaSize: Astro.cookies.get('outputAreaSize').number(),
hideHelp: Astro.cookies.get('hideHelp').boolean()
outputAreaSize: Astro.cookies.get('outputAreaSize')?.number(),
hideHelp: Astro.cookies.get('hideHelp')?.boolean()
}}
/>
)}
Expand Down
8 changes: 4 additions & 4 deletions src/pages/~/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function handlePersistenceState(isSessionFull : boolean, game : Game, tuto
await firestore.collection('games').doc(game.id).update({ unprotected: false })
game.unprotected = false
}
if (Astro.cookies.get('sprigTempGame').value === game.id)
if (Astro.cookies.get('sprigTempGame')?.value === game.id)
Astro.cookies.delete('sprigTempGame', { path: '/' })
} else {
if (!game.unprotected) return undefined;
Expand Down Expand Up @@ -157,9 +157,9 @@ isMobile = mobileUserAgent(Astro.request.headers.get('user-agent') ?? '')
persistenceState={persistenceState}
roomState={roomState}
cookies={{
outputAreaSize: Astro.cookies.get('outputAreaSize').number(),
helpAreaSize: Astro.cookies.get('helpAreaSize').number(),
hideHelp: Astro.cookies.get('hideHelp').boolean()
outputAreaSize: Astro.cookies.get('outputAreaSize')?.number(),
helpAreaSize: Astro.cookies.get('helpAreaSize')?.number(),
hideHelp: Astro.cookies.get('hideHelp')?.boolean()
}}
/>
{isMobile ? <MobileUnsupported /> : null}
Expand Down
Loading
Loading