Compare commits
2 Commits
8bf8b4c5cb
...
a15b80c23e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a15b80c23e | ||
|
|
2108324cf4 |
BIN
app/apple-icon.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
app/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
app/icon0.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
3
app/icon1.svg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
@@ -23,6 +23,10 @@ const cinzel = Cinzel_Decorative({
|
|||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'Tarokka',
|
title: 'Tarokka',
|
||||||
description: 'Fortune telling for D&D’s Curse of Strahd',
|
description: 'Fortune telling for D&D’s Curse of Strahd',
|
||||||
|
appleWebApp: {
|
||||||
|
title: 'Tarokka',
|
||||||
|
statusBarStyle: 'black-translucent',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
|
|||||||
22
app/manifest.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "Tarokka",
|
||||||
|
"short_name": "Tarokka",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/web-app-manifest-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "maskable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/web-app-manifest-512x512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "maskable"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"theme_color": "#000000",
|
||||||
|
"background_color": "#000000",
|
||||||
|
"display": "standalone"
|
||||||
|
}
|
||||||
|
|
||||||
BIN
app/opengraph-image.png
Normal file
|
After Width: | Height: | Size: 606 KiB |
BIN
app/twitter-image.png
Normal file
|
After Width: | Height: | Size: 427 KiB |
@@ -213,7 +213,7 @@ export default class GameStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteGame(game: GameState): void {
|
deleteGame(game: GameState): void {
|
||||||
console.log(Date.now(), 'DELETE', game);
|
console.log(Date.now(), 'DELETE', game.dmID, game.spectatorID);
|
||||||
|
|
||||||
this.dms.delete(game.dmID);
|
this.dms.delete(game.dmID);
|
||||||
this.spectators.delete(game.spectatorID);
|
this.spectators.delete(game.spectatorID);
|
||||||
|
|||||||
25
middleware.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import { NextResponse } from 'next/server';
|
||||||
|
import type { NextRequest } from 'next/server';
|
||||||
|
|
||||||
|
export function middleware(request: NextRequest) {
|
||||||
|
const url = request.nextUrl;
|
||||||
|
const slug = url.pathname.slice(1);
|
||||||
|
|
||||||
|
const blocked = [
|
||||||
|
'apple-icon.png',
|
||||||
|
'favicon.ico',
|
||||||
|
'icon0.svg',
|
||||||
|
'icon1.png',
|
||||||
|
'manifest.json',
|
||||||
|
'opengraph-image.png',
|
||||||
|
'twitter-image.png',
|
||||||
|
'web-app-manifest-192x192.png',
|
||||||
|
'web-app-manifest-512x512.png',
|
||||||
|
];
|
||||||
|
|
||||||
|
if (blocked.includes(slug)) {
|
||||||
|
return NextResponse.rewrite(request.url);
|
||||||
|
}
|
||||||
|
|
||||||
|
return NextResponse.next();
|
||||||
|
}
|
||||||
BIN
public/img/tarokka.png
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
public/img/tarokka_1024x512.webp
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
public/img/tarokka_1200x630.webp
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
public/img/tarokka_round_solid.png
Normal file
|
After Width: | Height: | Size: 938 KiB |
BIN
public/img/tarokka_round_solid.webp
Normal file
|
After Width: | Height: | Size: 126 KiB |
BIN
public/img/tarokka_transparent.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
public/web-app-manifest-192x192.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
public/web-app-manifest-512x512.png
Normal file
|
After Width: | Height: | Size: 302 KiB |