♻️ Refactored attachment page

This commit is contained in:
2025-11-06 01:33:49 +08:00
parent 6da1a4d21c
commit 9f82214797
8 changed files with 264 additions and 151 deletions

View File

@@ -24,6 +24,7 @@
@click="openExternally"
/>
</template>
<audio
v-else-if="itemType == 'audio'"
class="w-full h-auto"
@@ -59,8 +60,10 @@ const aspectRatio = computed(
)
const imageLoaded = ref(false)
const router = useRouter()
function openExternally() {
window.open(remoteSource.value + "?original=true", "_blank")
router.push('/files/' + props.item.id)
}
const blurCanvas = ref<HTMLCanvasElement | null>(null)