Extract @ipp/core npm workspace package
This commit is contained in:
@@ -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,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'
|
||||
|
||||
|
||||
@@ -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,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'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user