refactor: unify user settings (#821)

Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
This commit is contained in:
Anthony Fu 2023-01-06 18:39:37 +01:00 committed by GitHub
parent 35c9a871be
commit 1aa118283e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 105 additions and 61 deletions

View file

@ -21,7 +21,7 @@ const isSquare = $computed(() => (
))
const providerName = $computed(() => props.card.providerName ? props.card.providerName : new URL(props.card.url).hostname)
const gitHubCards = $(computedEager(() => useFeatureFlags().experimentalGitHubCards))
const gitHubCards = $(useFeatureFlag('experimentalGitHubCards'))
// TODO: handle card.type: 'photo' | 'video' | 'rich';
const cardTypeIconMap: Record<CardType, string> = {