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
+3 -5
View File
@@ -1,15 +1,13 @@
import { Asset, AssetType, getConfigOption, getNumericConfigOption, renderPage, SharedLink, title, toString } from '@ipp/core'
import {
getVideoContentType,
photoUrl,
videoUrl
} from '../immich'
import { Response } from 'express-serve-static-core'
import { Asset, AssetType, ImageSize, SharedLink } from '../types'
import { getConfigOption, getNumericConfigOption } from '../config/access'
import { canDownload, expiryDate, title } from '../share'
import { toString } from '../utils/text'
import { ImageSize } from '../types'
import { canDownload, expiryDate } from '../share'
import { h } from 'preact'
import { renderPage } from '../view/render'
import { Gallery, GalleryItem, GalleryProps } from '../view/gallery'
import type { GroupByDateMode } from '../shared/types'
import { downloadFilename } from './filename'
+1 -2
View File
@@ -1,6 +1,5 @@
import { Asset, ExifInfo } from '../types'
import { Asset, ExifInfo, getConfigOption } from '@ipp/core'
import { GalleryExif } from '../shared/types'
import { getConfigOption } from '../config/access'
type Group = 'exif' | 'location'
+2 -3
View File
@@ -1,6 +1,5 @@
import { Asset, ImageSize } from '../types'
import { getConfigOption } from '../config/access'
import { sanitize } from '../utils/sanitize'
import { Asset, getConfigOption, sanitize } from '@ipp/core'
import { ImageSize } from '../types'
import { resolveImageEndpoint } from './sizing'
/**
+1 -2
View File
@@ -1,6 +1,5 @@
import { Asset, SharedLink } from '../types'
import { Asset, getConfigOption, SharedLink } from '@ipp/core'
import { AssetMetadata } from '../shared/types'
import { getConfigOption } from '../config/access'
import { pickExif } from './exif'
import { downloadFilename } from './filename'
+2 -2
View File
@@ -1,5 +1,5 @@
import { Asset, AssetType, ImageSize } from '../types'
import { getConfigOption } from '../config/access'
import { Asset, AssetType, getConfigOption } from '@ipp/core'
import { ImageSize } from '../types'
/*
Single source of truth for image-size policy: given a requested ImageSize