Extract @ipp/core npm workspace package

This commit is contained in:
Alan Grainger
2026-10-05 15:55:18 +13:00
parent 54c0f91c4e
commit d03a77f691
65 changed files with 1056 additions and 746 deletions
+2 -12
View File
@@ -1,17 +1,7 @@
import { Asset, DownloadAll, SharedLink } from './types'
import { getConfigOption } from './config/access'
import { Asset, getConfigOption, SharedLink } from '@ipp/core'
import { DownloadAll } from './types'
import dayjs from 'dayjs'
/**
* Display title for a shared link. Prefers the user-set link description,
* falls back to the album name (for album shares), or a generic placeholder.
* Used by the gallery view-model and as the zip filename in the download
* pipeline.
*/
export function title (share: SharedLink): string {
return share.description || share?.album?.albumName || 'Gallery'
}
/**
* Decide whether the given shared link's download UI is shown (the "download
* all" zip, multi-select download, and the per-asset lightbox button). The