feat : guess word

This commit is contained in:
2024-12-30 20:15:02 +01:00
parent 08daf733d1
commit 9eaf7009c6
12 changed files with 304 additions and 54 deletions
+7 -7
View File
@@ -46,8 +46,8 @@ export const useWordStore = defineStore("word", {
method: "PUT",
}
);
word.enabled = true;
return data;
// word.enabled = true;
// return data;
},
async disableWord(word: WordResponseDTO) {
const config = useRuntimeConfig();
@@ -58,8 +58,8 @@ export const useWordStore = defineStore("word", {
method: "PUT",
}
);
word.enabled = false;
return data;
// word.enabled = false;
// return data;
},
async createWord(value: string) {
@@ -72,8 +72,8 @@ export const useWordStore = defineStore("word", {
method: "POST",
}
);
this.words[data.id] = data;
return data;
// this.words[data.id] = data;
// return data;
},
async deleteWord(word: WordResponseDTO) {
const config = useRuntimeConfig();
@@ -84,7 +84,7 @@ export const useWordStore = defineStore("word", {
method: "DELETE",
}
);
delete this.words[word.id];
// delete this.words[word.id];
},
},
});