From 455235e54bf3286baf8edec255dac2cd65a58faf Mon Sep 17 00:00:00 2001 From: itsmartashub <44645238+itsmartashub@users.noreply.github.com> Date: Wed, 10 Sep 2025 14:11:49 +0200 Subject: [PATCH 1/3] refactor(custom/settings): Replace manual event listeners with vueuse `onClickOutside` and clean up unused code - Replace manually added and removed event listeners for closing custom settings and theme manager with `vueuse`'s `onClickOutside` utility - Use watchers to handle the closing behavior more effectively and cleanly - Remove unused code from the theme manager and custom settings for improved maintainability - Simplify logic and reduce potential bugs by leveraging `vueuse` functionality Changes summary: - Replaced manual event listeners for closing custom settings and theme manager with the `onClickOutside` utility from `vueuse`. This simplifies the code and ensures proper cleanup. Additionally, unused code from the theme manager and custom settings was removed to streamline the implementation and improve maintainability. --- components/CustomizationSettings.vue | 26 +-------- components/ThemeManager.vue | 87 +++++++++++++++++++++------- entrypoints/content.js | 12 ++++ 3 files changed, 81 insertions(+), 44 deletions(-) diff --git a/components/CustomizationSettings.vue b/components/CustomizationSettings.vue index 3b2e0b4..d6f255a 100644 --- a/components/CustomizationSettings.vue +++ b/components/CustomizationSettings.vue @@ -1,5 +1,5 @@