🎉 Initial Commit for the Sphere webpage

This commit is contained in:
2025-08-03 20:11:30 +08:00
parent adf62fb42b
commit 7d3236550c
31 changed files with 886 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
<template>
<n-image v-if="itemType == 'image'" :src="remoteSource" class="rounded-md">
<template #error>
<img src="/image-broken.jpg" class="w-32 h-32 rounded-md" />
</template>
</n-image>
</template>
<script lang="ts" setup>
import { NImage } from 'naive-ui'
import { computed } from 'vue'
const props = defineProps<{ item: any }>()
const itemType = computed(() => props.item.mime_type.split('/')[0] ?? 'unknown')
const remoteSource = computed(() => `/cgi/drive/files/${props.item.id}`)
</script>