From 6ea87d7cd019eac1c977a51632db989225790822 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 2 Apr 2020 21:26:13 -0400 Subject: [PATCH] Added basic category chooser UI --- public/_locales/en/messages.json | 9 +++ public/options/options.css | 23 +++++++ public/options/options.html | 7 +++ src/components/CategoryChooserComponent.tsx | 50 +++++++++++++++ .../CategorySkipOptionsComponent.tsx | 63 +++++++++++++++++++ src/options.ts | 4 ++ src/render/CategoryChooser.tsx | 15 +++++ 7 files changed, 171 insertions(+) create mode 100644 src/components/CategoryChooserComponent.tsx create mode 100644 src/components/CategorySkipOptionsComponent.tsx create mode 100644 src/render/CategoryChooser.tsx diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 68900959..8beb64f1 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -498,5 +498,14 @@ }, "category_merchandise": { "message": "Merchandise and self-promotion" + }, + "disable": { + "message": "Disable" + }, + "manualSkip": { + "message": "Manual Skip" + }, + "autoSkip": { + "message": "Auto Skip" } } diff --git a/public/options/options.css b/public/options/options.css index b80bf116..36db654e 100644 --- a/public/options/options.css +++ b/public/options/options.css @@ -323,4 +323,27 @@ svg { font-size: 14px; color: white; +} + +/* React styles */ + +.categoryTableElement { + font-size: 16px; + + color: white; +} + +.categoryTableElement > * { + padding-right: 15px; + padding-bottom: 15px; +} + +.categoryOptionsSelector { + background-color: #c00000; + color: white; + + border: none; + font-size: 14px; + padding: 5px; + border-radius: 5px; } \ No newline at end of file diff --git a/public/options/options.html b/public/options/options.html index 0dc3e4d8..658c3704 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -24,6 +24,13 @@