Merge branch 'tristan-wip' of https://gitea.clubconjure.com/Conjure/conjure-os into tristan-wip

This commit is contained in:
club 2025-06-29 17:50:39 -04:00
commit 77e1ee0c73
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ const optionsOpen = ref(false);
onMounted(async () => {
games.value = await fetchGames();
tags.value = [...new Set(games.value.flatMap(game => game.Genres))];
tags.value = [...new Set(games.value.flatMap(game => game.Genres.split(",")))];
selectedTag.value = tags.value[0];
selectedGame.value = store.filteredGames[0];
});

View File

@ -45,7 +45,7 @@ export async function fetchGames(): Promise<Game[]> {
// TODO games should be loaded from and started from the wails/go code
const games = await LoadGames();
for (const game in games) {
for (const game of games) {
console.log(game)
}
return games;

View File

@ -14,7 +14,7 @@ export const useAppStore = defineStore('app', {
}),
getters: {
filteredGames(state): Game[] {
return state.games.filter(game => game.Genres.includes(state.selectedTag ?? ''));
return state.games.filter(game => game.Genres.split(",").includes(state.selectedTag ?? ''));
}
},
actions: {