Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
<script lang="ts" setup>
import { photoOverlayCardUi } from '../../utils/photoOverlayPresentation'
const { currentSortLabel, availableSorts, setSortOption } = usePhotoSort()
</script>
<template>
<UCard
variant="glassmorphism"
:ui="photoOverlayCardUi"
class="w-3xs"
>
<template #header>
<h3 class="font-bold text-sm p-1">
{{ $t('ui.action.sort.title') }}
</h3>
</template>
<div class="space-y-1">
<UButton
v-for="sort in availableSorts"
:key="sort.key"
:variant="currentSortLabel === sort.labelI18n ? 'soft' : 'ghost'"
:color="currentSortLabel === sort.labelI18n ? 'info' : 'neutral'"
:icon="sort.icon"
size="sm"
block
class="justify-start"
@click="setSortOption(sort.key)"
>
{{ $t(sort.labelI18n) }}
</UButton>
</div>
</UCard>
</template>
<style scoped></style>