feat: add media save guide

This commit is contained in:
TerryM
2026-06-01 23:00:28 +08:00
parent 7b48f9780c
commit e096d59fa6
16 changed files with 437 additions and 102 deletions

View File

@@ -1,5 +1,11 @@
import { assetUrl } from "../../../api";
export function pauseActiveVideos() {
document.querySelectorAll("video").forEach((video) => {
video.pause();
});
}
export function attachmentDownloadUrl(postId: string, attachmentId: string) {
return assetUrl(
`/api/posts/${encodeURIComponent(postId)}/attachments/${encodeURIComponent(