Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

398 B
Raw Blame
export function useHomeView() {
  const preference = useSettingRef('app:homeView')
  const homeView = computed(() =>
    preference.value === 'albums' ? 'albums' : 'photos',
  )

  return {
    homeView,
    photoWallPath: computed(() =>
      homeView.value === 'albums' ? '/photos' : '/',
    ),
    albumListPath: computed(() =>
      homeView.value === 'albums' ? '/' : '/albums',
    ),
  }
}