Merge branch 'build/eslint' of https://github.com/starknt/BewlyBewly into starknt-build/eslint

This commit is contained in:
Hakadao
2024-01-09 00:30:13 +08:00
30 changed files with 1830 additions and 1633 deletions

View File

@@ -70,7 +70,7 @@ let beforeLoadedStyleEl: HTMLStyleElement
// We have to manually add a class to the <html> app to ensure that the transition effect is applied
if (
(settings.value.adaptToOtherPageStyles && settings.value.theme === 'dark')
|| (settings.value.adaptToOtherPageStyles && settings.value.theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)
|| (settings.value.adaptToOtherPageStyles && settings.value.theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches)
)
document.documentElement.classList.add('bewly-design', 'dark')

View File

@@ -2,7 +2,7 @@
import { useToggle } from '@vueuse/core'
import { useI18n } from 'vue-i18n'
import browser from 'webextension-polyfill'
import type { Ref } from '@vue/runtime-dom'
import type { Ref } from 'vue'
import Home from './Home/Home.vue'
import Search from './Search/Search.vue'

View File

@@ -11,7 +11,7 @@ const { t } = useI18n()
const favoriteCategories = reactive<CategoryItem[]>([])
const favoriteResources = reactive<FavoriteItem[]>([])
const categoryOptions = reactive<Array<{ value: any; label: string }>>([])
const categoryOptions = reactive<Array<{ value: any, label: string }>>([])
const selectedCategory = ref<FavoriteCategory>()
const activatedCategoryCover = ref<string>('')
@@ -117,7 +117,7 @@ async function getFavoriteResources(
if (
res.data.medias === null
|| (res.data.medias.length < 20 && favoriteResources.length > 0)
|| (res.data.medias.length < 20 && favoriteResources.length > 0)
)
noMoreContent.value = true
}