Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | 4x 4x 4x | /** These configs can contain a whitelist array of objects at the top level containing: { dimensions: [width, height], fileName: "string", accept: ["file/format", "file/format"] } This was previously used for legacy banners */ const MEDIA_RESTRICTIONS = { accept: ["image/png", "image/gif", "image/jpeg"], width: { min: 480, max: 3840, }, height: { min: 480, max: 2160, }, aspectRatio: { min: [1, 2], max: [2, 1], }, // bytes size: { min: 0, max: 2000000, }, animation: { fps: { min: 1, max: 30, }, length: { min: 0, max: 40, }, }, }; const ICON_RESTRICTIONS = { accept: ["image/png", "image/jpeg", "image/svg+xml"], width: { min: 40, max: 512, }, height: { min: 40, max: 512, }, aspectRatio: { min: [1, 1], max: [1, 1], }, size: { min: 0, max: 256000, }, }; const BANNER_RESTRICTIONS = { accept: ["image/png", "image/jpeg"], width: { min: 720, max: 4320, }, height: { min: 240, max: 1440, }, aspectRatio: { min: [3, 1], max: [3, 1], }, size: { min: 0, max: 2000000, }, }; export { MEDIA_RESTRICTIONS, ICON_RESTRICTIONS, BANNER_RESTRICTIONS }; |