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 { planPurchasePath } from '../utils/plan-purchase'
/** Production actions cross to the portal; preview/local auth stays on its own isolated origin. */
export function useCloudLinks() {
const hostname = useCloudRequestURL().hostname
const portal = ['chronoframe.art', 'app.chronoframe.art'].includes(hostname)
? 'https://app.chronoframe.art'
: ''
return {
website: 'https://chronoframe.art/',
signin: portal + '/signin',
signup: portal + '/signup',
console: portal + '/workspace',
marketingSession: portal + '/api/auth/marketing-session',
redeem: portal + '/account/redeem',
portalPricing: portal + '/account/plan#plans',
purchase: (plan: string, interval: 1 | 3) =>
portal + (planPurchasePath(plan, interval) ?? '/account/plan#plans'),
}
}