From b4a7bb6bade88c25d4387fabcbb1c79e5d5714b2 Mon Sep 17 00:00:00 2001
From: BhJaipa <105307427+BhJaipal@users.noreply.github.com>
Date: Tue, 14 May 2024 22:21:04 +0530
Subject: [PATCH] Preparing for light and dark and plugins correct use
---
frontend/app.vue | 2 +-
frontend/components/Navbar.vue | 2 --
frontend/pages/about/index.vue | 4 ----
frontend/pages/create/index.vue | 5 +----
frontend/pages/index.vue | 4 ----
frontend/pages/search/[title].vue | 15 +++++++--------
frontend/pages/test/index.vue | 1 -
7 files changed, 9 insertions(+), 24 deletions(-)
diff --git a/frontend/app.vue b/frontend/app.vue
index 6cf4d59..260d682 100644
--- a/frontend/app.vue
+++ b/frontend/app.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/frontend/components/Navbar.vue b/frontend/components/Navbar.vue
index 76f4181..8c78d99 100644
--- a/frontend/components/Navbar.vue
+++ b/frontend/components/Navbar.vue
@@ -53,9 +53,7 @@
let mode = ref(false);
watch(mode, () => {
if (!mode.value) {
- document.body.parentElement?.classList.add("dark");
} else {
- document.body.parentElement?.classList.remove("dark");
}
});
let toggleUI = {
diff --git a/frontend/pages/about/index.vue b/frontend/pages/about/index.vue
index 68c1256..9896edd 100644
--- a/frontend/pages/about/index.vue
+++ b/frontend/pages/about/index.vue
@@ -1,5 +1,4 @@