From 746aaec699ee416254ee70189c6441fec43f93e8 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 9 May 2023 01:29:04 +0800 Subject: [PATCH] feat: support tab key navigation (experiment) --- src/components/VideoCard.vue | 5 +- .../views/Anime/components/AnimeCard.vue | 2 +- .../views/Anime/components/AnimeTimeTable.vue | 4 +- src/contentScripts/views/App.vue | 32 ++++++------- src/contentScripts/views/History/History.vue | 46 ++++++++++--------- .../views/WatchLater/WatchLater.vue | 17 ++++--- src/styles/main.scss | 6 +++ 7 files changed, 62 insertions(+), 50 deletions(-) diff --git a/src/components/VideoCard.vue b/src/components/VideoCard.vue index 2bd66629..5fd39c08 100644 --- a/src/components/VideoCard.vue +++ b/src/components/VideoCard.vue @@ -155,7 +155,7 @@ function toggleWatchLater() {
- +
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
-
+
+
-
+
+
-
+
+
diff --git a/src/contentScripts/views/History/History.vue b/src/contentScripts/views/History/History.vue index 09f71601..768f27c1 100644 --- a/src/contentScripts/views/History/History.vue +++ b/src/contentScripts/views/History/History.vue @@ -388,19 +388,21 @@ function jumpToLoginPage() {
-

- {{ - historyItem.show_title - ? historyItem.show_title - : historyItem.title - }} -

-
+

{{ useDateFormat(historyItem.view_at * 1000, 'YYYY-MM-DD HH:mm:ss') diff --git a/src/contentScripts/views/WatchLater/WatchLater.vue b/src/contentScripts/views/WatchLater/WatchLater.vue index 889e0ba9..e9737bd2 100644 --- a/src/contentScripts/views/WatchLater/WatchLater.vue +++ b/src/contentScripts/views/WatchLater/WatchLater.vue @@ -172,15 +172,17 @@ function jumpToLoginPage() {

-

{{ item.title }} -

- +

{{ useDateFormat(item.pubdate * 1000, 'YYYY-MM-DD HH:mm:ss') diff --git a/src/styles/main.scss b/src/styles/main.scss index 15288259..231705c1 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,3 +1,9 @@ +* { + outline-color: var(--bew-theme-color-80); + outline-width: 2px; + outline-offset: -2px; +} + .dark * { color-scheme: dark; }