mirror of
https://github.com/directus/directus.git
synced 2026-01-30 06:58:09 -05:00
* Rotate JPG image on upload #4206 * fixes #3949 width/height generated for gif and tif * API hooks for event added for auth.login #4079 * updated doc for api hooks for new auth.login event * Style tweaks * Update docs * Tweak docs some more * Spelling error * Allow non-required flags and pass to hook * SDK - Persistent login refresh fixes #4113 * Fixed #4145 SDK, Token Expired error * Spell check * Docs Spell check * Docs Spell check * Docs Spell check * update docs for sdk-js * To delete all expired session from db on login * corrected the condition for the delete * changed the from Date.now to new date . * Move it inline * fixes issue 4557 for asset quality for thumbnail * asset documentation is updated Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
44 lines
846 B
TypeScript
44 lines
846 B
TypeScript
import { Transformation } from './types/assets';
|
|
|
|
export const SYSTEM_ASSET_ALLOW_LIST: Transformation[] = [
|
|
{
|
|
key: 'system-small-cover',
|
|
width: 64,
|
|
height: 64,
|
|
fit: 'cover',
|
|
},
|
|
{
|
|
key: 'system-small-contain',
|
|
width: 64,
|
|
fit: 'contain',
|
|
},
|
|
{
|
|
key: 'system-medium-cover',
|
|
width: 300,
|
|
height: 300,
|
|
fit: 'cover',
|
|
},
|
|
{
|
|
key: 'system-medium-contain',
|
|
width: 300,
|
|
fit: 'contain',
|
|
},
|
|
{
|
|
key: 'system-large-cover',
|
|
width: 800,
|
|
height: 600,
|
|
fit: 'cover',
|
|
},
|
|
{
|
|
key: 'system-large-contain',
|
|
width: 800,
|
|
fit: 'contain',
|
|
},
|
|
];
|
|
|
|
export const ASSET_TRANSFORM_QUERY_KEYS = ['key', 'width', 'height', 'fit', 'withoutEnlargement', 'quality'];
|
|
|
|
export const FILTER_VARIABLES = ['$NOW', '$CURRENT_USER', '$CURRENT_ROLE'];
|
|
|
|
export const ALIAS_TYPES = ['alias', 'o2m', 'm2m', 'm2a', 'files', 'files', 'translations'];
|