diff --git a/package-lock.json b/package-lock.json index 89eb2d0..46c0a3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6797,9 +6797,9 @@ } }, "node_modules/undici-types": { - "version": "6.19.6", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.6.tgz", - "integrity": "sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "dev": true, "license": "MIT" }, diff --git a/src/components/utilities/Notifications.vue b/src/components/utilities/Notifications.vue index 76ea3c1..c538bf4 100644 --- a/src/components/utilities/Notifications.vue +++ b/src/components/utilities/Notifications.vue @@ -22,9 +22,15 @@ function closeNotification(id: string) { notifications.removeNotification(id) } +type Notification = { + title?: string + message?: string +} + function setupNotificationListener(connection: any) { - connection.on('notification', (data: { message: string }) => { + connection.on('notification', (data: Notification) => { notifications.addNotification({ + title: data.title, message: data.message }) }) diff --git a/src/screens/Game.vue b/src/screens/Game.vue index cd6c195..4f2ea00 100644 --- a/src/screens/Game.vue +++ b/src/screens/Game.vue @@ -64,7 +64,7 @@ const gameConfig = { resolution: 5, pixelArt: true, scale: { - mode: Phaser.Scale.FIT, + mode: Phaser.Scale.RESIZE, autoCenter: Phaser.Scale.CENTER_BOTH, width: window.innerWidth, height: window.innerHeight