diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 5924b414..53bafd3a 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -9,7 +9,7 @@ on: - main env: - IMAGE_NAME: ghcr.io/hmbanan666/chat-game/app + IMAGE_NAME: ghcr.io/chat-game/app jobs: docker: diff --git a/README.md b/README.md index 57abf756..ee6be347 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - πŸ“Ί [Developing and playing it live](https://www.twitch.tv/hmbanan666) - πŸ‘Ύ [Our community in Discord](https://discord.gg/B6etUajrGZ) -![Screen](https://github.com/hmbanan666/chat-game/assets/25910785/a22468a4-0bf1-43e3-91fc-23a1e2a675fc) +![Screen](https://github.com/chat-game/app/assets/25910785/a22468a4-0bf1-43e3-91fc-23a1e2a675fc) πŸ€” Imagine procedurally generated world where you and your viewers can: @@ -32,12 +32,12 @@ Let's build a similar world together! ⭐️ Become a Stargazer ⭐️ You can develop in isolated container with prepared options: -[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/hmbanan666/chat-game) +[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/chat-game/app) Make a fork. Or clone this repo and use standard commands: ```shell -git clone https://github.com/hmbanan666/chat-game +git clone https://github.com/chat-game/app yarn install yarn run dev ``` @@ -46,8 +46,8 @@ yarn run dev A huge thank you to everyone who is helping to improve. Thanks to you, the project can evolve! -Chat Game Contributors +Chat Game Contributors ## πŸͺ€ License -This project is licensed under the MIT License - see the [**MIT License**](https://github.com/hmbanan666/chat-game/blob/main/LICENSE) file for details. +This project is licensed under the MIT License - see the [**MIT License**](https://github.com/chat-game/app/blob/main/LICENSE) file for details. diff --git a/package.json b/package.json index 181c2e94..c419f39c 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "chat-game", + "name": "app", "type": "module", "version": "0.2.0", "description": "Chat Game for Twitch", @@ -8,10 +8,10 @@ "homepage": "https://chatgame.space", "repository": { "type": "git", - "url": "git+https://github.com/hmbanan666/chat-game.git" + "url": "git+https://github.com/chat-game/app.git" }, "bugs": { - "url": "https://github.com/hmbanan666/chat-game/issues" + "url": "https://github.com/chat-game/app/issues" }, "keywords": [ "game", diff --git a/src/lib/config.ts b/src/lib/config.ts index 72680ed9..e715871a 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -2,12 +2,12 @@ import { z } from 'zod' import { env as publicEnv } from '$env/dynamic/public' /** - * Π—Π΄Π΅ΡΡŒ ΠΎΠ±ΡŠΡΠ²Π»ΡΠ΅Ρ‚ΡΡ схСма ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ прилоТСния. - * Π‘ΠΎΠ΄Π΅Ρ€ΠΆΠΈΡ‚ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΏΡƒΠ±Π»ΠΈΡ‡Π½Ρ‹Π΅ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½Ρ‹Π΅ окруТСния. + * This is where the application configuration schema is declared. + * Contains only public environment variables. * - * ΠŸΡ€ΠΈΠ²Π°Ρ‚Π½Ρ‹Π΅ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½Ρ‹Π΅ окруТСния хранятся Π² '$env/dynamic/private' - * По ΠΏΠΎΠ»ΠΈΡ‚ΠΈΠΊΠ΅ бСзопасности ΠΎΠ½ΠΈ Π½Π΅ Π΄ΠΎΠ»ΠΆΠ½Ρ‹ Π±Ρ‹Ρ‚ΡŒ доступны Π½Π° ΠΊΠ»ΠΈΠ΅Π½Ρ‚Π΅. - * И ΠΊΠ°ΠΆΠ΄ΠΎΠ΅ использованиС ΠΏΡ€ΠΈΠ²Π°Ρ‚Π½ΠΎΠΉ ΠΏΠ΅Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎΠΉ окруТСния Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π² Ρ€ΡƒΡ‡Π½ΠΎΠΌ Ρ€Π΅ΠΆΠΈΠΌΠ΅. + * Private environment variables are stored in '$env/dynamic/private' + * According to security policy, they should not be available on the client. + * Every use of a private environment variable must be done manually. */ const allEnv = z.object({ @@ -15,7 +15,7 @@ const allEnv = z.object({ PUBLIC_SIGNIN_REDIRECT_URL: z.string().default(''), PUBLIC_WEBSOCKET_URL: z.string().default(''), PUBLIC_DONATE_URL: z.string().default('https://www.donationalerts.com/r/hmbanan666'), - PUBLIC_GITHUB_REPO_URL: z.string().default('https://github.com/hmbanan666/chat-game'), + PUBLIC_GITHUB_REPO_URL: z.string().default('https://github.com/chat-game/app'), PUBLIC_DISCORD_SERVER_INVITE_URL: z.string().default('https://discord.gg/B6etUajrGZ'), PUBLIC_GAME_ADMIN_PLAYER_ID: z.string().default('svhjz9p5467wne9ybasf1bwy'), PUBLIC_TWITCH_CLIENT_ID: z.string().default(''),