feat(admin,branding): Add favicon support and video blur component

- Add favicon_url column to nodes table via database migration
- Create favicon upload endpoint with media handling
- Implement favicon upload UI in admin panel with preview
- Add favicon removal functionality in admin settings
- Create BlurredVideo component for improved video rendering
- Update PostCard to use new BlurredVideo component
- Update node schema to include favicon_url field
- Add favicon upload state management and error handling
- Enables customization of browser tab icon for node branding
This commit is contained in:
AskIt
2026-01-26 02:47:33 +01:00
parent 7a95086161
commit b7b6076846
9 changed files with 219 additions and 8 deletions
+2
View File
@@ -24,6 +24,7 @@ export async function PATCH(req: NextRequest) {
rules: data.rules,
bannerUrl: data.bannerUrl,
logoUrl: data.logoUrl,
faviconUrl: data.faviconUrl,
accentColor: data.accentColor,
isNsfw: data.isNsfw ?? false,
}).returning();
@@ -36,6 +37,7 @@ export async function PATCH(req: NextRequest) {
rules: data.rules,
bannerUrl: data.bannerUrl,
logoUrl: data.logoUrl,
faviconUrl: data.faviconUrl,
accentColor: data.accentColor,
isNsfw: data.isNsfw ?? node.isNsfw,
updatedAt: new Date(),