mirror of
https://github.com/directus/directus.git
synced 2026-01-29 20:18:07 -05:00
42 lines
672 B
TypeScript
42 lines
672 B
TypeScript
import { Transformation } from './types/assets';
|
|
|
|
export const SYSTEM_ASSET_WHITELIST: Transformation[] = [
|
|
{
|
|
key: 'directus-small-cover',
|
|
w: 64,
|
|
h: 64,
|
|
f: 'cover',
|
|
},
|
|
{
|
|
key: 'directus-small-contain',
|
|
w: 64,
|
|
f: 'contain',
|
|
},
|
|
{
|
|
key: 'directus-medium-cover',
|
|
w: 300,
|
|
h: 300,
|
|
f: 'cover',
|
|
},
|
|
{
|
|
key: 'directus-medium-contain',
|
|
w: 300,
|
|
f: 'contain',
|
|
},
|
|
{
|
|
key: 'directus-large-cover',
|
|
w: 800,
|
|
h: 600,
|
|
f: 'cover',
|
|
},
|
|
{
|
|
key: 'directus-large-contain',
|
|
w: 800,
|
|
f: 'contain',
|
|
},
|
|
];
|
|
|
|
export const ASSET_GENERATION_QUERY_KEYS = ['key', 'w', 'h', 'f'];
|
|
|
|
export const FIELD_SPECIAL_ALIAS_TYPES = ['alias', 'o2m', 'm2m', 'file-info'];
|