From 4a3578b8ff1cb4d572b9148bef562a274dc035ef Mon Sep 17 00:00:00 2001 From: Simon C Date: Tue, 5 Apr 2022 16:36:17 +0200 Subject: [PATCH] feat: Suppression de code inutil --- src/api.js | 20 -------------------- src/components/Score.vue | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 src/api.js diff --git a/src/api.js b/src/api.js deleted file mode 100644 index 5ef9107..0000000 --- a/src/api.js +++ /dev/null @@ -1,20 +0,0 @@ -const apiUrl = "https://admin.ceiba-conseil.com"; - -export async function fetchJSONApi(path) { - const url = `${apiUrl}${path}`; - const options = { - method: "GET", - headers: { - "content-type": "application/json", - }, - }; - console.log(`fetchJSONApi: ${url}`); - const response = await fetch(url, options); - - if (!response.ok) { - const errors = await response.json(); - throw errors.errors[0].message; - } - - return response.json(); -} diff --git a/src/components/Score.vue b/src/components/Score.vue index a1b06e1..8dc771e 100644 --- a/src/components/Score.vue +++ b/src/components/Score.vue @@ -59,7 +59,7 @@ function formatScore(score) { const title = score ? score.title : ""; const questions = ref(formatScore(score)); -console.log(questions.value); + function nextQuestion() { setTimeout(() => slides.value.go(">"), 100); }