From 2d40893825470a047f290815861bf3e45af81a63 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 18 Oct 2024 08:59:07 +1100 Subject: [PATCH] Move buscribe-web to top level --- {buscribe/buscribe-web => buscribe-web}/constants.less | 0 {buscribe/buscribe-web => buscribe-web}/form.less | 0 {buscribe/buscribe-web => buscribe-web}/index.html | 0 {buscribe/buscribe-web => buscribe-web}/line.less | 0 {buscribe/buscribe-web => buscribe-web}/script.js | 4 ++-- {buscribe/buscribe-web => buscribe-web}/style.less | 0 buscribe/docker-less/Dockerfile | 5 ----- 7 files changed, 2 insertions(+), 7 deletions(-) rename {buscribe/buscribe-web => buscribe-web}/constants.less (100%) rename {buscribe/buscribe-web => buscribe-web}/form.less (100%) rename {buscribe/buscribe-web => buscribe-web}/index.html (100%) rename {buscribe/buscribe-web => buscribe-web}/line.less (100%) rename {buscribe/buscribe-web => buscribe-web}/script.js (97%) rename {buscribe/buscribe-web => buscribe-web}/style.less (100%) delete mode 100644 buscribe/docker-less/Dockerfile diff --git a/buscribe/buscribe-web/constants.less b/buscribe-web/constants.less similarity index 100% rename from buscribe/buscribe-web/constants.less rename to buscribe-web/constants.less diff --git a/buscribe/buscribe-web/form.less b/buscribe-web/form.less similarity index 100% rename from buscribe/buscribe-web/form.less rename to buscribe-web/form.less diff --git a/buscribe/buscribe-web/index.html b/buscribe-web/index.html similarity index 100% rename from buscribe/buscribe-web/index.html rename to buscribe-web/index.html diff --git a/buscribe/buscribe-web/line.less b/buscribe-web/line.less similarity index 100% rename from buscribe/buscribe-web/line.less rename to buscribe-web/line.less diff --git a/buscribe/buscribe-web/script.js b/buscribe-web/script.js similarity index 97% rename from buscribe/buscribe-web/script.js rename to buscribe-web/script.js index 6f61206..92d3058 100644 --- a/buscribe/buscribe-web/script.js +++ b/buscribe-web/script.js @@ -27,7 +27,7 @@ function query(text, start_time, end_time) { const channel = document.getElementById("channel_select").value; - fetch(`https://wubloader.raptorpond.com/buscribe/${channel}/json?${query_string}`) + fetch(`/buscribe-api/${channel}/json?${query_string}`) .then(response => response.json()) .then(fillResults) @@ -99,4 +99,4 @@ function showContext(time) { document.getElementById("search_text").value = ""; doSearch(); -} \ No newline at end of file +} diff --git a/buscribe/buscribe-web/style.less b/buscribe-web/style.less similarity index 100% rename from buscribe/buscribe-web/style.less rename to buscribe-web/style.less diff --git a/buscribe/docker-less/Dockerfile b/buscribe/docker-less/Dockerfile deleted file mode 100644 index 1faf894..0000000 --- a/buscribe/docker-less/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM node:17-alpine - -RUN npm install less -g - -ENTRYPOINT ["lessc"] \ No newline at end of file