feat: custom emoji

This commit is contained in:
codytseng
2025-08-22 21:05:44 +08:00
parent 481d6a1447
commit 71d4420604
46 changed files with 885 additions and 176 deletions

View File

@@ -8,6 +8,7 @@ import { useContentPolicy } from '@/providers/ContentPolicyProvider'
import { useTheme } from '@/providers/ThemeProvider'
import { useUserTrust } from '@/providers/UserTrustProvider'
import { SelectValue } from '@radix-ui/react-select'
import { ExternalLink } from 'lucide-react'
import { forwardRef, HTMLProps, useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -81,6 +82,22 @@ const GeneralSettingsPage = forwardRef(({ index }: { index?: number }, ref) => {
</Label>
<Switch id="show-nsfw" checked={defaultShowNsfw} onCheckedChange={setDefaultShowNsfw} />
</SettingItem>
<SettingItem>
<div>
<a
className="flex items-center gap-1 cursor-pointer hover:underline"
href="https://emojito.meme/browse"
target="_blank"
rel="noopener noreferrer"
>
{t('Custom emoji management')}
<ExternalLink />
</a>
<div className="text-muted-foreground">
{t('After changing emojis, you may need to refresh the page')}
</div>
</div>
</SettingItem>
</div>
</SecondaryPageLayout>
)