feat: use xpier media library for uploads and markdown embeds

Store media:ID in post bodies instead of CDN URLs, and keep sablog attach tokens as a fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
gouki
2026-09-16 19:03:52 +00:00
co-authored by Cursor
parent f6a9a8ea50
commit f81397a289
38 changed files with 5390 additions and 2059 deletions
@@ -27,6 +27,11 @@ class MediaResource extends Resource
protected static ?string $pluralModelLabel = '媒体';
public static function shouldRegisterNavigation(): bool
{
return false;
}
protected static ?string $model = Media::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;