Co-authored-by: scott@signal.org
Co-authored-by: ken@signal.org
This commit is contained in:
Ken Powers 2019-05-16 15:32:11 -07:00 committed by Scott Nonnenberg
parent 8c8856785b
commit 29de50c12a
100 changed files with 7572 additions and 693 deletions

View file

@ -41,6 +41,10 @@ import landscape from '../../fixtures/koushik-chowdavarapu-105425-unsplash.jpg';
// 800×1200
const landscapeObjectUrl = makeObjectUrl(landscape, 'image/png');
// @ts-ignore
import squareSticker from '../../fixtures/512x515-thumbs-up-lincoln.webp';
const squareStickerObjectUrl = makeObjectUrl(squareSticker, 'image/webp');
// @ts-ignore
import landscapeGreen from '../../fixtures/1000x50-green.jpeg';
const landscapeGreenObjectUrl = makeObjectUrl(landscapeGreen, 'image/jpeg');
@ -57,6 +61,16 @@ const landscapeRedObjectUrl = makeObjectUrl(landscapeRed, 'image/png');
import portraitTeal from '../../fixtures/50x1000-teal.jpeg';
const portraitTealObjectUrl = makeObjectUrl(portraitTeal, 'image/png');
// @ts-ignore
import kitten164 from '../../fixtures/kitten-1-64-64.jpg';
const kitten164ObjectUrl = makeObjectUrl(kitten164, 'image/jpeg');
// @ts-ignore
import kitten264 from '../../fixtures/kitten-2-64-64.jpg';
const kitten264ObjectUrl = makeObjectUrl(kitten264, 'image/jpeg');
// @ts-ignore
import kitten364 from '../../fixtures/kitten-3-64-64.jpg';
const kitten364ObjectUrl = makeObjectUrl(kitten364, 'image/jpeg');
function makeObjectUrl(data: ArrayBuffer, contentType: string): string {
const blob = new Blob([data], {
type: contentType,
@ -66,6 +80,12 @@ function makeObjectUrl(data: ArrayBuffer, contentType: string): string {
}
export {
kitten164,
kitten164ObjectUrl,
kitten264,
kitten264ObjectUrl,
kitten364,
kitten364ObjectUrl,
mp3,
mp3ObjectUrl,
gif,
@ -76,6 +96,8 @@ export {
mp4ObjectUrlV2,
png,
pngObjectUrl,
squareSticker,
squareStickerObjectUrl,
txt,
txtObjectUrl,
landscape,