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
import { purchaseReturnPath } from '../utils/plan-purchase'
export function useCloudAuthDestination() {
const route = useRoute()
const destination = computed(
() => purchaseReturnPath(route.query.next) ?? '/workspace',
)
function authLink(path: '/signin' | '/signup' | '/forgot-password') {
const next = purchaseReturnPath(route.query.next)
return { path, query: next ? { next } : {} }
}
return { destination, authLink }
}