From 88f024dfbce799254b3a40a696addcc8506a6af1 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Tue, 18 Oct 2022 03:23:46 +0300 Subject: [PATCH 1/5] create working game lists in go --- src/app/app.component.ts | 4 ---- src/app/interfaces/game.interface.ts | 3 ++- src/app/services/go.ts | 2 +- src/app/services/launcher.service.ts | 5 ++++- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4d63a84..033e9ac 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -18,8 +18,4 @@ export class AppComponent { }); //GetVersion(); } - - RunGame() { - //RunGame(); - } } diff --git a/src/app/interfaces/game.interface.ts b/src/app/interfaces/game.interface.ts index 37f5170..be50df2 100644 --- a/src/app/interfaces/game.interface.ts +++ b/src/app/interfaces/game.interface.ts @@ -1,5 +1,6 @@ export interface Game { - id: number; + id: number; //TODO: Заменить на строку + gameId: string title: string; image: string; description: string; diff --git a/src/app/services/go.ts b/src/app/services/go.ts index acc0fd5..ece084a 100644 --- a/src/app/services/go.ts +++ b/src/app/services/go.ts @@ -2,7 +2,7 @@ import { Game } from '../interfaces/game.interface'; export interface Go extends Window { GetGames: () => Promise; - GoRunGame: (gameId: number) => void; + GoRunGame: (gameId: string) => void; } export interface GoCallback extends Window { diff --git a/src/app/services/launcher.service.ts b/src/app/services/launcher.service.ts index a8ce8ae..9a09752 100644 --- a/src/app/services/launcher.service.ts +++ b/src/app/services/launcher.service.ts @@ -15,6 +15,9 @@ export class LauncherService { public RunGame(game: Game){ //console.log(game) - GoRunGame(game.id) + GoRunGame(game.gameId) + // console.log(game) + // console.log(game.title) + // console.log(game.gameId) } } From c9852d2dc6f25bc259502b3d1811bfe9bbd18708 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Tue, 18 Oct 2022 17:58:09 +0300 Subject: [PATCH 2/5] update lfs rules --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 24a8e87..1691f22 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ *.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text From 1e84726bc564b18ff86115247baec47b4b365049 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Tue, 18 Oct 2022 17:58:23 +0300 Subject: [PATCH 3/5] change launch button --- .../games-bar/game-info/game-info.component.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/components/games-bar/game-info/game-info.component.html b/src/app/components/games-bar/game-info/game-info.component.html index 5e9bba3..adfdda2 100644 --- a/src/app/components/games-bar/game-info/game-info.component.html +++ b/src/app/components/games-bar/game-info/game-info.component.html @@ -1,20 +1,13 @@

{{game.title}}

{{game.description}}

- - - From 3b2655cc83c96c6faa6acba13a08a3e9901cc4ea Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Tue, 18 Oct 2022 17:58:32 +0300 Subject: [PATCH 4/5] add game icon to game bar item --- .../game-item/game-item.component.html | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/app/components/games-bar/game-item/game-item.component.html b/src/app/components/games-bar/game-item/game-item.component.html index cecba7b..063d47a 100644 --- a/src/app/components/games-bar/game-item/game-item.component.html +++ b/src/app/components/games-bar/game-item/game-item.component.html @@ -1,3 +1,22 @@ -
+ + + + + +