From 9915d46ad42d41be6f21f1ebadd51113a2c37cac Mon Sep 17 00:00:00 2001 From: mini-bomba <55105495+mini-bomba@users.noreply.github.com> Date: Fri, 19 Aug 2022 21:05:45 +0200 Subject: [PATCH] Add a section in options for unsubmitted segments --- public/_locales/en/messages.json | 32 +++++++++ public/options/options.html | 6 +- .../UnsubmittedVideoListComponent.tsx | 71 +++++++++++++++++++ src/components/UnsubmittedVideoListItem.tsx | 64 +++++++++++++++++ src/components/UnsubmittedVideosComponent.tsx | 51 +++++++++++++ src/options.ts | 64 +++++++++-------- src/render/UnsubmittedVideos.tsx | 15 ++++ 7 files changed, 274 insertions(+), 29 deletions(-) create mode 100644 src/components/UnsubmittedVideoListComponent.tsx create mode 100644 src/components/UnsubmittedVideoListItem.tsx create mode 100644 src/components/UnsubmittedVideosComponent.tsx create mode 100644 src/render/UnsubmittedVideos.tsx diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index f5e55cd4..baa9fb40 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -1153,5 +1153,37 @@ }, "chaptersPage1": { "message": "SponsorBlock crowd-sourced chapters feature is only available to people who purchase a license, or for people who are granted access for free due their past contributions" + }, + "unsubmittedSegmentCounts": { + "message": "You currently have {0} unsubmitted segments on {1} videos", + "description": "Example: You currently have 12 unsubmitted segments on 5 videos" + }, + "clearUnsubmittedSegments": { + "message": "Clear all segments", + "description": "Label for a button in settings" + }, + "clearUnsubmittedSegmentsConfirm": { + "message": "Are you sure you want to clear all your unsubmitted segments?", + "description": "Confirmation message for the Clear unsubmitted segments button" + }, + "showUnsubmittedSegments": { + "message": "Show segments", + "description": "Show/hide button for the unsubmitted segments list" + }, + "hideUnsubmittedSegments": { + "message": "Hide segments", + "description": "Show/hide button for the unsubmitted segments list" + }, + "videoID": { + "message": "Video ID", + "description": "Header of the unsubmitted segments list" + }, + "segmentCount": { + "message": "Segment Count", + "description": "Header of the unsubmitted segments list" + }, + "actions": { + "message": "Actions", + "description": "Header of the unsubmitted segments list" } } diff --git a/public/options/options.html b/public/options/options.html index 765134ec..dbf9473f 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -490,7 +490,11 @@
__MSG_copyDebugInformationOptions__
- + +
+ +
+