From cd7bfc037066aac7396f80d89cc2cffa1eb116ad Mon Sep 17 00:00:00 2001 From: J-Klinke Date: Fri, 21 Jun 2024 11:07:49 +0200 Subject: [PATCH] added todos --- src/main/resources/static/main.js | 8 ++++---- src/main/resources/templates/index.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/static/main.js b/src/main/resources/static/main.js index 4f4cbf7..08adb7c 100644 --- a/src/main/resources/static/main.js +++ b/src/main/resources/static/main.js @@ -74,13 +74,13 @@ function navigateToAdd() { function filter(filterString) { filterString = filterString.toUpperCase(); const fetchURL = baseURL + "?type=" + encodeURIComponent(filterString) + "&size=" + defaultPagingValue; - console.log(fetchURL) + console.log(fetchURL); // TODO: remove fetchQuery(fetchURL); } function search(searchString) { const fetchURL = baseURL + "/search" + "?search=" + encodeURIComponent(searchString.length === 0?"%":searchString); - console.log(fetchURL); + console.log(fetchURL); // TODO: remove fetchQuery(fetchURL); } @@ -92,12 +92,12 @@ function sort(sortString) { query[1] = "desc"; } const fetchURL = baseURL + "?sort=" + query[0] + "&direction=" + query[1]; - console.log(fetchURL); + console.log(fetchURL); // TODO: remove fetchQuery(fetchURL); } function vote(entryID, up) { - console.log(baseURL + "/id/" + entryID + "/" + (up?"upvote":"downvote")); + console.log(baseURL + "/id/" + entryID + "/" + (up?"upvote":"downvote")); // TODO: remove fetch(baseURL + "/id/" + entryID + "/" + up?"upvote":"downvote"); } diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 5ac6b42..caa1721 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -8,7 +8,7 @@ -
+

Welcome to DataDash