From 7849b882ec4aedc7c541cf221c055a454f596b63 Mon Sep 17 00:00:00 2001 From: David Arroyo <29355377+davidarroyo1234@users.noreply.github.com> Date: Sun, 4 Aug 2024 18:07:34 +0200 Subject: [PATCH] Feature/custom settings and refactor (#179) * First component move * Second refactor * More refactor * Third component move * Move header to component * Initial menu design * Fix design * Click logic * Pending set form value and save * Working functionality --- public/index.html | 2 +- src/components/NotSearching.tsx | 11 + src/components/Searching.tsx | 277 +++++ src/components/SettingMenu.tsx | 113 ++ src/components/{toast.tsx => Toast.tsx} | 0 src/components/Toolbar.tsx | 178 +++ src/components/Unfollowing.tsx | 81 ++ src/components/icons/SettingIcon.tsx | 50 + src/components/icons/UserUncheckIcon.tsx | 2 +- src/constants/constants.ts | 9 + src/main.tsx | 1295 +++++++--------------- src/model/scanning-filter.ts | 6 + src/model/scanning-tab.ts | 1 + src/model/searching-props.ts | 0 src/model/state.ts | 29 + src/model/timings.ts | 6 + src/model/unfollow-filter.ts | 4 + src/model/unfollow-log-entry.ts | 6 + src/model/user.ts | 8 +- src/styles/_helpers.scss | 244 ++-- src/utils.ts | 39 - src/utils/utils.ts | 133 +++ 22 files changed, 1462 insertions(+), 1032 deletions(-) create mode 100644 src/components/NotSearching.tsx create mode 100644 src/components/Searching.tsx create mode 100644 src/components/SettingMenu.tsx rename src/components/{toast.tsx => Toast.tsx} (100%) create mode 100644 src/components/Toolbar.tsx create mode 100644 src/components/Unfollowing.tsx create mode 100644 src/components/icons/SettingIcon.tsx create mode 100644 src/constants/constants.ts create mode 100644 src/model/scanning-filter.ts create mode 100644 src/model/scanning-tab.ts create mode 100644 src/model/searching-props.ts create mode 100644 src/model/state.ts create mode 100644 src/model/timings.ts create mode 100644 src/model/unfollow-filter.ts create mode 100644 src/model/unfollow-log-entry.ts delete mode 100644 src/utils.ts create mode 100644 src/utils/utils.ts diff --git a/public/index.html b/public/index.html index c7b0de9..7d62a1a 100644 --- a/public/index.html +++ b/public/index.html @@ -257,7 +257,7 @@