From 21620cc46d075b6ff0d1cfcdda1ff84ee8c6c345 Mon Sep 17 00:00:00 2001 From: GuillaumeSD Date: Sat, 19 Apr 2025 20:11:43 +0200 Subject: [PATCH] fix : rename to chesskit --- README.md | 6 +-- cdk.json | 2 +- firebase.json | 68 ---------------------------------- package-lock.json | 4 +- package.json | 5 +-- public/site.webmanifest | 4 +- src/lib/chess.ts | 4 +- src/pages/_document.tsx | 6 +-- src/pages/database.tsx | 2 +- src/pages/index.tsx | 2 +- src/pages/play.tsx | 2 +- src/sections/layout/NavBar.tsx | 4 +- 12 files changed, 20 insertions(+), 89 deletions(-) delete mode 100644 firebase.json diff --git a/README.md b/README.md index 877fb79..a11afd8 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ Logo -

Freechess

+

Chesskit

The Ultimate Chess Web App
- freechess.web.app + chesskit.org
Discord Server ยท @@ -16,7 +16,7 @@
-Freechess is an open-source chess web app to play, view and analyze your chess games for free on any device with Stockfish ! +Chesskit is an open-source chess web app to play, view and analyze your chess games for free on any device with Stockfish ! ## Mission diff --git a/cdk.json b/cdk.json index b1532f5..fac74f0 100644 --- a/cdk.json +++ b/cdk.json @@ -1,6 +1,6 @@ { "app": "npx tsx cdk/app.ts", - "profile": "freechess", + "profile": "chesskit", "watch": { "include": ["**"], "exclude": [ diff --git a/firebase.json b/firebase.json deleted file mode 100644 index 7a08084..0000000 --- a/firebase.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "hosting": { - "site": "freechess", - "public": "out", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], - "cleanUrls": true, - "trailingSlash": false, - "predeploy": ["npm run lint", "npm run build"], - "headers": [ - { - "source": "/", - "headers": [ - { - "key": "Cross-Origin-Embedder-Policy", - "value": "require-corp" - }, - { - "key": "Cross-Origin-Opener-Policy", - "value": "same-origin" - } - ] - }, - { - "source": "/engines/**", - "headers": [ - { - "key": "Cross-Origin-Embedder-Policy", - "value": "require-corp" - }, - { - "key": "Cross-Origin-Opener-Policy", - "value": "same-origin" - }, - { - "key": "Cache-Control", - "value": "public, max-age=31536000, immutable" - } - ] - }, - { - "source": "/play", - "headers": [ - { - "key": "Cross-Origin-Embedder-Policy", - "value": "require-corp" - }, - { - "key": "Cross-Origin-Opener-Policy", - "value": "same-origin" - } - ] - }, - { - "source": "/database", - "headers": [ - { - "key": "Cross-Origin-Embedder-Policy", - "value": "require-corp" - }, - { - "key": "Cross-Origin-Opener-Policy", - "value": "same-origin" - } - ] - } - ] - } -} diff --git a/package-lock.json b/package-lock.json index c01f8ae..6223079 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "freechess", + "name": "chesskit", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "freechess", + "name": "chesskit", "version": "0.1.0", "license": "GPL-3.0-only", "dependencies": { diff --git a/package.json b/package.json index d67e1dd..4fd2d9c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "freechess", + "name": "chesskit", "version": "0.1.0", "private": true, "license": "GPL-3.0-only", @@ -8,8 +8,7 @@ "build": "next build", "start": "next start", "lint": "next lint && tsc --noEmit", - "deploy": "cdk deploy", - "deploy:firebase": "firebase deploy --project=freechessproject --only hosting" + "deploy": "npm run lint && npm run build && cdk deploy" }, "dependencies": { "@emotion/react": "^11.14.0", diff --git a/public/site.webmanifest b/public/site.webmanifest index 78f47b9..2a4bf70 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,6 +1,6 @@ { - "name": "FreeChess", - "short_name": "FreeChess", + "name": "Chesskit", + "short_name": "Chesskit", "icons": [ { "src": "/android-chrome-192x192.png", diff --git a/src/lib/chess.ts b/src/lib/chess.ts index 945d0d4..5e1d7b6 100644 --- a/src/lib/chess.ts +++ b/src/lib/chess.ts @@ -56,8 +56,8 @@ export const setGameHeaders = ( game: Chess, params: { whiteName?: string; blackName?: string; resigned?: Color } = {} ): Chess => { - game.header("Event", "Freechess Game"); - game.header("Site", "Freechess"); + game.header("Event", "Chesskit Game"); + game.header("Site", "Chesskit"); game.header( "Date", new Date().toISOString().split("T")[0].replaceAll("-", ".") diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 98e45ad..4bf7eb7 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -29,11 +29,11 @@ export default function Document() { {/* Balises OG (Facebook & Twitter) */} - - + + - + diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 60bf245..88fe981 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -61,7 +61,7 @@ export default function GameReview() { return ( - + diff --git a/src/pages/play.tsx b/src/pages/play.tsx index f1a1a48..693601b 100644 --- a/src/pages/play.tsx +++ b/src/pages/play.tsx @@ -12,7 +12,7 @@ export default function Play() { return ( - + diff --git a/src/sections/layout/NavBar.tsx b/src/sections/layout/NavBar.tsx index 0a2d6fc..d11c09d 100644 --- a/src/sections/layout/NavBar.tsx +++ b/src/sections/layout/NavBar.tsx @@ -43,7 +43,7 @@ export default function NavBar({ darkMode, switchDarkMode }: Props) { FreeChess logo @@ -57,7 +57,7 @@ export default function NavBar({ darkMode, switchDarkMode }: Props) { fontSize: { xs: "1rem", sm: "1.25rem" }, }} > - Freechess + Chesskit