From f72fea998e8fe2e221e0bfb0e8ddfbe14498a5b5 Mon Sep 17 00:00:00 2001 From: stacksmash76 <98354295+stacksmash76@users.noreply.github.com> Date: Fri, 22 Sep 2023 16:44:23 +0000 Subject: [PATCH] feat(web): add autodl-irssi filter import (#1132) * improve filter importing code feat: added autodl-irssi filter importer/parser enhancement: improved filter importing code enhancement: redesigned filter list page fix(DeleteModal): don't center text on mobile fix(CustomTooltip): don't set opacity (avoid console.log spam), update prop names * fix wrong variable ref name mistake * switch position of buttons, use old blue * give back the dropdown menu you stole --- web/src/components/modals/index.tsx | 2 +- web/src/components/tooltips/CustomTooltip.tsx | 12 +- web/src/screens/filters/Importer.tsx | 280 +++++++++++++++ web/src/screens/filters/List.tsx | 113 ++---- web/src/screens/filters/_configParser.ts | 332 ++++++++++++++++++ web/src/screens/filters/_const.ts | 74 ++++ 6 files changed, 722 insertions(+), 91 deletions(-) create mode 100644 web/src/screens/filters/Importer.tsx create mode 100644 web/src/screens/filters/_configParser.ts create mode 100644 web/src/screens/filters/_const.ts diff --git a/web/src/components/modals/index.tsx b/web/src/components/modals/index.tsx index a55d827..463cec3 100644 --- a/web/src/components/modals/index.tsx +++ b/web/src/components/modals/index.tsx @@ -29,7 +29,7 @@ const ModalUpper = ({ title, text }: ModalUpperProps) => (