diff --git a/back/volume/package.json b/back/volume/package.json index ddd628f..6f353ae 100644 --- a/back/volume/package.json +++ b/back/volume/package.json @@ -63,7 +63,6 @@ "ws": "^8.11.0" }, "devDependencies": { - "@nestjs/cli": "^9.0.0", "@types/jest": "28.1.8", "@types/supertest": "^2.0.11", "@typescript-eslint/eslint-plugin": "^5.53.0", diff --git a/front/volume/src/App.svelte b/front/volume/src/App.svelte index ab4c758..a8256a3 100644 --- a/front/volume/src/App.svelte +++ b/front/volume/src/App.svelte @@ -52,14 +52,15 @@ function clickHistory() { isHistoryOpen = true; } - let matches: Array = [ - { winner: "Alice", loser: "Bob", points: -5, rank: "22" }, - { winner: "Alice", loser: "Bob", points: 10, rank: "24" }, - { winner: "Alice", loser: "Bob", points: 10, rank: "24" }, - { winner: "Alice", loser: "Bob", points: 7, rank: "23" }, - { winner: "Alice", loser: "Bob", points: 10, rank: "24" }, - { winner: "Alice", loser: "Bob", points: 10, rank: "24" }, - ]; + let matches: Array; + + export async function getHistory(): Promise { + let response = await fetch(API_URL + "/history/" + $store.ftId, { + credentials: "include", + mode: "cors", + }); + return await response.json(); + } // FRIENDS diff --git a/front/volume/src/components/MatchHistory.svelte b/front/volume/src/components/MatchHistory.svelte index 07f1f93..6c4b5e3 100644 --- a/front/volume/src/components/MatchHistory.svelte +++ b/front/volume/src/components/MatchHistory.svelte @@ -1,10 +1,11 @@