From 0e112e1a1f218860e635f38313e802e0d836cd55 Mon Sep 17 00:00:00 2001 From: Colack Date: Mon, 6 Jan 2025 14:21:24 -0800 Subject: [PATCH] move to more centralized faq --- Assets/scripts/footer.js | 2 +- Pages/faq/faq.html | 89 +++++++++++++++++++++++++++++++ Pages/faq/posting_guidelines.html | 30 ----------- Pages/faq/tos.html | 30 ----------- Pages/forum/publish.html | 2 +- Pages/home.html | 4 +- Pages/projects/publish.html | 4 +- Pages/sitemap.xml | 2 +- Pages/updates.html | 48 ----------------- index.js | 6 +-- 10 files changed, 97 insertions(+), 120 deletions(-) create mode 100644 Pages/faq/faq.html delete mode 100644 Pages/faq/posting_guidelines.html delete mode 100644 Pages/faq/tos.html delete mode 100644 Pages/updates.html diff --git a/Assets/scripts/footer.js b/Assets/scripts/footer.js index d06c3d0..6a6f1eb 100644 --- a/Assets/scripts/footer.js +++ b/Assets/scripts/footer.js @@ -21,7 +21,7 @@ footer.innerHTML = ` `; footer.onclick = function() { diff --git a/Pages/faq/faq.html b/Pages/faq/faq.html new file mode 100644 index 0000000..27c0f3b --- /dev/null +++ b/Pages/faq/faq.html @@ -0,0 +1,89 @@ + + + + + + + + FAQ | WatermelonKatana + + + + + + + + + + + + + +
Loading...
+ + + + + + diff --git a/Pages/faq/posting_guidelines.html b/Pages/faq/posting_guidelines.html deleted file mode 100644 index cffe7e6..0000000 --- a/Pages/faq/posting_guidelines.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - Posting Guidelines | WatermelonKatana - - - - - - - - - - - - - -
Loading...
- - - - - - \ No newline at end of file diff --git a/Pages/faq/tos.html b/Pages/faq/tos.html deleted file mode 100644 index 66b579d..0000000 --- a/Pages/faq/tos.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - TOS | WatermelonKatana - - - - - - - - - - - - - -
Loading...
- - - - - - \ No newline at end of file diff --git a/Pages/forum/publish.html b/Pages/forum/publish.html index ae7135f..7b6abd3 100644 --- a/Pages/forum/publish.html +++ b/Pages/forum/publish.html @@ -14,7 +14,7 @@

Post Discussion

Please make sure your post follows our - guidelines + guidelines
diff --git a/Pages/home.html b/Pages/home.html index 1069c15..ca6a0a2 100644 --- a/Pages/home.html +++ b/Pages/home.html @@ -31,7 +31,7 @@

Chat Project Gallery Forum - Announcements + FAQ Donate @@ -103,7 +103,7 @@

Hot Forum Topics

Chat Project Gallery Forum - Announcements + FAQ User List ${(data.user.role === "Admin" ? `Admin List`: "")} Donate diff --git a/Pages/projects/publish.html b/Pages/projects/publish.html index 62be4ab..d3ccb8b 100644 --- a/Pages/projects/publish.html +++ b/Pages/projects/publish.html @@ -17,10 +17,10 @@

Publish Project

Please make sure your project follows our - guidelines + guidelines
Publishing a code.org project? Feel free to read this - guide + guide if unsure where to start.
diff --git a/Pages/sitemap.xml b/Pages/sitemap.xml index 05ccfe1..50c4a56 100644 --- a/Pages/sitemap.xml +++ b/Pages/sitemap.xml @@ -21,7 +21,7 @@ 0.2 - https://watermelonkatana.com/updates/ + https://watermelonkatana.com/faq/ weekly 0.2 diff --git a/Pages/updates.html b/Pages/updates.html deleted file mode 100644 index 66d976b..0000000 --- a/Pages/updates.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - Updates | WatermelonKatana - - - - - - - - - - - - - -
Loading...
- - - - - - \ No newline at end of file diff --git a/index.js b/index.js index 2c6b7c8..cf16981 100644 --- a/index.js +++ b/index.js @@ -75,8 +75,7 @@ app.get("/lib/meloncanvas.js", (req, res) => res.sendFile(__dirname + "/lib/melo /** * WatermelonKatana FAQ pages */ -app.get("/tos", (req, res) => res.sendFile(cldir + "/faq/tos.html")); // Terms of Service -app.get("/posting_guidelines", (req, res) => res.sendFile(cldir + "/faq/posting_guidelines.html")); // Posting Guidelines +app.get("/faq", (req, res) => res.sendFile(cldir + "/faq/faq.html")); // Faq // Logout route: clear the JWT cookie and redirect to home app.get("/logout", (req, res) => { @@ -140,9 +139,6 @@ app.get("/project/:id/delete", userAuth, (req, res) => res.redirect("/api/projec // Authors app.get("/authors", (req, res) => { res.sendFile(cldir + "/authors.html") }); -// Updates -app.get("/updates", (req, res) => res.sendFile(cldir + "/updates.html")); - // Posts app.get("/forum", (req, res) => res.sendFile(cldir + "/forum/home.html")); // Forum Home/Search app.get("/forum/post", userAuth, (req, res) => res.sendFile(cldir + "/forum/publish.html")); // Publish page, users only