From fee74560548c45f7d5a52ade148f0d8f119d104c Mon Sep 17 00:00:00 2001 From: Hakadao Date: Sun, 3 Sep 2023 01:21:00 +0800 Subject: [PATCH] chore: delete useless code --- src/components/VideoCard-Perf.vue.bak | 367 +++++++++++++++++++++++ src/components/VideoCard.vue | 146 ++++----- src/contentScripts/views/App.vue | 8 +- src/styles/adaptedStyles/video-page.scss | 60 +++- src/styles/variables.scss | 134 ++++----- 5 files changed, 551 insertions(+), 164 deletions(-) create mode 100644 src/components/VideoCard-Perf.vue.bak diff --git a/src/components/VideoCard-Perf.vue.bak b/src/components/VideoCard-Perf.vue.bak new file mode 100644 index 00000000..8dc62f5f --- /dev/null +++ b/src/components/VideoCard-Perf.vue.bak @@ -0,0 +1,367 @@ + + + + + diff --git a/src/components/VideoCard.vue b/src/components/VideoCard.vue index f65d7479..c5d789c4 100644 --- a/src/components/VideoCard.vue +++ b/src/components/VideoCard.vue @@ -117,7 +117,7 @@ function toggleWatchLater() { class="video-card group" :class="isDislike ? 'is-dislike' : ''" m="b-8" - rounded="“$bew-radius" + rounded="$bew-radius" >
@@ -136,22 +136,22 @@ function toggleWatchLater() { > {{ $t('home.video_removed') }} + text="$bew-theme-color base" + font="bold" + m="t-4" + @click=" + undoDislike( + dislikeReasonId ? dislikeReasonId : 0, + goto, + param, + mid, + tid, + tag.tag_id, + ) + " + > + {{ $t('common.undo') }} + -->
@@ -160,9 +160,9 @@ function toggleWatchLater() { w="full" relative bg="$bew-fill-4" rounded="$bew-radius" cursor-pointer group-hover:shadow group-hover:transform="translate--4px" style="--un-shadow: - 0 0 0 4px var(--bew-theme-color), - 8px 8px 0 2px var(--bew-theme-color-60), - 14px 14px 0 2px var(--bew-theme-color-40)" + 0 0 0 4px var(--bew-theme-color), + 8px 8px 0 2px var(--bew-theme-color-60), + 14px 14px 0 2px var(--bew-theme-color-40)" transition="all ease-in-out 300" group-hover:z-2 @click.stop="openLinkToNewTab(videoUrl)" > @@ -208,7 +208,7 @@ function toggleWatchLater() { loading="lazy" w="full" max-w-full align-middle aspect-video bg="cover center" - rounded="$bew-radius" content-visibility-auto + rounded="$bew-radius" > @@ -226,7 +226,7 @@ function toggleWatchLater() { :src="`${removeHttpFromUrl(authorFace)}@50w_50h_1c`" width="40" height="40" - loading="lazy" content-visibility-auto + loading="lazy" > @@ -234,7 +234,7 @@ function toggleWatchLater() {

@@ -242,16 +242,16 @@ function toggleWatchLater() {

+ id="dislike-control-btn" + class="icon-btn" + p="t-0.15rem x-2" + pointer="auto" + display="invisible" + group-hover:display="visible" + @click.stop="showPopCtrl = !showPopCtrl" + > + +
-->
{{ author }} diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index a1177e0c..4e3481a6 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -228,9 +228,9 @@ function setAppThemeColor() { bewlyElement.style.setProperty(`--bew-theme-color-${i + 1}0`, hexToRGBA(settings.value.themeColor, i * 0.1 + 0.1)) } - document.body.style.setProperty('--bew-theme-color', settings.value.themeColor) + document.documentElement.style.setProperty('--bew-theme-color', settings.value.themeColor) for (let i = 0; i < 9; i++) - document.body.style.setProperty(`--bew-theme-color-${i + 1}0`, hexToRGBA(settings.value.themeColor, i * 0.1 + 0.1)) + document.documentElement.style.setProperty(`--bew-theme-color-${i + 1}0`, hexToRGBA(settings.value.themeColor, i * 0.1 + 0.1)) } function setAppWallpaperMaskingOpacity() { @@ -411,8 +411,8 @@ function handleBackToTop() {
-